
/* =========================================================
   HIGH5 AGENT DIRECTORY
========================================================= */

.h5ad-agent-directory {
    width: 100%;
}


/* =========================================================
   FILTERS
========================================================= */

.h5ad-agent-filters {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    margin-bottom: 24px;
}


/* Search */

.h5ad-agent-search {
    position: relative;

    flex: 1;
}


.h5ad-agent-search-input {
    width: 100%;
    height: 44px;

    padding: 12px 16px;

    text-indent: 36px !important;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;
}


.h5ad-agent-search-input:focus {
    border-color: #2271b1;
}


/* Search Icon */

.h5ad-search-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #9ca3af;

    transform: translateY(-50%);

    pointer-events: none;

    z-index: 10;
}


.h5ad-search-icon svg {
    display: block;

    width: 18px;
    height: 18px;
}


 /* State */

.h5ad-agent-state {
    width: 220px;

    flex: 0 0 220px;

    position: relative;
}


.h5ad-agent-state-select {
    width: 100%;
    height: 44px;

    padding: 0 42px 0 16px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background-color: #ffffff;

    color: #111827;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


.h5ad-agent-state-select:focus {
    border-color: #2271b1;
}


/* Dropdown Arrow */

.h5ad-agent-state::after {
    content: '';

    position: absolute;

    top: 50%;
    right: 16px;

    width: 7px;
    height: 7px;

    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;

    transform: translateY(-65%) rotate(45deg);

    pointer-events: none;
}


/* =========================================================
   AGENT GRID
========================================================= */

.h5ad-agent-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   AGENT CARD
========================================================= */

.h5ad-agent-card {
    display: flex;

    flex-direction: column;
    align-items: center;

    min-width: 0;

    padding: 28px 24px 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.h5ad-agent-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   AGENT IMAGE
========================================================= */

.h5ad-agent-image-wrap {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-bottom: 18px;
}


/*
 * Elementor controls the actual:
 *
 * - Width
 * - Height
 * - Border Radius
 *
 * These CSS values provide a safe base only.
 */

.h5ad-agent-image {
    display: block;

    width: 120px;
    height: 120px;

    max-width: 100%;

    object-fit: cover;

    background: #f3f4f6;

    flex-shrink: 0;
}


/*
 * WordPress agent image.
 *
 * Elementor controls the size and radius.
 */

.h5ad-agent-image-wrap img.h5ad-agent-image {
    display: block;

    object-fit: cover;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.h5ad-agent-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #6b7280;

    font-size: 36px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   AGENT CONTENT
========================================================= */

.h5ad-agent-content {
    display: flex;

    flex-direction: column;
    align-items: center;

    width: 100%;
}


/* =========================================================
   NAME
========================================================= */

.h5ad-agent-name {
    width: 100%;

    margin: 0 0 6px;

    color: #111827;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   EMAIL
========================================================= */

.h5ad-agent-email {
    width: 100%;

    margin: 0 0 18px;

    color: #4b5563;

    font-size: 14px;

    line-height: 1.5;

    word-break: break-word;
}


/* =========================================================
   PHONE
========================================================= */

.h5ad-agent-phone {
    width: 100%;

    margin: 0 0 4px;

    color: #374151;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   ADDRESS
========================================================= */

.h5ad-agent-address {
    width: 100%;

    margin: 0 0 18px;

    color: #374151;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   LICENSED IN
========================================================= */

.h5ad-agent-licensed {
    width: 100%;

    margin: 0 0 22px;

    color: #2271b1;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   BUTTON FOOTER
========================================================= */

.h5ad-agent-footer {
    width: 100%;

    margin-top: auto;
}


/* =========================================================
   PROFILE BUTTON
========================================================= */

.h5ad-profile-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    padding: 10px 18px;

    border-radius: 9px;

    background: #2271b1;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.h5ad-profile-button:hover {
    background: #1d639b;

    color: #ffffff;

    text-decoration: none;
}

.h5ad-profile-button[aria-disabled="true"] {
    opacity: 0.5;

    pointer-events: none;
}


/* =========================================================
   EMPTY RESULTS
========================================================= */

.h5ad-agent-empty-results {
    padding: 40px 20px;

    color: #6b7280;

    text-align: center;

    font-size: 15px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .h5ad-agent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .h5ad-agent-filters {
        flex-direction: column;

        align-items: stretch;
    }

    .h5ad-agent-state {
        width: 100%;

        flex: none;
    }

    .h5ad-agent-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .h5ad-agent-card {
        padding: 26px 20px 22px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .h5ad-agent-image {
        width: 105px;
        height: 105px;
    }

    .h5ad-agent-name {
        font-size: 18px;
    }

}

/* =========================================================
   COPYABLE AGENT INFORMATION
========================================================= */

.h5ad-agent-copy-field:hover .h5ad-agent-copy-icon {
    opacity: 1;
    color: #2271b1;
}


.h5ad-agent-copy-field.is-copied .h5ad-agent-copy-icon {
    opacity: 1;
    color: #16a34a;
}

.h5ad-agent-copy-field {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    text-align: center;

    cursor: pointer;
}

.h5ad-agent-copy-text {
    display: inline-block;

    text-align: center;
}
.h5ad-agent-copy-icon {
    position: absolute;

    right: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: #9ca3af;

    opacity: 0;

    transition:
        opacity 0.18s ease,
        color 0.18s ease;

    pointer-events: none;
}