/* ===========================
   BICOL REGION BLOG — CSS
   Aesthetic: Editorial Magazine
   =========================== */

:root {
    --cream: #f5f0e8;
    --cream-dark: #ede7d9;
    --ink: #1a1410;
    --ink-mid: #3d3530;
    --ink-light: #6b5f55;
    --gold: #c9a84c;
    --gold-light: #e8d090;
    --red: #c0392b;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    width: 0%;
    z-index: 100000;
    transition: width 0.1s ease-out;
    pointer-events: none;
}

/* Watermark */
.site-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg); /* Center and rotate */
    font-family: var(--font-display); /* Use a display font */
    font-size: 8vw; /* Large size, responsive */
    color: rgba(0, 0, 0, 0.05); /* Very subtle, light black */
    pointer-events: none; /* Allow clicks through */
    z-index: 9999; /* Above most content, below modals */
    white-space: nowrap; /* Prevent text wrapping */
    text-transform: uppercase;
    font-weight: 900;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---- LOADER & TRANSITIONS ---- */
.site-loader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(192, 57, 43, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 1.5rem;
}
.loader-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    animation: pulse 1.5s ease-in-out infinite;
}
.loader-text .logo-main { font-size: 1.5rem; }
.loader-text .logo-sub { font-size: 0.7rem; margin-top: 4px; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Page transition overlay */
.page-transition-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden; /* To contain the panels */
}
.page-transition-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 51%; /* Slight overlap to prevent gap */
    background: var(--ink);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1); /* EaseInQuint */
}
.page-transition-panel--top {
    top: 0;
    transform: translateY(-100%);
}
.page-transition-panel--bottom {
    bottom: 0;
    transform: translateY(100%);
}
.page-transition-container.is-entering .page-transition-panel {
    transform: translateY(0);
}
.page-transition-container.is-entering {
    pointer-events: all;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--animation-delay, 0s);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ---- NAV ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26,20,16,0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-main {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.15em;
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--ink-light);
    letter-spacing: 0.3em;
    margin-top: 1px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--red); }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    --mouse-x: 50%;
    --mouse-y: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), rgba(201, 168, 76, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover; /* Ensure the background image covers the entire area */
    background-position: center; /* Center the background image */
}
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 5);
}           


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;    color: var(--gold);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--cream);
    margin-bottom: 2rem;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
}
.hero-desc {
    font-size: 1.25rem;
    color: #E2EF70;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-style: italic;
}
.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--red);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s;
}
.hero-cta:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(192, 57, 43, 0.25);
}
.hero-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(192, 57, 43, 0.15);
}
.hero-cta.magnet-active {
    transition: transform 0.1s ease-out, box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 40%, #1a0f0a 100%);
}

.hero-bg::before {
    content: none; /* Remove the pseudo-element overlay */
}

.hero-bg[style*="--hero-bg-image"] {
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}
.hero-scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(245,240,232,0.4);
    writing-mode: vertical-lr;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- INTRO BAND ---- */
.intro-band {
    background: var(--ink);
    padding: 2.5rem 2rem;
}
.intro-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
.intro-stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    margin-top: 0.3rem;
}
.intro-divider { width: 1px; height: 50px; background: rgba(245,240,232,0.15); }

/* ---- ABOUT ---- */
.about-section { padding: 8rem 2rem; }
.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}
.about-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.about-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-light);
    padding-top: 0.5rem;
    border-top: 2px solid var(--ink);
}
.about-img-wrap {
    overflow: hidden;
    border-radius: 2px;
}
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 2rem;
}
.about-img-wrap {
    grid-column: 1 / -1;
    overflow: hidden;
    border-radius: 2px;
    max-height: 480px;
}
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-title em { font-style: italic; color: var(--red); }
.about-text p {
    color: var(--ink-mid);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ---- PLACES SECTION ---- */
.places-section { padding: 6rem 2rem; background: var(--cream-dark); }
.places-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
}
.section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.places-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    margin-top: 0.5rem;
}
.places-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5px;
    background: var(--ink);
}
.place-card {
    background: var(--cream);
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
    cursor: pointer;
}
.place-card:hover {
    background: var(--white);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}
.place-card.tilt-active {
    transition: transform 0.1s ease-out, box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
}
.card-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--cream-dark);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}
.place-card:hover .card-number { color: rgba(0,0,0,0.06); }
.card-province {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--card-color, var(--red));
    margin-bottom: 0.5rem;
}
.card-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.card-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 1rem;
}
.card-desc { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 1.5rem; }
.card-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
}
.meta-item {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--ink-light);
}
.meta-dot { color: var(--ink-light); font-size: 0.8rem; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--card-color, var(--red));
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: gap 0.2s;
}
.card-link:hover { gap: 0.8rem; }
.card-accent-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--card-color, var(--red));
    transition: width 0.4s ease;
}
.place-card:hover .card-accent-bar { width: 100%; }

/* ---- FEATURE BAND ---- */
.feature-band {
    background: var(--ink);
    padding: 6rem 2rem;
}
.feature-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.feature-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--cream);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.feature-quote cite {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
}

/* ---- PLACE HERO ---- */
.place-hero {
    min-height: 75vh;
    background: var(--place-color, #c0392b);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}
.place-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.place-hero:hover .place-hero-bg { transform: scale(1); }
.place-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.place-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    width: 100%;
}
.place-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
}
.place-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem 0 0;
    margin-right: 2rem;
}
.place-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.place-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
}
.place-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    margin-right: 2rem;
    flex-shrink: 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.back-link:hover { color: white; }
.place-province-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}
.place-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.place-hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}
.place-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 620px;
    line-height: 1.7;
}
.place-hero-nav {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.place-nav-item {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 1.2rem 2rem;
    transition: all 0.2s;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.place-nav-item:hover { background: rgba(255,255,255,0.1); color: white; }

/* ---- CONTENT SECTIONS ---- */
.content-section { padding: 7rem 2rem; }
.content-section.alt-bg { background: var(--cream-dark); }
.content-inner { max-width: 1200px; margin: 0 auto; }
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(26,20,16,0.1);
}
.section-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.3;
    flex-shrink: 0;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-top: 0.25rem;
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.item-card {
    border: 1px solid rgba(26,20,16,0.08);
    background: var(--white);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transform: translateY(-6px) scale(1.01);
}
.item-card-body {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.item-index {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    padding: 0.25rem 0.6rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    align-self: flex-start;
}
.item-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.item-desc { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.65; }

.food-card { border-top: 3px solid transparent; }
.food-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}
.card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.card-img {
    width: 100%;
    height: calc(100% + 60px);
    margin-top: -30px;
    object-fit: cover;
    transition: scale 0.5s ease;
    display: block;
    translate: 0 var(--parallax-y, 0px);
}
.item-card:hover .card-img { scale: 1.06; }

/* ---- FESTIVALS ---- */
.festivals-list { display: flex; flex-direction: column; gap: 2rem; }
.festival-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid rgba(26,20,16,0.1);
    transition: box-shadow 0.3s;
    position: relative;
}
.festival-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.fest-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.fest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}
.fest-month {
    flex-shrink: 0;
    width: 90px;
    padding: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
.fest-body { position: relative; z-index: 2; }
.fest-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.fest-desc { color: var(--ink-mid); line-height: 1.65; }

/* ---- MYTHS ---- */
.myths-section { background: var(--ink); }
.myths-section .section-label { color: var(--gold); }
.myths-section .section-title { color: var(--cream); }
.myths-section .section-header { border-bottom-color: rgba(245,240,232,0.1); }
.myths-list { display: flex; flex-direction: column; gap: 3rem; }
.myth-item { display: flex; gap: 2rem; align-items: flex-start; }
.myth-ornament { font-size: 2.5rem; line-height: 1; flex-shrink: 0; margin-top: 0.2rem; }
.myth-img-wrap {
    width: 100%;
    max-width: 400px;
    height: 200px;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 1rem;
    border: 2px solid rgba(245,240,232,0.1);
}
.myth-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.myth-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.75rem;
}
.myth-desc { color: rgba(245,240,232,0.7); line-height: 1.75; font-size: 1.05rem; }

/* ---- SECTION DIVIDER ---- */
.section-divider { height: 1px; background: rgba(26,20,16,0.08); }

/* ---- OTHER PLACES ---- */
.other-places { padding: 6rem 2rem; background: var(--cream-dark); }
.other-inner { max-width: 1200px; margin: 0 auto; }
.other-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2.5rem;
}
.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
    background: var(--ink);
}
.other-card {
    background: var(--cream);
    min-height: 220px;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 4px solid var(--other-color, var(--red));
}
.other-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}
.other-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}
.other-card:hover .other-card-bg { transform: scale(1.06); }
.other-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.other-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.other-province {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.other-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}
.other-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.65); font-style: italic; margin-bottom: 1rem; }
.other-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.25s;
    align-self: flex-start;
}
.other-card:hover .other-arrow { transform: translateX(6px); }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--ink);
    padding: 4rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-inner .logo-main { color: var(--cream); font-size: 1.4rem; }
.footer-inner .logo-sub { color: var(--ink-light); }
.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 1rem 0;
}
.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}
.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-links span { color: rgba(245,240,232,0.2); }
.footer-copy { font-size: 0.85rem; color: rgba(245,240,232,0.3); margin-top: 1rem; }

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.read-more-link:hover { color: var(--red); border-bottom-color: var(--red); gap: 0.7rem; }
.read-more-link--light { color: rgba(245,240,232,0.5); }
.read-more-link--light:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- DETAIL PAGE ---- */
.detail-hero {
    min-height: 55vh;
    background: var(--place-color, #c0392b);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}
.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.detail-hero:hover .detail-hero-bg { transform: scale(1); }
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 3.5rem;
    width: 100%;
}
.detail-category-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}
.detail-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: white;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.detail-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    max-width: 680px;
    line-height: 1.65;
}
.detail-body {
    background: var(--cream);
    padding: 5rem 2rem;
}
.detail-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}
.detail-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.quick-facts {
    border: 1px solid rgba(26,20,16,0.1);
    background: var(--white);
    padding: 1.75rem;
}
.quick-facts-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-light);
    border-bottom: 1px solid rgba(26,20,16,0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
.quick-fact-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(26,20,16,0.05);
    font-size: 0.88rem;
}
.quick-fact-row:last-child { border-bottom: none; }
.quick-fact-key {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--ink-light);
    text-transform: uppercase;
    flex-shrink: 0;
}
.quick-fact-val { color: var(--ink-mid); text-align: right; font-size: 0.9rem; }
.detail-related { display: flex; flex-direction: column; gap: 0.75rem; }
.related-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
    border: 1px solid rgba(26,20,16,0.08);
    background: var(--white);
    transition: box-shadow 0.2s, transform 0.2s;
}
.related-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateX(3px); }
.related-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.related-img--placeholder { opacity: 0.4; }
.related-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.detail-article { min-width: 0; }
.detail-lead {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(26,20,16,0.08);
}
.detail-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2.5rem 0 1rem;
}
.detail-text {
    font-size: 1.05rem;
    color: var(--ink-mid);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}
.detail-quote {
    border-left: 3px solid var(--gold);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: var(--cream-dark);
}
.detail-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.detail-quote cite {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--ink-light);
    text-transform: uppercase;
}
.detail-fact-box {
    border-left: 3px solid;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: var(--white);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.fact-box-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.detail-fact-box p { font-size: 0.98rem; color: var(--ink-mid); line-height: 1.75; }
.detail-tips {
    background: var(--ink);
    padding: 2rem;
    margin: 2rem 0;
}
.tips-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tips-list li {
    font-size: 0.98rem;
    color: rgba(245,240,232,0.8);
    line-height: 1.65;
    padding-left: 1.25rem;
    position: relative;
}
.tips-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
}
.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26,20,16,0.08);
}
.detail-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(26,20,16,0.12);
    background: var(--white);
    transition: all 0.2s;
    max-width: 48%;
}
.detail-nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-nav-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.detail-nav-btn--next { margin-left: auto; }

@media (max-width: 900px) {
    .detail-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .detail-sidebar { position: static; }
    .detail-body { padding: 3rem 1.25rem; }
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: all 0.25s;
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 1024px) {
    .about-inner { gap: 3rem; }
    .places-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .items-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .content-section { padding: 5rem 2rem; }
    .about-section { padding: 6rem 2rem; }
    .myth-img-wrap { max-width: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
    body { font-size: 16px; }

    /* Nav */
    .nav-links {
        display: flex;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(245,240,232,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(26,20,16,0.08);
        z-index: 99;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.5s cubic-bezier(0.76, 0, 0.24, 1);
        pointer-events: none;
    }
    .nav-links.open {
        clip-path: inset(0 0 0 0);
        pointer-events: all;
    }
    .nav-link {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(26,20,16,0.06);
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-links.open .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.open .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.open .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.open .nav-link:nth-child(5) { transition-delay: 0.3s; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero-content { padding: 3rem 1.25rem; }
    .hero-desc { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-cta { padding: 0.85rem 2rem; }
    .hero-scroll-hint { display: none; }

    /* Intro band */
    .intro-inner { gap: 1.5rem; }
    .intro-divider { display: none; }
    .stat-num { font-size: 2rem; }

    /* About */
    .about-section { padding: 4rem 1.25rem; }
    .about-inner { grid-template-columns: 1fr; gap: 2rem; }
    .about-img-wrap { max-height: 260px; }

    /* Places */
    .places-section { padding: 4rem 1.25rem; }
    .places-grid { grid-template-columns: 1fr; gap: 1.5px; }
    .place-card { padding: 2rem 1.5rem; }
    .card-number { font-size: 3.5rem; margin-bottom: 1rem; }

    /* Feature band */
    .feature-band { padding: 4rem 1.25rem; }

    /* Place hero */
    .place-hero { min-height: 60vh; }
    .place-hero-content { padding: 2.5rem 1.25rem 2rem; }
    .place-hero-tagline { font-size: 1.1rem; }
    .place-hero-desc { font-size: 1rem; }
    .place-hero-nav { flex-wrap: wrap; }
    .place-nav-item { flex: 1; min-width: 50%; text-align: center; padding: 1rem; }
    .place-stat-row { gap: 0; flex-wrap: wrap; }
    .place-stat { padding: 0 1rem 0 0; margin-right: 1rem; }
    .place-stat-divider { margin-right: 1rem; }

    /* Content sections */
    .content-section { padding: 4rem 1.25rem; }
    .section-header { gap: 1rem; margin-bottom: 2.5rem; }
    .section-number { font-size: 2.5rem; }
    .items-grid { grid-template-columns: 1fr; }
    .card-img-wrap { height: 200px; }

    /* Festivals */
    .festival-item { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .fest-month { width: auto; align-self: flex-start; }

    /* Myths */
    .myth-item { flex-direction: column; gap: 1rem; }
    .myth-ornament { font-size: 2rem; }
    .myth-img-wrap { max-width: 100%; height: 180px; }

    /* Other places */
    .other-places { padding: 4rem 1.25rem; }
    .other-grid { grid-template-columns: 1fr; }
    .other-card { padding: 1.75rem; }

    /* Footer */
    .site-footer { padding: 3rem 1.25rem; }
    .footer-links { flex-wrap: wrap; gap: 0.75rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.8rem, 14vw, 4rem); }
    .place-title { font-size: clamp(2.2rem, 12vw, 3rem); }
    .about-title { font-size: clamp(2rem, 8vw, 2.5rem); }
    .place-nav-item { min-width: 50%; font-size: 0.6rem; padding: 0.85rem 0.5rem; }
    .card-meta { flex-wrap: wrap; }
    .intro-inner { flex-direction: column; gap: 1.25rem; }
    .section-header { flex-direction: column; gap: 0.5rem; }
    .section-number { font-size: 2rem; }
    .festival-item { padding: 1.25rem; }
    .fest-name { font-size: 1.2rem; }
    .myth-name { font-size: 1.2rem; }
    .other-title { font-size: 1.4rem; }
}

/* Updates Modal */
.updates-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100001; /* Higher than site-loader */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.updates-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.updates-modal-content {
    background: var(--cream);
    max-width: 600px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
    border-top: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.updates-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--ink-light);
    cursor: pointer;
    transition: color 0.2s;
}

.updates-modal-close:hover {
    color: var(--red);
}

.updates-modal-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.updates-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.update-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(26, 20, 16, 0.1);
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.update-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}

.update-link {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}

.update-link:hover {
    color: var(--ink);
}

.update-description {
    font-size: 0.95rem;
    color: var(--ink-mid);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.updates-modal-acknowledge {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.updates-modal-acknowledge:hover {
    background: var(--red);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .updates-modal-content {
        padding: 1.5rem;
    }
    .updates-modal-title {
        font-size: 1.8rem;
    }
    .update-link {
        font-size: 1rem;
    }
    .update-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 45px; height: 45px; }
}

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100005; /* Above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.is-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox.is-visible .lightbox-content {
    transform: scale(1);
}
.lightbox-caption {
    margin: 20px auto 0;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--cream);
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: var(--red);
}
.lightbox-trigger {
    cursor: zoom-in;
}
