/* ---------- 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::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 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; }
.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;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.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: 460px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}
.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 !important;
}
/* ---------- 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;
}