/**
 * BOHO Apartment - Production CSS
 * Version: 3.0.0 ARMAGEDDON
 * Last Updated: 2026-01-11
 * 
 * Optimized for:
 * - Core Web Vitals (external file = cacheable)
 * - Accessibility (WCAG 2.1 AA)
 * - Print styles
 * - Reduced motion support
 */

/* ================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================ */
:root {
    /* BOHO Color Palette */
    --ch-boho-primary: #8B4513;
    --ch-boho-secondary: #D2691E;
    --ch-boho-accent: #DEB887;
    --ch-boho-dark: #2C1810;
    --ch-boho-cream: #FDF5E6;
    --ch-boho-sand: #F5DEB3;
    --ch-boho-terracotta: #E07B39;
    --ch-boho-olive: #6B8E23;
    --ch-boho-gold: #DAA520;
    
    /* Typography */
    --ch-font-display: 'Cormorant Garamond', Georgia, serif;
    --ch-font-body: 'Lora', Georgia, serif;
    --ch-font-accent: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing Scale */
    --ch-space-xs: 0.25rem;
    --ch-space-sm: 0.5rem;
    --ch-space-md: 1rem;
    --ch-space-lg: 2rem;
    --ch-space-xl: 4rem;
    --ch-space-2xl: 6rem;
    --ch-section-padding: clamp(60px, 10vw, 120px);
    
    /* Layout */
    --ch-container-max: 1400px;
    --ch-nav-height: 80px;
    --ch-nav-height-scrolled: 64px;
    
    /* Transitions */
    --ch-transition-fast: 150ms ease;
    --ch-transition-base: 300ms ease;
    --ch-transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --ch-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --ch-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ch-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --ch-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --ch-shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    /* Z-Index Scale */
    --ch-z-base: 1;
    --ch-z-dropdown: 100;
    --ch-z-sticky: 500;
    --ch-z-nav: 1000;
    --ch-z-modal: 2000;
    --ch-z-lightbox: 3000;
    
    /* Footer Booking Widget */
    --ch-footer-booking-mobile-height: 140px;
}

/* ================================================
   RESET & BASE (Scoped to .ch-boho-page)
   ================================================ */
.ch-boho-page {
    font-family: var(--ch-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ch-boho-dark);
    background-color: var(--ch-boho-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ch-boho-page *,
.ch-boho-page *::before,
.ch-boho-page *::after {
    box-sizing: border-box;
}

.ch-boho-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ch-boho-page a {
    color: inherit;
    text-decoration: none;
}

.ch-boho-page button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Screen Reader Only */
.ch-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.ch-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: calc(var(--ch-z-nav) + 10);
    padding: var(--ch-space-sm) var(--ch-space-md);
    background: var(--ch-boho-dark);
    color: white;
    border-radius: 0 0 4px 4px;
    transition: top var(--ch-transition-fast);
}

.ch-skip-link:focus {
    top: 0;
    outline: 2px solid var(--ch-boho-accent);
    outline-offset: 2px;
}

/* ================================================
   NAVIGATION
   ================================================ */
.ch-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--ch-z-nav);
    height: var(--ch-nav-height);
    padding: 0 var(--ch-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 
        background-color var(--ch-transition-smooth),
        height var(--ch-transition-smooth),
        box-shadow var(--ch-transition-smooth);
}

.ch-nav--scrolled {
    height: var(--ch-nav-height-scrolled);
    background-color: rgba(44, 24, 16, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--ch-shadow-lg);
}

.ch-nav__logo {
    display: flex;
    align-items: center;
    gap: var(--ch-space-sm);
    color: white;
}

.ch-nav__logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ch-boho-primary), var(--ch-boho-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ch-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.ch-nav__logo-text {
    font-family: var(--ch-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ch-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--ch-space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-nav__link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--ch-font-accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--ch-transition-fast);
}

.ch-nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ch-boho-accent);
    transition: width var(--ch-transition-smooth);
}

.ch-nav__link:hover,
.ch-nav__link:focus {
    color: white;
}

.ch-nav__link:hover::after,
.ch-nav__link:focus::after {
    width: 100%;
}

/* Language Switcher */
.ch-lang-switch {
    display: flex;
    gap: var(--ch-space-xs);
    margin-left: var(--ch-space-md);
    padding-left: var(--ch-space-md);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-lang-switch__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--ch-transition-fast);
}

.ch-lang-switch__btn--active {
    background-color: var(--ch-boho-accent);
    color: var(--ch-boho-dark);
}

.ch-lang-switch__btn:not(.ch-lang-switch__btn--active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.ch-lang-switch__btn:not(.ch-lang-switch__btn--active):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.ch-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .ch-nav__menu {
        display: none;
    }
    
    .ch-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ================================================
   BUTTONS
   ================================================ */
.ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ch-space-sm);
    padding: 1rem 2rem;
    font-family: var(--ch-font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--ch-transition-smooth);
}

.ch-btn:focus-visible {
    outline: 2px solid var(--ch-boho-accent);
    outline-offset: 2px;
}

.ch-btn--primary {
    background: linear-gradient(135deg, var(--ch-boho-terracotta), var(--ch-boho-secondary));
    color: white;
    box-shadow: 0 8px 30px rgba(224, 123, 57, 0.35);
}

.ch-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(224, 123, 57, 0.45);
}

.ch-btn--secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.ch-btn--white {
    background-color: white;
    color: var(--ch-boho-primary);
    box-shadow: var(--ch-shadow-lg);
}

.ch-btn--white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--ch-shadow-xl);
}

.ch-btn--sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

/* ================================================
   HERO SECTION
   ================================================ */
.ch-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--ch-boho-dark);
}

.ch-hero__media {
    position: absolute;
    inset: 0;
    z-index: var(--ch-z-base);
}

.ch-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: ch-hero-fade-in 1.5s var(--ch-transition-smooth) forwards;
}

@keyframes ch-hero-fade-in {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ch-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.75) 0%,
        rgba(139, 69, 19, 0.45) 50%,
        rgba(44, 24, 16, 0.8) 100%
    );
}

.ch-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23DEB887'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    pointer-events: none;
}

.ch-hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: var(--ch-space-lg);
    text-align: center;
    color: white;
}

.ch-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ch-space-sm);
    padding: 0.75rem 1.5rem;
    margin-bottom: var(--ch-space-lg);
    background-color: rgba(222, 184, 135, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(222, 184, 135, 0.3);
    border-radius: 50px;
    font-family: var(--ch-font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ch-boho-accent);
    opacity: 0;
    animation: ch-fade-slide-up 0.8s var(--ch-transition-smooth) 0.2s forwards;
}

.ch-hero__badge-icon {
    color: var(--ch-boho-gold);
}

.ch-hero__title {
    margin: 0 0 var(--ch-space-md);
    font-family: var(--ch-font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    opacity: 0;
    animation: ch-fade-slide-up 1s var(--ch-transition-smooth) 0.4s forwards;
}

.ch-hero__title-sub {
    display: block;
    margin-top: var(--ch-space-sm);
    font-family: var(--ch-font-accent);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--ch-boho-accent);
}

.ch-hero__tagline {
    margin: 0 0 var(--ch-space-xl);
    font-family: var(--ch-font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: ch-fade-slide-up 1s var(--ch-transition-smooth) 0.6s forwards;
}

.ch-hero__actions {
    display: flex;
    gap: var(--ch-space-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: ch-fade-slide-up 1s var(--ch-transition-smooth) 0.8s forwards;
}

@keyframes ch-fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.ch-hero__scroll {
    position: absolute;
    bottom: var(--ch-space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ch-space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--ch-font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: ch-fade-slide-up 0.8s var(--ch-transition-smooth) 1.2s forwards;
}

.ch-hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--ch-boho-accent), transparent);
    animation: ch-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ch-scroll-pulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.6);
        opacity: 0.4;
    }
}

/* ================================================
   STATS BAR
   ================================================ */
.ch-stats {
    background-color: var(--ch-boho-dark);
    padding: var(--ch-space-lg) var(--ch-space-lg);
}

.ch-stats__inner {
    max-width: var(--ch-container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.ch-stats__item {
    display: flex;
    align-items: center;
    gap: var(--ch-space-sm);
    color: rgba(255, 255, 255, 0.9);
}

.ch-stats__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(222, 184, 135, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-boho-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.ch-stats__text {
    font-family: var(--ch-font-accent);
}

.ch-stats__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.ch-stats__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* ================================================
   INTRO SECTION
   ================================================ */
.ch-intro {
    padding: var(--ch-section-padding) var(--ch-space-lg);
    background-color: var(--ch-boho-cream);
    position: relative;
    overflow: hidden;
}

.ch-intro::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(222, 184, 135, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ch-intro__inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ch-intro__eyebrow {
    display: inline-block;
    position: relative;
    margin-bottom: var(--ch-space-lg);
    font-family: var(--ch-font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ch-boho-secondary);
}

.ch-intro__eyebrow::before,
.ch-intro__eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--ch-boho-accent);
}

.ch-intro__eyebrow::before {
    right: calc(100% + 1rem);
}

.ch-intro__eyebrow::after {
    left: calc(100% + 1rem);
}

.ch-intro__title {
    margin: 0 0 var(--ch-space-lg);
    font-family: var(--ch-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--ch-boho-dark);
    line-height: 1.2;
}

.ch-intro__text {
    margin: 0;
    font-size: 1.1rem;
    color: #5a4a3a;
    line-height: 1.9;
}

.ch-intro__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ch-space-md);
    margin-top: var(--ch-space-xl);
}

.ch-intro__divider-diamond {
    width: 8px;
    height: 8px;
    background-color: var(--ch-boho-accent);
    transform: rotate(45deg);
}

.ch-intro__divider::before,
.ch-intro__divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ch-boho-accent));
}

.ch-intro__divider::after {
    background: linear-gradient(to left, transparent, var(--ch-boho-accent));
}

/* ================================================
   GALLERY
   ================================================ */
.ch-gallery {
    padding: var(--ch-section-padding) var(--ch-space-lg);
    background-color: white;
}

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

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

.ch-gallery__title {
    margin: 0;
    font-family: var(--ch-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--ch-boho-dark);
}

.ch-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--ch-space-md);
}

.ch-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.ch-gallery__item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.ch-gallery__item:nth-child(2) {
    grid-column: span 5;
}

.ch-gallery__item:nth-child(3) {
    grid-column: span 5;
}

.ch-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ch-transition-smooth);
}

.ch-gallery__item:hover .ch-gallery__img,
.ch-gallery__item:focus-within .ch-gallery__img {
    transform: scale(1.06);
}

.ch-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--ch-transition-smooth);
}

.ch-gallery__item:hover .ch-gallery__overlay,
.ch-gallery__item:focus-within .ch-gallery__overlay {
    opacity: 1;
}

.ch-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--ch-space-lg);
    color: white;
    font-family: var(--ch-font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--ch-transition-smooth);
    z-index: 2;
}

.ch-gallery__item:hover .ch-gallery__caption,
.ch-gallery__item:focus-within .ch-gallery__caption {
    transform: translateY(0);
    opacity: 1;
}

.ch-gallery__btn {
    position: absolute;
    top: var(--ch-space-md);
    right: var(--ch-space-md);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-boho-dark);
    font-size: 1.1rem;
    transform: scale(0);
    transition: transform var(--ch-transition-bounce);
    z-index: 3;
}

.ch-gallery__item:hover .ch-gallery__btn,
.ch-gallery__item:focus-within .ch-gallery__btn {
    transform: scale(1);
}

.ch-gallery__btn:hover {
    background-color: white;
}

@media (max-width: 1024px) {
    .ch-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .ch-gallery__item:nth-child(1) {
        grid-column: span 2;
        height: 350px;
    }
    
    .ch-gallery__item:nth-child(2),
    .ch-gallery__item:nth-child(3) {
        grid-column: span 1;
        height: 250px;
    }
}

@media (max-width: 640px) {
    .ch-gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .ch-gallery__item:nth-child(1),
    .ch-gallery__item:nth-child(2),
    .ch-gallery__item:nth-child(3) {
        grid-column: span 1;
        height: 280px;
    }
}

/* ================================================
   HIGHLIGHTS (Features)
   ================================================ */
.ch-highlights {
    padding: var(--ch-section-padding) var(--ch-space-lg);
    background: linear-gradient(135deg, var(--ch-boho-dark) 0%, #3d2518 100%);
    position: relative;
}

.ch-highlights__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23DEB887' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    pointer-events: none;
}

.ch-highlights__inner {
    max-width: var(--ch-container-max);
    margin: 0 auto;
    position: relative;
}

.ch-highlights__header {
    text-align: center;
    margin-bottom: var(--ch-space-xl);
    color: white;
}

.ch-highlights__eyebrow {
    display: block;
    margin-bottom: var(--ch-space-sm);
    font-family: var(--ch-font-accent);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ch-boho-accent);
}

.ch-highlights__title {
    margin: 0;
    font-family: var(--ch-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
}

.ch-highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--ch-space-lg);
}

.ch-highlight-card {
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(222, 184, 135, 0.15);
    border-radius: 12px;
    padding: var(--ch-space-xl) var(--ch-space-lg);
    text-align: center;
    color: white;
    transition: all var(--ch-transition-smooth);
}

.ch-highlight-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ch-highlight-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--ch-space-lg);
    background: linear-gradient(135deg, var(--ch-boho-terracotta), var(--ch-boho-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 8px 25px rgba(224, 123, 57, 0.3);
}

.ch-highlight-card__title {
    margin: 0 0 var(--ch-space-sm);
    font-family: var(--ch-font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.ch-highlight-card__desc {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ================================================
   AMENITIES
   ================================================ */
.ch-amenities {
    padding: var(--ch-section-padding) var(--ch-space-lg);
    background-color: var(--ch-boho-cream);
}

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

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

.ch-amenities__title {
    margin: 0;
    font-family: var(--ch-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--ch-boho-dark);
}

.ch-amenities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--ch-space-md);
}

.ch-amenity {
    display: flex;
    align-items: center;
    gap: var(--ch-space-md);
    padding: 1.1rem 1.25rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--ch-shadow-sm);
    transition: all var(--ch-transition-smooth);
}

.ch-amenity:hover {
    transform: translateX(6px);
    box-shadow: var(--ch-shadow-md);
}

.ch-amenity__icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08), rgba(222, 184, 135, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-boho-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ch-amenity__name {
    font-family: var(--ch-font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ch-boho-dark);
}

/* ================================================
   BOOKING CTA
   ================================================ */
.ch-booking {
    padding: var(--ch-section-padding) var(--ch-space-lg);
    background: linear-gradient(135deg, var(--ch-boho-primary), var(--ch-boho-secondary));
    position: relative;
    overflow: hidden;
}

.ch-booking::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    pointer-events: none;
}

.ch-booking__inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    color: white;
}

.ch-booking__price {
    display: inline-flex;
    align-items: baseline;
    gap: var(--ch-space-xs);
    margin-bottom: var(--ch-space-lg);
}

.ch-booking__price-value {
    font-family: var(--ch-font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
}

.ch-booking__price-suffix {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ch-booking__title {
    margin: 0 0 var(--ch-space-sm);
    font-family: var(--ch-font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
}

.ch-booking__subtitle {
    margin: 0 0 var(--ch-space-xl);
    font-size: 1.05rem;
    opacity: 0.9;
}

/* ================================================
   FOOTER
   ================================================ */
.ch-footer {
    padding: var(--ch-space-xl) var(--ch-space-lg);
    background-color: var(--ch-boho-dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.ch-footer__logo {
    margin-bottom: var(--ch-space-md);
    font-family: var(--ch-font-display);
    font-size: 1.4rem;
    color: white;
}

.ch-footer__links {
    display: flex;
    justify-content: center;
    gap: var(--ch-space-lg);
    margin-bottom: var(--ch-space-lg);
    flex-wrap: wrap;
}

.ch-footer__link {
    font-size: 0.9rem;
    transition: color var(--ch-transition-fast);
}

.ch-footer__link:hover {
    color: var(--ch-boho-accent);
}

.ch-footer__copy {
    margin: 0;
    font-size: 0.85rem;
}

/* ================================================
   FOOTER BOOKING WIDGET (Ultra-Luxury)
   ================================================ */
.ch-footer-booking {
    position: relative;
    padding: var(--ch-space-xl) var(--ch-space-lg);
    margin-bottom: var(--ch-space-2xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.ch-footer-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #C9A227,
        transparent
    );
}

.ch-footer-booking-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ch-space-lg);
}

.ch-footer-booking-text {
    flex: 1;
}

.ch-footer-booking-title {
    margin: 0 0 var(--ch-space-xs);
    font-family: var(--ch-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--ch-boho-dark);
    line-height: 1.2;
}

.ch-footer-booking-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #5a4a3a;
    opacity: 0.85;
}

.ch-footer-booking-cta {
    display: flex;
    gap: var(--ch-space-md);
    flex-wrap: wrap;
}

.ch-btn-primary,
.ch-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ch-space-sm);
    padding: 1rem 2rem;
    font-family: var(--ch-font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--ch-transition-smooth);
    cursor: pointer;
    border: none;
}

.ch-btn-primary {
    background: linear-gradient(135deg, #C9A227, #B8921F);
    color: white;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.ch-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 162, 39, 0.45);
    background: linear-gradient(135deg, #D4AE2D, #C9A227);
}

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

.ch-btn-secondary {
    background: transparent;
    color: var(--ch-boho-dark);
    border: 2px solid rgba(201, 162, 39, 0.4);
}

.ch-btn-secondary:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: #C9A227;
}

.ch-btn-secondary:active {
    transform: scale(0.98);
}

/* Mobile: Fixed Bottom Bar */
@media (max-width: 768px) {
    .ch-footer-booking {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: var(--ch-space-md);
        border-radius: 0;
        border: none;
        border-top: 2px solid #C9A227;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        box-shadow: 
            0 -4px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        z-index: var(--ch-z-sticky);
        opacity: 0;
        animation: ch-slide-up 0.4s var(--ch-transition-smooth) forwards;
    }

    .ch-footer-booking::before {
        display: none;
    }

    .ch-footer-booking-inner {
        flex-direction: column;
        gap: var(--ch-space-md);
        text-align: center;
    }

    .ch-footer-booking-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .ch-footer-booking-subtitle {
        font-size: 0.85rem;
    }

    .ch-footer-booking-cta {
        width: 100%;
        justify-content: center;
    }

    .ch-btn-primary,
    .ch-btn-secondary {
        flex: 1;
        min-width: 140px;
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Add padding to body to prevent content from being hidden behind fixed widget */
    /* NOTE: ch-apartment-page is set by functions.php for all apartment templates */
    /*       ch-boho-page is used as fallback for BOHO-specific styling */
    body.ch-apartment-page,
    body.ch-boho-page {
        padding-bottom: var(--ch-footer-booking-mobile-height);
    }
}

@keyframes ch-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .ch-footer-booking-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--ch-space-lg);
    }

    .ch-footer-booking-cta {
        justify-content: center;
    }
}

/* Smooth fade-in animation when widget enters viewport (desktop only) */
@media (min-width: 769px) {
    .ch-footer-booking {
        opacity: 0;
        animation: ch-fade-slide-in 0.8s var(--ch-transition-smooth) 0.2s forwards;
    }
}

@keyframes ch-fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   LIGHTBOX (Accessible)
   ================================================ */
.ch-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--ch-z-lightbox);
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity var(--ch-transition-smooth),
        visibility var(--ch-transition-smooth);
}

.ch-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.ch-lightbox__close {
    position: absolute;
    top: var(--ch-space-lg);
    right: var(--ch-space-lg);
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ch-transition-fast);
}

.ch-lightbox__close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ch-lightbox__close:focus-visible {
    outline: 2px solid var(--ch-boho-accent);
    outline-offset: 2px;
}

.ch-lightbox__img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.ch-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--ch-transition-fast);
}

.ch-lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

/* ================================================
   ANIMATIONS (Scroll-triggered)
   ================================================ */
.ch-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.7s var(--ch-transition-smooth),
        transform 0.7s var(--ch-transition-smooth);
}

.ch-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.ch-animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.5s var(--ch-transition-smooth),
        transform 0.5s var(--ch-transition-smooth);
}

.ch-animate-stagger--visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.ch-animate-stagger--visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ch-hero__img {
        opacity: 1;
        transform: none;
    }
    
    .ch-hero__badge,
    .ch-hero__title,
    .ch-hero__tagline,
    .ch-hero__actions,
    .ch-hero__scroll {
        opacity: 1;
        transform: none;
    }
    
    .ch-animate {
        opacity: 1;
        transform: none;
    }
    
    .ch-footer-booking {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .ch-nav,
    .ch-hero__scroll,
    .ch-lightbox,
    .ch-btn,
    .ch-gallery__btn,
    .ch-footer-booking {
        display: none !important;
    }
    
    .ch-boho-page {
        background: white;
        color: black;
    }
    
    .ch-hero {
        min-height: auto;
        page-break-after: always;
    }
    
    .ch-hero__img {
        opacity: 1;
    }
}

/* ================================================
   LOCATION DETAILS TABLE (Mobile Responsive)
   ================================================ */
.ch-apt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ch-apt-table thead {
    background: linear-gradient(135deg, var(--ch-boho-dark), var(--ch-boho-primary));
}

.ch-apt-table th {
    padding: 1.25rem;
    text-align: left;
    color: white;
    font-family: var(--ch-font-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.ch-apt-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color var(--ch-transition-fast);
}

.ch-apt-table tbody tr:hover {
    background: var(--ch-boho-cream);
}

.ch-apt-table td {
    padding: 1.25rem;
    font-size: 0.95rem;
    color: var(--ch-boho-dark);
}

.ch-apt-table td strong {
    color: var(--ch-boho-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Mobile table view */
@media (max-width: 768px) {
    .ch-apt-table thead {
        display: none;
    }
    
    .ch-apt-table,
    .ch-apt-table tbody,
    .ch-apt-table tr,
    .ch-apt-table td {
        display: block;
    }
    
    .ch-apt-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid rgba(222, 184, 135, 0.3);
        border-radius: 12px;
        padding: 1rem;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .ch-apt-table td {
        padding: 0.75rem 0;
        border: none;
        text-align: left;
    }
    
    .ch-apt-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--ch-boho-primary);
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-family: var(--ch-font-accent);
    }
    
    .ch-apt-table td strong {
        font-size: 1.15rem;
    }
}

.ch-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: var(--ch-shadow-lg);
}

/* ================================================
   FOOTER BOOKING WIDGET (Ultra-Luxury Edition)
   ARMAGEDDON v5.0 - 2026-01-12
   ================================================ */

.ch-footer-booking {
    background: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(20,20,20,1) 100%);
    border-top: 1px solid rgba(201,162,39,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 0;
    position: relative;
}

.ch-footer-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A227, transparent);
}

.ch-footer-booking-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.ch-footer-booking-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FAF8F5;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ch-footer-booking-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: rgba(250,248,245,0.6);
    margin: 0;
    line-height: 1.5;
}

.ch-footer-booking-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.ch-footer-btn-primary {
    background: linear-gradient(135deg, #C9A227 0%, #D4AF37 100%);
    color: #1a1a1a;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(201,162,39,0.3);
    display: inline-block;
}

.ch-footer-btn-primary:hover,
.ch-footer-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,162,39,0.4);
    color: #1a1a1a;
}

.ch-footer-btn-primary:focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

.ch-footer-btn-secondary {
    background: transparent;
    color: #C9A227;
    padding: 14px 24px;
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-footer-btn-secondary:hover,
.ch-footer-btn-secondary:focus {
    background: rgba(201,162,39,0.1);
    border-color: #C9A227;
    color: #C9A227;
}

.ch-footer-btn-secondary:focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

/* WhatsApp Icon */
.ch-footer-btn-secondary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Mobile Design (< 768px) */
@media (max-width: 767px) {
    .ch-footer-booking {
        padding: 24px 0;
    }
    
    .ch-footer-booking-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .ch-footer-booking-info h3 {
        font-size: 1.3rem;
    }
    
    .ch-footer-booking-cta {
        width: 100%;
        flex-direction: column;
    }
    
    .ch-footer-btn-primary,
    .ch-footer-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet Design (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .ch-footer-booking-inner {
        gap: 32px;
    }
    
    .ch-footer-booking-info h3 {
        font-size: 1.4rem;
    }
    
    .ch-footer-booking-cta {
        flex-direction: column;
        gap: 12px;
    }
}

/* Optional: Sticky Variant (Future Enhancement)
   To enable sticky behavior, add JavaScript to:
   1. Add 'is-sticky' class to .ch-footer-booking element
   2. Toggle 'is-visible' class based on scroll position
   Example: document.querySelector('.ch-footer-booking').classList.add('is-sticky', 'is-visible');
*/
.ch-footer-booking.is-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.ch-footer-booking.is-sticky.is-visible {
    transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ch-footer-btn-primary,
    .ch-footer-btn-secondary {
        transition: none;
    }
    
    .ch-footer-btn-primary:hover,
    .ch-footer-btn-primary:focus {
        transform: none;
    }
    
    .ch-footer-booking.is-sticky {
        transition: none;
    }
}

/* Print Styles
   Note: Domain is hardcoded here as CSS cannot access PHP variables.
   Update this if domain changes. */
@media print {
    .ch-footer-booking {
        background: white;
        border-top: 2px solid #C9A227;
        padding: 20px 0;
        backdrop-filter: none;
        page-break-inside: avoid;
    }
    
    .ch-footer-booking::before {
        display: none;
    }
    
    .ch-footer-booking-inner {
        display: block;
        text-align: center;
    }
    
    .ch-footer-booking-info h3 {
        color: #1a1a1a;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .ch-footer-booking-info p {
        color: #333;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    /* Note: Update domain here if it changes */
    .ch-footer-booking-info p::after {
        content: " • Visit: cohenhouse.it/book/ • Contact via WhatsApp for bookings";
        display: block;
        margin-top: 4px;
        font-weight: 600;
        color: #C9A227;
    }
    
    .ch-footer-booking-cta {
        display: none;
    }
}
