/* =========================================================
   PREMIUM DEALER PROFILE — compact, responsive, clean
   Isolated styles: no changes to other property sections.
========================================================= */
.dealer-premium-section {
    overflow: hidden;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 34, 56, .045);
}

.dealer-premium-heading {
    min-height: 64px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f4;
    cursor: pointer;
}

.dealer-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dealer-heading-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #a66b2d;
    background: linear-gradient(145deg,#fff8ed,#f6ead8);
    font-size: 16px;
}

.dealer-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #a27a4c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.25px;
}

.dealer-premium-heading .section-title {
    color: #172337;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
}

.dealer-premium-card {
    padding: 16px 18px 14px;
}

.dealer-premium-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.dealer-premium-avatar-wrap {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.dealer-premium-avatar {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid #e8ebef;
    background: #f4f6f8;
}

.dealer-online-indicator {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #20a56b;
}

.dealer-premium-identity {
    flex: 1;
    min-width: 0;
}

.dealer-premium-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

    .dealer-premium-name-row h6 {
        margin: 0;
        color: #172337;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

.dealer-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 20px;
    color: #267451;
    background: #edf8f2;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.dealer-premium-designation {
    margin: 3px 0 5px;
    color: #687487;
    font-size: 12px;
    font-weight: 600;
}

.dealer-premium-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #8993a2;
    font-size: 10px;
}

    .dealer-premium-meta i {
        margin-right: 4px;
        color: #a77a47;
    }

.dealer-profile-state {
    color: #7c8796;
}

    .dealer-profile-state i {
        color: #22a06b;
        font-size: 6px;
        vertical-align: middle;
    }

.dealer-premium-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 14px 0 12px;
    padding: 10px 13px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    background: #fafbfd;
}

.dealer-premium-stat {
    display: grid;
    grid-template-columns: 25px auto;
    column-gap: 8px;
    align-items: center;
    min-width: 0;
}

.dealer-stat-icon {
    grid-row: span 2;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #9a7040;
    background: #f5eee5;
    font-size: 11px;
}

.dealer-stat-icon-verified {
    color: #27845b;
    background: #eaf6ef;
}

.dealer-stat-number {
    color: #1b293c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.dealer-stat-caption {
    color: #8490a0;
    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.dealer-stat-divider {
    width: 1px;
    height: 27px;
    background: #e4e9ef;
}

.dealer-premium-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dealer-secure-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8993a1;
    font-size: 10px;
}

.dealer-secure-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #718096;
    background: #f1f4f7;
    font-size: 10px;
}

.dealer-premium-contact-btn {
    min-height: 37px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(110deg,#202d40,#34445b);
    box-shadow: 0 5px 13px rgba(27,42,62,.14);
    font-size: 11px;
    font-weight: 750;
    transition: transform .2s,box-shadow .2s,opacity .2s;
}

    .dealer-premium-contact-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 7px 17px rgba(27,42,62,.2);
    }

    .dealer-premium-contact-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.dealer-contact-arrow {
    margin-left: 2px;
    font-size: 9px;
    opacity: .75;
}

.dealer-load-message {
    min-height: 0;
    margin-top: 6px;
    color: #9aa3af;
    font-size: 10px;
}

    .dealer-load-message:empty {
        display: none;
    }

@media (max-width:575px) {
    .dealer-premium-heading {
        min-height: 58px;
        padding: 11px 13px;
    }

    .dealer-premium-card {
        padding: 13px;
    }

    .dealer-premium-avatar-wrap, .dealer-premium-avatar {
        width: 51px;
        height: 51px;
    }

    .dealer-premium-avatar-wrap {
        flex-basis: 51px;
    }

    .dealer-premium-name-row h6 {
        font-size: 13px;
    }

    .dealer-premium-stats {
        gap: 13px;
        padding: 9px;
        margin: 12px 0;
    }

    .dealer-stat-number {
        font-size: 14px;
    }

    .dealer-stat-caption {
        font-size: 8px;
    }

    .dealer-secure-note {
        max-width: 48%;
        font-size: 9px;
        line-height: 1.35;
    }

    .dealer-premium-contact-btn {
        min-height: 35px;
        padding: 0 10px;
        font-size: 10px;
    }
}

@media (max-width:360px) {
    .dealer-premium-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dealer-secure-note {
        max-width: none;
    }

    .dealer-premium-contact-btn {
        width: 100%;
    }
}


/* =========================================================
   BHOOMI YUG — ULTRA PREMIUM DEALER CONTACT MODAL
   Compact height, responsive, API-driven content.
========================================================= */
.dealer-contact-modal {
    z-index: 1085;
}

    .dealer-contact-modal .modal-backdrop {
        opacity: .58;
    }

.dealer-contact-dialog {
    width: calc(100% - 28px);
    max-width: 490px;
    margin: 1rem auto;
}

.dealer-contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 90px rgba(16,25,39,.28);
}

.dealer-contact-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px 10px;
    border-bottom: 1px solid #f0eee9;
}

.dealer-contact-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #292516;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .2px;
}

    .dealer-contact-brand strong {
        color: #a8782d;
    }

.dealer-contact-brand-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #302914;
    font-size: 12px;
}

.dealer-contact-close {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid #ece9e2;
    border-radius: 50%;
    color: #596273;
    background: #fff;
    font-size: 15px;
    transition: all .18s ease;
}

    .dealer-contact-close:hover {
        color: #fff;
        border-color: #302914;
        background: #302914;
    }

.dealer-contact-heading {
    padding: 17px 22px 13px;
}

.dealer-contact-eyebrow {
    color: #a87932;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.45px;
}

.dealer-contact-heading h4 {
    margin: 5px 0 4px;
    color: #1c2635;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.45px;
}

.dealer-contact-heading p {
    margin: 0;
    color: #7c8796;
    font-size: 11px;
    line-height: 1.5;
}

.dealer-contact-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px;
    padding: 13px;
    border: 1px solid #eee9df;
    border-radius: 14px;
    background: linear-gradient(110deg,#fffdf9,#faf8f3);
}

.dealer-contact-avatar-wrap {
    position: relative;
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
}

.dealer-contact-avatar {
    width: 57px;
    height: 57px;
    display: block;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 14px;
    background: #f0f1f3;
    box-shadow: 0 2px 9px rgba(20,30,45,.1);
}

.dealer-contact-avatar-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #27a36a;
}

.dealer-contact-person {
    min-width: 0;
    flex: 1;
}

.dealer-contact-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

    .dealer-contact-name-line h5 {
        margin: 0;
        color: #202b3a;
        font-size: 14px;
        font-weight: 850;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

.dealer-contact-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 20px;
    color: #24744f;
    background: #eaf6ef;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.dealer-contact-role {
    display: block;
    margin-top: 3px;
    color: #687588;
    font-size: 10px;
    font-weight: 650;
}

.dealer-contact-location {
    display: block;
    margin-top: 5px;
    color: #8791a0;
    font-size: 10px;
    overflow-wrap: anywhere;
}

    .dealer-contact-location i {
        margin-right: 4px;
        color: #ae803c;
    }

.dealer-contact-property {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 20px 0;
    padding: 9px 11px;
    border-radius: 11px;
    background: #f7f8fa;
}

.dealer-contact-property-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #a67836;
    background: #f1e9dc;
    font-size: 12px;
}

.dealer-contact-property-copy {
    min-width: 0;
    flex: 1;
}

    .dealer-contact-property-copy small {
        display: block;
        margin-bottom: 2px;
        color: #9a8a72;
        font-size: 8px;
        font-weight: 850;
        letter-spacing: 1px;
    }

    .dealer-contact-property-copy strong {
        display: block;
        color: #293548;
        font-size: 11px;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.dealer-contact-property-tag {
    padding: 4px 7px;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    color: #768195;
    background: #fff;
    font-size: 8px;
    font-weight: 750;
}

.dealer-contact-number-panel {
    margin: 12px 20px 0;
    padding: 12px 13px 10px;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    background: #fbfcfe;
}

.dealer-contact-number-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #778398;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .75px;
}

    .dealer-contact-number-label i {
        margin-right: 4px;
        color: #ae803c;
    }

.dealer-contact-number-secure {
    color: #a0a8b4;
    font-size: 8px;
    letter-spacing: 0;
    font-weight: 650;
}

    .dealer-contact-number-secure i {
        color: #36a174;
    }

.dealer-contact-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-top: 7px;
    padding: 0 10px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #fff;
}

.dealer-contact-country {
    padding-right: 9px;
    border-right: 1px solid #e9edf2;
    color: #7c8798;
    font-size: 12px;
    font-weight: 750;
}

.dealer-contact-number-row strong {
    flex: 1;
    color: #202b3c;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.dealer-copy-number {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #78869a;
    background: #f2f4f7;
    font-size: 11px;
}

    .dealer-copy-number:hover {
        color: #a67836;
        background: #f7efe2;
    }

.dealer-contact-email-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #7c8798;
    font-size: 10px;
    overflow-wrap: anywhere;
}

    .dealer-contact-email-row i {
        color: #ad803c;
    }

.dealer-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 13px 20px 0;
}

.dealer-contact-action {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 850;
    transition: transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

    .dealer-contact-action:hover {
        color: #fff;
        transform: translateY(-1px);
        filter: brightness(1.04);
    }

.dealer-contact-call {
    background: linear-gradient(115deg,#a87932,#c3944d);
    box-shadow: 0 6px 15px rgba(168,121,50,.2);
}

.dealer-contact-whatsapp {
    background: linear-gradient(115deg,#159b59,#22b76b);
    box-shadow: 0 6px 15px rgba(27,166,96,.18);
}

.dealer-contact-action.is-disabled {
    opacity: .45;
    pointer-events: none;
    box-shadow: none;
}

.dealer-contact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 20px 14px;
    color: #9aa2ad;
    font-size: 9px;
    text-align: center;
}

    .dealer-contact-footer i {
        color: #4d9b77;
    }

@media (max-width:575px) {
    .dealer-contact-dialog {
        width: calc(100% - 22px);
        margin: 11px auto;
    }

    .dealer-contact-card {
        border-radius: 18px;
    }

    .dealer-contact-topline {
        padding: 11px 15px 9px;
    }

    .dealer-contact-heading {
        padding: 14px 16px 11px;
    }

        .dealer-contact-heading h4 {
            font-size: 19px;
        }

    .dealer-contact-profile {
        margin: 0 15px;
        padding: 11px;
    }

    .dealer-contact-property {
        margin: 10px 15px 0;
    }

    .dealer-contact-number-panel {
        margin: 10px 15px 0;
        padding: 10px;
    }

    .dealer-contact-actions {
        margin: 11px 15px 0;
        gap: 8px;
    }

    .dealer-contact-action {
        min-height: 41px;
        font-size: 10px;
    }

    .dealer-contact-footer {
        margin: 10px 15px 12px;
        font-size: 8px;
    }

    .dealer-contact-number-row strong {
        font-size: 17px;
    }
}

@media (max-width:350px) {
    .dealer-contact-actions {
        grid-template-columns: 1fr;
    }

    .dealer-contact-number-label {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   BHOOMI YUG — FINAL VIEWPORT-SAFE DEALER CONTACT MODAL
   The modal and its own backdrop sit above sticky site headers.
   The dialog is centered in the actual viewport, not below
   the page header. Small screens scroll inside the card only.
========================================================= */
body.modal-open {
    overflow: hidden !important;
}

.dealer-contact-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: transparent !important;
}

    .dealer-contact-modal.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

.modal-backdrop.dealer-contact-backdrop {
    z-index: 2147482990 !important;
    background: rgba(19, 27, 39, .48) !important;
    opacity: 1 !important;
}

.dealer-contact-dialog {
    display: block !important;
    flex: 0 0 auto !important;
    width: min(100%, 448px) !important;
    max-width: 448px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: auto !important;
    transform: none !important;
}

.dealer-contact-card {
    position: relative !important;
    width: 100% !important;
    max-height: calc(100vh - 36px) !important;
    max-height: calc(100dvh - 36px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.96) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #fff 0%, #fff 100%) !important;
    box-shadow: 0 28px 90px rgba(12, 20, 32, .30), 0 4px 16px rgba(12, 20, 32, .08) !important;
    scrollbar-width: thin;
    scrollbar-color: #d8c7aa transparent;
}

    .dealer-contact-card::-webkit-scrollbar {
        width: 5px;
    }

    .dealer-contact-card::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #d8c7aa;
    }

.dealer-contact-topline {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 17px 9px !important;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
}

.dealer-contact-brand {
    font-size: 12px !important;
}

.dealer-contact-brand-icon {
    width: 27px !important;
    height: 27px !important;
    border-radius: 9px !important;
}

.dealer-contact-close {
    width: 31px !important;
    height: 31px !important;
    cursor: pointer;
}

.dealer-contact-heading {
    padding: 13px 19px 11px !important;
}

.dealer-contact-eyebrow {
    font-size: 8px !important;
    letter-spacing: 1.35px !important;
}

.dealer-contact-heading h4 {
    margin: 4px 0 4px !important;
    color: #1c2635 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    letter-spacing: -.45px !important;
}

.dealer-contact-heading p {
    font-size: 10px !important;
    line-height: 1.45 !important;
}

.dealer-contact-profile {
    margin: 0 17px !important;
    padding: 11px 12px !important;
    gap: 11px !important;
    border-radius: 14px !important;
}

.dealer-contact-avatar-wrap,
.dealer-contact-avatar {
    width: 50px !important;
    height: 50px !important;
}

.dealer-contact-avatar-wrap {
    flex-basis: 50px !important;
}

.dealer-contact-name-line h5 {
    font-size: 14px !important;
}

.dealer-contact-role {
    margin-top: 2px !important;
    font-size: 9px !important;
}

.dealer-contact-location {
    margin-top: 4px !important;
    font-size: 9px !important;
}

.dealer-contact-property {
    margin: 9px 17px 0 !important;
    padding: 8px 10px !important;
}

.dealer-contact-property-icon {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
}

.dealer-contact-property-copy small {
    font-size: 7px !important;
}

.dealer-contact-property-copy strong {
    font-size: 10px !important;
}

.dealer-contact-number-panel {
    margin: 9px 17px 0 !important;
    padding: 9px 11px !important;
}

.dealer-contact-number-label {
    font-size: 8px !important;
}

.dealer-contact-number-row {
    min-height: 39px !important;
    margin-top: 6px !important;
}

    .dealer-contact-number-row strong {
        font-size: 18px !important;
        letter-spacing: .65px !important;
    }

.dealer-contact-email-row {
    margin-top: 6px !important;
    font-size: 9px !important;
}

.dealer-contact-actions {
    margin: 11px 17px 0 !important;
    gap: 9px !important;
}

.dealer-contact-action {
    min-height: 42px !important;
    border-radius: 11px !important;
    font-size: 10px !important;
}

.dealer-contact-footer {
    margin: 10px 17px 13px !important;
    font-size: 8px !important;
    line-height: 1.4 !important;
}

@media (max-width: 575px) {
    .dealer-contact-modal {
        padding: 11px !important;
    }

    .dealer-contact-dialog {
        width: 100% !important;
        max-width: 430px !important;
        min-height: 0 !important;
    }

    .dealer-contact-card {
        max-height: calc(100vh - 22px) !important;
        max-height: calc(100dvh - 22px) !important;
        border-radius: 19px !important;
    }

    .dealer-contact-topline {
        padding: 10px 14px 8px !important;
    }

    .dealer-contact-heading {
        padding: 11px 15px 9px !important;
    }

        .dealer-contact-heading h4 {
            font-size: 18px !important;
        }

    .dealer-contact-profile,
    .dealer-contact-property,
    .dealer-contact-number-panel,
    .dealer-contact-actions {
        margin-left: 13px !important;
        margin-right: 13px !important;
    }

    .dealer-contact-footer {
        margin-left: 13px !important;
        margin-right: 13px !important;
    }

    .dealer-contact-action {
        min-height: 42px !important;
    }
}

@media (max-width: 360px) {
    .dealer-contact-number-row {
        gap: 7px !important;
        padding: 0 8px !important;
    }

        .dealer-contact-number-row strong {
            font-size: 15px !important;
            letter-spacing: .2px !important;
        }

    .dealer-contact-number-label {
        flex-direction: row !important;
        align-items: center !important;
    }

    .dealer-contact-actions {
        grid-template-columns: 1fr 1fr !important;
    }

    .dealer-contact-action {
        gap: 5px !important;
        font-size: 9px !important;
    }
}

@media (max-height: 560px) {
    .dealer-contact-modal {
        padding: 9px !important;
    }

    .dealer-contact-card {
        max-height: calc(100vh - 18px) !important;
        max-height: calc(100dvh - 18px) !important;
    }
}
