.agent-search-section {
    padding: 40px 0 20px 0;
    text-align: left;
}

.agent-title {
    color: #1D4656;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.agent-search-box {
    background: #F7F7F7;
    border-radius: 24px;
    padding: 12px 16px;
    gap: 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.agent-search-clear {
    display: none;
}

.agent-search-box .agent-search-clear {
    color: #71717180;
}

.agent-search-icon {
    color: #50C3CB;
    font-size: 22px;
}

.agent-search-divider {
    width: 2px;
    height: 30px;
    background: #E8E8E8;
}

.agent-search-input {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background: transparent;
    font-weight: 400;
    word-wrap: break-word
}

.agent-search-input::placeholder {
    color: #717171;
}

.agent-search-input:focus {
    background: transparent;
}

.agent-search-box:focus-within {
    border-color: #50C3CB;
}

/* ============================================
   AGENT CARD SECTION
   ============================================= */

.agent-card-section {
    padding: 20px 0;
}

/* Agent Card Container */
.agent-card {
    width: 100%;
    padding: 16px 10px;
    background: var(--Neutral-White, white);
    border-radius: 24px;
    outline: 1px rgba(119, 204, 209, 0.20) solid;
    outline-offset: -1px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.agent-card.dropdown-open {
    z-index: 10;
}

/* Agent Card Header (Image + Info) */
.agent-card-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

/* Agent Card Image */
.agent-card-image {
    width: 110px;
    height: 110px;
    min-width: 110px;
    flex-shrink: 0;
    background: var(--Neutral-Grey-100, #E8E8E8);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid var(--Neutral-White, white);
    object-fit: cover;
}

/* Agent Card Content (Info) */
.agent-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

/* Agent Name */
.agent-name {
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    margin: 0;
}

.agent-name a {
    color: #006A81;
}

/* Agent Details (Company & Location) */
.agent-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.agent-company {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
}

/* Agent Listing Stats */
.agent-listing-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.agent-listing-label {
    color: var(--Neutral-Grey-200, #717171);
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
}

.agent-listing-count {
    color: var(--Orange-Orange-200, #EE4733);
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
}

/* Agent Card Actions (Buttons) */
.agent-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.agent-card-actions .btn-ghost-agent {
    padding: 6px 18px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    min-width: 120px;
}

/* Button: View Detail (Ghost) */
.btn-ghost-agent {
    background: var(--Neutral-Grey-50, #F7F7F7);
    color: #717171 !important;
    border: 1px solid transparent;
}

.btn-ghost-agent:hover {
    background: var(--Neutral-Grey-100, #E8E8E8);
    color: var(--Neutral-Grey-300, #3E3A39);
}

.btn-ghost-agent:active {
    background: var(--Neutral-Grey-200, #D8D8D8);
}

/* Button: Contact Agent (Primary) */
.btn-primary-agent {
    background: linear-gradient(90deg, #50C3CB 0%, #00A4CA 100%);
    color: white;
    font-weight: 600;
    flex: 1;
    padding: 6px 18px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 36px;
}

.btn-primary-agent:hover {
    background: linear-gradient(90deg, #0A8091 0%, #00A4CA 100%);
}

.btn-primary-agent:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 164, 202, 0.2);
}

/* Icon inside buttons */
.btn-icon {
    color: white !important;
    font-size: 12px;
}

.btn:hover i {
    right: rgb(19, 17, 17);
    box-shadow: none;
}

/* Pagination Styles */
.pagination-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
}

.pagination-showing {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

.pagination-showing-text {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.pagination-showing-number {
    color: #EE4733;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.pagination-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
}

.pagination-btn-arrow {
    padding: 11px;
    background: transparent;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn-arrow:hover:not(.disabled) {
    background: #77CCD126;
}

.pagination-btn-arrow.disabled {
    background: #F7F7F7;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn-arrow.disabled i {
    color: #717171;
}

.pagination-arrow-icon {
    width: 18px;
    height: 18px;
    position: relative;
}

.pagination-arrow-icon i {
    width: 18px;
    height: 18px;
    position: relative;
    color: #1C1B1F;
}

.pagination-arrow-bg {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 0;
    background: #D9D9D9;
}

.pagination-numbers {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.pagination-btn-number {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn-number:hover:not(.active):not(:disabled) {
    background: #77CCD126;
}

.pagination-btn-number.active {
    background: #77CCD1;
    color: white;
    font-weight: 700;
}

.pagination-btn-number:disabled {
    cursor: default;
}

.pagination-go-to {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
}

.pagination-go-to-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.pagination-go-to-text {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.pagination-go-to-input {
    width: 60px;
    padding: 10px;
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    text-align: center;
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.pagination-go-to-input:hover,
.pagination-go-to-input:focus {
    border: 1px solid #50C3CB;
}

/* responsive */
@media (max-width: 768px) {
    .agent-title {
        font-size: 24px;
    }

    .agent-search-box {
        margin-bottom: 0;
    }

    .agent-card-section {
        padding: 0 20px;
    }

    .pagination-wrapper {
        justify-content: center;
        padding: 40px 0 20px;
        flex-direction: column;
        width: 100%;
    }

    .pagination-showing {
        display: none !important;
    }

    .pagination-go-to {
        display: none !important;
    }

    .pagination-controls {
        justify-content: center !important;
        width: 100%;
        flex-wrap: wrap;
    }

    .btn-primary-agent {
        padding: 6px 10px;
        gap: 10px;
    }
}

/* ============================================
   AGENT CONTACT DROPDOWN
   ============================================= */

/* Position relative for dropdown positioning */
.btn-primary-agent {
    position: relative;
}

/* Dropdown Menu Container */
.agent-dropdown {
    width: 138px;
    padding: 8px 10px;
    border-radius: 18px;
    border: 1px solid #E8E8E8;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.15);
    background: #FFFFFF59;
    position: absolute;
    top: 100%;
    right: 5%;
    margin-top: 8px;
    display: none !important;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Show dropdown when button has 'show' class or is active */
.btn-primary-agent.show .agent-dropdown,
.agent-dropdown.show {
    display: flex !important;
}

/* Dropdown Title */
.agent-dropdown-title {
    font-size: 13px;
    color: #717171;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: left;
}

/* Contact Item */
.agent-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding: 6px 8px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #3E3A39;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}

.agent-contact-item i {
    font-size: 18px;
    color: #717171;
    transition: all 0.2s ease;
}

.agent-contact-item:hover {
    background: #F7F7F7;
    color: #3E3A39;
}

.agent-contact-item:active {
    background: #E8E8E8;
}

/* Hide dropdown link href for non-logged-in users */
.agent-contact-item.need-popup {
    cursor: pointer;
    pointer-events: auto;
}