/* ============================================
   THEME IMPORT
   Change the import below to switch themes:
   - themes/default.css    (Warm Minimalist)
   - themes/dark.css       (Modern Dark Mode)
   - themes/romantic.css   (Soft Blush & Rose)
   - themes/elegant.css    (Classic Navy & Gold)
   - themes/forest.css     (Natural Green & Earth)
   ============================================ */
@import url('themes/alabaster.css');

/* Playfair Display for special elements */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile Best Practices */
html {
    /* Prevent overscroll bounce */
    overscroll-behavior: none;

    /* Background color for overscroll areas */
    background-color: var(--color-background);

    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;

    /* Smooth scrolling */
    scroll-behavior: smooth;
}

body {
    /* Prevent overscroll bounce */
    overscroll-behavior-y: none;

    /* Modern viewport units with fallback */
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--color-background);

    /* Safe area insets for notched devices (iPhone X+, etc.) */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);

    /* Prevent horizontal scroll */
    overflow-x: hidden;

    /* Improve text rendering on mobile */
    text-rendering: optimizeLegibility;
}

/* Remove 300ms tap delay on touch devices */
a, button, input, select, textarea, [role="button"] {
    touch-action: manipulation;
}

/* Minimum touch target size (44x44px recommended by Apple/Google) */
@media (pointer: coarse) {
    a, button, input[type="button"], input[type="submit"], .nav-mobile-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   UNIVERSAL COLOR CALCULATIONS
   These apply to ALL themes
   --is-dark: 1 for light themes, -1 for dark themes
   ============================================ */
:root {
    /* Fixed lightness scale for neutrals (0-1) */
    --neutral-l-100: calc(0.5 + 0.47 * var(--is-dark));
    --neutral-l-200: calc(0.5 + 0.39 * var(--is-dark)); /* 0.89 light, 0.11 dark */
    --neutral-l-300: calc(0.5 + 0.30 * var(--is-dark)); /* 0.80 light, 0.20 dark */
    --neutral-l-400: calc(0.5 + 0.21 * var(--is-dark)); /* 0.71 light, 0.29 dark */
    --neutral-l-500: calc(0.5 + 0.10 * var(--is-dark)); /* 0.60 light, 0.40 dark */
    --neutral-l-600: calc(0.5 + 0.01 * var(--is-dark)); /* 0.49 light, 0.51 dark */
    --neutral-l-700: calc(0.5 + 0.12 * var(--is-dark)); /* 0.38 light, 0.62 dark */
    --neutral-l-800: calc(0.5 + 0.25 * var(--is-dark)); /* 0.25 light, 0.75 dark */
    --neutral-l-900: calc(0.5 + 0.38 * var(--is-dark)); /* 0.12 light, 0.88 dark */

    /* Calculation parameters */
    --calc-neutral-chroma: var(--bg-c);
    --calc-chroma-text: 1.5;
    --calc-text-secondary: 0.25;
    --calc-text-muted: 0.35;

    /* === GENERATED COLORS (from theme base values) === */

    /* Main Colors */
    --color-primary: oklch(var(--primary-l) var(--primary-c) var(--primary-h));
    --color-secondary: oklch(calc(var(--primary-l) + (var(--is-dark) * -0.08)) var(--primary-c) var(--primary-h));
    --color-background: oklch(var(--bg-l) var(--bg-c) var(--bg-h));
    --color-surface: oklch(calc(var(--bg-l) + (var(--is-dark) * -0.02)) calc(var(--bg-c) * 0.5) var(--bg-h));

    /* Neutral Tones - Fixed scale with theme hue */
    --color-neutral-100: oklch(var(--neutral-l-100) var(--bg-c) var(--bg-h));
    --color-neutral-200: oklch(var(--neutral-l-200) var(--bg-c) var(--bg-h));
    --color-neutral-300: oklch(var(--neutral-l-300) var(--bg-c) var(--bg-h));
    --color-neutral-400: oklch(var(--neutral-l-400) var(--bg-c) var(--bg-h));
    --color-neutral-500: oklch(var(--neutral-l-500) var(--bg-c) var(--bg-h));
    --color-neutral-600: oklch(var(--neutral-l-600) var(--bg-c) var(--bg-h));
    --color-neutral-700: oklch(var(--neutral-l-700) var(--bg-c) var(--bg-h));
    --color-neutral-800: oklch(var(--neutral-l-800) var(--bg-c) var(--bg-h));
    --color-neutral-900: oklch(var(--neutral-l-900) var(--bg-c) var(--bg-h));

    /* Semantic Colors - Derived from primary */
    --color-text-primary: oklch(var(--primary-l) var(--primary-c) var(--primary-h));
    --color-text-secondary: oklch(calc(var(--primary-l) + (var(--is-dark) * calc(var(--calc-text-secondary) * -1))) calc(var(--primary-c) * var(--calc-chroma-text)) var(--primary-h));
    --color-text-muted: oklch(calc(var(--primary-l) + (var(--is-dark) * calc(var(--calc-text-muted) * -1))) calc(var(--primary-c) * var(--calc-chroma-text)) var(--primary-h));

    /* Borders use neutral scale */
    --color-border: var(--color-neutral-300);
    --color-border-strong: var(--color-text-primary);
}

/* ============================================
   THEME CONFIGURATION
   Edit these values to customize the design
   ============================================ */
:root {

    /* === TYPOGRAPHY === */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes (scale from Refactoring UI) */
    --text-sm: 0.875rem;                /* 14px - labels, meta */
    --text-base: 1rem;                  /* 16px - body text */
    --text-lg: 1.25rem;                 /* 20px - h4 */
    --text-lg-m: 2rem;                  /* 32px - h3 mobile */      
    --text-xl: 2.25rem;                 /* 36px - h3 */
    --text-xxl: 3rem;                   /* 48px - h2 mobile */
    --text-3xl: 3.75rem;                /* 60px - h2 */
    --text-display: 4.5rem;             /* 72px - h1 */

    /* === SPACING === */
    --space-xs: 0.25rem;                /* 4px */
    --space-sm: 0.5rem;                 /* 8px */
    --space-md: 1rem;                   /* 16px */
    --space-lg: 1.5rem;                 /* 24px */
    --space-xl: 2rem;                   /* 32px */
    --space-2xl: 3rem;                  /* 48px */
    --space-3xl: 4rem;                  /* 64px */
    --space-4xl: 6rem;                  /* 96px */

    /* === LAYOUT === */
    --max-width: 1200px;
    --max-width-content: 900px;
    --max-width-text: 800px;
    --max-width-narrow: 600px;

    /* === BORDERS & RADIUS === */
    --border-width: 1.5px;
    --border-width-thick: 2px;
    --border-width-accent: 3px;
    --border-width-timeline-accent: 4px;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;

    /* === SHADOWS === */
    --shadow-sm: 0 4px 12px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);

    /* === TIMELINE === */
    --timeline-line-width: 2px;
    --timeline-dot-size: 14px;
    --timeline-dot-border: 3px;

    /* === TRANSITIONS === */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Heading Styles */
h1 {
    font-size: var(--text-display);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h4 {
    font-size: var(--text-lg-m);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Main Content */
.main-content {
    min-height: 100vh;
}

/* Home Two-Column Layout (Desktop) */
.home-layout {
    min-height: 100vh;
}

.home-photo-column {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
}


.home-photo-sticky {
    width: 100%;
    height: 100%;
}

.home-photo-sticky img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-content-column {
    margin-left: 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.home-content-column .hero-with-photo {
    min-height: 100vh;
    padding: var(--space-xl);
    justify-content: center;
}

.home-content-column .hero-photo {
    display: none;
}

/* Scroll fade-in for desktop sections */
.home-content-column .section,
.home-content-column .rsvp-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.home-content-column .section.visible,
.home-content-column .rsvp-container.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .home-photo-column {
        display: none;
    }

    .home-content-column {
        margin-left: 0;
        width: 100%;
    }

    .home-content-column .hero-photo {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background-color: transparent;
}

.hero-with-photo {
    min-height: 100vh;
    padding-top: var(--space-xl);
    gap: var(--space-2xl);
}

.hero-photo {
    max-width: 600px;
    width: 100%;
    order: -1;
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.hero-content {
    margin-bottom: var(--space-2xl);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    margin-bottom: var(--space-md);
}

.hero-ampersand {
    font-style: italic;
    opacity: 0.75;
    margin: 0 0.05em;
}

.hero-subtitle {
    font-weight: var(--font-weight-regular);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.hero-date {
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
}

/* Hero Fade-In Animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-photo {
    animation: heroFadeIn 0.8s ease-out both;
}

.hero-content {
    animation: heroFadeIn 0.8s ease-out 0.15s both;
}

.countdown,
.rsvp-container {
    animation: heroFadeIn 0.8s ease-out 0.3s both;
}

/* RSVP Button */
.rsvp-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl);
}



.rsvp-button {
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    background-color: var(--color-primary);
    color: var(--color-background);
    font-family: 'Playfair Display', serif;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform var(--transition-normal);
}

.rsvp-button:hover {
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15),
                0 0 30px var(--color-primary);
}

/* Countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    max-width: var(--max-width-text);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-weight: var(--font-weight-light);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.countdown-label {
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* Sections */
.section {
    padding: 0 var(--space-xl) var(--space-2xl);
}

/* Photo Section */
.photo-section {
    padding: var(--space-2xl) var(--space-xl);
}

.photo-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.photo-item {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.photo-item-large {
    aspect-ratio: 16/9;
}

/* ============================================
   TIMELINE - DESKTOP & MOBILE SEPARATE
   ============================================ */

/* Shared Heading */
.timeline-heading {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* ========== DESKTOP TIMELINE ========== */
.timeline-desktop {
    position: relative;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Single vertical line for entire timeline */
.timeline-desktop .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: var(--timeline-line-width);
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.timeline-desktop .timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline-desktop .timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.timeline-desktop .timeline-dot {
    position: absolute;
    left: 50%;
    top: var(--space-sm);
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background-color: var(--color-surface);
    border: var(--timeline-dot-border) solid var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Time */
.timeline-desktop .timeline-time {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: var(--timeline-dot-size);
    position: relative;
    top: var(--space-sm);
}

/* Left side items */
.timeline-desktop .timeline-item.left .timeline-time {
    text-align: right;
    margin-right: calc(50% + var(--space-xl));
}

.timeline-desktop .timeline-item.left .timeline-card {
    margin-right: calc(50% + var(--space-xl));
    text-align: right;
}

/* Right side items */
.timeline-desktop .timeline-item.right .timeline-time {
    text-align: left;
    margin-left: calc(50% + var(--space-xl));
}

.timeline-desktop .timeline-item.right .timeline-card {
    margin-left: calc(50% + var(--space-xl));
    text-align: left;
}

/* Hide mobile on desktop */
.timeline-mobile {
    display: none;
}

/* Shared timeline card styles */
.timeline-card p {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========== MOBILE TIMELINE ========== */
@media (max-width: 768px) {
    .timeline-heading {
        margin-bottom: var(--space-xl);
    }

    /* Hide desktop on mobile */
    .timeline-desktop {
        display: none;
    }

    /* Mobile timeline container */
    .timeline-mobile {
        display: block;
        position: relative;
        max-width: var(--max-width-narrow);
        padding: 0 var(--space-md);
        margin: 0 auto;
    }

    /* Single vertical line for entire timeline */
    .timeline-mobile .timeline-line {
        position: absolute;
        left: var(--space-md);
        top: 0;
        bottom: 0;
        width: var(--timeline-line-width);
        background-color: var(--color-border);
        transform: translateX(-50%);
    }

    .timeline-mobile .timeline-item {
        position: relative;
        padding-left: 2.5rem;
        margin-bottom: var(--space-xl);
    }

    .timeline-mobile .timeline-item:last-child {
        margin-bottom: 0;
    }

    /* Timeline dot */
    .timeline-mobile .timeline-dot {
        position: absolute;
        left: -7px;
        top: 0;
        width: var(--timeline-dot-size);
        height: var(--timeline-dot-size);
        background-color: var(--color-surface);
        border: var(--timeline-dot-border) solid var(--color-primary);
        border-radius: 50%;
    }

    /* Time */
    .timeline-mobile .timeline-time {
        font-weight: var(--font-weight-medium);
        color: var(--color-text-muted);
        line-height: var(--timeline-dot-size);
        margin-bottom: var(--space-sm);
    }
}

/* Info Section */
.info-section {
    max-width: var(--max-width-text);
    margin: 0 auto;
    text-align: center;
}

.info-content p {
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

/* Content Section */
.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.content-block p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.content-block a {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.venue-name {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary) !important;
}

.venue-address {
    font-style: italic;
}

/* Map Container */
.map-container {
    grid-column: 1 / -1;
}

#map {
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    background-color: transparent;
    padding: var(--space-3xl);
    text-align: center;
    border: var(--border-width-thick) dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.map-placeholder p:first-child {
    margin-bottom: var(--space-md);
}

/* FAQ */
.faq-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item p {
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

.faq-item a {
    color: var(--color-text-primary);
    text-decoration: underline;
}

/* Bus Schedule */
.bus-intro {
    max-width: var(--max-width-text);
    margin: 0 auto var(--space-3xl);
    text-align: center;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Text-based Bus Schedule */
.bus-text-schedule {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.bus-text-section {
    margin-bottom: var(--space-3xl);
}

.bus-text-section:last-child {
    margin-bottom: 0;
}

.bus-text-description {
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.bus-text-time {
    line-height: 2;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.bus-text-time strong {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.bus-text-info {
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    position: relative;
}

.bus-text-info::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.bus-schedule {
    max-width: 1000px;
    margin: 0 auto;
}

.bus-route {
    margin-bottom: var(--space-3xl);
}

.schedule-card {
    background-color: var(--color-surface);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: var(--border-width) solid var(--color-border);
    border-left: var(--border-width-timeline-accent) solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.schedule-times {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.time-item {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.time {
    font-weight: var(--font-weight-medium);
    min-width: 100px;
}

.location {
    color: var(--color-text-secondary);
}

.bus-info {
    max-width: var(--max-width-content);
    margin: var(--space-3xl) auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.info-box {
    background-color: var(--color-surface);
    padding: var(--space-xl);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.info-box li::before {
    content: '—';
    position: absolute;
    left: 0;
}

/* Turisteo Page */
.turisteo-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.turisteo-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.turisteo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.turisteo-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: var(--radius-sm);
}

.turisteo-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.turisteo-link {
    display: inline-block;
    margin-top: var(--space-md);
    color: var(--color-text-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

.turisteo-link:hover {
    color: var(--color-text-secondary);
}

/* Account Number (Index Page) */
.account-number {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    background: var(--color-surface);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-block;
}

.copy-feedback {
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Map */
#map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-sm);
}

/* FAQ Page */
.faq-container p {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.faq-section-title {
    margin-top: var(--space-md);
}

/* Recommendations Page */
.recommendations-container {
    max-width: 900px;
    margin: 0 auto;
}

.place-item {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-surface);
}

.place-item:last-of-type {
    border-bottom: none;
}

.place-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.place-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.place-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.place-content p:last-child {
    margin-bottom: 0;
}

.place-link {
    color: var(--color-text-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

.place-link:hover {
    color: var(--color-text-secondary);
}

.final-note {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    text-align: center;
}

.final-note p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Pinchos Page */
.pinchos-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pincho-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
}

.pincho-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.pincho-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pincho-bar {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin: 0;
}

.pincho-description {
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.pincho-map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
    margin-top: auto;
}

.pincho-map-link:hover {
    color: var(--color-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Headings: two sizes smaller on mobile */
    h1 { font-size: var(--text-xxl); line-height: 1.2; }
    h2 { font-size: var(--text-xl); line-height: 1.2; }
    h3 { font-size: var(--text-lg-m); line-height: 1.3; }
    h4 { font-size: var(--text-lg); line-height: 1.3; }

    .main-content {
        margin-top: 0;
        margin-bottom: 70px;
        min-height: calc(100vh - 70px);
    }

    .hero-with-photo {
        padding-top: var(--space-md);
        gap: var(--space-xl);
        min-height: 100vh;
        min-height: 100svh;
        justify-content: flex-start;
        padding-bottom: 100px;
    }


    .hero-photo {
        max-width: 100%;
    }

    .hero-photo img {
        border-radius: var(--radius-md);
        aspect-ratio: 4/5;
    }

    .rsvp-button {
        padding: var(--space-md) var(--space-2xl);
    }

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

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

    #map {
        height: 400px !important;
    }

    .section {
        padding: 0 var(--space-lg) var(--space-xl);
    }

    .content-section {
        padding: var(--space-xl) var(--space-lg);
    }

    .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .bus-intro {
        margin-bottom: var(--space-xl);
    }

    .bus-text-section {
        margin-bottom: var(--space-2xl);
    }

    .bus-text-description {
        margin-bottom: var(--space-lg);
    }

    .bus-text-time {
        line-height: 1.8;
    }

    .bus-text-info {
        margin-bottom: var(--space-sm);
        padding-left: var(--space-md);
    }

    .schedule-card {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .faq-item {
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .faq-item p {
        line-height: 1.6;
    }

    .timeline-item {
        margin-bottom: var(--space-xl);
    }

    .info-box {
        padding: var(--space-md);
    }

    .turisteo-card {
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .turisteo-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-with-photo {
        gap: var(--space-lg);
    }

    .hero-photo img {
        border-radius: var(--radius-sm);
    }

    .rsvp-button {
        padding: var(--space-sm) var(--space-xl);
    }

    .countdown {
        gap: var(--space-sm);
    }

    #map {
        height: 350px !important;
    }

    .section {
        padding: var(--space-lg) var(--space-md);
    }

    .content-section {
        padding: var(--space-lg) var(--space-md);
    }

    .schedule-card {
        padding: var(--space-sm);
    }

    .bus-route {
        margin-bottom: var(--space-xl);
    }

    .faq-item {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}

/* Lazy Loading with Blur-Up Effect */
.lazy-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
    transition: filter 0.5s ease-out, transform 0.5s ease-out;
}

.lazy-image.loaded {
    filter: blur(0);
    transform: scale(1);
}

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

    .lazy-image {
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
