:root {
    --gp-green-dark: #16332a;
    --gp-green: #1f5c3f;
    --gp-green-light: #2d7a52;
    --gp-cream: #f7f5ef;
    --gp-text: #1a1f1c;
    --gp-text-muted: #5c655f;
    --gp-border: #e4e2d8;
    --gp-gold: #b8925a;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { overflow-anchor: none; }

body {
    font-family: var(--font-body);
    color: var(--gp-text);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 96px; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #16332a;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 96px;
}
.site-logo {
    display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display);
    background: #fff; padding: 10px 18px 18px; border-radius: 0 0 20px 20px;
    align-self: flex-start; position: relative; z-index: 5;
}
.site-logo img { height: 87px; width: auto; }
.site-logo .name { font-size: 16px; font-weight: 600; letter-spacing: 0.5px; line-height: 1.2; color: var(--gp-green-dark); }

@media (max-width: 700px) {
    .site-logo { padding: 6px 12px 12px; border-radius: 0 0 14px 14px; }
    .site-logo img { height: 87px; }
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: rgba(255,255,255,0.82);
    font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Nav dropdown ===== */
.nav-dropdown { position: relative; }
.nav-dropdown .caret { font-size: 9px; margin-left: 3px; opacity: 0.7; }
.dropdown-panel {
    position: absolute; top: calc(100% + 14px); left: 0;
    background: var(--gp-green-dark); border-radius: 10px;
    min-width: 220px; padding: 10px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 60;
}
.nav-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
    display: block; padding: 11px 20px; font-size: 13.5px; font-weight: 500;
    color: rgba(255,255,255,0.8); border-radius: 0;
}
.dropdown-panel a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dropdown-panel .dropdown-viewall {
    border-top: 1px solid rgba(255,255,255,0.12); margin-top: 6px; padding-top: 12px;
    color: var(--gp-gold); font-weight: 600; font-size: 12.5px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 700px) {
    .header-actions { gap: 8px; }
    .lang-dropdown-toggle { padding: 7px 10px; font-size: 12px; }
}
.btn-call {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: #e0503f; color: #fff; flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-call svg { width: 18px; height: 18px; }
.btn-call:hover { background: #c94331; transform: scale(1.06); }
@media (max-width: 700px) {
    .btn-call { width: 34px; height: 34px; }
    .btn-call svg { width: 16px; height: 16px; }
}

.btn-saved {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; flex-shrink: 0; transition: background 0.15s ease;
}
.btn-saved:hover { background: rgba(255,255,255,0.1); }
.btn-saved svg { width: 17px; height: 17px; }
.btn-saved.has-saved svg { fill: var(--gp-gold); stroke: var(--gp-gold); }
.btn-saved-count {
    position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
    background: var(--gp-gold); color: #3a2c14; border-radius: 20px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
@media (max-width: 700px) {
    .btn-saved { width: 34px; height: 34px; }
    .btn-saved svg { width: 15px; height: 15px; }
}

.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.mobile-nav-close { display: none; }
.mobile-social { display: none; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; z-index: 80; position: relative; }
    .main-nav.mobile-open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
        background: var(--gp-green-dark); padding: 110px 8px 40px;
        overflow-y: auto; gap: 0; z-index: 65;
        animation: navFadeIn 0.22s ease;
    }
    .main-nav.mobile-open .mobile-nav-close {
        display: block; position: fixed; top: 22px; right: 24px;
        color: #fff; font-size: 30px; line-height: 1; z-index: 66;
        -webkit-tap-highlight-color: transparent;
    }
    @keyframes navFadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .main-nav.mobile-open > a,
    .nav-dropdown > a {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; box-sizing: border-box; margin: 0 !important;
        padding: 20px 20px !important; font-size: 18px; font-weight: 600; border-radius: 10px;
        color: rgba(255,255,255,0.92);
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s;
    }
    .nav-dropdown { width: 100%; margin: 0; padding: 0; }
    .main-nav.mobile-open > a:active,
    .nav-dropdown > a:active { background: rgba(255,255,255,0.07); }
    .main-nav.mobile-open > a.active { background: rgba(255,255,255,0.08); color: #fff; }
    .main-nav > * { border-bottom: 1px solid rgba(255,255,255,0.09); }
    .main-nav > *:last-child { border-bottom: none; }
    .main-nav > .mobile-social { border-bottom: none; }
    .nav-dropdown .caret {
        font-size: 15px; opacity: 0.7; padding: 8px; margin: -8px;
        transition: transform 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .nav-dropdown.expanded .caret { transform: rotate(90deg); opacity: 1; }
    .mobile-nav-cta { font-size: 18px !important; }
    .dropdown-panel {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: transparent; padding: 0; min-width: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
        border-radius: 0;
    }
    .nav-dropdown.expanded .dropdown-panel { max-height: 600px; padding: 2px 0 10px; }
    .dropdown-panel a {
        display: block; padding: 11px 4px 11px 6px; border-bottom: none;
        font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.6);
        -webkit-tap-highlight-color: transparent;
    }
    .dropdown-panel a:active { color: #fff; }
    .dropdown-panel .dropdown-viewall { border-top: none; margin-top: 0; padding-top: 12px; color: var(--gp-gold); }

    .mobile-social {
        display: flex; gap: 16px; padding: 24px 4px 0; margin-top: 10px;
    }
    .mobile-social a {
        width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
        display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-social a svg { width: 22px; height: 22px; }
}


/* ===== Hero ===== */
.hero {
    position: relative; min-height: 700px; display: flex; align-items: center;
    background-size: cover; background-position: center;
    color: #fff; padding: 20px 0;
}
.hero-home {
    position: relative;
}
.hero-slide-bg {
    position: absolute; inset: 0; background-size: 106% 106%; background-position: center top;
    opacity: 0; transition: opacity 1s ease; z-index: 0;
}
.hero-slide-bg.active { opacity: 1; animation: heroKenBurns 24s ease-in-out infinite alternate; }
@keyframes heroKenBurns {
    from { background-size: 106% 106%; }
    to   { background-size: 120% 120%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-home { animation: none; }
}
/* Inner-page heroes that don't have their own specific photo (About Us, Sites
   index, Guide, etc.) reuse the same hero image set on the homepage, tinted
   with the brand gradient. Pages with their own photo (e.g. a geosite's own
   featured image, via .hero-has-image) are untouched. */
.hero:not(.hero-home):not(.hero-has-image) {
    background-image: linear-gradient(160deg, rgba(31,92,63,0.88), rgba(22,51,42,0.92)), var(--hero-pattern, none) !important;
    background-size: cover !important;
    background-position: center !important;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,25,20,0.35) 0%, rgba(10,25,20,0.15) 40%, rgba(10,25,20,0.75) 100%);
    z-index: 1;
}
/* Note: the faint decorative ::after pattern that used to sit here was
   removed - now that .hero itself shows the full hero photo as its
   background (see the @media rule above), keeping both caused a visible
   "double image" effect (the same photo rendered twice, offset). */
.hero .container { position: relative; z-index: 2; }
.hero-home .container { max-width: none; margin: 0; padding-left: 160px; padding-right: 24px; }
.hero-home::before {
    background: linear-gradient(180deg, rgba(6,16,13,0.22) 0%, rgba(6,16,13,0.08) 22%, rgba(6,16,13,0.5) 62%, rgba(6,16,13,0.86) 100%);
}
.hero-home .hero-card {
    max-width: 680px; margin-right: auto; text-align: left;
    background: none; border: none; border-radius: 0; padding: 0; backdrop-filter: none;
}
.hero-home .hero-eyebrow, .hero-home h1, .hero-home p.lead, .hero-home .hero-subtitle, .hero-home .hero-paragraph {
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* ===== Hero slideshow content + tabs ===== */
.hero-slide-content { display: none; }
.hero-slide-content.active { display: block; animation: heroSlideFadeIn 0.6s ease; }
@keyframes heroSlideFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-title-slide { text-transform: none; font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }

.hero-slide-tabs {
    position: absolute; right: 40px; bottom: 28px; z-index: 3;
    display: flex; gap: 26px;
}
.hero-slide-tab {
    background: none; border: none; padding: 0 0 8px; cursor: pointer; text-align: left;
    border-bottom: 2px solid rgba(255,255,255,0.25); transition: border-color 0.25s ease;
}
.hero-slide-tab.active { border-bottom-color: var(--gp-gold); }
.hero-slide-tab-num { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.hero-slide-tab.active .hero-slide-tab-num { color: var(--gp-gold); }
.hero-slide-tab-label { display: block; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }

@media (max-width: 900px) {
    .hero-slide-tabs { right: auto; left: 20px; bottom: 16px; gap: 16px; }
}
@media (max-width: 600px) {
    .hero-slide-tabs { left: 0; right: 0; bottom: 0; gap: 0; padding: 0 16px 14px; }
    .hero-slide-tab { flex: 1 1 25%; text-align: center; padding-bottom: 10px; }
    .hero-slide-tab-num { font-size: 15px; margin-bottom: 0; }
    .hero-slide-tab-label { display: none; }
}
.hero-home .hero-eyebrow {
    background: rgba(10,28,22,0.55); padding: 9px 18px; border-radius: 20px;
    backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,0.12);
    text-shadow: none; width: fit-content;
}
@media (max-width: 1100px) {
    .hero-home .container { padding-left: 60px; }
}
@media (max-width: 900px) {
    .hero-home .container { padding-left: 24px; }
}
.hero-card {
    max-width: 560px; margin-right: auto; text-align: left;
    background: rgba(10,28,22,0.72); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px; padding: 40px 36px; backdrop-filter: blur(2px);
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 10px; width: fit-content;
    font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gp-gold);
    margin-bottom: 20px; font-weight: 700;
}
.hero-has-image .hero-eyebrow {
    background: rgba(10,28,22,0.55); padding: 9px 18px; border-radius: 20px;
    backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,0.12);
}
.hero-eyebrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-eyebrow-line { flex: 1; height: 1px; background: var(--gp-gold); opacity: 0.6; min-width: 20px; }
.hero h1 {
    font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 58px);
    font-weight: 600; line-height: 1.05; margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--gp-gold); display: block; }
.hero-divider { width: 50px; height: 3px; background: var(--gp-gold); border-radius: 2px; margin-bottom: 22px; }
.hero p.lead { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 30px; line-height: 1.6; max-width: 640px; }

/* Homepage hero: bold uppercase title + subtitle + paragraph layout */
.hero-home .hero-title-block {
    font-family: 'Poppins', var(--font-body); font-weight: 800; text-transform: uppercase;
    font-size: clamp(56px, 9vw, 110px); line-height: 0.95; letter-spacing: 0.5px;
    color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-home .hero-subtitle {
    font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: #fff;
    margin-bottom: 32px; line-height: 1.4;
}
.hero-home .hero-subtitle .subtitle-break { display: none; }
@media (max-width: 700px) {
    .hero-home .hero-subtitle .subtitle-break { display: block; content: ''; }
}
.hero-home .hero-paragraph {
    font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.7;
    max-width: 480px; margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 30px; font-size: 14.5px; font-weight: 600; }
.btn-primary { background: var(--gp-green-light); color: #fff; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }

@media (max-width: 700px) {
    .hero-card { padding: 26px 22px; max-width: 100%; border-radius: 16px; }
    .hero-eyebrow { font-size: 11px; letter-spacing: 1.5px; gap: 8px; margin-bottom: 16px; }
    .hero-eyebrow svg { width: 15px; height: 15px; }
    .hero-eyebrow-line { display: none; }
    .hero h1 { font-size: clamp(38px, 12vw, 48px) !important; margin-bottom: 14px; }
    .hero-divider { margin-bottom: 16px; }
    .hero p.lead { font-size: 14.5px; margin-bottom: 24px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}

/* ===== Pillars ===== */
.pillars { background: var(--gp-cream); padding: 64px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { display: flex; gap: 16px; }
.pillar-icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--gp-green);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.pillar h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--gp-text-muted); }

/* ===== Section headers ===== */
.section { padding: 80px 0; }

/* ===== Section separator ===== */
.section-separator { height: 1px; background: var(--gp-border); }

/* ===== Homepage intro split (two images + text) ===== */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-split-images { display: flex; gap: 16px; }
.intro-split-images img { width: 290px; height: 480px; max-width: 100%; object-fit: cover; border-radius: 0; flex-shrink: 0; }
.intro-split-text .section-eyebrow { color: var(--gp-gold); }
.intro-split-text h2 { font-family: var(--font-display); font-size: clamp(28px,3.2vw,40px); font-weight: 700; margin: 10px 0 20px; line-height: 1.2; }
.intro-split-text p { font-size: 15.5px; color: var(--gp-text-muted); line-height: 1.7; margin-bottom: 28px; }
@media (max-width: 960px) {
    .intro-split { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
    .intro-split-images { gap: 10px; }
    .intro-split-images img { width: calc(50% - 5px); height: auto; aspect-ratio: 290 / 480; object-position: center top; }
}

/* ===== Categories split (text + icon card grid) ===== */
.categories-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.categories-text .section-eyebrow { color: var(--gp-gold); }
.categories-text h2 { font-family: var(--font-display); font-size: clamp(32px,4vw,46px); font-weight: 700; margin: 8px 0 22px; line-height: 1.08; }
.categories-text p { font-size: 15.5px; color: var(--gp-text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }
.featured-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
    .featured-cta-row { flex-wrap: nowrap; gap: 8px; }
    .featured-cta-row .btn { flex: 1 1 0; padding: 11px 10px; font-size: 12.5px; justify-content: center; white-space: nowrap; }
}
.featured-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding: 22px 0; margin-bottom: 28px; border-top: 1px solid var(--gp-border); border-bottom: 1px solid var(--gp-border); }
.featured-stats-row b { display: block; font-family: var(--font-display); font-size: clamp(20px,2.4vw,28px); font-weight: 700; color: var(--gp-green-dark); line-height: 1; margin-bottom: 6px; }
.featured-stats-row span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; color: var(--gp-text-muted); line-height: 1.3; }
@media (max-width: 700px) {
    .featured-stats-row { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}
.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.category-tile {
    background: var(--gp-green-dark); color: #fff; border-radius: 14px;
    padding: 30px 26px; display: block; transition: transform 0.2s;
}
.category-tile:hover { transform: translateY(-4px); }
.category-tile.category-tile-accent { background: var(--gp-green); }
.category-tile-icon {
    display: block; width: 46px; height: 46px; color: var(--gp-gold); margin-bottom: 22px;
}
.category-tile-icon svg { width: 100%; height: 100%; }
.category-tile h4 {
    font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 12px;
    padding-bottom: 12px; border-bottom: 2px solid var(--gp-gold); display: inline-block;
}
.category-tile p { font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.6; }
@media (max-width: 960px) {
    .categories-split { grid-template-columns: 1fr; gap: 36px; }
    .categories-text p { max-width: none; }
}
@media (max-width: 700px) {
    .categories-grid { grid-template-columns: 1fr; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13px; color: var(--gp-text-muted); padding: 18px 0;
}
.breadcrumb a { color: var(--gp-text-muted); }
.breadcrumb a:hover { color: var(--gp-green); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--gp-text); font-weight: 600; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-eyebrow { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gp-green); font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.section-head .view-all { font-size: 13.5px; font-weight: 600; color: var(--gp-green); border-bottom: 1px solid var(--gp-green); padding-bottom: 2px; }

/* ===== Geosite cards ===== */
.geosite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.geosite-card { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 3/4; }
.geosite-save-btn {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(10,25,20,0.5); border: none; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s ease;
}
.geosite-save-btn:hover { background: rgba(10,25,20,0.75); }
.geosite-save-btn svg { width: 16px; height: 16px; transition: fill 0.15s ease, stroke 0.15s ease; }
.geosite-save-btn.is-saved svg { fill: var(--gp-gold); stroke: var(--gp-gold); }

.save-geosite-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--gp-border); background: #fff;
    color: var(--gp-text); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 20px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.save-geosite-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: fill 0.15s ease, stroke 0.15s ease; }
.save-geosite-btn:hover { border-color: var(--gp-green); }
.save-geosite-btn.is-saved { border-color: var(--gp-gold); background: #fdf7ea; }
.save-geosite-btn.is-saved svg { fill: var(--gp-gold); stroke: var(--gp-gold); }
.save-geosite-btn.is-saved .save-geosite-btn-label::after { content: " \2713"; }
.geosite-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); }
.geosite-card:hover img { transform: scale(1.09); }
.geosite-card .overlay { transition: background 0.3s; }
.geosite-card:hover .overlay { background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.82) 100%); }
.geosite-card h4 { transition: transform 0.3s; }
.geosite-card:hover h4 { transform: translateY(-2px); }
.geosite-card .overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%); color: #fff;
}
.geosite-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.geosite-card .loc { font-size: 11.5px; opacity: 0.9; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.geosite-card .loc svg { flex-shrink: 0; }
.geosite-card .cat {
    font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    color: var(--gp-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.geosite-card.no-image { background: var(--gp-green); }

/* Category cards have longer description text than regular geosite cards,
   so give them more breathing room instead of the tighter 3:4 crop. */
.category-card { aspect-ratio: 3/4; }
.category-card .overlay { padding-bottom: 28px; }
@media (max-width: 700px) {
    .category-card { aspect-ratio: unset; min-height: 320px; }
}

/* ===== Discover / Activities ===== */
.discover { background: var(--gp-green-dark); color: #fff; padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-block { padding: 10px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-block:last-child { border-right: none; }
.stat-number { font-family: var(--font-display); font-size: clamp(42px, 5vw, 64px); font-weight: 600; color: var(--gp-gold); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); }
.discover-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 34px; }
.discover-item { text-align: center; }
.discover-item .icon-circle {
    width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px;
    background: rgba(255,255,255,0.05); transition: background 0.2s;
}
.discover-item:hover .icon-circle { background: var(--gp-green-light); border-color: var(--gp-green-light); }
.discover-item span { font-size: 13px; font-weight: 500; }

/* ===== Watch & Read section (Kinabalu-style) ===== */
.watch-read-section { background: var(--gp-cream); }
.watch-read-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.watch-read-head .section-eyebrow { justify-content: center; margin-bottom: 14px; }
.watch-read-head h2 { font-family: var(--font-display); font-size: clamp(26px,3.4vw,44px); font-weight: 700; line-height: 1.1; margin-bottom: 14px; white-space: nowrap; }
.watch-read-head p { font-size: 15px; color: var(--gp-text-muted); line-height: 1.6; white-space: nowrap; }

.watch-read-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; align-items: stretch; }

.watch-card { background: var(--gp-green-dark); border-radius: 20px; padding: 30px; color: #fff; display: flex; flex-direction: column; }
.watch-card-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); }
.watch-card h3 { font-family: var(--font-display); font-size: clamp(22px,2.6vw,28px); font-weight: 700; margin: 10px 0 20px; line-height: 1.2; }
.watch-card-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.watch-card-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.watch-card-caption { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 18px; line-height: 1.5; }

.read-card {
    position: relative; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center;
    background-color: var(--gp-green); min-height: 340px; display: flex; align-items: flex-end;
}
.read-card::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,25,20,0.1) 0%, rgba(10,25,20,0.55) 100%); }
.read-card-panel {
    position: relative; z-index: 1; background: #fff; border-radius: 16px; margin: 20px; padding: 28px 26px;
    text-align: center; box-shadow: 0 20px 45px rgba(0,0,0,0.25); width: calc(100% - 40px);
}
.read-card-heart { display: block; font-size: 20px; color: var(--gp-gold); margin-bottom: 8px; }
.read-card-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--gp-text-muted); margin-bottom: 10px; }
.read-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--gp-text); }
.read-card-desc { font-size: 13.5px; color: var(--gp-text-muted); line-height: 1.6; margin-bottom: 22px; }
.read-card-actions { display: flex; flex-direction: column; gap: 10px; }
.read-card-actions .btn { padding: 12px 20px; font-size: 13.5px; justify-content: center; width: 100%; }
.read-card-actions .btn-outline { border-color: var(--gp-border); color: var(--gp-text); }
.read-card-actions .btn-outline:hover { border-color: var(--gp-green); color: var(--gp-green); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

@media (max-width: 900px) {
    .watch-read-grid { grid-template-columns: 1fr; }
    .read-card { min-height: 280px; }
    .watch-read-head h2,
    .watch-read-head p { white-space: normal; text-wrap: balance; }
}
@media (max-width: 600px) {
    .watch-card { padding: 22px; border-radius: 16px; }
    .read-card-panel { margin: 14px; padding: 22px 18px; }
    .read-card-actions { flex-direction: column; }
    .read-card-actions .btn { width: 100%; justify-content: center; }
}

/* ===== News + Gallery split ===== */
.split-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.news-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gp-border); }
.news-item:first-child { padding-top: 0; }
.news-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.news-item .date { font-size: 12px; color: var(--gp-text-muted); margin-bottom: 4px; }
.news-item h4 { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.gallery-tile { position:relative; display:block; border-radius:10px; overflow:hidden; background:var(--gp-cream); }
.gallery-tile img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.gallery-tile-overlay {
    position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
    padding:14px; background:linear-gradient(180deg, transparent 40%, rgba(10,25,20,0.85) 100%);
    opacity:1; pointer-events:none;
}
a.gallery-tile:hover img,
.gallery-tile-static:hover img,
.gallery-tile-video:hover img { transform:scale(1.06); }
.gallery-tile-tag {
    display:inline-block; align-self:flex-start; background:var(--gp-gold); color:#3a2c14; font-size:10px;
    font-weight:700; text-transform:uppercase; letter-spacing:0.4px; padding:4px 10px; border-radius:20px; margin-bottom:6px;
}
.gallery-tile-title {
    color:#fff; font-size:12.5px; font-weight:600; line-height:1.35; text-align:left;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; text-overflow:ellipsis;
}
.gallery-item-hidden { display: none !important; }

@media (max-width: 900px) {
    .gallery-grid-linked { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 600px) {
    .gallery-grid-linked { grid-template-columns: repeat(2,1fr) !important; }
}

/* ===== Visitor info bar ===== */
.visitor-bar { background: var(--gp-cream); padding: 44px 0; }
.visitor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.visitor-item .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gp-green); font-weight: 700; margin-bottom: 6px; }
.visitor-item .value { font-size: 15px; font-weight: 500; }

/* ===== Map download (Lenggong-style full-bleed) ===== */
.map-download {
    position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; background-size: cover; background-position: center;
    padding: 60px 24px;
}
.map-download::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,25,20,0.55) 0%, rgba(10,25,20,0.75) 100%);
}
.map-download .inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.map-download .eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gp-gold); margin-bottom: 16px; font-weight: 600; }
.map-download h2 { font-family: var(--font-display); font-size: clamp(28px,4vw,42px); margin-bottom: 18px; }
.map-download p { font-size: 15.5px; color: rgba(255,255,255,0.88); margin-bottom: 30px; line-height: 1.6; }

/* ===== Partners ===== */
.partners-strip { padding: 50px 0; border-top: 1px solid var(--gp-border); }
.partners-heading { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 34px; }
.partners-heading .line { flex: 1; max-width: 320px; height: 1px; background: var(--gp-gold); }
.partners-heading .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gp-gold); flex-shrink: 0; }
.partners-heading .label { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--gp-green); white-space: nowrap; }
.partners-row { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; }
.partners-row img { height: 130px; width: auto; object-fit: contain; }

/* ===== Footer ===== */
.site-footer {
    background-color: var(--gp-green-dark); background-repeat: no-repeat; background-position: bottom right; background-size: cover;
    color: rgba(255,255,255,0.75); padding: 70px 0 24px; position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; position: relative; z-index: 1; }
.footer-logo-icon { width: 54px; height: 54px; color: var(--gp-gold); margin-bottom: 16px; }
.footer-logo-icon svg { width: 100%; height: 100%; }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-brand-col p { font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
    color: var(--gp-gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 10px; padding-bottom: 12px; position: relative;
}
.footer-col h5::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 1px; background: var(--gp-gold);
}
.footer-col h5::before {
    content: ''; position: absolute; left: 40px; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gp-gold);
}
.footer-col { margin-top: 6px; }
.footer-col a {
    display: block; font-size: 13.5px; margin-bottom: 12px; color: rgba(255,255,255,0.75);
    padding-left: 16px; position: relative;
}
.footer-col a::before { content: '›'; position: absolute; left: 0; color: var(--gp-gold); font-weight: 700; }
.footer-col a:hover { color: #fff; }
.footer-social-col .footer-social-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-social-link { display: flex; align-items: center; justify-content: center; padding-left: 0; margin-bottom: 0; }
.footer-social-link::before { content: none; }
.footer-social-icon {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gp-gold); color: var(--gp-gold);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 9px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
    display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.5);
    flex-wrap: wrap; gap: 10px; position: relative; z-index: 1;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 28px; }
    .geosite-grid { grid-template-columns: repeat(2, 1fr); }
    .discover-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; }
    .split-grid { grid-template-columns: 1fr; }
    .visitor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 600px) {
    .partners-heading .line { max-width: 60px; }
    .partners-heading .label { font-size: 12px; letter-spacing: 1px; }
    .partners-row { gap: 28px; }
    .partners-row img { height: 60px; }
    .footer-social-col .footer-social-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* Broad safety net: most inner pages (Contact, Geoproducts, Education, News,
   Geoguides, Plan Your Visit, About, Organisation, etc.) use inline
   grid-template-columns for 2/3/4-column layouts. On phones these need to
   collapse to a single column, so this catches all of them without having
   to hunt down every inline style individually. */
@media (max-width: 700px) {
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .section { padding: 44px 0; }
    .hero:not(.hero-home) { min-height: 200px !important; padding: 40px 0 !important; }
    .hero:not(.hero-home) h1 { font-size: clamp(24px, 7vw, 30px) !important; }
    .hero:not(.hero-home) .hero-eyebrow { font-size: 11px !important; margin-bottom: 10px !important; }
    .hero.hero-home { min-height: 500px; padding-bottom: 40px; }
    .hero.hero-home h1 { font-size: clamp(32px, 9vw, 44px) !important; }
    .map-download { min-height: 380px !important; padding: 40px 20px; }
    .container { padding: 0 18px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important; row-gap: 30px;
    }
    .footer-grid > *:nth-child(1) { grid-column: 1 / -1; }
    .footer-grid > *:nth-child(4) { grid-column: 1 / -1; }
    .discover-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== Scroll-reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Lazy-load blur-up effect ===== */
img { transition: filter 0.4s ease; }
img[loading="lazy"] { filter: blur(6px); }
img[loading="lazy"].loaded { filter: blur(0); }

/* ===== Back to top button ===== */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: var(--gp-green-dark); color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gp-green); }
@media (max-width: 700px) {
    .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ===== PWA install banner ===== */
.pwa-install-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 440px; margin: 0 auto;
    background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.18); border: 1px solid var(--gp-border);
    padding: 14px 16px; display: flex; align-items: center; gap: 12px;
    animation: pwaSlideUp 0.35s ease;
}
.pwa-install-banner[hidden] { display: none; }
.pwa-install-banner img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.pwa-install-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-install-text strong { font-size: 13.5px; color: var(--gp-text); }
.pwa-install-text span { font-size: 12px; color: var(--gp-text-muted); line-height: 1.35; }
.pwa-install-dismiss {
    position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--gp-green-dark); color: #fff; border: 2px solid #fff; font-size: 16px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
@keyframes pwaSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 500px) {
    .pwa-install-banner { flex-wrap: wrap; }
    .pwa-install-text { flex-basis: 100%; order: 3; }
}

/* Leaflet map (geosites listing page): its internal panes/popups can use
   z-index up to ~700, which otherwise renders above the mobile nav overlay
   (z-index 65). Capping the map's own stacking context here keeps it -
   and everything inside it - safely below any fixed site UI. */
.leaflet-container { z-index: 1; }

/* ===== Top bar (scrolls away with the page, only .site-header stays sticky) ===== */
.top-bar { background: var(--gp-green-dark); border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 24px; font-size: 11px; letter-spacing: 1.2px; font-weight: 600;
    color: rgba(255,255,255,0.75); text-transform: uppercase;
}
@media (max-width: 900px) {
    .top-bar-inner span:last-child { display: none; }
    .top-bar-inner { font-size: 10px; padding: 7px 16px; }
}

/* ===== Search toggle button ===== */
.btn-search-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
    background: transparent; color: #fff; cursor: pointer; flex-shrink: 0;
    transition: background 0.15s ease;
}
.btn-search-toggle svg { width: 17px; height: 17px; }
.btn-search-toggle:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 700px) {
    .btn-search-toggle { width: 34px; height: 34px; }
    .btn-search-toggle svg { width: 15px; height: 15px; }
}

/* ===== Language dropdown ===== */
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    padding: 9px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
    letter-spacing: 0.4px; cursor: pointer;
}
.lang-dropdown-toggle svg { transition: transform 0.2s ease; }
.lang-dropdown.open .lang-dropdown-toggle svg { transform: rotate(180deg); }
.lang-dropdown-panel {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px;
    background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 60;
}
.lang-dropdown.open .lang-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown-panel a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
    color: var(--gp-text); font-size: 14px; font-weight: 500; text-decoration: none;
}
.lang-dropdown-panel a:hover { background: var(--gp-cream); }
.lang-dropdown-panel a.active { color: var(--gp-green); font-weight: 700; }
.lang-dropdown-panel .lang-code {
    font-size: 10.5px; font-weight: 700; color: var(--gp-text-muted); width: 22px; flex-shrink: 0;
}

/* ===== Search overlay modal ===== */
.search-overlay {
    position: fixed; inset: 0; z-index: 200; background: rgba(10,20,16,0.6); backdrop-filter: blur(3px);
    display: flex; align-items: flex-start; justify-content: center; padding: 90px 20px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-panel {
    background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
    padding: 26px 28px 22px; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
    transform: translateY(-16px); transition: transform 0.2s ease;
}
.search-overlay.open .search-overlay-panel { transform: translateY(0); }
.search-overlay-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.search-overlay-head span {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--gp-text-muted);
}
.search-overlay-head button {
    background: none; border: none; font-size: 26px; line-height: 1; color: var(--gp-text-muted);
    cursor: pointer; padding: 0 4px;
}
.search-overlay-form {
    display: flex; align-items: center; gap: 12px; border: 2px solid var(--gp-green); border-radius: 10px;
    padding: 12px 16px;
}
.search-overlay-form svg { width: 20px; height: 20px; color: var(--gp-green); flex-shrink: 0; }
.search-overlay-form input {
    border: none; outline: none; font-size: 16px; width: 100%; font-family: var(--font-body); color: var(--gp-text);
}
.search-overlay-hint { margin-top: 14px; font-size: 12.5px; color: var(--gp-text-muted); line-height: 1.5; }
@media (max-width: 700px) {
    .search-overlay { padding: 70px 16px; }
    .search-overlay-panel { padding: 20px 20px 18px; }
}

/* Many public form/content pages (about, contact, education, get-involved,
   organisation, plan-your-visit, song-mascot) use an inline 2-column grid
   for side-by-side fields or content blocks. Force these to stack on
   mobile instead of editing every file individually. */
@media (max-width: 640px) {
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
