/* ============================================
   Karlín Apartments — Design Tokens
   Inspired by Kempinski Bali: luxury-accessible
   ============================================ */

:root {
    /* Colors */
    --cream: #FAF7F2;
    --warm-white: #FFFDF9;
    --beige: #EDE5DA;
    --beige-dark: #D4C9BB;
    --burgundy: #7A2840;
    --burgundy-light: #9E3A56;
    --burgundy-dark: #5C1E30;
    --charcoal: #1C1917;
    --charcoal-light: #292524;
    --text: #44403C;
    --text-light: #78716C;
    --text-lighter: #A8A29E;
    --gold: #B8860B;
    --gold-light: #D4A843;
    --white: #FFFFFF;
    --black: #000000;

    /* Overlay */
    --overlay-dark: rgba(28, 25, 23, 0.4);
    --overlay-darker: rgba(28, 25, 23, 0.6);
    --overlay-light: rgba(255, 253, 249, 0.95);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes — fluid clamp */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.5rem, 2.5vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 3vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 4vw, 3rem);
    --text-5xl: clamp(2.75rem, 5vw, 3.75rem);
    --text-6xl: clamp(3.25rem, 6vw, 4.5rem);
    --text-hero: clamp(2.75rem, 7vw, 5.5rem);

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;
    --tracking-widest: 0.12em;

    /* Line Height */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 8vw, 8rem);

    /* Container */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 800px;
    --container-padding: clamp(1.25rem, 5vw, 2rem);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;
    --radius-full: 50%;

    /* Shadows — warm tone */
    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.12);
    --shadow-xl: 0 20px 48px rgba(28, 25, 23, 0.16);

    /* Transitions */
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-smooth);
    --transition-normal: 300ms var(--ease-smooth);
    --transition-slow: 500ms var(--ease-luxury);
    --transition-slower: 700ms var(--ease-luxury);

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-toast: 2000;

    /* Nav height */
    --nav-height: 72px;
    --nav-height-mobile: 64px;
}

/* CJK font override */
:lang(ja) { --font-body: 'Noto Sans JP', 'Outfit', sans-serif; }
:lang(ko) { --font-body: 'Noto Sans KR', 'Outfit', sans-serif; }
:lang(zh) { --font-body: 'Noto Sans SC', 'Outfit', sans-serif; }
/* ============================================
   Karlín Apartments — Main Stylesheet
   Mobile-first, luxury-accessible design
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    overflow: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    line-height: var(--leading-tight);
    color: var(--charcoal);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-5xl); letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

.section-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--leading-relaxed);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--burgundy);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--burgundy-light);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn--gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn--gold:hover {
    background-color: var(--gold-light);
}

.btn--dark {
    background-color: var(--charcoal);
    color: var(--white);
}

.btn--dark:hover {
    background-color: var(--charcoal-light);
}

.btn--nav {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.nav.is-scrolled .btn--nav {
    color: var(--burgundy);
    border-color: var(--burgundy);
    background: transparent;
}

.nav.is-scrolled .btn--nav:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 1.125rem 3rem;
    font-size: var(--text-base);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--nav-height-mobile);
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
}

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

.nav__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--white);
    letter-spacing: var(--tracking-wide);
    transition: color var(--transition-normal);
    z-index: var(--z-sticky);
}

.nav.is-scrolled .nav__logo {
    color: var(--charcoal);
}

.nav__links {
    display: none;
    gap: var(--space-2xl);
    align-items: center;
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.nav.is-scrolled .nav__link {
    color: var(--text);
}

.nav__link:hover {
    color: var(--white);
}

.nav.is-scrolled .nav__link:hover {
    color: var(--burgundy);
}

.nav__cta {
    display: none;
}

.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: var(--z-sticky);
}


.nav__burger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav.is-scrolled .nav__burger span {
    background: var(--charcoal);
}

.nav__burger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.mobile-menu__close span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
}

.mobile-menu__close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu__close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--white);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--gold);
}

/* Language selector */
.lang-select {
    position: relative;
}

.lang-select__current {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: var(--space-xs) var(--space-sm);
}

.nav.is-scrolled .lang-select__current {
    color: var(--text);
}

.lang-select__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
}

.lang-select__dropdown.is-open {
    display: block;
}

.lang-select__option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    color: var(--text);
    transition: background var(--transition-fast);
}

.lang-select__option:hover {
    background: var(--cream);
}

.lang-select__option.is-active {
    color: var(--burgundy);
    font-weight: var(--weight-medium);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    z-index: 0;
}

@media (min-width: 768px) {
    .hero__bg {
        object-position: center;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 25, 23, 0.85) 0%,
        rgba(28, 25, 23, 0.55) 35%,
        rgba(28, 25, 23, 0.35) 60%,
        rgba(28, 25, 23, 0.25) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-3xl) var(--container-padding) var(--space-4xl);
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wider);
    color: var(--gold-light);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

.hero__title {
    font-size: var(--text-hero);
    color: var(--white);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-lg);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--weight-light);
    margin-bottom: var(--space-2xl);
    line-height: var(--leading-relaxed);
}

.hero__badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero__badge-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.hero__badge-airbnb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-lg);
}

.hero__badge-laurel {
    flex-shrink: 0;
    color: var(--gold-light);
}

.hero__badge-airbnb-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    white-space: nowrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-2xl);
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--cream);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--beige);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    color: var(--text);
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
}

.trust-bar__stars {
    color: var(--gold);
    letter-spacing: 2px;
}

.trust-bar__divider {
    display: none;
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--beige-dark);
}

/* === AWARDS === */
.awards {
    background: var(--warm-white);
    padding: var(--space-3xl) 0;
}

.awards__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.awards__badge {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-2xl);
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--beige);
}

.awards__badge img {
    height: 52px;
    width: auto;
}

.awards__airbnb-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.awards__badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.awards__badge-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--charcoal);
}

.awards__badge-subtitle {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* === GALLERY === */
.gallery {
    padding: var(--space-section) 0;
    background: var(--warm-white);
}

.gallery__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
    pointer-events: auto;
}

.gallery__item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery__item picture,
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
}

/* === FEATURES === */
.features {
    padding: var(--space-section) 0;
    background: var(--cream);
}

.features__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--warm-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--beige);
}

.feature-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-md);
    color: var(--burgundy);
}

.icon {
    flex-shrink: 0;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* === THE SPACE === */
.space {
    padding: var(--space-section) 0;
    background: var(--warm-white);
}

.space__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.space__block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
    align-items: center;
}

.space__block:last-child {
    margin-bottom: 0;
}

.space__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
}

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

.space__content {
    padding: 0;
}

.space__block-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.space__block-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.space__block-desc {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: var(--leading-relaxed);
}

.space__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.space__tag {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    padding: var(--space-xs) var(--space-md);
    background: var(--cream);
    border: 1px solid var(--beige);
    border-radius: var(--radius-pill);
    color: var(--text);
}

/* === REVIEWS === */
.reviews {
    padding: var(--space-section) 0;
    background: var(--cream);
    overflow: hidden;
}

.reviews__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.reviews__rating-big {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    color: var(--charcoal);
}

.reviews__rating-stars {
    color: var(--gold);
    font-size: var(--text-xl);
    margin: var(--space-sm) 0;
    letter-spacing: 4px;
}

.review-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--beige);
    min-width: 300px;
    max-width: 400px;
    flex-shrink: 0;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: var(--white);
    flex-shrink: 0;
}

.review-card__name {
    font-weight: var(--weight-semibold);
    color: var(--charcoal);
    font-size: var(--text-sm);
}

.review-card__date {
    font-size: var(--text-xs);
    color: var(--text-light);
}

.review-card__stars {
    color: var(--gold);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.review-card__text {
    font-size: var(--text-sm);
    color: var(--text);
    line-height: var(--leading-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swiper overrides for reviews */
.reviews .swiper {
    padding: 0 var(--container-padding);
    overflow: hidden;
}

.reviews .swiper-wrapper {
    display: flex;
}

.reviews .swiper-slide {
    width: auto;
    flex-shrink: 0;
}

/* === NEIGHBORHOOD === */
.neighborhood {
    padding: var(--space-section) 0;
    background: var(--charcoal);
    color: var(--white);
}

.neighborhood .section-label {
    color: var(--gold);
}

.neighborhood .section-title {
    color: var(--white);
}

.neighborhood__header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.neighborhood__timeout {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);
    color: var(--gold);
    margin-bottom: var(--space-3xl);
}

/* Neighborhood unified grid */
.neighborhood__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.neighborhood-card {
    padding: var(--space-xl);
    background: var(--charcoal-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--gold);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.neighborhood-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-top-color: var(--gold-light);
}

.neighborhood-card__icon {
    color: var(--gold-light);
    margin-bottom: var(--space-md);
}

.neighborhood-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.neighborhood-card__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--leading-relaxed);
}

/* === AMENITIES === */
.amenities {
    padding: var(--space-section) 0;
    background: var(--warm-white);
}

.amenities__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.amenities__groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.amenities__group-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--beige);
}

.amenities__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-lg);
}

.amenities__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text);
    padding: var(--space-xs) 0;
}

.amenities__check {
    flex-shrink: 0;
    color: var(--burgundy);
    opacity: 0.6;
}

/* === BOOKING WIDGET === */
.booking {
    padding: var(--space-section) 0;
    background: var(--warm-white);
}

.booking__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.booking__widget {
    max-width: 520px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    padding: var(--space-xl);
    text-align: center;
}

.booking__info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.booking__detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.booking__detail-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.booking__detail-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--charcoal);
}

.booking__divider {
    width: 1px;
    height: 40px;
    background: var(--silk);
}

.booking__cta {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-lg);
    text-align: center;
}

.btn--xl {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

.booking__note {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--stone);
}

@media (max-width: 600px) {
    .booking__info {
        flex-direction: column;
        gap: var(--space-md);
    }
    .booking__divider {
        width: 60px;
        height: 1px;
    }
}

/* === CTA === */
.cta-section {
    padding: var(--space-section) 0;
    background: var(--cream);
    text-align: center;
    color: var(--charcoal);
}

.cta-section__title {
    font-size: var(--text-5xl);
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.cta-section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: var(--space-2xl);
    font-weight: var(--weight-light);
}

.cta-section__trust {
    margin-top: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--text-lighter);
}

/* === FOOTER === */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.5);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.8);
}

.footer__logo:hover {
    color: var(--white);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
}

.footer__nav a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition-fast);
}

.footer__nav a:hover {
    color: var(--white);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-sticky);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--burgundy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-fast);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: var(--burgundy-light);
}

.footer__bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--white);
    font-size: var(--text-2xl);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: var(--text-3xl);
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.lightbox__nav:hover {
    opacity: 1;
}

.lightbox__nav--prev {
    left: var(--space-lg);
}

.lightbox__nav--next {
    right: var(--space-lg);
}

.lightbox__counter {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* === RESPONSIVE — Tablet (768px) === */
@media (min-width: 768px) {
    .nav {
        height: var(--nav-height);
    }

    .trust-bar__divider {
        display: block;
    }

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

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 4/3;
    }

    .space__block {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }

    .space__block:nth-child(even) .space__image {
        order: 2;
    }

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

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

    .footer__grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* === RESPONSIVE — Desktop (1024px) === */
@media (min-width: 1024px) {
    .nav__links {
        display: flex;
    }

    .nav__cta {
        display: inline-flex;
    }

    .nav__burger {
        display: none;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .neighborhood__grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* === RESPONSIVE — Mobile only (max 767px) === */
@media (max-width: 767px) {
    /* Hero button: full width so long translations always fit */
    .hero__content .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* === RESPONSIVE — Large (1366px) === */
@media (min-width: 1366px) {
    .hero__content {
        max-width: 900px;
    }
}

/* === RTL Support === */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav__links,
[dir="rtl"] .footer__links {
    direction: rtl;
}

[dir="rtl"] .feature-card,
[dir="rtl"] .amenities__item {
    flex-direction: row-reverse;
}

[dir="rtl"] .space__block:nth-child(even) .space__image {
    order: initial;
}

[dir="rtl"] .space__block:nth-child(odd) .space__image {
    order: 2;
}
/* ============================================
   Karlín Apartments — Animations
   ============================================ */

/* Ken Burns — hero background zoom */
@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.hero__bg {
    animation: heroZoom 20s ease-out forwards;
}

/* Fade up on scroll — IntersectionObserver triggers .is-visible */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.is-visible {
    animation: fadeUp 0.7s var(--ease-luxury) forwards;
}

/* Staggered children */
.fade-up-stagger .fade-up-child {
    opacity: 0;
    transform: translateY(20px);
}

.fade-up-stagger.is-visible .fade-up-child {
    animation: fadeUp 0.6s var(--ease-luxury) forwards;
}

.fade-up-stagger.is-visible .fade-up-child:nth-child(1) { animation-delay: 0ms; }
.fade-up-stagger.is-visible .fade-up-child:nth-child(2) { animation-delay: 80ms; }
.fade-up-stagger.is-visible .fade-up-child:nth-child(3) { animation-delay: 160ms; }
.fade-up-stagger.is-visible .fade-up-child:nth-child(4) { animation-delay: 240ms; }
.fade-up-stagger.is-visible .fade-up-child:nth-child(5) { animation-delay: 320ms; }
.fade-up-stagger.is-visible .fade-up-child:nth-child(6) { animation-delay: 400ms; }

/* Scroll indicator bounce */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Scale on hover — for gallery images */
.hover-scale {
    transition: transform var(--transition-slow);
    will-change: transform;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Underline reveal — Kempinski-style link hover */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-normal);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Nav transition */
.nav {
    transition: background-color var(--transition-normal),
                box-shadow var(--transition-normal),
                backdrop-filter var(--transition-normal);
}

.nav.is-scrolled {
    background-color: var(--overlay-light);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Button hover */
.btn {
    transition: background-color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Lightbox fade */
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.lightbox {
    animation: lightboxFadeIn 0.3s var(--ease-smooth) forwards;
}

.lightbox.is-closing {
    animation: lightboxFadeOut 0.2s var(--ease-smooth) forwards;
}

/* Mobile menu */
@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.is-open {
    animation: menuSlideIn 0.4s var(--ease-luxury) forwards;
}

/* Star pulse for ratings */
@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__bg {
        animation: none;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        animation: none;
    }
}
