/* ---------- Search Form (horizontal) ---------- */
.pam-search-form.pam-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 900px;
}

/* Commercial / Residential radio toggle */
.pam-search-form .pam-type-toggle {
    display: flex;
    gap: 28px;
}
.pam-search-form .pam-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
    user-select: none;
}
.pam-search-form .pam-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.pam-search-form .pam-radio-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pam-search-form .pam-radio input[type="radio"]:checked + .pam-radio-dot {
    border-color: #e2b846;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #e2b846;
}
.pam-search-btn{
    border-color: #e2b846 !important;
    background: #e2b846 !important;
    color: #fff !important;
}
.pam-search-btn:hover{
border-color: #e2b846 !important;
    background: #e2b846 !important;
    color: #fff !important;
transform: scale(.9) !important;
}
    

/* Buy dropdown + search box + button pill bar */
.pam-search-form .pam-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.pam-search-form .pam-field {
    display: flex;
    align-items: center;
}
.pam-search-form .pam-field-select {
    position: relative;
    border-right: 1px solid #e2e2e2;
}
.pam-search-form .pam-field-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    padding: 16px 36px 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    height: 100%;
}
.pam-search-form .pam-field-select select.pam-hidden {
    display: none;
}
.pam-search-form .pam-field-select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.pam-search-form .pam-field-search {
    flex: 1 1 auto;
}
.pam-search-form .pam-field-search input[type="text"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 16px 20px;
    font-size: 15px;
    color: #222;
    background: transparent;
}
.pam-search-form .pam-field-search input[type="text"]:focus,
.pam-search-form .pam-field-select select:focus {
    outline: none;
}
.pam-search-form .pam-field-submit {
    flex: 0 0 auto;
}
.pam-search-btn {
    height: 100%;
    padding: 16px 34px;
    border: none;
    border-radius: 0;
    background: #12233f;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
}
.pam-search-btn:hover { background: #1c3459; }

@media (max-width: 640px) {
    .pam-search-form.pam-horizontal { align-items: stretch; }
    .pam-search-form .pam-type-toggle { justify-content: center; }
    .pam-search-form .pam-search-bar { flex-direction: column; }
    .pam-search-form .pam-field-select { border-right: none; border-bottom: 1px solid #e2e2e2; }
}

/* ---------- Results Grid ---------- */
.pam-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.pam-result-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.pam-result-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.pam-result-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.pam-result-body { padding: 12px 14px; }
.pam-result-title { margin: 0 0 6px; font-size: 16px; }
.pam-result-zip { margin: 0; color: #666; font-size: 13px; }

/* ---------- Agent Cards (search results) ---------- */
.pam-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.pam-agent-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease;
}
.pam-agent-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.pam-agent-card-photo img,
.pam-agent-card-photo-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #e9e9e9;
}
.pam-agent-card-body { padding: 16px; }
.pam-agent-card-name { margin: 0 0 8px; font-size: 18px; }
.pam-agent-card-name-link { color: inherit; text-decoration: none; }
.pam-agent-card-name-link:hover { text-decoration: underline; }
.pam-agent-card-bio { margin: 0 0 10px; color: #555; font-size: 14px; line-height: 1.5; }
.pam-agent-card-count { margin: 0 0 12px; color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Agent Properties page (Thank You "Visit Listed Property") ---------- */
.pam-agent-properties-heading { margin-bottom: 20px; }
.pam-result-title-link { text-decoration: none; color: inherit; display: block; }
.pam-result-title-link:hover .pam-result-title { text-decoration: underline; }

/* ---------- Agent Page (profile layout, built in Elementor) ---------- */
.pam-agent-page-title {
    text-align: center;
    margin: 0 0 30px;
}
.pam-agent-detail {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
}
.pam-agent-detail-label {
    font-weight: 700;
    margin-right: 4px;
}
.pam-agent-detail-name .pam-agent-detail-value { font-size: 20px; font-weight: 700; }
.pam-agent-detail-bio p { margin: 0 0 10px; color: #444; }
.pam-agent-author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.pam-agent-author-box-photo img,
.pam-agent-author-box-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #e9e9e9;
}
.pam-agent-author-box-name {
    font-size: 18px;
    font-weight: 700;
}

/* ---------- Agent Contact ---------- */
.pam-contact-btn,
.pam-call-btn,
.pam-email-btn,
.pam-view-agent-btn,
.pam-visit-more-btn,
.pam-search-again-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 4px;
    background: #222;
    color: #fff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 4px 6px 4px 0;
}
.pam-contact-btn:hover,
.pam-call-btn:hover,
.pam-email-btn:hover,
.pam-visit-more-btn:hover,
.pam-search-again-btn:hover { background: #444; }
.pam-contact-btn { width: 100%; text-align: center; }

/* ---------- Custom Contact Popup Form ---------- */
.pam-contact-form { margin-top: 16px; }
.pam-contact-form .pam-form-row { margin: 0 0 14px; }
.pam-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.pam-contact-form input[type="text"],
.pam-contact-form input[type="email"],
.pam-contact-form input[type="tel"],
.pam-contact-form select,
.pam-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}
.pam-contact-form textarea { resize: vertical; }

/* Side-by-side field pairs (Name/Email, Phone/Address, Suburb/State) */
.pam-form-row-pair {
    display: flex;
    gap: 15px;
}
.pam-form-row-pair .pam-form-row {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 0 14px;
}
@media (max-width: 560px) {
    .pam-form-row-pair {
        flex-direction: column;
        gap: 0;
    }
}
.pam-contact-form textarea { resize: vertical; }
.pam-form-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.pam-form-msg {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.pam-form-msg.pam-form-error { display: block; background: #fdeaea; color: #a12727; }
.pam-form-msg.pam-form-success { display: block; background: #e8f6ec; color: #1e7a37; }
.pam-submit-btn {
    padding: 10px 22px !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #e2b846 !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.pam-submit-btn:hover { background: #e2830f; }
.pam-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Modal ---------- */
.pam-modal {
    display: none;
    position: fixed;
    inset: 0;
    /* Higher than .pam-unlock-overlay (z-index 9998/9999) so the popup
       always paints above the blurred background, even if a browser
       briefly renders it before JS re-parents it to <body>. */
    z-index: 999999;
    align-items: center;
    justify-content: center;
    /* Never let a blur/filter/transform on an ancestor apply to the
       popup itself - see pam-frontend.js relocatePamModalsToBody(). */
    isolation: isolate;
}
.pam-modal.active { display: flex; }
.pam-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.pam-modal-content {
    position: relative;
    background-color: var(--e-global-color-364175b);
    padding: 30px;
    border-radius: 8px;
    max-width: 680px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}
.custom-subtitle{
font-size: 14px !important;
line-height: 24px !important;
}
.pam-agent-meta {
    color: #e2b846 !important;
    font-size: 13px;
    font-weight: bold !important;
    text-transform: capitalize
    letter-spacing: .04em;
    margin: 4px 0 0;
}
.pam-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #fff !important;
    border: 1px solid #fff !important;

}
.pam-modal-close:hover{
    background-color: #000000 !important;
}

.wpcf7-submit{
        background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 8px !important;
    font-family: "Manrope", Sans-serif !important;
    font-size: 16px !important; 
    font-weight: 500 !important;
    border-color: #fff !important;
}
.pam-modal-content h3, .pam-modal-content p{
    color: #fff;
}
/* ---------- Thank You ---------- */
.pam-thank-you { max-width: 480px; }
.pam-thank-you-agent-name { font-weight: 600; }
.pam-thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.pam-thank-you-agent {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.elementor-author-box__avatar img{
    border-radius: 000px !important;
    width: 90px !important;
    height: 100px !important;
}
/* ==========================================
   PAM LOCKED / UNLOCKED CONTENT (bio + recent sales)
========================================== */

.pam-content-locked {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.pam-content-unlocked {
    filter: none;
    -webkit-filter: none;
    pointer-events: auto;
    user-select: auto;
}

/* [pam_agent_unlock_button] - a full-screen blur overlay with one centered
   CTA on top, so everything behind it blurs together (not each piece of
   content individually). */
.pam-unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 246, 240, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
}

.pam-center-unlock-btn {
    position: relative;
    z-index: 9999;
    width: auto;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   PAM RECENT SOLD PROPERTIES CAROUSEL
========================================== */
/* ==========================================
   PAM RECENT SOLD PROPERTIES CAROUSEL
========================================== */

.pam-recent-sold-carousel {
    width: 100%;
    position: relative;
}


/* Horizontal slider */

.pam-recent-sold-carousel .swiper-wrapper {
    display: flex !important;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding-bottom: 10px;
}


.pam-recent-sold-carousel .swiper-wrapper::-webkit-scrollbar {
    display: none;
}

/* Desktop - 2 cards */

.pam-recent-sold-carousel .swiper-slide {
    flex: 0 0 calc((100% - 25px) / 2);
    width: calc((100% - 25px) / 2);
    height: auto;
}


/* Card */

.pam-sold-property-card {
    height: 100%;
    background: #ffffff;
    overflow: hidden;
}


.pam-sold-property-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}


.pam-sold-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.pam-sold-property-content {
    padding: 20px;
}


.pam-sold-property-title {
    margin: 0 0 10px;
}


.pam-sold-property-description p:last-child {
    margin-bottom: 0;
}


/* Navigation */

.pam-sold-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


.pam-sold-prev,
.pam-sold-next {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}


/* Tablet */

@media (max-width: 1023px) {

    .pam-recent-sold-carousel .swiper-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }

}


/* Mobile */

@media (max-width: 767px) {

    .pam-recent-sold-carousel .swiper-wrapper {
        gap: 15px;
    }

    .pam-recent-sold-carousel .swiper-slide {
        flex: 0 0 100%;
        width: 100%;
    }

}
.pam-no-agents-wrap{max-width:700px;margin:20px auto;}
.pam-no-agents-form .pam-cf7-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.pam-no-agents-form .pam-cf7-full{grid-column:1 / -1;}
.pam-no-agents-form label{display:block;font-weight:600;}
.pam-no-agents-form input[type="text"],
.pam-no-agents-form input[type="email"],
.pam-no-agents-form input[type="tel"],
.pam-no-agents-form select{width:100%;padding:12px;border:1px solid #eadfc8;border-radius:8px;background:#fbf5ea;}
@media(max-width:600px){.pam-no-agents-form .pam-cf7-grid{grid-template-columns:1fr;}}

/* Learn More button shown for unlocked agents */
.pam-learn-more-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 4px;
    background: #222222;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin: 4px 6px 4px 0;
    font-family: 'Manrope';
}
.pam-learn-more-btn:hover { background: #444; }