/**
 * MyHome2 Luxury Real Estate Design
 * Inspired by https://myhome2.tangiblewp.com/
 * Modern, elegant, and sophisticated design for luxury properties
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&display=swap');

/* ====================================
   TYPOGRAPHY & BASE
   ==================================== */
:root {
    --primary-color: #1a1a1a;
    --font-primary: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --secondary-color: #1e293b;
    --accent-gold: #0061ff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #28a745;
    --branding-gradient: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure headings and form controls use DM Sans for consistent typography */
h1,
h2,
h3,
h4,
h5,
h6,
body,
p,
a,
li,
span,
div,
input,
textarea,
select,
button {
    font-family: var(--font-primary);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   HEADER - Luxury Navigation
   ==================================== */
.luxury-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.luxury-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    height: 80px;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* Header left group: logo + login text */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-login-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.header-login-link:hover {
    color: var(--accent-gold);
}

/* Compatibility: map existing theme header markup to luxury header styles
   Some pages (e.g., public header) use classes like header-style-one, navbar,
   nav-brand, nav-menu, nav-link, mobile-menu, mobile-menu-toggle. Add rules
   so those pages inherit the luxury look without changing PHP templates. */

.header-style-one {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.main-header.menu-area {
    height: 80px;
    display: flex;
    align-items: center;
}

.header-style-one .container {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.nav-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 28px;
    justify-self: center;
    align-items: center;
}

.nav-menu .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    gap: 16px;
    justify-self: end;
    align-items: center;
}

.header-icon {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
}

.favorites-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-gold);
    color: #fff;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-dark);
}

/* Mobile menu overlay and panel */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background: #fff;
    z-index: 1000;
    padding: 20px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

/* show mobile menu when active */
.mobile-menu.active {
    display: block;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* luxury header sidebar */
.mobile-menu-sidebar {
    display: none;
    position: fixed;
    right: -100%;
    top: 0;
    height: 100%;
    width: 320px;
    background: #fff;
    z-index: 10000;
    padding: 20px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transition: right .28s ease;
    overflow-y: auto;
}

.mobile-menu-sidebar.active {
    right: 0;
    display: block;
}

.mobile-menu-overlay {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Dropdown styles for public and luxury headers */
.nav-dropdown,
.header-nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle,
.header-nav-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-toggle:hover,
.header-nav-toggle:hover {
    color: var(--accent-gold);
}

.nav-dropdown-menu,
.header-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    display: none;
    z-index: 1200;
    padding: 6px 0;
}

.nav-dropdown-item,
.header-nav-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

.nav-dropdown-item:hover,
.header-nav-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--accent-gold);
}

/* Show menu on hover or focus within for keyboard users */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.header-nav-dropdown:hover .header-nav-menu,
.header-nav-dropdown:focus-within .header-nav-menu {
    display: block;
}

/* Also support JS-controlled open state to avoid flicker when moving pointer */
.nav-dropdown.open .nav-dropdown-menu,
.header-nav-dropdown.open .header-nav-menu {
    display: block !important;
}

/* Mobile grouping for Sell section added to public header */
.mobile-nav-group {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-nav-label {
    font-weight: 700;
    color: var(--text-dark);
    padding: 8px 0;
}

.mobile-nav-group .mobile-nav-link {
    padding-left: 8px;
    display: block;
    color: var(--text-dark);
}

/* Header search dropdown (used by public header) */
.header-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: transparent;
    z-index: 900;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.header-search-dropdown .header-search-container {
    width: 100%;
    max-width: 1320px;
    pointer-events: auto;
}

.header-search-dropdown .header-search-content {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border-top: 4px solid var(--accent-gold);
}

.header-search-input,
.header-search-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.header-search-btn {
    background: var(--accent-gold);
    color: #111;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /*
      IMPORTANT:
      `.header-style-one` is used as a page wrapper (often on <body>).
      Making it `position: fixed` prevents scrolling and can make the footer
      appear "missing" and break toggles/clicks on mobile.
      Keep the header fixed instead.
    */
    .header-style-one .main-header.menu-area {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* Responsive toggles for properties page */
@media (max-width: 900px) {

    /* Collapse top search by default on mobile, show when .open (animated) */
    .top-search-strip .top-search-inner {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .28s ease, opacity .28s ease;
    }

    .top-search-strip.open .top-search-inner {
        max-height: 600px;
        opacity: 1;
    }

    /* Show inline compact toggles */
    .mobile-search-toggle,
    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--accent-gold);
        color: #111;
        font-size: 16px;
        padding: 0;
        border: none;
        cursor: pointer;
        border-radius: 10px;
        gap: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
        z-index: 13000;
    }

    .mobile-search-toggle i,
    .mobile-filter-toggle i {
        color: #111;
    }

    .mobile-search-toggle:hover,
    .mobile-filter-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .mobile-search-toggle:active,
    .mobile-filter-toggle:active {
        transform: translateY(0);
    }

    .mobile-search-toggle[aria-expanded="true"],
    .mobile-filter-toggle[aria-expanded="true"] {
        background: #b88a52;
        color: #fff;
    }

    /* Filters sidebar hidden off-canvas unless .open */
    .filters-sidebar {
        display: none;
    }

    .filters-sidebar.open {
        display: block;
        position: fixed;
        left: 0;
        top: 80px;
        bottom: 0;
        width: 84%;
        max-width: 380px;
        background: #fff;
        z-index: 12000;
        padding: 18px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
    }

    /* Add a close button to the filters panel (JS will inject if needed) */
    .filters-sidebar .close-filters {
        display: inline-flex;
        margin-bottom: 12px;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }

    /* Ensure the mobile toggles are visible above other content when open */
    .top-search-strip {
        position: relative;
        z-index: 12900;
    }
}

/* Default: hide mobile toggle bar */
.mobile-toggle-bar {
    display: none;
}

/* Mobile: show toggle bar inside the top-search-strip (in the red line area) */
@media (max-width: 900px) {
    .top-search-strip .mobile-toggle-bar {
        display: block !important;
        background: transparent;
        padding: 10px 0 10px 0;
        position: relative;
        z-index: 1000;
        margin-bottom: 8px;
    }

    .top-search-strip .mobile-toggle-bar .mobile-toggles {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .top-search-strip .mobile-toggle-bar .mobile-search-toggle,
    .top-search-strip .mobile-toggle-bar .mobile-filter-toggle {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .top-search-strip .mobile-toggle-bar .mobile-search-toggle:hover,
    .top-search-strip .mobile-toggle-bar .mobile-filter-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .top-search-strip .mobile-toggle-bar .mobile-search-toggle i,
    .top-search-strip .mobile-toggle-bar .mobile-filter-toggle i {
        color: #fff;
        font-size: 16px;
    }
}

/* Hide mobile toggles on desktop widths (show only under 900px) */
@media (min-width: 901px) {

    .mobile-search-toggle,
    .mobile-filter-toggle {
        display: none !important;
    }

    .mobile-toggle-bar {
        display: none !important;
    }

    /* Hide the mobile close button injected into filters sidebar on desktop */
    .filters-sidebar .close-filters {
        display: none !important;
    }
}


/* Site name text placed after the logo */
.header-site-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.25px;
}

/* Location dropdown checklist styles */
.location-group {
    position: relative;
}

.location-dropdown {
    position: relative;
}

.location-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid rgba(0, 97, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) inset;
    font-size: 14px;
}

.location-toggle .location-selected-count {
    color: var(--text-gray);
    margin-left: 6px;
    font-size: 13px;
}

.location-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    width: 320px;
    /* compact width */
    max-height: 300px;
    min-width: 260px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 30000;
    border-top: 4px solid var(--accent-gold);
}

.location-panel[aria-hidden="false"] {
    display: block;
}

.location-search {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: #fff;
}

.location-filter {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #EFEFEF;
    font-size: 13px;
    color: var(--text-dark);
    background: #FFFFFF;
}

.location-list {
    max-height: 220px;
    /* keep the list compact */
    overflow-y: auto;
    padding: 6px 6px;
    display: block;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
}

.location-item:hover {
    background: #FBFBFC;
}

.location-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid #D1D5DB;
    background: #ffffff;
    border-radius: 3px;
    appearance: none;
    display: inline-block;
    position: relative;
}

.location-item input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.location-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    left: 1px;
    top: -1px;
    font-size: 12px;
    color: #fff;
}

.location-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.location-count {
    background: #F4F6F8;
    color: #6B7280;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

/* subtle separators between items for readability */
.location-list .location-item+.location-item {
    border-top: 1px solid rgba(15, 17, 20, 0.03);
}

/* scrollbar refinement to keep a terse look */
.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}

/* scroll styling for the list */
.location-list::-webkit-scrollbar {
    width: 8px;
}

.location-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

/* small screens: location-panel responsive rules are now in main @media (max-width: 768px) block */

/* Admin property form address grid */
.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* make each field full width to cover page */
    gap: 14px;
    width: 100%;
}

.address-grid label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.address-grid input,
.address-grid select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

@media (min-width: 1100px) {

    /* On very wide screens keep the inputs readable but still full-width within container */
    .address-grid {
        max-width: none;
    }
}

/* Ensure address grid elements fill the form column like other .form-field elements */
.form-grid.single-column .form-field .address-grid {
    width: 100% !important;
}

.form-grid.single-column .form-field .address-grid>div {
    width: 100% !important;
    display: block;
}

.form-grid.single-column .form-field .address-grid input,
.form-grid.single-column .form-field .address-grid select {
    width: 100% !important;
    box-sizing: border-box;
}

/* Ensure address-grid uses full width of the form column (override other rules) */
.form-grid.single-column .form-field.form-field-full .address-grid {
    max-width: 100% !important;
    margin: 0 !important;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
    position: static;
    /* use grid placement instead of absolute */
    grid-column: 2;
    justify-self: center;
    z-index: 5;
    white-space: nowrap;
}

.header-left {
    grid-column: 1;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
}

.header-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-gold);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.header-icon-btn:hover {
    color: var(--accent-gold);
}

.header-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-gold);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary-luxury {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary-luxury:hover {
    background: transparent;
    color: var(--primary-color);
}

/* ====================================
   HERO SECTION - Luxury Landing
   ==================================== */
.luxury-hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    position: relative;
    /* allow dropdowns and panels to overflow the hero area so they are not clipped */
    overflow: visible;
    background-size: cover;
    background-position: center;
}

.luxury-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/luxury-hero-bg.jpg') center/cover;
    opacity: 0.15;
}

/* Ensure pseudo background sits behind overlay */
.luxury-hero::before {
    z-index: 0;
}

.luxury-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Compact, professional hero used on sell-property page */
.luxury-hero.sell-hero {
    min-height: 240px;
    /* smaller banner height for forms */
    padding-bottom: 0;
    /* rely on inner padding */
    background-image: none !important;
    background-color: #000;
    /* solid black background for professional look */
    background-size: cover;
    background-position: center center;
}

.luxury-hero.sell-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 60%);
    opacity: 1;
}

.luxury-hero.sell-hero .hero-content-wrapper {
    padding: 18px 0;
}

.luxury-hero.sell-hero .hero-luxury-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.luxury-hero.sell-hero .hero-luxury-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}

.luxury-hero.sell-hero .btn-luxury-gold {
    padding: 10px 26px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .luxury-hero.sell-hero {
        min-height: 220px;
    }

    .luxury-hero.sell-hero .hero-luxury-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .luxury-hero.sell-hero {
        min-height: 180px;
        padding: 14px 0;
    }

    .luxury-hero.sell-hero .hero-luxury-title {
        font-size: 22px;
    }

    .luxury-hero.sell-hero .hero-luxury-subtitle {
        font-size: 13px;
    }

    .luxury-hero.sell-hero .btn-luxury-gold {
        width: auto;
        padding: 10px 18px;
    }
}

.hero-content-wrapper {
    display: block;
    gap: 60px;
    align-items: center;
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.luxury-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-text-content {
    z-index: 6;
    /* keep hero text above the search panel */
}

.hero-luxury-title {
    font-family: 'Playfair Display', serif;
    font-size: 84px;
    font-weight: 400;
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-align: center;
}

.hero-luxury-title strong {
    font-weight: 700;
    display: block;
}

.hero-luxury-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 720px;
    text-align: center;
}

.hero-luxury-title,
.hero-luxury-subtitle {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-stats-row {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 40px;
    justify-content: center;
    align-items: center;
    z-index: 3;
    position: relative;
}

.hero-stat-box {
    text-align: center;
    min-width: 140px;
}

.hero-stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ====================================
   SEARCH PANEL - Luxury Style
   ==================================== */
.luxury-search-panel {
    background: white;
    padding: 22px 26px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 4;
    position: relative;
    width: 85%;
    margin: 24px auto 0;
    /* keep space above the panel so hero text remains visible */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.search-panel-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.search-tabs {
    display: flex;
    gap: 8px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto 12px;
    width: max-content;
}

.search-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.search-tab.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 4px solid var(--accent-gold);
    padding-bottom: 8px;
}

.search-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* Ensure the hero text and search panel don't overlap */
.hero-text-content {
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.luxury-hero {
    padding-bottom: 180px;
    /* reserve space for the search panel and avoid overlap */
}

.form-group-luxury {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 0 0 auto;
}

/* larger default widths for common fields */
.form-group-luxury.field-all input#location,
.form-group-luxury.field-all .form-input-luxury {
    min-width: 220px;
    flex: 1 1 220px;
}

.form-group-luxury.field-all select#type,
.form-group-luxury.field-all .form-select-luxury {
    min-width: 160px;
    flex: 0 0 160px;
}

.price-range-grid {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-search-luxury {
    margin-left: auto;
}

.form-label-luxury {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-luxury,
.form-select-luxury {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    background: white;
    min-width: 120px;
    height: 40px;
    max-height: 40px;
    line-height: 20px;
    box-sizing: border-box;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

/* Ensure location input is single-line and not a tall box */
.form-input-luxury#location {
    height: 40px;
    max-height: 40px;
    min-height: 40px;
}

/* Price inputs align with other inputs */
.price-range-grid .form-input-luxury {
    height: 36px;
    max-height: 36px;
}

/* Select boxes should match input height */
.form-select-luxury {
    height: 40px;
    max-height: 40px;
    padding-right: 36px;
    /* space for arrow */
}

/* Fix select vertical alignment for some browsers */
.form-select-luxury::-ms-expand {
    display: none;
}

.form-select-luxury option {
    padding: 6px 8px;
}

/* --- Improve dropdown/select visibility in the search filters --- */
/* Ensure labels sit above controls and remain visible */
.search-form-grid .form-group-luxury {
    min-height: 64px;
}

.search-form-grid .form-label-luxury {
    display: block;
    position: relative;
    z-index: 2;
    color: #111827;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Make selects a bit taller so selected text isn't clipped and options are easier to read */
.form-select-luxury {
    height: 46px;
    min-height: 46px;
    line-height: 22px;
    padding: 10px 36px 10px 14px;
    /* keep space for the arrow */
    font-size: 14px;
    color: var(--text-dark);
    overflow: visible;
}

.form-select-luxury option {
    padding: 8px 12px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-dark);
}

/* On smaller screens slightly reduce height but keep readability */
@media (max-width: 768px) {

    /* On smaller screens keep nav inline so mobile menu works */
    .form-select-luxury {
        height: 44px;
        min-height: 44px;
    }
}

/* Protective z-index so overlapping hero/overlays don't hide labels */
.header-nav {
    position: static;
    transform: none;
    gap: 18px;
}

.luxury-search-panel .form-label-luxury {
    position: relative;
    z-index: 3;
}


/* Labels spacing for neat vertical rhythm */
.form-label-luxury {
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
}

.form-input-luxury:focus,
.form-select-luxury:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.price-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-search-luxury {
    background: var(--accent-gold);
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search-luxury:hover {
    transform: translateY(-2px);
}

.btn-search-luxury:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ====================================
   OUR ADVANTAGE SECTION
   ==================================== */
.advantage-section {
    padding: 100px 0;
    background: white;
}

.section-header-luxury {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-luxury {
    font-size: 42px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle-luxury {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--branding-gradient);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advantage-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ====================================
   EXCLUSIVE LISTINGS - Featured Properties
   ==================================== */
.exclusive-listings {
    padding: 100px 0;
    background: var(--bg-light);
}

.properties-grid-luxury {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Ensure each grid item row has equal height so cards align consistently */
.properties-grid-luxury {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Stronger enforcement so favorites page inline/page-specific CSS can't prevent alignment */
.properties-grid-luxury>.property-card-luxury {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.properties-grid-luxury .property-info-luxury {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.properties-grid-luxury .property-actions {
    margin-top: auto !important;
}

.property-card-luxury {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

/* Make the card a vertical flex container so content can stretch
   and actions can be anchored to the bottom for consistent alignment */
.property-card-luxury {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card-luxury:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.property-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image-luxury {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Carousel styles inside property card */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 6;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* Hide carousel arrows by default; show on hover (desktop) or always on touch devices */
.carousel-btn {
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.property-image-wrapper:hover .carousel-btn,
.carousel:focus-within .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

/* On touch devices (coarse pointers), keep arrows visible so users can tap them */
@media (pointer: coarse) {
    .carousel-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.property-card-luxury:hover .property-image-luxury {
    transform: scale(1.1);
}

.property-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: white;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.property-status-badge.featured {
    background: var(--success-color);
}

.property-status-badge.sold {
    background: var(--text-gray);
}

.property-favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    color: var(--text-gray);
}

.property-favorite-btn:hover {
    background: var(--accent-gold);
    color: white;
}

.property-info-luxury {
    padding: 25px;
}

/* Allow the info area to grow and push the actions row to the bottom */
.property-info-luxury {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.property-actions {
    margin-top: auto;
    /* push actions to bottom of card */
}

/* Limit location to two lines to avoid pushing actions down when address is long */
.property-location,
.property-location-luxury {
    color: #6b7280;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-price-luxury {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 12px 0 6px;
}

.property-title-luxury {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.property-title-luxury a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.property-title-luxury a:hover {
    color: var(--accent-gold);
}

.property-location-luxury {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features-luxury {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.property-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-gray);
}

.property-feature-item i {
    color: var(--accent-gold);
}

.property-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.agent-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-name-small {
    font-size: 13px;
    color: var(--text-gray);
}

/* Badges for property cards */
.property-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.property-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    color: white;
}

.property-badge.badge-featured {
    background: var(--accent-gold);
}

.property-badge.badge-status {
    background: rgba(0, 0, 0, 0.6);
}

.property-badge.badge-status.active {
    background: var(--accent-gold);
}

.property-badge.badge-status.sold {
    background: #8a8a8a;
}

/* Explicit colored badges to match reference images */
.property-badge.featured,
.property-badge.badge-featured {
    background: var(--accent-gold);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 97, 255, 0.12);
}

/* For Sale - teal/green tone similar to reference */
.property-badge.for-sale,
.property-badge.for_sale,
.property-badge.status-for_sale,
.property-badge.property-status.status-for_sale,
.property-badge.property-type.for-sale {
    background: #0f7f77;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 127, 119, 0.12);
}

/* Also target listing-* variants added in markup */
.property-badge.listing-for_sale,
.property-badge.listing-for-sale,
.property-badge.listing-for\_sale,
.property-badge.listing-for\-sale,
.property-badge.listing-for-sale-joint-venture,
.property-badge.listing-for_sale_joint_venture {
    background: #0f7f77;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 127, 119, 0.12);
}

/* Stronger overrides to prevent other theme CSS from winning */
.property-badges .property-badge.listing-for_sale,
.property-badges .property-badge.listing-for-sale,
.property-badges .property-badge.listing-for-sale-joint-venture,
.property-badges .property-badge.listing-for_sale_joint_venture,
.property-badges .property-badge.listing-for_rent,
.property-badges .property-badge.listing-for-rent,
.property-badges .property-badge.sold,
.property-badges .property-badge.listing-sold {
    color: #ffffff !important;
}

.property-badges .property-badge.listing-for_sale,
.property-badges .property-badge.listing-for-sale,
.property-badges .property-badge.listing-for-sale-joint-venture,
.property-badges .property-badge.listing-for_sale_joint_venture {
    background: #0f7f77 !important;
}

.property-badges .property-badge.listing-for_rent,
.property-badges .property-badge.listing-for-rent {
    background: #2b6db3 !important;
}

.property-badges .property-badge.listing-seller_listing,
.property-badges .property-badge.listing-seller-listing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.property-badges .property-badge.listing-sold,
.property-badges .property-badge.status-sold {
    background: #6b2b2b !important;
}

/* For Rent - bluish tone */
.property-badge.for-rent,
.property-badge.for_rent,
.property-badge.status-for_rent,
.property-badge.property-status.status-for_rent,
.property-badge.property-type.for-rent {
    background: #2b6db3;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(43, 109, 179, 0.12);
}

/* Also target listing-* variants added in markup */
.property-badge.listing-for_rent,
.property-badge.listing-for-rent,
.property-badge.listing-for\_rent,
.property-badge.listing-for\-rent {
    background: #2b6db3;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(43, 109, 179, 0.12);
}

/* Sold - deep maroon tone */
.property-badge.sold,
.property-badge.status-sold,
.property-badge.property-status.status-sold,
.property-badge.property-type.sold {
    background: #6b2b2b;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(107, 43, 43, 0.12);
}

/* Also target listing sold variants */
.property-badge.listing-sold,
.property-badge.listing-status-sold {
    background: #6b2b2b;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(107, 43, 43, 0.12);
}

/* Slight size/tighten adjustments for consistent look */
.property-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.6px;
}

/* Agent action buttons */
.agent-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.agent-action-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--accent-gold);
}

/* Property preview modal */
.property-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 24px;
    overflow-y: auto;
    /* enable scroll on overlay for mobile */
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
}

.property-preview-overlay.open {
    display: flex;
}

.property-preview-modal {
    background: #fff;
    width: 100%;
    max-width: 1240px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    /* ensure absolute children (close) are positioned relative to modal */
    height: 520px;
    /* fixed height to avoid layout shifts when images change */
    max-height: calc(100vh - 80px);
    margin: auto;
    /* center vertically when overlay scrolls */
}

.property-preview-left {
    width: 62%;
    min-height: 520px;
    position: relative;
    background: #000;
}

.property-preview-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.property-preview-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-preview-badges {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 8px;
    z-index: 50;
}

.property-preview-badges .property-badge {
    transform: none;
}

/* gallery nav */
.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    border: 0;
}

.preview-prev {
    left: 10px;
}

.preview-next {
    right: 10px;
}

.property-preview-thumbs {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    z-index: 55;
    justify-content: flex-start;
}

.property-preview-thumbs .thumb {
    width: 92px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.property-preview-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-preview-thumbs .thumb.active {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.property-preview-right {
    width: 38%;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
}

.property-preview-close {
    right: 22px;
}

.property-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.property-preview-title {
    font-size: 24px;
    margin: 0 0 6px;
    color: var(--text-dark);
}

.property-preview-meta {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-preview-price {
    color: var(--accent-gold);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.property-preview-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.property-preview-tags .tag {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dark);
}

.property-preview-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.property-preview-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-preview-viewmore {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    padding: 8px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-preview-close {
    background: #eee;
    border-radius: 6px;
    padding: 8px 12px;
    border: 0;
    cursor: pointer;
}

@media (max-width: 880px) {
    .property-preview-overlay {
        align-items: flex-start;
        padding: 12px;
    }

    .property-preview-modal {
        flex-direction: column;
        height: auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        /* enable scroll inside modal on mobile */
        -webkit-overflow-scrolling: touch;
    }

    .property-preview-left,
    .property-preview-right {
        width: 100%;
    }

    .property-preview-left {
        height: 240px;
        min-height: 240px;
        flex-shrink: 0;
    }

    .property-preview-right {
        padding: 24px 20px;
        overflow-y: auto;
        max-height: calc(100vh - 280px);
    }
}

/* Ensure close button sits at modal top-right regardless of content changes */
.property-preview-modal .property-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 80;
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* Hover & focus animations for close icon */
.property-preview-close {
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.property-preview-close:hover,
.property-preview-close:focus {
    transform: scale(1.08);
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.08);
    outline: none;
}

.property-preview-close:focus-visible {
    outline: 3px solid rgba(197, 165, 114, 0.18);
    outline-offset: 4px;
}

/* Hover & focus animations for View More button */
.btn-preview-viewmore {
    transition: transform 200ms cubic-bezier(.2, .9, .2, 1), background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.btn-preview-viewmore:hover,
.btn-preview-viewmore:focus {
    transform: translateY(-4px);
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 12px 30px rgba(197, 165, 114, 0.18);
    border-color: transparent;
}

.btn-preview-viewmore:focus-visible {
    outline: 3px solid rgba(197, 165, 114, 0.14);
    outline-offset: 4px;
}

/* ====================================
   TOP LOCATIONS SECTION
   ==================================== */
.top-locations {
    padding: 100px 0;
    background: white;
}


.locations-grid {
    display: grid;
    grid-template-columns: 62% 38%;
    gap: 20px;
    margin-top: 50px;
    align-items: start;
    justify-content: center;
}

.locations-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
}

.location-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.location-card-large {
    height: 520px;
}

.location-card-small {
    height: 240px;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-image {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.location-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.location-count {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Ensure top-locations overlay text contrasts strongly over images --- */
.top-locations .location-overlay {
    color: #ffffff;
}

.top-locations .location-overlay .location-name {
    color: #ffffff;
    /* enforce white label */
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.top-locations .location-overlay .location-count {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* If other site rules set .location-name color earlier, use higher specificity as fallback */
.locations-grid .location-card .location-overlay .location-name {
    color: #ffffff;
}

/* Responsive layout for Top Locations */
@media (max-width: 1100px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .locations-right-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-card-large {
        height: 360px;
    }

    .location-card-small {
        height: 180px;
    }
}

@media (max-width: 760px) {
    .locations-right-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-card-large {
        height: 320px;
    }

    .location-card-small {
        height: 160px;
    }
}

/* ====================================
   PREMIUM SALES SECTION
   ==================================== */
.premium-sales {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.premium-sales .section-title-luxury {
    color: white;
}

.premium-sales .section-subtitle-luxury {
    color: rgba(255, 255, 255, 0.8);
}

.premium-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.premium-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.premium-feature {
    text-align: center;
}

.premium-feature-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.premium-feature-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.premium-feature-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.premium-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.premium-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.premium-stat-item {
    padding: 20px;
}

.premium-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.premium-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-luxury-gold {
    background: var(--accent-gold);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
}

.btn-luxury-gold:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(197, 165, 114, 0.4);
}

/* Generic luxury buttons used across hero pages */
.btn-luxury {
    background: var(--accent-gold);
    color: #111;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-luxury i {
    font-size: 1rem;
}

.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 165, 114, 0.22);
}

.btn-luxury-outline {
    background: transparent;
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-luxury-outline:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-luxury-outline:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.18);
    outline-offset: 3px;
}

.btn-luxury-outline:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Make hero-outline button robust against overlay/specifity issues */
.luxury-hero .btn-luxury-outline {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.luxury-hero .btn-luxury-outline i {
    color: inherit;
}

/* Stronger hover rules with specificity to avoid being overridden */
.luxury-hero .btn-luxury-outline:hover,
.luxury-hero .btn-luxury-outline:focus,
.luxury-hero .btn-luxury-outline:focus-visible {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18) !important;
}

/* ====================================
   CONTACT & CONSULTATION
   ==================================== */
.consultation-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    padding: 64px 0;
}

/* Certificates Section */
.certificates-section .section-header-luxury {
    text-align: center;
    margin-bottom: 28px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: stretch;
}

.certificate-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid rgba(20, 20, 20, 0.04);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s ease, border-color .28s ease;
}

.certificate-card::before {
    content: '';
    position: absolute;
    height: 4px;
    left: 14px;
    right: 14px;
    top: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 215, 120, 1) 0%, rgba(255, 190, 70, 0.9) 50%, rgba(255, 215, 120, 1) 100%);
    box-shadow: 0 6px 18px rgba(255, 190, 60, 0.08);
    opacity: 0.96;
}

.certificate-card {
    position: relative;
    overflow: visible;
}

.certificate-issuer {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted-text, #7a7a7a);
    text-transform: none;
}

.cert-download {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
    padding: 9px;
    border-radius: 10px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px) scale(1);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .9, .3, 1), background .22s ease, box-shadow .22s ease;
}

.certificate-card:hover .cert-download,
.certificate-thumb-btn:focus .cert-download {
    opacity: 1;
    transform: translateY(0) scale(1.06);
    width: 100%;
    padding: 14px 24px;
    background: var(--branding-gradient);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 184, 74, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.certificate-thumb-btn {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.certificate-thumb-btn:focus {
    outline: none;
}

/* subtle decorative corner badge */
.certificate-card::after {
    content: '\f02e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.08);
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
    border-color: rgba(0, 97, 255, 0.22);
}

.certificate-image-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 6px;
}

.certificate-card img {
    max-width: 90%;
    height: 160px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
}

.certificate-title {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-dark, #222);
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
}

.certificate-subtle {
    font-size: 12px;
    color: var(--muted-text, #7a7a7a);
    margin-top: 6px;
}

@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .certificate-card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificates-section {
        padding: 28px 0;
    }

    .certificate-card {
        padding: 16px;
    }

    .certificate-card img {
        height: 120px;
    }

    .certificate-title {
        font-size: 14px;
    }
}

/* Certificates lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
    visibility: visible;
}

.cert-lightbox[aria-hidden="true"] {
    display: none;
}

.cert-lightbox-image-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.cert-lightbox-close,
.cert-lightbox-prev,
.cert-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
}

.cert-lightbox-close {
    top: 18px;
    right: 18px;
}

.cert-lightbox-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.cert-lightbox-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.cert-lightbox-caption {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

@media (max-width: 640px) {

    .cert-lightbox-prev,
    .cert-lightbox-next {
        display: none;
    }

    .cert-lightbox-close {
        top: 10px;
        right: 10px;
    }
}



.contact-info-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-section-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 18px;
    font-family: Georgia, 'Times New Roman', serif;
}

.contact-section-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: 28px;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 40px;
    align-items: start;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-item {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 22px;
}

.contact-info-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-info-value {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-info-address {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-info-email {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-desc {
    font-size: 13px;
    color: #6B7280;
    margin-top: 5px;
}

.consultation-form {
    background: white;
    padding: 28px 36px 36px 36px;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(9, 10, 11, 0.04);
    border-top: 4px solid var(--accent-gold);
}

.form-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 8px 0 28px 0;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
    align-items: start;
}

.form-group-luxury {
    display: flex;
    flex-direction: column;
}

.form-label-luxury {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-label-luxury .required {
    color: #DC2626;
}

.form-input-luxury {
    padding: 12px 14px;
    height: 44px;
    line-height: 20px;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.14s ease;
    font-family: 'DM Sans', sans-serif;
    background: #FAFAFB;
}

.form-input-luxury:focus {
    outline: none;
    border-color: rgba(1, 39, 77, 0.15);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.form-input-luxury::placeholder {
    color: #9CA3AF;
}

.form-select-luxury {
    padding: 12px 14px;
    height: 44px;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    background: #FAFAFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px;
    cursor: pointer;
    transition: all 0.14s ease;
    font-family: 'DM Sans', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select-luxury:focus {
    outline: none;
    border-color: rgba(1, 39, 77, 0.15);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.form-group-full {
    margin-bottom: 20px;
}

/* Ensure label sits above the control for full-width form groups */
.form-group-full {
    display: block;
}

.form-group-full .form-label-luxury {
    display: block;
    margin-bottom: 10px;
}

.form-group-full .form-input-luxury,
.form-group-full textarea.form-input-luxury,
.form-group-full .form-select-luxury {
    width: 100%;
    box-sizing: border-box;
}

textarea.form-input-luxury {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    padding: 14px;
    border: 1px solid #ECECEC;
    background: #FAFAFB;
}

.btn-send-message {
    width: 220px;
    background: var(--accent-gold);
    color: rgba(12, 12, 12, 0.95);
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.14s ease;
    display: block;
    text-align: center;
    line-height: 18px;
    margin-left: auto;
}

.btn-send-message:hover {
    background: var(--branding-gradient);
    transform: translateY(-1px);
}

.btn-send-message i {
    font-size: 14px;
}

/* Make the consultation section slightly smaller on wide screens */
.consultation-section {
    padding-top: 40px;
    padding-bottom: 40px;
    display: block;
    text-align: center;
    line-height: 18px;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* ====================================
   FOOTER - Luxury Design
   ==================================== */
.luxury-footer {
    background: #0f1720 !important;
    color: #ffffff !important;
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.luxury-footer * {
    color: inherit;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.luxury-footer .container {
    background: transparent !important;
}

.luxury-footer .footer-content {
    padding: 20px 0 10px;
}

.footer-section {
    display: block;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.footer-logo-section h3 {
    color: #ffffff !important;
}

.footer-logo-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item i {
    color: var(--accent-gold);
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    font-weight: 400;
    display: block;
}

.footer-links a:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--accent-gold) !important;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-luxury-title {
        font-size: 56px;
    }
}

@media (max-width: 1024px) {
    .hero-content-wrapper {
        /* keep stacked flow on tablet */
        display: block;
        padding: 50px 0 20px;
        /* add extra top padding so title is visible */
    }

    .luxury-hero {
        padding-bottom: 60px;
        min-height: auto;
    }

    .luxury-search-panel {
        position: relative;
        width: 95%;
        bottom: 0;
        transform: none;
        padding: 18px;
        margin-top: 40px;
        /* increase top margin to avoid overlap */
    }

    .hero-luxury-title {
        font-size: 52px;
        display: block;
        z-index: 9999;
    }

    .hero-luxury-subtitle {
        font-size: 16px;
        display: block;
        z-index: 9999;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid-luxury {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-content-grid,
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .luxury-hero {
        padding-bottom: 40px;
        min-height: 100vh !important;
        /* override inline height */
        height: auto !important;
        /* allow content to determine height */
    }

    /* increase top padding so hero content clears the fixed header on small screens */
    .hero-content-wrapper {
        padding: 100px 0 20px;
        /* header ~80px + extra spacing */
        display: block !important;
    }

    .hero-luxury-title {
        font-size: 32px;
        line-height: 1.2;
        padding: 0 15px;
        word-wrap: break-word;
        margin-bottom: 15px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
        color: rgba(255, 255, 255, 0.96) !important;
        /* use white on mobile for consistency */
        text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-luxury-subtitle {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 20px;
        max-width: 100%;
        margin-bottom: 25px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }

    /* removed dark-on-light fallback so white title + shadow remains visible */

    .hero-text-content {
        padding: 0 10px;
        margin-bottom: 30px;
        display: block !important;
        position: relative;
        z-index: 10;
    }

    .luxury-search-panel {
        width: 90%;
        padding: 20px 16px;
        margin-top: 56px;
        /* ensure it doesn't overlap hero text */
    }

    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-content: space-around;
    }

    .hero-stat-box {
        min-width: 100px;
        flex: 0 0 auto;
    }

    .hero-stat-number {
        font-size: 40px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .section-title-luxury {
        font-size: 32px;
    }

    .section-subtitle-luxury {
        font-size: 16px;
    }

    .advantage-grid,
    .properties-grid-luxury {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-features-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .luxury-search-panel {
        padding: 30px 20px;
    }

    /* Stack search form fields vertically on mobile */
    .search-form-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form-grid .form-group-luxury {
        width: 100%;
        min-width: 100%;
    }

    .search-form-grid .form-input-luxury,
    .search-form-grid .form-select-luxury {
        width: 100%;
    }

    .btn-search-luxury {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    /* Fix location dropdown on mobile */
    .location-panel {
        left: 0;
        right: 0;
        width: auto !important;
        max-width: 100%;
        min-width: auto;
        max-height: 400px;
        /* increase height for mobile to show more items */
        /* on narrow screens place the panel above the flow so it's never clipped */
        position: fixed;
        left: 12px;
        right: 12px;
        /* place below fixed header (approx 80px). Adjust if your header height differs */
        top: calc(80px + 12px);
        max-height: calc(100vh - 140px);
        z-index: 30000;
    }

    .location-list {
        max-height: 320px;
        /* increase list height on mobile */
    }

    .advantage-section,
    .exclusive-listings,
    .top-locations,
    .premium-sales,
    .consultation-section {
        padding: 60px 0;
    }
}

/* Hide the inline login link on small screens (mobile menu provides sign-in) */
@media (max-width: 768px) {
    .header-login-link {
        display: none;
    }
}

@media (max-width: 480px) {
    .luxury-hero {
        padding-bottom: 30px;
    }

    .hero-content-wrapper {
        padding: 20px 0 10px;
    }

    .hero-luxury-title {
        font-size: 24px;
        line-height: 1.3;
        padding: 0 15px;
        margin-bottom: 12px;
    }

    .hero-luxury-subtitle {
        font-size: 13px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .hero-stat-number {
        font-size: 32px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .luxury-search-panel {
        width: 92%;
        padding: 16px 12px;
        margin-top: 15px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        height: 250px;
    }

    .property-price-luxury {
        font-size: 24px;
    }

    .property-title-luxury {
        font-size: 18px;
    }
}

/* ====================================
   UTILITIES
   ==================================== */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.btn-view-all {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-top: 40px;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: white;
}

/* Page sections: allow easy alternating backgrounds (white / light gray) */
.page-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.page-section.alt {
    background: var(--bg-light);
}