/*
Theme Name: Cieloventana
Theme URI: https://cieloventana.no
Author: Soppen Development
Description: Innovativt tema for Cieloventana ferieboliger i Cabo Roig, Spania. Finn.no-integrasjon, moderne design.
Version: 2.0.0
License: Private
Text Domain: cieloventana
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --color-primary: #0C1D2C;
    --color-primary-light: #1E3A5F;
    --color-secondary: #F4A261;
    --color-accent: #E76F51;
    --color-accent-light: #f0856d;
    --color-sand: #F8F4F0;
    --color-cream: #FFF9F5;
    --color-white: #ffffff;
    --color-dark: #1a1a2e;
    --color-text: #3d3d4e;
    --color-muted: #8b8b9e;
    --color-success: #2ecc71;
    --color-ocean: #1a6b8a;

    --gradient-sunset: linear-gradient(135deg, #F4A261 0%, #E76F51 50%, #c44536 100%);
    --gradient-ocean: linear-gradient(135deg, #0C1D2C 0%, #1E3A5F 50%, #1a6b8a 100%);
    --gradient-warm: linear-gradient(135deg, #FFF9F5 0%, #F8F4F0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 40px rgba(244,162,97,0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'DM Sans', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --header-height: 80px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.3s var(--ease-out-expo); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

/* ==========================================================================
   Header - Glassmorphism
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.site-header.hero-visible {
    background: rgba(12, 29, 44, 0.2);
    border-bottom-color: rgba(255,255,255,0.1);
}

.site-header.hero-visible .site-logo,
.site-header.hero-visible .main-nav a,
.site-header.hero-visible .menu-toggle {
    color: white;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo .logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.main-nav a {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--color-text);
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out-expo);
}

.main-nav a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-primary);
}

.main-nav .nav-cta a {
    background: var(--color-accent);
    color: white !important;
    padding: 0.5rem 1.5rem;
}
.main-nav .nav-cta a:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: 1rem;
}
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, border-color 0.3s;
}
.lang-btn:hover {
    opacity: 0.8;
}
.lang-btn.active {
    opacity: 1;
    border-color: var(--color-secondary);
}
.site-header.hero-visible .lang-btn {
    opacity: 0.6;
    border-color: transparent;
}
.site-header.hero-visible .lang-btn.active {
    opacity: 1;
    border-color: rgba(255,255,255,0.6);
}
.lang-btn svg {
    display: block;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0.5rem;
    line-height: 1;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

@media (max-width: 900px) {
    .menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 400px);
        height: 100vh;
        background: var(--color-white);
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
        transition: right 0.5s var(--ease-out-expo);
        z-index: 1001;
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
        color: var(--color-primary) !important;
    }

    .main-nav a:hover {
        background: var(--color-sand);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   Hero - Cinematic Full-Screen
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s var(--ease-out-expo);
}

.hero.loaded .hero-media img {
    transform: scale(1);
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12,29,44,0.3) 0%, rgba(12,29,44,0.1) 40%, rgba(12,29,44,0.5) 100%),
        linear-gradient(90deg, rgba(12,29,44,0.4) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 720px;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.2s var(--ease-out-expo) forwards;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s 0.4s var(--ease-out-expo) forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 560px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s 0.6s var(--ease-out-expo) forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s 0.8s var(--ease-out-expo) forwards;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroFadeUp 0.8s 1.2s var(--ease-out-expo) forwards;
    opacity: 0;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(231,111,81,0.3);
}
.btn--primary:hover {
    background: var(--color-accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231,111,81,0.4);
}

.btn--glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn--glass:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn--finn {
    background: #0063FB;
    color: white;
    box-shadow: 0 4px 16px rgba(0,99,251,0.3);
    font-size: 1rem;
    padding: 1rem 2.5rem;
}
.btn--finn:hover {
    background: #0050cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,99,251,0.4);
}

.btn--finn svg {
    width: 20px;
    height: 20px;
}

.btn--lg {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Property Cards - Modern Grid
   ========================================================================== */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.property-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

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

.property-card-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-card-finn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0063FB;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s;
}

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

.property-card-body {
    padding: 1.5rem;
}

.property-card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.property-card-body h3 a {
    color: inherit;
}
.property-card-body h3 a:hover {
    color: var(--color-accent);
}

.property-card-location {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.property-card-meta {
    display: flex;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.property-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--color-text);
}

.property-card-meta-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.property-card-cta {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 0.75rem;
}

.property-card-cta .btn {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   About / Features Section
   ========================================================================== */

.features-section {
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244,162,97,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.features-section h2,
.features-section .section-label {
    color: white;
}

.features-section .section-header p {
    color: rgba(255,255,255,0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-sunset);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
    background: var(--color-sand);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-author {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   CTA / Booking Strip
   ========================================================================== */

.cta-section {
    background: var(--gradient-sunset);
    color: white;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.newsletter-section h2 { color: white; }

.newsletter-section p {
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    white-space: nowrap;
    border-radius: var(--radius-full);
}

@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 0.75rem;
    }
    .newsletter-form input[type="email"] {
        text-align: center;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.6);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    color: white;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li { margin-bottom: 0.6rem; }
.footer-section a { color: rgba(255,255,255,0.6); }
.footer-section a:hover { color: var(--color-secondary); }

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Single Property Page
   ========================================================================== */

.property-hero-single {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.property-hero-single .hero-media {
    position: absolute;
    inset: 0;
}

.property-hero-single .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-hero-single .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,29,44,0.8) 0%, rgba(12,29,44,0.2) 50%, rgba(12,29,44,0.3) 100%);
}

.property-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.property-hero-content h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.property-hero-location {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Property stats cards */
.property-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    max-width: 1280px;
}

.property-stat {
    background: var(--color-white);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 130px;
    flex: 1;
}

.property-stat-icon {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.property-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.property-stat-label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Property content layout */
.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 900px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
}

.property-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.property-content h2:first-child {
    margin-top: 0;
}

/* Gallery grid */
.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.property-gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.property-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

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

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--color-sand);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.amenity-item svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* Sidebar booking card */
.property-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.booking-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.06);
}

.booking-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.booking-card-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.booking-card .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.booking-card-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 1.25rem 0;
}

.booking-card-contact {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.booking-card-contact a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: zoom-out;
}

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

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ==========================================================================
   WordPress Overrides
   ========================================================================== */

.entry-content {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }

/* Page transition overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}
