/* ============================================
   HAVEN — Where Legacy Meets Luxury
   Ultra-Premium Luxury Mansion Marketplace
   ============================================ */

/* === CUSTOM PROPERTIES === */
:root {
    --black-deep: #0a0a0a;
    --black: #111111;
    --black-soft: #161616;
    --charcoal: #1a1a2e;
    --charcoal-light: #222240;
    --gray-900: #1c1c1c;
    --gray-800: #2a2a2a;
    --gray-700: #3a3a3a;
    --gray-600: #555;
    --gray-500: #777;
    --gray-400: #999;
    --gray-300: #bbb;
    --gold: #c9a84c;
    --gold-light: #d4af37;
    --gold-pale: #e8d5a3;
    --cream: #f5f0e8;
    --cream-light: #faf7f0;
    --white: #ffffff;
    --white-05: rgba(255,255,255,0.05);
    --white-08: rgba(255,255,255,0.08);
    --white-10: rgba(255,255,255,0.1);
    --white-15: rgba(255,255,255,0.15);
    --white-20: rgba(255,255,255,0.2);
    --white-40: rgba(255,255,255,0.4);
    --white-60: rgba(255,255,255,0.6);
    --white-80: rgba(255,255,255,0.8);
    --gold-10: rgba(201,168,76,0.1);
    --gold-20: rgba(201,168,76,0.2);
    --gold-30: rgba(201,168,76,0.3);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --nav-height: 72px;
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1320px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 24px rgba(201,168,76,0.15);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 1px var(--white-05);
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) var(--black-deep);
}

body {
    font-family: var(--font-body);
    background: var(--black-deep);
    color: var(--white-80);
    line-height: 1.7;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black-deep); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white-80);
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
}

select option { background: var(--black); color: var(--white); }

::selection {
    background: var(--gold);
    color: var(--black-deep);
}

/* === UTILITY === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black-deep);
}
.btn--gold:hover {
    color: var(--black-deep);
    box-shadow: var(--shadow-gold), 0 0 40px rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

.btn--outline {
    border: 1px solid var(--white-20);
    color: var(--white-80);
}
.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-10);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: all 0.5s var(--ease-out-expo);
}

.nav--scrolled {
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--white-05);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--gold) !important;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav__links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-60);
    position: relative;
    padding: 4px 0;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__user { position: relative; }

.nav__user-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--white-15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-60);
    transition: all 0.3s;
}
.nav__user-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: rgba(18,18,18,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-lg);
}

.nav__dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav__dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--white-60);
    transition: all 0.2s;
}
.nav__dropdown a:hover {
    background: var(--white-05);
    color: var(--gold);
}

.nav__dropdown-divider {
    height: 1px;
    background: var(--white-08);
    margin: 6px 0;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav__hamburger span {
    display: block;
    height: 1.5px;
    background: var(--white-60);
    border-radius: 1px;
    transition: all 0.4s var(--ease-out-expo);
    transform-origin: center;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}
.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white-60);
    padding: 12px 0;
    transition: all 0.3s;
}
.mobile-menu__link:hover { color: var(--gold); }

.mobile-menu__divider {
    width: 40px;
    height: 1px;
    background: var(--gold-30);
    margin: 16px auto;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(26,26,46,0.4) 0%, transparent 60%),
        url('hero.png') center/cover no-repeat;
    will-change: transform;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(201,168,76,0.015) 100px, rgba(201,168,76,0.015) 101px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(201,168,76,0.015) 100px, rgba(201,168,76,0.015) 101px);
    mask-image: radial-gradient(ellipse 70% 60% at center, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black, transparent);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.5) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.9) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border: 1px solid var(--gold-30);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.3s var(--ease-out-expo) forwards;
}

.hero__badge-diamond {
    font-size: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--cream-light);
    margin-bottom: 28px;
}

.hero__title em {
    font-style: italic;
    color: var(--gold);
}

.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}
.hero__title-line--1 { animation: fadeUp 1s 0.5s var(--ease-out-expo) forwards; }
.hero__title-line--2 { animation: fadeUp 1s 0.7s var(--ease-out-expo) forwards; }

.hero__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--white-40);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.9s var(--ease-out-expo) forwards;
}

/* Search Bar */
.hero__search {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 1.1s var(--ease-out-expo) forwards;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(20,20,20,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--white-10);
    border-radius: 80px;
    padding: 8px 8px 8px 32px;
    max-width: 780px;
    margin: 0 auto;
    transition: all 0.4s var(--ease-out-expo);
}

.search-bar:focus-within {
    border-color: var(--gold-30);
    box-shadow: 0 0 40px rgba(201,168,76,0.08);
}

.search-bar__field {
    flex: 1;
    min-width: 0;
    padding: 8px 16px;
}

.search-bar__field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-40);
    margin-bottom: 4px;
}

.search-bar__field select,
.search-bar__field input {
    font-size: 0.85rem;
    color: var(--white-80);
    cursor: pointer;
}

.search-bar__field input[type="date"] {
    color-scheme: dark;
}

.search-bar__divider {
    width: 1px;
    height: 32px;
    background: var(--white-10);
    flex-shrink: 0;
}

.search-bar__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--black-deep);
    transition: all 0.4s var(--ease-out-expo);
}
.search-bar__btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 24px rgba(201,168,76,0.3);
}

/* Social Proof */
.hero__proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    font-size: 0.8rem;
    color: var(--white-40);
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 1s 1.3s var(--ease-out-expo) forwards;
}

.hero__proof-icon { color: var(--gold); font-size: 0.9rem; }
.hero__proof strong { color: var(--gold); font-weight: 600; }

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 1s 1.5s var(--ease-out-expo) forwards;
}

.hero__scroll span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-40);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* === STATS BAR === */
.stats-bar {
    background: var(--black-soft);
    border-top: 1px solid var(--white-05);
    border-bottom: 1px solid var(--white-05);
    padding: 48px 20px;
}

.stats-bar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 72px);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out-expo);
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat__prefix,
.stat__number,
.stat__suffix {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--gold);
}

.stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-40);
    margin-top: 8px;
}

.stat__divider {
    width: 1px;
    height: 48px;
    background: var(--white-08);
}

/* === SECTIONS (Shared) === */
.section {
    padding: var(--section-pad) 20px;
}

.section__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--cream-light);
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--white-40);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.section__line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 28px auto 0;
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PROPERTIES GRID === */
.properties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Property Card */
.property-card {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--white-05);
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--white-08);
    border-color: var(--white-10);
}

.property-card__image {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}

.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.property-card:hover .property-card__img {
    transform: scale(1.05);
}

.property-card__badges {
    position: absolute;
    top: 14px; left: 14px; right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.property-card__tag {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.property-card__tag--book {
    background: rgba(201,168,76,0.9);
    color: var(--black-deep);
}

.property-card__tag--inquire {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid var(--white-20);
}

.property-card__save {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--white-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-80);
    transition: all 0.3s;
    cursor: pointer;
}

.property-card__save:hover,
.property-card__save.active {
    background: rgba(201,168,76,0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.property-card__save.active svg { fill: var(--gold); }

.property-card__body {
    padding: 20px;
}

.property-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.property-card__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cream-light);
    line-height: 1.3;
}

.property-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}
.property-card__rating svg { width: 12px; height: 12px; }

.property-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--white-40);
    margin-bottom: 16px;
}
.property-card__location svg { width: 12px; height: 12px; flex-shrink: 0; }

.property-card__stats {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--white-05);
    border-bottom: 1px solid var(--white-05);
    margin-bottom: 16px;
}

.property-card__stat {
    font-size: 0.72rem;
    color: var(--white-40);
    letter-spacing: 0.02em;
}
.property-card__stat strong {
    color: var(--white-80);
    font-weight: 600;
}

.property-card__price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 500;
}
.property-card__price span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--white-40);
    font-weight: 400;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-900) 0%, var(--gray-800) 40%, var(--gray-900) 80%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    height: 440px;
    border-radius: var(--radius-lg);
}

/* === SERVICES === */
.services {
    background: var(--black-soft);
}

.services__tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.services__tab {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-40);
    border: 1px solid var(--white-08);
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    cursor: pointer;
}

.services__tab:hover {
    color: var(--white-80);
    border-color: var(--white-20);
}

.services__tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black-deep);
    border-color: transparent;
}

.services__panel {
    display: none;
}

.services__panel.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out-expo);
}

.services__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--black);
    border: 1px solid var(--white-05);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
}

.service-item:hover {
    border-color: var(--gold-30);
    background: rgba(201,168,76,0.03);
    transform: translateX(4px);
}

.service-item__icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-item__info { flex: 1; min-width: 0; }

.service-item__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream-light);
    margin-bottom: 2px;
}

.service-item__price {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 500;
}

/* === ABOUT / HOW IT WORKS === */
.about {
    background: var(--black-deep);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-20), transparent);
}

.about__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.about__step {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--white-05);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
}

.about__step:hover {
    border-color: var(--gold-30);
    transform: translateY(-4px);
}

.about__step-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.4;
}

.about__step h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cream-light);
    margin-bottom: 16px;
}

.about__step p {
    font-size: 0.9rem;
    color: var(--white-40);
    line-height: 1.7;
}

/* === LIST YOUR ESTATE === */
.list-estate {
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.list-estate::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--gold-10) 0%, transparent 70%);
    pointer-events: none;
}

.list-estate__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.list-estate__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--cream-light);
    margin-bottom: 20px;
}

.list-estate__text {
    font-size: 1rem;
    color: var(--white-40);
    line-height: 1.8;
    margin-bottom: 36px;
}

.list-estate__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-estate__card {
    padding: 24px 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-md);
    position: relative;
    transition: all 0.3s;
}

.list-estate__card:hover {
    border-color: var(--gold-30);
}

.list-estate__card-line {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--gold);
    border-radius: 2px;
}

.list-estate__card-label {
    font-size: 0.75rem;
    color: var(--white-40);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.list-estate__card-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 500;
    margin-top: 4px;
}

/* === PROPERTY MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    overflow-y: auto;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__container {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    border: 1px solid var(--white-08);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.5s var(--ease-out-expo);
    margin: 20px 0;
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--white-10);
    color: var(--white-80);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}
.modal__close:hover {
    background: var(--gold);
    color: var(--black-deep);
    border-color: var(--gold);
}

/* Modal Content Sections */
.modal__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 400px;
}

.modal__gallery-item {
    border-radius: 2px;
    overflow: hidden;
}

.modal__gallery-item:first-child {
    grid-row: 1 / -1;
}

.modal__gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__header {
    padding: 32px 40px;
    border-bottom: 1px solid var(--white-05);
}

.modal__property-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--cream-light);
    margin-bottom: 8px;
}

.modal__property-location {
    font-size: 0.9rem;
    color: var(--white-40);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.modal__property-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.modal__property-meta span {
    font-size: 0.85rem;
    color: var(--white-60);
}

.modal__body {
    padding: 40px;
}

.modal__section {
    margin-bottom: 40px;
}

.modal__section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--cream-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--white-05);
}

.modal__description {
    font-size: 0.95rem;
    color: var(--white-60);
    line-height: 1.8;
}

.modal__amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.modal__amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--white-60);
    border: 1px solid var(--white-05);
    border-radius: var(--radius-sm);
}

.modal__amenity-icon {
    font-size: 1.1rem;
}

.modal__staff-list,
.modal__garage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.modal__staff-item,
.modal__garage-item {
    padding: 12px 16px;
    background: var(--white-05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--white-60);
}

.modal__pricing {
    background: var(--black);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-md);
    padding: 28px;
}

.modal__pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--white-60);
    border-bottom: 1px solid var(--white-05);
}

.modal__pricing-row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    padding-top: 16px;
}

.modal__book-btn {
    width: 100%;
    padding: 18px;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Reviews */
.modal__reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal__review {
    padding: 24px;
    background: var(--white-05);
    border-radius: var(--radius-md);
    border: 1px solid var(--white-05);
}

.modal__review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal__review-name {
    font-weight: 600;
    color: var(--cream-light);
    font-size: 0.9rem;
}

.modal__review-rating {
    color: var(--gold);
    font-size: 0.85rem;
}

.modal__review-text {
    font-size: 0.88rem;
    color: var(--white-40);
    line-height: 1.7;
    font-style: italic;
}

.modal__review-date {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 8px;
}

/* Map & Host */
.modal__map-placeholder {
    height: 200px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gray-800), var(--charcoal));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--white-05);
}

.modal__map-placeholder span {
    font-size: 0.85rem;
    color: var(--white-40);
    letter-spacing: 0.05em;
}

.modal__host {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white-05);
    border-radius: var(--radius-md);
    border: 1px solid var(--white-05);
}

.modal__host-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--black-deep);
    flex-shrink: 0;
}

.modal__host-info h4 {
    font-size: 0.95rem;
    color: var(--cream-light);
    font-weight: 600;
    margin-bottom: 2px;
}

.modal__host-info p {
    font-size: 0.8rem;
    color: var(--white-40);
}

/* === BOOKING DIALOG === */
.booking-dialog {
    position: fixed;
    inset: 0;
    z-index: 3000;
    border: none;
    background: transparent;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-dialog::backdrop {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-dialog[open] {
    animation: fadeIn 0.4s var(--ease-out-expo);
}

.booking__inner {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--gray-900);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    margin: auto;
}

.booking__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--white-05);
    color: var(--white-60);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.booking__close:hover {
    background: var(--gold);
    color: var(--black-deep);
}

/* Progress indicators */
.booking__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.booking__step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.booking__step-indicator span {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--white-15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-40);
    transition: all 0.4s;
}

.booking__step-indicator.active span,
.booking__step-indicator.completed span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black-deep);
}

.booking__step-indicator small {
    font-size: 0.65rem;
    color: var(--white-40);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.booking__step-line {
    width: 40px;
    height: 1px;
    background: var(--white-10);
    margin: 0 8px;
    margin-bottom: 16px;
}

/* Panels */
.booking__panel {
    display: none;
}
.booking__panel.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out-expo);
}

.booking__panel h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream-light);
    margin-bottom: 28px;
    text-align: center;
}

.booking__form-group {
    margin-bottom: 20px;
}

.booking__form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-40);
    margin-bottom: 8px;
}

.booking__form-group input,
.booking__form-group select,
.booking__form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--white-80);
    transition: all 0.3s;
}

.booking__form-group input:focus,
.booking__form-group select:focus,
.booking__form-group textarea:focus {
    border-color: var(--gold-30);
    box-shadow: 0 0 0 3px var(--gold-10);
}

.booking__form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.booking__form-group input[type="date"] {
    color-scheme: dark;
}

.booking__price-preview {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--white-05);
    font-size: 0.9rem;
    color: var(--white-60);
    margin-bottom: 24px;
}

.booking__price-preview span:last-child {
    color: var(--gold);
    font-weight: 600;
}

.booking__nav-btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.booking__nav-btns .btn { flex: 1; }

.booking__services-note {
    font-size: 0.85rem;
    color: var(--white-40);
    text-align: center;
    margin-bottom: 24px;
}

.booking__services-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
    margin-bottom: 20px;
}

.booking__service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white-05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--white-05);
    transition: all 0.3s;
    cursor: pointer;
}

.booking__service-item:hover {
    border-color: var(--gold-30);
}

.booking__service-item.selected {
    border-color: var(--gold);
    background: var(--gold-10);
}

.booking__service-item input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.booking__service-item label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--white-80);
    cursor: pointer;
}

.booking__service-item .price {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
}

.booking__running-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--white-08);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white-80);
}

.booking__running-total span:last-child {
    color: var(--gold);
}

/* Review */
.booking__review {
    margin-bottom: 24px;
}

.booking__review-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.88rem;
    color: var(--white-60);
    border-bottom: 1px solid var(--white-05);
}

.booking__review-row span:last-child {
    font-weight: 600;
    color: var(--white-80);
}

.booking__grand-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 2px solid var(--gold-20);
    font-size: 1.15rem;
    font-weight: 700;
}

.booking__grand-total span:first-child { color: var(--cream-light); }
.booking__grand-total span:last-child { color: var(--gold); }

/* Confirmation */
.booking__confirmation {
    text-align: center;
    padding: 20px 0;
}

.booking__conf-icon {
    margin-bottom: 24px;
    animation: scaleIn 0.6s var(--ease-out-expo);
}

.booking__conf-icon svg {
    margin: 0 auto;
}

.booking__confirmation h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--cream-light);
    margin-bottom: 8px;
}

.booking__conf-id {
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 16px !important;
    font-weight: 600;
}

.booking__confirmation > p {
    font-size: 0.9rem;
    color: var(--white-40);
    line-height: 1.7;
    margin-bottom: 28px;
}

.booking__conf-details {
    text-align: left;
    background: var(--white-05);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.booking__conf-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--white-60);
}

.booking__conf-detail-row span:last-child {
    color: var(--white-80);
    font-weight: 500;
}

/* === FOOTER === */
.footer {
    background: var(--black-deep);
    padding: 80px 20px 32px;
    border-top: 1px solid var(--white-05);
}

.footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--gold) !important;
}

.footer__tagline {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--white-40);
    margin-top: 8px;
}

.footer__members {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 16px;
    opacity: 0.6;
}

.footer__links-group {
    display: flex;
    gap: 60px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-40);
    margin-bottom: 8px;
}

.footer__col a {
    font-size: 0.85rem;
    color: var(--white-40);
    transition: color 0.3s;
}
.footer__col a:hover { color: var(--gold); }

.footer__divider {
    height: 1px;
    background: var(--white-05);
    margin-bottom: 24px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--white-08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-40);
    transition: all 0.3s;
}
.footer__social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-10);
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    30% { opacity: 1; transform: scaleY(1); }
    60% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.1); }
    50% { box-shadow: 0 0 40px rgba(201,168,76,0.2); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about__steps { grid-template-columns: 1fr; gap: 24px; }
    .list-estate__inner { grid-template-columns: 1fr; gap: 48px; }
    .footer__top { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 20px;
        gap: 12px;
    }

    .search-bar__field { padding: 8px 0; }
    .search-bar__divider { width: 100%; height: 1px; }

    .search-bar__btn {
        width: 100%;
        height: 48px;
        border-radius: var(--radius-sm);
    }

    .hero__subtitle br { display: none; }

    .properties__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .services__list {
        grid-template-columns: 1fr;
    }

    .services__tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .services__tabs::-webkit-scrollbar { display: none; }

    .modal__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .modal__gallery-item:first-child { grid-row: auto; }
    .modal__gallery-item:nth-child(n+3) { display: none; }

    .modal__body { padding: 24px; }
    .modal__header { padding: 24px; }

    .modal__amenities { grid-template-columns: 1fr; }
    .modal__staff-list,
    .modal__garage-list { grid-template-columns: 1fr; }

    .booking__inner { padding: 24px; }

    .footer__links-group { flex-direction: column; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }

    .stat__divider { display: none; }
    .stats-bar__inner { gap: 32px; }

    .list-estate__inner { gap: 32px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2.2rem; }
    .section__title { font-size: 1.6rem; }
    .booking__step-line { width: 20px; }
    .booking__step-indicator small { font-size: 0.55rem; }
}
