:root {
    --luxe-ivory: #f5f2eb;
    --luxe-paper: #fbf8f2;
    --luxe-ink: #0f1722;
    --luxe-muted: #5c6878;
    --luxe-teal: #0d766c;
    --luxe-deep: #0a3942;
    --luxe-bronze: #b58a54;
    --luxe-border: rgba(15, 23, 42, 0.08);
    --luxe-shadow-soft: 0 24px 70px rgba(10, 18, 32, 0.08);
    --luxe-shadow-strong: 0 30px 90px rgba(10, 18, 32, 0.14);
    --luxe-frame-width: min(1480px, calc(100vw - clamp(18px, 4vw, 56px)));
}

html {
    scroll-behavior: smooth;
}

body {
    --page-bg: #f1eee7;
    --page-bg-rgb: 241, 238, 231;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-muted: #f7f4ee;
    --line: rgba(15, 23, 42, 0.09);
    --text: #162231;
    --text-main: #0f1722;
    --text-soft: #5c6878;
    --brand: #0d766c;
    --brand-rgb: 13, 118, 108;
    --brand-dark: #0a3942;
    --accent: #b58a54;
    --header-bg-start: #0d141d;
    --header-bg-end: #173845;
    --header-text: #f6f7fb;
    --header-text-rgb: 246, 247, 251;
    --btn-primary-bg: #0d766c;
    --btn-primary-bg-rgb: 13, 118, 108;
    --btn-primary-text: #f6f7fb;
    --theme-radius-button: 999px;
    --shadow-soft: var(--luxe-shadow-soft);
    --shadow-strong: var(--luxe-shadow-strong);
    --radius-xl: 1.75rem;
    --radius-lg: 1.15rem;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
}

body.section-admin,
body.section-provider,
body.section-seller,
body.route-public-dashboard,
body.route-public-wallet,
body.route-public-saved-properties {
    --page-bg: #edf2f6;
    --page-bg-rgb: 237, 242, 246;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(14px);
}

body::before {
    top: -9rem;
    left: -5rem;
    width: clamp(220px, 34vw, 520px);
    height: clamp(220px, 34vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(181, 138, 84, 0.18), rgba(181, 138, 84, 0) 68%);
}

body::after {
    right: -7rem;
    bottom: 8rem;
    width: clamp(240px, 28vw, 460px);
    height: clamp(240px, 28vw, 460px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 118, 108, 0.16), rgba(13, 118, 108, 0) 70%);
}

.site-navbar,
.site-footer,
.site-main-shell,
.provider-landing-main {
    position: relative;
    z-index: 1;
}

a {
    color: var(--brand-dark);
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--brand);
}

h1,
h2,
.display-6,
.search-title,
.results-title,
.app-page-title,
.site-footer__brand,
.provider-landing-profile-name,
.property-price-display,
.dashboard-stat-card__value,
.provider-request-summary-value,
.provider-marketplace-results__count {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.04em;
}

h3,
.app-card-title,
.provider-landing-profile-headline,
.dashboard-action-card__label {
    letter-spacing: -0.02em;
}

.site-main-shell {
    max-width: var(--luxe-frame-width);
}

main.site-main-shell {
    padding-top: clamp(1rem, 1.8vw, 1.6rem);
    padding-bottom: clamp(2rem, 3vw, 3rem);
}

main.site-main-shell > .alert {
    margin-bottom: 1rem;
}

.text-muted,
.text-secondary,
.small.text-muted,
.small.text-secondary {
    color: var(--text-soft) !important;
}

.site-navbar {
    width: var(--luxe-frame-width);
    margin: clamp(12px, 2vw, 20px) auto 0;
    padding: 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.65rem;
    background: linear-gradient(135deg, rgba(10, 18, 30, 0.94), rgba(21, 57, 67, 0.88));
    box-shadow: 0 28px 80px rgba(6, 13, 22, 0.22);
    backdrop-filter: blur(22px) saturate(150%);
    overflow: visible;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.site-navbar::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(1.65rem - 1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.site-navbar.is-scrolled {
    box-shadow: 0 22px 64px rgba(6, 13, 22, 0.26);
    border-color: rgba(255, 255, 255, 0.18);
}

.site-navbar__shell,
.site-footer__shell,
.site-footer__meta {
    width: min(100%, calc(100% - clamp(18px, 4vw, 44px)));
}

.site-navbar__shell {
    display: flex;
    align-items: center;
    gap: 0.9rem 1.35rem;
}

.site-navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    text-decoration: none;
}

.site-navbar__brand-badge {
    width: 54px;
    height: 54px;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(181, 138, 84, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px rgba(9, 18, 29, 0.25);
}

.site-navbar__brand-logo {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-navbar__brand-initials {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.site-navbar__brand-copy {
    display: grid;
    gap: 0.18rem;
}

.site-navbar__brand-text {
    font-size: 1.22rem;
    color: #f7fafc;
}

.site-navbar__brand-meta {
    color: rgba(246, 247, 251, 0.66);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-navbar .nav-link,
.site-navbar .btn,
.site-navbar .auth-nav-btn {
    min-height: 42px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-navbar .nav-link {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(246, 247, 251, 0.86);
    border-color: rgba(255, 255, 255, 0.06);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
}

.site-navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.site-navbar .site-nav-list--public .auth-nav-btn.btn-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 238, 0.94));
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 14px 28px rgba(7, 14, 26, 0.14);
}

.site-navbar .navbar-toggler {
    width: 46px;
    height: 46px;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    width: var(--luxe-frame-width);
    margin: clamp(2rem, 4vw, 4rem) auto 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(10, 18, 30, 0.95), rgba(22, 58, 69, 0.9));
    box-shadow: 0 28px 90px rgba(7, 14, 26, 0.18);
    overflow: hidden;
    color: #f7fafc;
}

.site-footer__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.6rem, 3.4vw, 2.8rem);
}

.site-footer__intro,
.site-footer__column {
    position: relative;
}

.site-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(246, 247, 251, 0.86);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__brand {
    margin: 1rem 0 0.6rem;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;
}

.site-footer__copy {
    margin: 0;
    color: rgba(246, 247, 251, 0.72);
    line-height: 1.8;
    max-width: 54ch;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-footer__column {
    padding: 1.15rem;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__column-title {
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer__link-list {
    display: grid;
    gap: 0.55rem;
}

.site-footer__link {
    color: rgba(246, 247, 251, 0.82);
    text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus {
    color: #ffffff;
}

.site-footer__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 clamp(1.2rem, 2vw, 1.6rem);
    color: rgba(246, 247, 251, 0.62);
    font-size: 0.86rem;
    line-height: 1.6;
}

.summary-card,
.detail-card,
.property-card,
.app-card,
.provider-review-card,
.provider-service-card,
.provider-public-card,
.provider-landing-section-card,
.provider-landing-cta-card,
.provider-landing-profile-card,
.admin-action-group-card,
.dashboard-action-card,
.provider-request-summary-card,
.provider-review-summary-card,
.commission-summary-card,
.report-summary-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
        linear-gradient(135deg, rgba(13, 118, 108, 0.04), rgba(181, 138, 84, 0.03));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease, border-color 0.42s ease;
}

.summary-card::after,
.detail-card::after,
.property-card::after,
.app-card::after,
.provider-review-card::after,
.provider-service-card::after,
.provider-public-card::after,
.provider-landing-section-card::after,
.provider-landing-cta-card::after,
.provider-landing-profile-card::after,
.admin-action-group-card::after,
.dashboard-action-card::after,
.provider-request-summary-card::after,
.provider-review-summary-card::after,
.commission-summary-card::after,
.report-summary-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.summary-card > *,
.detail-card > *,
.property-card > *,
.app-card > *,
.provider-review-card > *,
.provider-service-card > *,
.provider-public-card > *,
.provider-landing-section-card > *,
.provider-landing-cta-card > *,
.provider-landing-profile-card > *,
.admin-action-group-card > *,
.dashboard-action-card > *,
.provider-request-summary-card > *,
.provider-review-summary-card > *,
.commission-summary-card > *,
.report-summary-card > * {
    position: relative;
    z-index: 1;
}

.summary-card:hover,
.summary-card:focus-within,
.detail-card:hover,
.detail-card:focus-within,
.property-card:hover,
.property-card:focus-within,
.app-card:hover,
.app-card:focus-within,
.provider-review-card:hover,
.provider-service-card:hover,
.provider-public-card:hover,
.provider-landing-section-card:hover,
.provider-landing-cta-card:hover,
.provider-landing-profile-card:hover,
.admin-action-group-card:hover,
.dashboard-action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(13, 118, 108, 0.16);
}

.summary-card:hover::after,
.detail-card:hover::after,
.property-card:hover::after,
.app-card:hover::after,
.provider-review-card:hover::after,
.provider-service-card:hover::after,
.provider-public-card:hover::after,
.provider-landing-section-card:hover::after,
.provider-landing-cta-card:hover::after,
.provider-landing-profile-card:hover::after,
.admin-action-group-card:hover::after,
.dashboard-action-card:hover::after {
    opacity: 1;
}

.btn,
.app-button,
.google-auth-button,
.property-card-actions .btn,
.contact-action-grid .btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn:hover,
.btn:focus,
.app-button:hover,
.app-button:focus {
    transform: translateY(-2px);
}

.btn-primary,
.app-button-primary {
    background: linear-gradient(135deg, var(--luxe-teal), var(--luxe-deep));
    border-color: rgba(10, 57, 66, 0.34);
    box-shadow: 0 16px 38px rgba(10, 57, 66, 0.18);
}

.btn-outline-primary,
.btn-outline-secondary,
.app-button-secondary {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 32px rgba(10, 18, 32, 0.06);
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 1rem;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(13, 118, 108, 0.3);
    box-shadow: 0 0 0 0.26rem rgba(13, 118, 108, 0.1), 0 14px 32px rgba(10, 18, 32, 0.06);
    background: rgba(255, 255, 255, 0.96);
}

.alert,
.app-alert {
    border-radius: 1.35rem;
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: var(--shadow-soft);
}

.page-action-row {
    gap: 0.8rem;
}

.app-page-header {
    padding: clamp(1.55rem, 2.4vw, 2.45rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(181, 138, 84, 0.18), rgba(181, 138, 84, 0) 32%),
        linear-gradient(135deg, rgba(9, 18, 30, 0.95), rgba(19, 57, 67, 0.9));
    box-shadow: var(--shadow-strong);
}

.app-page-header::after {
    inset: auto auto -42% -8%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(13, 118, 108, 0.22), rgba(13, 118, 108, 0) 70%);
}

.app-page-header .app-page-title,
.app-page-header .app-page-subtitle,
.app-page-header .eyebrow-badge,
.app-page-header .status-pill,
.app-page-header .app-badge {
    color: #f7fafc;
}

.app-page-header .app-page-subtitle {
    color: rgba(247, 250, 252, 0.72);
}

.app-page-header .eyebrow-badge,
.app-page-header .app-badge,
.app-page-header .status-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.app-card-title {
    font-size: 1.12rem;
}

.app-card-subtitle {
    color: var(--text-soft);
}

.app-data-table thead th {
    background: rgba(244, 247, 249, 0.92);
}

.dashboard-action-card {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    min-height: 172px;
    padding: 1.1rem;
    text-decoration: none;
}

.dashboard-action-card__label {
    color: var(--text-main);
    font-size: 1.04rem;
    font-weight: 800;
}

.dashboard-action-card__description {
    color: var(--text-soft);
    line-height: 1.65;
}

.dashboard-action-card__cta {
    margin-top: auto;
    color: var(--brand-dark);
    font-weight: 800;
}

.dashboard-stat-card__value,
.provider-request-summary-value,
.seller-count-value {
    color: var(--text-main);
    line-height: 0.92;
}

body.route-public-index .site-main-shell {
    max-width: min(1540px, calc(100vw - clamp(14px, 3vw, 40px)));
}

.map-discovery-page .map-search-page {
    padding: clamp(0.75rem, 1.8vw, 1.25rem) 0 2rem;
}

.map-discovery-page .homepage-default-banner.search-panel-card,
.map-discovery-page .search-panel-card,
.map-discovery-page .homepage-ad-slider {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 238, 0.84));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.map-discovery-page .search-panel-card {
    padding: clamp(1.2rem, 1.8vw, 1.8rem);
}

.map-discovery-page .search-panel-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    align-items: stretch;
    gap: 1.2rem;
}

.map-discovery-page .search-panel-copy,
.map-discovery-page .search-helper {
    padding: 1.1rem 1.2rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.map-discovery-page .search-title {
    margin-top: 0.75rem;
    font-size: clamp(2.3rem, 3.5vw, 4.5rem);
    line-height: 0.94;
    max-width: 10ch;
}

.map-discovery-page .search-copy,
.map-discovery-page .search-helper,
.map-discovery-page .search-actions-copy {
    font-size: 1rem;
    line-height: 1.75;
}

.map-discovery-page .search-helper strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.map-discovery-page .search-trust-row span {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.map-discovery-page .search-fields {
    gap: 0.9rem;
}

.map-discovery-page .search-field {
    gap: 0.45rem;
}

.map-discovery-page .search-actions {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top-color: rgba(15, 23, 42, 0.08);
}

.map-discovery-page .map-search-layout {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 248, 0.86));
    box-shadow: var(--shadow-strong);
}

.map-discovery-page .results-panel {
    padding: clamp(1.2rem, 1.6vw, 1.65rem);
    background: linear-gradient(180deg, rgba(251, 249, 245, 0.92), rgba(245, 247, 249, 0.84));
    border-right-color: rgba(15, 23, 42, 0.07);
}

.map-discovery-page .results-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.2rem;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.map-discovery-page .results-pill,
.map-discovery-page .map-only-results-pill {
    background: linear-gradient(135deg, #0f1822, #17414d);
    box-shadow: 0 16px 34px rgba(10, 18, 32, 0.16);
}

.map-discovery-page .active-filter-chip {
    background: rgba(13, 118, 108, 0.08);
    border-color: rgba(13, 118, 108, 0.16);
    color: var(--brand-dark);
}

.map-discovery-page .property-list {
    gap: 1rem;
}

.map-discovery-page .property-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0;
    border-radius: 1.45rem;
    cursor: pointer;
}

.map-discovery-page .property-card-media,
.map-discovery-page .property-card img,
.map-discovery-page .loading-media {
    width: 210px;
    min-height: 180px;
    height: 100%;
}

.map-discovery-page .property-card .card-body,
.map-discovery-page .loading-card .card-body {
    padding: 1.05rem 1.15rem 1.05rem 0;
}

.map-discovery-page .property-price-chip {
    top: 14px;
    left: 14px;
    background: rgba(10, 18, 30, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 30px rgba(10, 18, 32, 0.18);
}

.map-discovery-page .property-facts span {
    background: rgba(13, 118, 108, 0.06);
    border: 1px solid rgba(13, 118, 108, 0.08);
}

.map-discovery-page .map-panel {
    background: #d8e7ea;
}

.map-discovery-page #map {
    filter: saturate(1.08) contrast(1.02);
}

.map-panel__badge {
    top: 1rem;
    left: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    background: rgba(10, 18, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(10, 18, 32, 0.16);
    backdrop-filter: blur(16px);
}

.property-marker {
    filter: drop-shadow(0 8px 14px rgba(10, 18, 32, 0.18));
}

.property-marker__label {
    color: #071f3f;
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.96);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        1px 0 0 rgba(255, 255, 255, 0.95),
        0 -1px 0 rgba(255, 255, 255, 0.95),
        -1px 0 0 rgba(255, 255, 255, 0.95),
        0 2px 3px rgba(7, 31, 63, 0.28);
}

.property-marker__pin {
    background: linear-gradient(180deg, #2274f2 0%, #0f4ab7 100%);
    box-shadow: 0 8px 16px rgba(15, 74, 183, 0.32);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: linear-gradient(135deg, var(--luxe-teal), var(--luxe-deep));
}

.property-marker__count {
    color: #ffffff;
}

.property-marker.is-active .property-marker__label,
.property-marker.is-active .property-marker__count,
.property-popup__nav-button,
.property-popup__action {
    background: linear-gradient(135deg, #1b69e0, #0f4ab7);
}

.property-marker.is-active .property-marker__pin {
    background: linear-gradient(180deg, #3a87ff 0%, #0f4ab7 100%);
}

.property-marker.is-active .property-marker__label {
    background: transparent;
    color: #071f3f;
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.98);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98),
        1px 0 0 rgba(255, 255, 255, 0.98),
        0 -1px 0 rgba(255, 255, 255, 0.98),
        -1px 0 0 rgba(255, 255, 255, 0.98),
        0 2px 3px rgba(7, 31, 63, 0.3);
}

.property-popup,
.leaflet-popup-content-wrapper {
    border-radius: 1.2rem;
}

/* Stage 13 Correction 11: mobile Leaflet property preview keeps map popups compact and touch-friendly. */
@media (max-width: 767.98px) {
    .map-discovery-page .homepage-results-map-panel .mobile-map-property-preview__card {
        border-color: rgba(255, 255, 255, 0.84);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 48px rgba(10, 18, 32, 0.24);
    }

    .map-discovery-page .homepage-results-map-panel .mobile-map-property-preview__action,
    .map-discovery-page .homepage-results-map-panel .mobile-map-property-preview__nav-button {
        background: linear-gradient(135deg, #1b69e0, #0f4ab7);
    }

    .map-discovery-page .homepage-results-map-panel .property-map-popup.leaflet-popup,
    .map-discovery-page .homepage-results-map-panel .property-map-popup .leaflet-popup-content-wrapper {
        max-width: calc(100vw - 24px) !important;
    }

    .map-discovery-page .homepage-results-map-panel .property-map-popup .leaflet-popup-content {
        width: auto !important;
        max-width: calc(100vw - 44px) !important;
        margin: 0.58rem;
    }

    .map-discovery-page .homepage-results-map-panel .property-map-popup .leaflet-popup-close-button {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #0b1d2d;
        font-size: 1.4rem;
        font-weight: 800;
        line-height: 34px;
        box-shadow: 0 8px 20px rgba(11, 29, 45, 0.16);
    }

    .map-discovery-page .homepage-results-map-panel .property-popup--mobile {
        width: min(326px, calc(100vw - 48px));
    }

    .map-discovery-page .homepage-results-map-panel .property-popup--mobile .property-popup__image {
        height: clamp(92px, 25vw, 112px);
        margin-bottom: 0.58rem;
        border-radius: 0.95rem;
        object-fit: cover;
    }

    .map-discovery-page .homepage-results-map-panel .property-popup--mobile .property-popup__title {
        display: -webkit-box;
        overflow: hidden;
        color: #0b1d2d;
        font-size: 0.98rem;
        font-weight: 900;
        line-height: 1.22;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .map-discovery-page .homepage-results-map-panel .property-popup--mobile .property-popup__action--mobile {
        width: 100%;
        min-height: 44px;
        border-radius: 0.9rem;
        font-size: 0.92rem;
        font-weight: 900;
    }
}

.route-public-property .site-main-shell {
    max-width: min(1500px, calc(100vw - clamp(18px, 4vw, 46px)));
}

.property-detail-shell .detail-card,
.property-detail-shell .summary-card {
    border-radius: 1.7rem;
}

.property-gallery-stage {
    min-height: clamp(320px, 46vw, 620px);
}

.property-gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbnail-strip {
    gap: 0.7rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.74);
}

.property-gallery-thumb {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.property-gallery-thumb.is-active,
.property-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 118, 108, 0.24);
    box-shadow: 0 14px 30px rgba(10, 18, 32, 0.12);
}

.property-price-display {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--text-main);
    line-height: 0.94;
}

.property-context-note,
.booking-estimate,
.provider-inquiry-selected-service,
.provider-coming-soon,
.provider-review-empty,
.provider-service-empty-state,
.app-empty-state,
.empty-state {
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(247, 244, 238, 0.74), rgba(255, 255, 255, 0.9));
}

.property-feature-grid {
    gap: 0.85rem;
}

.property-feature-pill {
    padding: 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(247, 244, 238, 0.72);
}

.property-feature-pill strong {
    font-size: 1.15rem;
}

.amenity-grid,
.contact-action-grid {
    gap: 0.75rem;
}

.contact-action-grid {
    display: grid;
}

.booking-sidebar {
    position: sticky;
    top: calc(104px + 1rem);
}

.favorite-toggle-btn {
    min-height: 3rem;
    width: 100%;
}

.auth-page-shell .summary-card,
.route-admin-login .login-card {
    border-radius: 2rem;
}

.route-public-login main.site-main-shell,
.route-public-register main.site-main-shell,
.route-public-register-provider main.site-main-shell,
.route-provider-login main.site-main-shell,
.route-admin-login main.site-main-shell {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

body.auth-page--landing-context.route-public-login main.site-main-shell,
body.auth-page--landing-context.route-public-register main.site-main-shell {
    min-height: 100vh;
    display: block;
    align-items: initial;
}

.auth-hero-card {
    background: linear-gradient(160deg, rgba(9, 18, 30, 0.96), rgba(20, 66, 74, 0.9));
    color: #ffffff;
}

.auth-hero-card .eyebrow-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.auth-hero-card .text-secondary,
.auth-hero-card .credential-label,
.auth-hero-card .auth-feature-list,
.auth-hero-card a {
    color: rgba(247, 250, 252, 0.78) !important;
}

.auth-hero-card a:hover,
.auth-hero-card a:focus {
    color: #ffffff !important;
}

.login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 239, 0.88));
}

.auth-divider {
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.9rem;
    background: rgba(248, 245, 239, 0.96);
}

.provider-marketplace-page,
.provider-profile-page {
    gap: 1.75rem;
}

.provider-marketplace-hero,
.provider-profile-hero {
    background: linear-gradient(135deg, rgba(9, 18, 30, 0.95), rgba(20, 66, 74, 0.9));
    color: #ffffff;
}

.provider-marketplace-hero .text-muted,
.provider-profile-hero .text-muted,
.provider-profile-hero .provider-service-area,
.provider-profile-hero .provider-public-card__eyebrow {
    color: rgba(247, 250, 252, 0.74) !important;
}

.provider-public-grid,
.provider-profile-services-grid,
.provider-landing-public-summary-grid {
    gap: 1.2rem;
}

.provider-public-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.provider-public-card .card-body,
.provider-profile-section .card-body,
.provider-profile-hero .card-body {
    padding: clamp(1.15rem, 2vw, 1.55rem);
}

.provider-rating-chip {
    background: rgba(13, 118, 108, 0.08);
    border-color: rgba(13, 118, 108, 0.16);
    color: var(--brand-dark);
}

.provider-service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1rem;
}

body.provider-landing-public {
    --page-bg: #e9e3d8;
    --page-bg-rgb: 233, 227, 216;
}

.provider-landing-cover {
    min-height: clamp(300px, 40vw, 460px);
    border-radius: 0 0 2.5rem 2.5rem;
}

.provider-landing-shell {
    width: min(100%, calc(100% - clamp(12px, 3vw, 28px)));
    margin-top: -7.4rem;
}

.provider-landing-profile-card,
.provider-landing-section-card,
.provider-landing-cta-card,
.provider-landing-public__unavailable-card {
    border-radius: 1.8rem;
}

.provider-landing-profile-card__body {
    gap: clamp(1.2rem, 2vw, 2rem);
    align-items: end;
}

.provider-landing-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-landing-stat-card {
    background: rgba(255, 255, 255, 0.76);
}

.provider-landing-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 380px);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: start;
}

.provider-landing-inquiry {
    top: calc(104px + 1rem);
}

.provider-landing-powered-by {
    margin-top: 1.25rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.provider-inquiry-form {
    background: rgba(255, 255, 255, 0.74);
}

[data-ui-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition-delay: 0s !important;
}

[data-ui-reveal].is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.js-ready [data-ui-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--ui-delay, 0ms);
}

body.js-ready [data-ui-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

body.js-ready .site-navbar,
body.js-ready .site-footer {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .site-navbar,
body.page-ready .site-footer {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .site-navbar,
    .site-footer,
    .site-main-shell {
        width: min(100%, calc(100% - 1rem));
    }

    .site-navbar {
        border-radius: 1.4rem;
    }

    .site-navbar__collapse {
        margin-top: 0.7rem;
        padding: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(16px);
    }

    .site-footer__shell,
    .site-footer__meta,
    .site-navbar__shell {
        width: calc(100% - 1.25rem);
    }

    .site-footer__shell,
    .site-footer__links,
    .provider-landing-public-layout,
    .provider-landing-profile-card__body,
    .provider-landing-profile-stats,
    .app-grid-2,
    .app-grid-3,
    .app-grid-4 {
        grid-template-columns: 1fr;
    }

    .app-page-header {
        gap: 1.1rem;
    }

    .page-action-row {
        width: 100%;
    }

    .page-action-row .btn,
    .page-action-row form {
        flex: 1 1 100%;
    }

    .provider-landing-shell {
        margin-top: -5.8rem;
    }

    .provider-landing-cover {
        min-height: clamp(220px, 58vw, 300px);
        border-radius: 0 0 1.85rem 1.85rem;
    }

    .provider-landing-avatar {
        transform: translateY(-2.5rem);
        margin-bottom: -2.5rem;
    }

    .provider-landing-profile-actions {
        width: 100%;
        flex-direction: column;
    }

    .provider-landing-profile-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 899.98px) {
    .map-discovery-page .search-panel-intro {
        grid-template-columns: 1fr;
    }

    .map-discovery-page .mobile-view-toggle {
        position: fixed;
        left: 50%;
        bottom: 1rem;
        transform: translateX(-50%);
        width: min(360px, calc(100vw - 1rem));
        margin: 0;
        padding: 0.4rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(10, 18, 30, 0.86);
        box-shadow: 0 22px 54px rgba(7, 14, 26, 0.26);
        backdrop-filter: blur(18px);
        z-index: 1105;
    }

    .map-discovery-page .mobile-view-toggle .btn {
        min-height: 44px;
    }

    body.route-public-index {
        padding-bottom: 5.5rem;
    }

    .map-discovery-page .results-panel,
    .map-discovery-page .map-panel {
        border-radius: 1.7rem;
    }

    .map-discovery-page .property-card,
    .map-discovery-page .loading-card {
        grid-template-columns: 1fr;
    }

    .map-discovery-page .property-card-media,
    .map-discovery-page .property-card img,
    .map-discovery-page .loading-media {
        width: 100%;
        min-height: 230px;
    }

    .map-discovery-page .property-card .card-body,
    .map-discovery-page .loading-card .card-body {
        padding: 1rem;
    }

    .ai-chatbot-shell {
        bottom: calc(var(--ai-chatbot-edge-offset) + 5rem);
    }
}

@media (max-width: 767.98px) {
    .site-navbar,
    .site-footer,
    .site-main-shell {
        width: min(100%, calc(100% - 0.75rem));
    }

    .site-navbar__brand-badge {
        width: 48px;
        height: 48px;
        border-radius: 1rem;
    }

    .site-navbar__brand-text {
        font-size: 1.08rem;
    }

    .site-footer__meta {
        flex-direction: column;
    }

    .app-page-header {
        padding: 1.3rem;
        border-radius: 1.55rem;
    }

    .property-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-sidebar,
    .provider-landing-inquiry {
        position: static;
    }

    .route-public-login main.site-main-shell,
    .route-public-register main.site-main-shell,
    .route-public-register-provider main.site-main-shell,
    .route-provider-login main.site-main-shell,
    .route-admin-login main.site-main-shell {
        display: block;
        min-height: 0;
    }

    body.auth-page--landing-context.route-public-login main.site-main-shell,
    body.auth-page--landing-context.route-public-register main.site-main-shell {
        min-height: 100vh;
    }

    .auth-page-shell {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body.js-ready [data-ui-reveal],
    body.js-ready .site-navbar,
    body.js-ready .site-footer {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Stage 13 Correction 2: preserve Stage 10 polish while keeping search text legible. */
.map-discovery-page .map-search-layout--list-first {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.map-discovery-page .map-search-layout--list-first .results-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    overflow: visible;
}

.map-discovery-page .map-search-layout--list-first .map-panel {
    position: relative;
    top: auto;
    height: clamp(420px, 54vh, 620px);
    min-height: 420px;
    border-radius: 1.5rem;
}

.map-discovery-page .map-search-layout--list-first #map {
    min-height: 420px;
}

.map-discovery-page .homepage-search-composer .search-kicker,
.map-discovery-page .listing-intent-band .search-kicker,
.map-discovery-page .search-method-band .search-kicker,
.map-discovery-page .district-filter-card .search-kicker,
.map-discovery-page .popular-properties-marquee .search-kicker {
    background: rgba(0, 94, 151, 0.1);
    color: #073d5f;
}

.map-discovery-page .listing-intent-card:not(.is-active),
.map-discovery-page .search-method-card:not(.is-active) {
    color: #102033;
}

.map-discovery-page .listing-intent-card:not(.is-active) .listing-intent-card__title,
.map-discovery-page .search-method-card:not(.is-active) .search-method-card__title {
    color: #102033;
    text-shadow: none;
}

.map-discovery-page .search-method-card:not(.is-active) .search-method-card__copy {
    color: #40556a;
}

.map-discovery-page .listing-intent-card.is-active,
.map-discovery-page .search-method-card.is-active,
.map-discovery-page .listing-intent-card.is-active .listing-intent-card__title,
.map-discovery-page .search-method-card.is-active .search-method-card__title,
.map-discovery-page .search-method-card.is-active .search-method-card__copy {
    color: #ffffff;
}

@media (max-width: 899.98px) {
    .map-discovery-page .map-search-layout--list-first {
        display: block;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .map-discovery-page .map-search-layout--list-first.is-list-only .map-panel {
        display: none;
    }

    .map-discovery-page .map-search-layout--list-first.is-map-only .popular-properties-marquee {
        display: none;
    }
}

/* Stage 10 premium real-estate CRM polish. Uiverse-inspired but fully scoped to existing project surfaces. */
:root {
    --stage10-navy: #0b1220;
    --stage10-slate: #334155;
    --stage10-emerald: #0f766e;
    --stage10-gold: #b58a54;
    --stage10-paper: rgba(255, 255, 255, 0.92);
    --stage10-line: rgba(15, 23, 42, 0.11);
    --stage10-focus: rgba(181, 138, 84, 0.42);
    --stage10-shadow: 0 22px 60px rgba(15, 23, 42, 0.11);
}

body.section-public .btn,
body.section-admin .btn,
body.section-seller .btn,
body.section-provider .btn,
body.section-public .app-button,
body.section-admin .app-button,
body.section-seller .app-button,
body.section-provider .app-button,
body.section-public .property-inquiry-submit,
body.section-public .property-offer-submit {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.section-public .btn:hover,
body.section-admin .btn:hover,
body.section-seller .btn:hover,
body.section-provider .btn:hover,
body.section-public .app-button:hover,
body.section-admin .app-button:hover,
body.section-seller .app-button:hover,
body.section-provider .app-button:hover,
body.section-public .property-inquiry-submit:hover,
body.section-public .property-offer-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

body.section-public .btn-primary,
body.section-admin .btn-primary,
body.section-seller .btn-primary,
body.section-provider .btn-primary,
body.section-public .app-button-primary,
body.section-admin .app-button-primary,
body.section-seller .app-button-primary,
body.section-public .property-inquiry-submit,
body.section-public .property-offer-submit {
    border-color: rgba(15, 118, 110, 0.88);
    background: linear-gradient(135deg, var(--stage10-emerald), #0a3942);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.2);
}

body.section-public .btn-outline-secondary,
body.section-admin .btn-outline-secondary,
body.section-seller .btn-outline-secondary,
body.section-provider .btn-outline-secondary,
body.section-public .app-button-secondary,
body.section-admin .app-button-secondary,
body.section-seller .app-button-secondary {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: var(--stage10-navy);
}

body.section-public .btn-danger,
body.section-admin .btn-danger,
body.section-seller .btn-danger,
body.section-admin .app-button-danger,
body.section-seller .app-button-danger {
    border-color: rgba(185, 28, 28, 0.88);
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
}

body.section-public :is(a, button, input, select, textarea, [tabindex]):focus-visible,
body.section-admin :is(a, button, input, select, textarea, [tabindex]):focus-visible,
body.section-seller :is(a, button, input, select, textarea, [tabindex]):focus-visible,
body.section-provider :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--stage10-focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 0.18rem rgba(181, 138, 84, 0.18);
}

body.section-public :is(.form-control, .form-select),
body.section-admin :is(.form-control, .form-select),
body.section-seller :is(.form-control, .form-select),
body.section-provider :is(.form-control, .form-select),
.property-inquiry-input,
.property-offer-input {
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.13);
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.88);
    color: var(--stage10-navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.section-public :is(.form-control, .form-select):focus,
body.section-admin :is(.form-control, .form-select):focus,
body.section-seller :is(.form-control, .form-select):focus,
body.section-provider :is(.form-control, .form-select):focus,
.property-inquiry-input:focus,
.property-offer-input:focus {
    border-color: rgba(181, 138, 84, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(181, 138, 84, 0.14), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.map-discovery-page .homepage-compact-banner,
.map-discovery-page .homepage-search-composer,
.route-public-property .property-detail-root .summary-card,
.route-public-property .detail-card,
.route-public-dashboard .seller-crm-summary,
.route-public-dashboard .customer-crm-summary,
.section-admin .summary-card,
.section-seller .summary-card {
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--stage10-shadow);
}

.map-discovery-page .homepage-compact-banner {
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.94), rgba(10, 57, 66, 0.86)),
        radial-gradient(circle at 84% 12%, rgba(181, 138, 84, 0.35), transparent 34%);
    color: #fff;
}

.map-discovery-page .homepage-compact-banner__title,
.map-discovery-page .search-kicker {
    color: inherit;
}

.map-discovery-page .homepage-search-composer,
.map-discovery-page .listing-intent-card,
.map-discovery-page .search-method-card,
.map-discovery-page .search-panel-card,
.map-discovery-page .district-filter-card,
.map-discovery-page .results-panel,
.map-discovery-page .map-panel {
    border-color: rgba(15, 23, 42, 0.09);
}

.map-discovery-page .listing-intent-card,
.map-discovery-page .search-method-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 238, 0.92));
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.map-discovery-page .listing-intent-card:hover,
.map-discovery-page .search-method-card:hover,
.map-discovery-page .listing-intent-card.is-active,
.map-discovery-page .search-method-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(181, 138, 84, 0.48);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.map-discovery-page .property-card {
    border-radius: 1.45rem;
    background: var(--stage10-paper);
    box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08);
}

.map-discovery-page .property-card:hover,
.map-discovery-page .property-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.map-discovery-page .property-card img {
    filter: saturate(1.04) contrast(1.02);
}

.route-public-property .property-detail-root > .empty-state,
.app-empty-state,
.report-empty-state,
.crm-dashboard-empty {
    border: 1px dashed rgba(181, 138, 84, 0.34);
    border-radius: 1.3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(251, 248, 242, 0.92));
    color: var(--stage10-slate);
}

.route-public-property .property-inquiry-card,
.route-public-property .property-offer-card,
.route-public-property .booking-form-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.72));
}

.route-public-property .property-inquiry-card::before,
.route-public-property .property-offer-card::before,
.route-public-property .booking-form-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--stage10-gold), var(--stage10-emerald));
}

.route-public-property .property-inquiry-card__eyebrow,
.route-public-property .property-offer-card__eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
    background: rgba(181, 138, 84, 0.12);
    color: #7c5b31;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.property-inquiry-submit.is-loading,
.property-offer-submit.is-loading,
.route-public-property #bookingForm button[type='submit']:disabled {
    position: relative;
    opacity: 0.86;
    cursor: progress;
}

.property-inquiry-submit.is-loading::after,
.property-offer-submit.is-loading::after,
.route-public-property #bookingForm button[type='submit']:disabled::after {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    margin-left: 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: stage10-ui-spin 0.8s linear infinite;
}

@keyframes stage10-ui-spin {
    to { transform: rotate(360deg); }
}

.property-inquiry-alert,
.property-offer-alert,
.route-public-property #bookingFormAlert,
main.site-main-shell > .alert {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.section-admin .app-page-header,
.section-seller .app-page-header,
.route-public-dashboard .app-page-header,
.route-public-inquiries .app-page-header,
.route-public-viewings .app-page-header,
.route-public-offers .app-page-header,
.route-public-deals .app-page-header {
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(10, 57, 66, 0.9)),
        radial-gradient(circle at right top, rgba(181, 138, 84, 0.36), transparent 35%);
    color: #fff;
    box-shadow: var(--stage10-shadow);
}

.section-admin .app-page-header .app-page-title,
.section-admin .app-page-header .app-page-subtitle,
.section-seller .app-page-header .app-page-title,
.section-seller .app-page-header .app-page-subtitle,
.route-public-dashboard .app-page-header .app-page-title,
.route-public-dashboard .app-page-header .app-page-subtitle,
.route-public-inquiries .app-page-header .app-page-title,
.route-public-inquiries .app-page-header .app-page-subtitle,
.route-public-viewings .app-page-header .app-page-title,
.route-public-viewings .app-page-header .app-page-subtitle,
.route-public-offers .app-page-header .app-page-title,
.route-public-offers .app-page-header .app-page-subtitle,
.route-public-deals .app-page-header .app-page-title,
.route-public-deals .app-page-header .app-page-subtitle {
    color: #fff;
}

.section-admin .eyebrow-badge,
.section-seller .eyebrow-badge,
.route-public-dashboard .eyebrow-badge,
.route-public-inquiries .eyebrow-badge,
.route-public-viewings .eyebrow-badge,
.route-public-offers .eyebrow-badge,
.route-public-deals .eyebrow-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
    border-color: rgba(255, 255, 255, 0.18);
}

.admin-control-board-card,
.dashboard-stat-card,
.crm-kpi-card,
.crm-pipeline-card,
.crm-dashboard-panel,
.crm-activity-panel,
.seller-crm-card,
.customer-crm-card,
.seller-inquiry-card,
.seller-viewing-card,
.seller-offer-card,
.seller-deal-card,
.customer-inquiry-card,
.customer-viewing-card,
.customer-offer-card,
.customer-deal-card,
.admin-inquiry-card,
.admin-viewing-card,
.admin-offer-card,
.admin-deal-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-control-board-card:hover,
.dashboard-stat-card:hover,
.crm-kpi-card:hover,
.crm-pipeline-card:hover,
.crm-dashboard-panel:hover,
.crm-activity-panel:hover,
.seller-crm-card:hover,
.customer-crm-card:hover,
.seller-inquiry-card:hover,
.seller-viewing-card:hover,
.seller-offer-card:hover,
.seller-deal-card:hover,
.customer-inquiry-card:hover,
.customer-viewing-card:hover,
.customer-offer-card:hover,
.customer-deal-card:hover,
.admin-inquiry-card:hover,
.admin-viewing-card:hover,
.admin-offer-card:hover,
.admin-deal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(181, 138, 84, 0.24);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.section-admin .table-responsive,
.section-seller .table-responsive,
.section-public .table-responsive,
.report-table-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.82);
}

.section-admin .app-data-table thead th,
.section-seller .app-data-table thead th,
.report-table thead th {
    background: #f8fafc;
    color: var(--stage10-navy);
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-admin .app-data-table tbody tr:hover,
.section-seller .app-data-table tbody tr:hover,
.report-table tbody tr:hover {
    background: rgba(240, 253, 250, 0.74);
}

.status-pill,
.property-deal-status-badge,
.badge[class*='text-bg-'] {
    border-radius: 999px;
    font-weight: 850;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.crm-report-filter-card,
.report-filter-card,
.admin-deal-filters,
.admin-offer-filters,
.seller-deal-filters {
    border-radius: 1.45rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.seller-crm-summary,
.customer-crm-summary,
.simple-dashboard-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.simple-dashboard-card:hover,
.simple-dashboard-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
    .crm-dashboard-columns,
    .property-offer-grid,
    .property-inquiry-grid,
    .property-offer-amount-row {
        grid-template-columns: 1fr !important;
    }

    .section-admin .page-action-row,
    .section-seller .page-action-row,
    .section-public .page-action-row,
    .crm-dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    body.section-public .btn,
    body.section-admin .btn,
    body.section-seller .btn,
    body.section-provider .btn,
    body.section-public .app-button,
    body.section-admin .app-button,
    body.section-seller .app-button,
    .property-inquiry-submit,
    .property-offer-submit {
        width: 100%;
        justify-content: center;
    }

    .map-discovery-page .homepage-compact-banner,
    .map-discovery-page .homepage-search-composer,
    .route-public-property .property-detail-root .summary-card,
    .section-admin .app-page-header,
    .section-seller .app-page-header,
    .route-public-dashboard .app-page-header {
        border-radius: 1.25rem;
    }

    .section-admin .table-responsive,
    .section-seller .table-responsive,
    .section-public .table-responsive,
    .report-table-shell {
        margin-inline: -0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-discovery-page .listing-intent-card,
    .map-discovery-page .search-method-card,
    .map-discovery-page .property-card,
    .admin-control-board-card,
    .dashboard-stat-card,
    .crm-kpi-card,
    .crm-pipeline-card,
    .seller-crm-card,
    .customer-crm-card,
    body.section-public .btn,
    body.section-admin .btn,
    body.section-seller .btn,
    body.section-provider .btn {
        transition: none !important;
        transform: none !important;
    }

    .property-inquiry-submit.is-loading::after,
    .property-offer-submit.is-loading::after,
    .route-public-property #bookingForm button[type='submit']:disabled::after {
        animation: none !important;
    }
}

/* Stage 13 Correction 3: final homepage contrast and list-first card refinements. */
.map-discovery-page .listing-intent-card:not(.is-active),
.map-discovery-page .search-method-card:not(.is-active) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)) !important;
    color: #102033 !important;
}

.map-discovery-page .listing-intent-card:not(.is-active) .listing-intent-card__title,
.map-discovery-page .search-method-card:not(.is-active) .search-method-card__title {
    color: #102033 !important;
    text-shadow: none !important;
}

.map-discovery-page .search-method-card:not(.is-active) .search-method-card__copy {
    color: #40556a !important;
}

.map-discovery-page .listing-intent-card.is-active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, var(--listing-accent, #0f766e), var(--listing-accent-strong, #0b3b4a)) !important;
    color: #ffffff !important;
}

.map-discovery-page .search-method-card.is-active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, var(--method-accent, #0f766e), var(--method-accent-strong, #0b3b4a)) !important;
    color: #ffffff !important;
}

.map-discovery-page .listing-intent-card.is-active .listing-intent-card__title,
.map-discovery-page .search-method-card.is-active .search-method-card__title,
.map-discovery-page .search-method-card.is-active .search-method-card__copy {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(5, 15, 28, 0.22) !important;
}

.map-discovery-page .listing-intent-card__status,
.map-discovery-page .search-method-card__status {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #102033 !important;
}

.map-discovery-page .map-search-layout--list-first {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.map-discovery-page .map-search-layout--list-first .results-panel {
    max-height: clamp(680px, 78vh, 900px);
    overflow-y: auto;
    border-radius: 1.65rem;
}

.map-discovery-page .map-search-layout--list-first .map-panel {
    height: clamp(440px, 54vh, 620px);
    min-height: 440px;
}

.map-discovery-page .map-search-layout--list-first #map {
    min-height: 440px;
}

.map-discovery-page .property-list {
    gap: 1.15rem;
}

.map-discovery-page .property-card {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important;
    gap: 1rem !important;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.98);
}

.map-discovery-page .property-card-media {
    width: 100% !important;
    min-height: 205px !important;
    border-radius: 1.3rem;
    background: #eef6f8;
}

.map-discovery-page .property-card-media::after {
    display: none !important;
}

.map-discovery-page .property-card img {
    width: 100% !important;
    min-height: 205px !important;
    border-radius: inherit;
    filter: none !important;
}

.map-discovery-page .property-card .card-body {
    padding: 0.35rem 0.35rem 0.35rem 0 !important;
    gap: 1rem;
}

.map-discovery-page .property-card h3 {
    font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.22rem);
    line-height: 1.22;
}

.map-discovery-page .property-description,
.map-discovery-page .property-location,
.map-discovery-page .property-address {
    line-height: 1.5;
}

.map-discovery-page .property-price-chip {
    right: auto;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    justify-content: flex-start;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    color: #073d5f;
    text-align: left;
}

.map-discovery-page .property-card-footer {
    flex-wrap: wrap;
    align-items: center;
}

.map-discovery-page .property-card-actions {
    justify-content: flex-start;
}

.map-discovery-page .property-card-actions .btn,
.map-discovery-page .search-action-group .btn,
.map-discovery-page .search-method-band__reset {
    white-space: nowrap;
}

.map-discovery-page .popular-property-card__media img {
    filter: none !important;
}

.map-discovery-page .popular-property-card__views {
    background: rgba(255, 255, 255, 0.94);
    color: #073d5f;
}

@media (max-width: 899.98px) {
    .map-discovery-page .map-search-layout--list-first .results-panel {
        max-height: none;
        overflow: visible;
    }

    .map-discovery-page .property-card {
        grid-template-columns: 1fr !important;
        padding: 0.75rem;
    }

    .map-discovery-page .property-card .card-body {
        padding: 0.15rem 0.1rem 0.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .map-discovery-page .listing-intent-card,
    .map-discovery-page .search-method-card {
        justify-content: flex-start;
    }
}

/* Stage 13 Correction 4: split compact result list + real Leaflet map. */
.map-discovery-page .map-search-layout--split-list-map {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.map-discovery-page .homepage-results-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.39fr) minmax(0, 0.61fr);
    gap: clamp(1rem, 1.8vw, 1.35rem);
    align-items: stretch;
    min-height: 680px;
    height: clamp(680px, 74vh, 840px);
    margin-bottom: clamp(1.1rem, 2.2vw, 1.65rem);
}

.map-discovery-page .homepage-results-list-panel,
.map-discovery-page .homepage-results-map-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 1.75rem;
    background: rgba(248, 252, 255, 0.97);
    box-shadow: 0 22px 52px rgba(11, 29, 45, 0.11);
}

.map-discovery-page .homepage-results-list-panel {
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    overflow: hidden !important;
    border-right: 1px solid rgba(203, 213, 225, 0.86);
}

.map-discovery-page .homepage-results-list-panel .results-header {
    flex: 0 0 auto;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.75rem;
}

.map-discovery-page .homepage-results-list-panel .results-title {
    margin-bottom: 0.2rem;
    font-size: clamp(1rem, 0.95rem + 0.24vw, 1.18rem);
    line-height: 1.15;
}

.map-discovery-page .homepage-results-list-panel .results-meta {
    font-size: 0.8rem;
    line-height: 1.35;
}

.map-discovery-page .homepage-results-list-panel .results-pill {
    min-width: auto;
    min-height: 2.1rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
}

.map-discovery-page .homepage-results-list-panel .active-filter-row {
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 0.65rem;
}

.map-discovery-page .property-list--compact {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.1rem 0.35rem 0.1rem 0.05rem;
    gap: 0.52rem;
    scrollbar-width: thin;
}

.map-discovery-page .property-card--compact,
.map-discovery-page .loading-card.property-card--compact {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 70px;
    gap: 0.72rem !important;
    align-items: center;
    padding: 0.48rem;
    border-radius: 1.125rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(11, 29, 45, 0.075);
}

.map-discovery-page .property-card--compact .property-card-media {
    width: 76px !important;
    min-height: 62px !important;
    height: 62px !important;
    border-radius: 0.875rem;
    overflow: hidden;
}

.map-discovery-page .property-card--compact .property-card-media::after {
    display: none !important;
}

.map-discovery-page .property-card--compact .property-card-media img,
.map-discovery-page .property-card--compact img {
    width: 76px !important;
    height: 62px !important;
    min-height: 62px !important;
    object-fit: cover;
    border-radius: inherit;
    filter: none !important;
}

.map-discovery-page .property-card--compact .card-body,
.map-discovery-page .property-card-compact__body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem !important;
    align-items: center;
    min-width: 0;
    padding: 0 !important;
}

.map-discovery-page .property-card-compact__content {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.map-discovery-page .property-card-compact__type {
    color: #0f766e;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.map-discovery-page .property-card-compact__title {
    margin: 0;
    overflow: hidden;
    color: var(--home-navy, #0b1d2d);
    font-size: 0.9rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-discovery-page .property-card-compact__title a {
    color: inherit;
    text-decoration: none;
}

.map-discovery-page .property-card-compact__meta {
    margin: 0;
    overflow: hidden;
    color: #5b6b7a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-discovery-page .property-card-compact__price {
    color: #073d5f;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.1;
}

.map-discovery-page .property-card-compact__price small {
    color: #607083;
    font-size: 0.68rem;
    font-weight: 800;
}

.map-discovery-page .property-card-compact__actions {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    justify-content: center;
    width: auto;
}

.map-discovery-page .property-card-compact__actions .btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 46px;
    min-height: 1.85rem;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.map-discovery-page .homepage-results-map-panel {
    position: relative;
    top: auto;
    overflow: hidden !important;
    background: #dbeafe;
}

.map-discovery-page .homepage-results-map-panel #map,
.map-discovery-page .map-search-layout--split-list-map #map {
    width: 100%;
    height: 100%;
    min-height: 680px;
}

.map-discovery-page .map-search-layout--split-list-map .popular-properties-marquee {
    margin-top: 0;
}

@media (max-width: 1099.98px) {
    .map-discovery-page .homepage-results-shell {
        grid-template-columns: minmax(320px, 0.43fr) minmax(0, 0.57fr);
    }
}

@media (max-width: 899.98px) {
    .map-discovery-page .homepage-results-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        gap: 1rem;
    }

    .map-discovery-page .homepage-results-list-panel {
        height: auto;
        max-height: none;
        overflow: visible !important;
        padding: 0.85rem;
    }

    .map-discovery-page .property-list--compact {
        overflow: visible;
        padding: 0;
    }

    .map-discovery-page .homepage-results-map-panel,
    .map-search-layout--split-list-map.is-list-only .homepage-results-map-panel {
        display: block !important;
        height: min(58vh, 480px);
        min-height: 360px;
        margin-top: 0;
    }

    .map-search-layout--split-list-map.is-map-only .homepage-results-list-panel,
    .map-search-layout--split-list-map.is-map-only .popular-properties-marquee {
        display: none !important;
    }

    .map-discovery-page .homepage-results-map-panel #map,
    .map-discovery-page .map-search-layout--split-list-map #map {
        min-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .map-discovery-page .property-card--compact,
    .map-discovery-page .loading-card.property-card--compact {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 0.6rem !important;
        min-height: 74px;
        padding: 0.45rem;
    }

    .map-discovery-page .property-card--compact .property-card-media,
    .map-discovery-page .property-card--compact .property-card-media img,
    .map-discovery-page .property-card--compact img {
        width: 72px !important;
        height: 64px !important;
        min-height: 64px !important;
    }

    .map-discovery-page .property-card--compact .card-body,
    .map-discovery-page .property-card-compact__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.4rem !important;
    }

    .map-discovery-page .property-card-compact__actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Stage 13 Correction 5: ultra compact homepage rows - image, title, price only. */
.map-discovery-page .property-list--compact {
    gap: 0.36rem;
}

.map-discovery-page .property-card--compact,
.map-discovery-page .loading-card.property-card--compact {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    min-height: 54px;
    gap: 0.55rem !important;
    padding: 0.32rem 0.4rem;
    border-radius: 0.95rem;
}

.map-discovery-page .property-card--compact:hover,
.map-discovery-page .property-card--compact:focus-visible,
.map-discovery-page .property-card--compact.is-active {
    border-color: rgba(15, 118, 110, 0.42);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(238, 253, 250, 0.96));
    box-shadow: 0 12px 26px rgba(11, 29, 45, 0.12);
    outline: none;
}

.map-discovery-page .property-card--compact .property-card-media {
    width: 58px !important;
    min-height: 48px !important;
    height: 48px !important;
    border-radius: 0.75rem;
}

.map-discovery-page .property-card--compact .property-card-media img,
.map-discovery-page .property-card--compact img {
    width: 58px !important;
    height: 48px !important;
    min-height: 48px !important;
}

.map-discovery-page .property-card--compact .card-body,
.map-discovery-page .property-card-compact__body {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}

.map-discovery-page .property-card-compact__content {
    gap: 0.16rem;
}

.map-discovery-page .property-card-compact__type,
.map-discovery-page .property-card-compact__meta,
.map-discovery-page .property-card-compact__actions {
    display: none !important;
}

.map-discovery-page .property-card-compact__title {
    font-size: 0.86rem;
    line-height: 1.08;
}

.map-discovery-page .property-card-compact__price {
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .map-discovery-page .property-card--compact,
    .map-discovery-page .loading-card.property-card--compact {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        min-height: 58px;
        gap: 0.55rem !important;
        padding: 0.36rem 0.42rem;
    }

    .map-discovery-page .property-card--compact .property-card-media,
    .map-discovery-page .property-card--compact .property-card-media img,
    .map-discovery-page .property-card--compact img {
        width: 58px !important;
        height: 50px !important;
        min-height: 50px !important;
    }
}

/* Stage 13 Correction 6: prevent the mobile List/Map switch from becoming a fixed full-height overlay. */
@media (max-width: 899.98px) {
    .map-discovery-page .mobile-view-toggle {
        position: sticky !important;
        top: calc(var(--map-search-fixed-header-height, 64px) + 0.35rem) !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 30 !important;
        display: flex !important;
        align-items: center;
        width: min(100%, 19rem) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 auto 0.85rem !important;
        padding: 0.22rem !important;
        gap: 0.25rem !important;
        border: 1px solid rgba(203, 213, 225, 0.82) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 10px 24px rgba(11, 29, 45, 0.12) !important;
        transform: none !important;
        backdrop-filter: blur(14px);
    }

    .map-discovery-page .mobile-view-toggle .btn {
        display: inline-flex !important;
        flex: 1 1 0 !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        min-width: 0 !important;
        min-height: 36px !important;
        height: 36px !important;
        max-height: 36px !important;
        padding: 0.35rem 0.75rem !important;
        border-radius: 999px !important;
        font-size: 0.88rem !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        box-shadow: none;
    }

    .map-discovery-page .mobile-view-toggle .btn-primary {
        box-shadow: 0 8px 18px rgba(0, 119, 190, 0.18) !important;
    }

    .map-discovery-page .mobile-view-toggle .visually-hidden {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    body.route-public-index {
        padding-bottom: max(env(safe-area-inset-bottom), 0px);
    }
}

/* Stage 13 Correction 7: mobile switch scrolls normally and only the active panel is visible. */
@media (max-width: 899.98px) {
    .map-discovery-page .mobile-view-toggle {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: auto !important;
        display: flex !important;
        width: min(100%, 19rem) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 auto 0.85rem !important;
        transform: none !important;
    }

    .map-discovery-page .map-search-layout--split-list-map.is-list-only .homepage-results-list-panel {
        display: flex !important;
    }

    .map-discovery-page .map-search-layout--split-list-map.is-list-only .homepage-results-map-panel {
        display: none !important;
    }

    .map-discovery-page .map-search-layout--split-list-map.is-map-only .homepage-results-list-panel {
        display: none !important;
    }

    .map-discovery-page .map-search-layout--split-list-map.is-map-only .homepage-results-map-panel {
        display: block !important;
        height: min(58vh, 480px);
        min-height: 360px;
        margin-top: 0;
    }

    .map-discovery-page .map-search-layout--split-list-map.is-map-only .popular-properties-marquee {
        display: block !important;
        margin-top: clamp(1rem, 3vw, 1.35rem);
    }
}

/* Stage 13 Correction 9: keep real Leaflet controls compact and show full-map Ctrl-scroll guidance. */
.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(2px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint__content {
    width: min(92%, 30rem);
    padding: clamp(1.1rem, 2.8vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
    text-align: center;
    transform: translateY(8px) scale(0.98);
    transition: transform 160ms ease;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint__shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint strong {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    line-height: 1.15;
    font-weight: 900;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint span:last-child {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 650;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint.is-visible .map-ctrl-zoom-hint__content {
    transform: translateY(0) scale(1);
}

.map-discovery-page .homepage-results-map-panel .leaflet-control-zoom.homepage-map-zoom-center {
    margin: 10px 0 0 10px !important;
    border: 2px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14) !important;
}

.map-discovery-page .homepage-results-map-panel .leaflet-control-zoom.homepage-map-zoom-center a,
.map-discovery-page .homepage-results-map-panel .leaflet-control-zoom a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 30px !important;
    text-align: center !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint,
    .map-discovery-page .homepage-results-map-panel .map-ctrl-zoom-hint__content {
        transition: none;
    }
}
