:root {
    --bg: #1c1c1c;
    --bg-deep: #151515;
    --text: #f2f2f2;
    --muted: #b9b9b9;
    --accent: #f2c14e;
    --card: #232323;
    --border: #2d2d2d;
    --tile-text-bg: rgba(0, 0, 0, 0.04);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
    --site-title-size: 1.6rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: #0a0a0a;
    color: var(--text);
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
}

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

@media (min-width: 721px) {

    html,
    body {
        scrollbar-color: var(--accent) rgba(0, 0, 0, 0.15);
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    .split-right::-webkit-scrollbar,
    .immersive-right::-webkit-scrollbar {
        width: 10px;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    .split-right::-webkit-scrollbar-thumb,
    .immersive-right::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 999px;
        border: 2px solid rgba(0, 0, 0, 0.15);
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track,
    .split-right::-webkit-scrollbar-track,
    .immersive-right::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.4rem;
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

label {
    display: block;
    margin-top: 1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

/* ============================================
   IMMERSIVE SPLIT LAYOUT (Homepage)
   ============================================ */

.immersive-layout {
    display: grid;
    grid-template-columns: 50% 50%;
    height: 100vh;
    overflow: hidden;
}

/* Left Panel - Fixed Profile Section */
.immersive-left {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #1c1c1c;
}

.immersive-left-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.immersive-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.05) 40%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.immersive-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.immersive-left-content .adventure-hero-scroll-hint {
    display: none;
}

.immersive-logo {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--site-title-size);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s ease;
}

@media (min-width: 721px) {
    body.immersive-home .immersive-left-content {
        padding-top: 4rem;
    }

    body.immersive-home .immersive-logo {
        position: absolute;
        top: 1rem;
        left: 2rem;
    }
}

.immersive-logo:hover,
.split-left-title:hover,
.mobile-site-title a:hover {
    color: var(--text);
}

.immersive-tagline-block {
    max-width: 400px;
    margin-top: auto;
}

.immersive-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 1.5rem;
}

body.is-ready.immersive-home .immersive-logo {
    animation: fadeRise 0.6s ease-out 0.05s backwards;
}

body.immersive-home .immersive-logo {
    animation: none !important;
}

body.is-ready.immersive-home .immersive-tagline-block {
    animation: fadeRise 0.7s ease-out 0.15s backwards;
}

body.immersive-home .immersive-tagline-block {
    animation: none !important;
}

body.is-ready.immersive-home .adventure-hero-scroll-hint {
    animation: fadeRise 0.7s ease-out 0.35s backwards;
}

@media (min-width: 721px) {
    body.immersive-home .immersive-left-bg {
        transform: scale(1.03);
        animation: slowZoom 18s ease-in-out infinite alternate;
    }
}

.immersive-cta {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.immersive-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Top Right Navigation */
.immersive-nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    transform: none;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

body.admin-quick-edit-active .immersive-nav {
    position: absolute;
}

body.lightbox-open .immersive-nav {
    display: none;
}

body.traditional-layout .immersive-nav {
    right: auto;
    left: 1.5rem;
}

body.edge-nav .immersive-nav {
    right: auto;
    left: calc(50% - 1rem);
    transform: translateX(-100%);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-search:hover {
    opacity: 1;
}

.nav-search svg {
    width: 16px;
    height: 16px;
}

.nav-menu-btn {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Immersive menu */
.immersive-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50vw;
    background: rgba(8, 8, 8, 0.25);
    backdrop-filter: blur(10px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.immersive-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.immersive-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.immersive-menu-links {
    display: grid;
    gap: 1.2rem;
    text-align: center;
}

.immersive-menu-links a {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.immersive-menu.is-open .immersive-menu-links a {
    animation: menuIn 0.45s ease both;
    animation-delay: calc(var(--menu-index, 0) * 0.05s);
}

.immersive-menu-links .menu-group {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

.immersive-menu-links .menu-children {
    display: grid;
    gap: 0.35rem;
}

.immersive-menu-links .menu-child {
    font-size: clamp(1rem, 3vw, 1.6rem);
    letter-spacing: 0.1em;
    color: var(--muted);
    transform: translateX(0.35rem);
}

/* Right Panel - Scrollable Posts */
.immersive-right {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.05);
    background: #fafafa;
    position: relative;
}

.immersive-right::before {
    display: none;
}

.immersive-right::-webkit-scrollbar {
    width: 10px;
}

.immersive-right::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

.immersive-right::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.post-tile {
    display: block;
    position: relative;
    height: 50vh;
    min-height: 300px;
    scroll-snap-align: start;
    overflow: hidden;
    cursor: pointer;
}

/* Stretched link covers the full tile */
.post-tile-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* Title and location links sit above the stretched link */
.post-tile-title-link {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: none;
}

.tile-location-link {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tile-location-link:hover {
    text-decoration: underline;
    opacity: 1;
}

body.immersive-home .post-tile,
body.listing-page .post-tile {
    background: #111;
}

body.immersive-home .post-tile-overlay,
body.listing-page .post-tile-overlay {
    background: none !important;
}

.post-tile.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: saturate(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.post-tile.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
}

body.immersive-home .post-tile.reveal-on-scroll,
body.listing-page .post-tile.reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.post-tile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
    pointer-events: none;
}

.post-tile-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

body.immersive-home .post-tile-image,
body.listing-page .post-tile-image {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.soft-load {
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

/* Keep feature tiles visible immediately to avoid flicker on refresh */
body.immersive-home .post-tile-image.soft-load,
body.listing-page .post-tile-image.soft-load {
    opacity: 1;
    transition: none;
}

.soft-load.is-loaded {
    opacity: 1 !important;
}

/* Ensure gallery images stay visible after animation */
.gallery-grid.immersive img.soft-load.is-loaded {
    opacity: 1 !important;
}

.post-tile:hover .post-tile-image {
    transform: scale(1.01);
    filter: brightness(0.98);
    opacity: 0.92;
}

body.immersive-home .post-tile:hover .post-tile-image,
body.listing-page .post-tile:hover .post-tile-image {
    transform: none;
    filter: none;
    opacity: 1;
}

.post-tile:hover .post-tile-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.6) 100%);
}

body.immersive-home .post-tile:hover .post-tile-overlay,
body.listing-page .post-tile:hover .post-tile-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.55) 100%);
}

body.immersive-home .post-tile:hover .post-tile-content,
body.listing-page .post-tile:hover .post-tile-content {
    transform: none;
}

.post-tile:hover .post-tile-content {
    transform: translateY(-4px);
}

/* Disable hover effects on homepage tiles */
body.immersive-home .post-tile:hover .post-tile-image,
body.listing-page .post-tile:hover .post-tile-image {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

body.immersive-home .post-tile:hover .post-tile-overlay,
body.listing-page .post-tile:hover .post-tile-overlay {
    background: none !important;
}

body.immersive-home .post-tile:hover *,
body.listing-page .post-tile:hover * {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

body.immersive-home .post-tile:hover .post-tile-content,
body.listing-page .post-tile:hover .post-tile-content {
    transform: none !important;
}

.post-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.post-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    z-index: 3;
    pointer-events: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.post-tile:not(.post-tile-no-image) .post-tile-content {
    background: var(--tile-text-bg);
    backdrop-filter: blur(2px);
}

.post-tile.reveal-on-scroll.is-visible .post-tile-content {
    transform: translateY(0);
    opacity: 1;
}

.post-tile-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: var(--text);
}

@media (min-width: 721px) {
    .post-tile-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
}

.post-tile-meta {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.post-tile-meta .tile-location {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.post-tile-meta .tile-meta-sep {
    opacity: 0.5;
    margin: 0 0.1rem;
}

.post-tile-meta .tile-date {
    opacity: 0.75;
}

/* ============================================
   TRADITIONAL LAYOUT (Inner pages)
   ============================================ */

body.traditional-layout {
    background: radial-gradient(circle at top, #222 0%, #151515 60%, #111 100%);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    min-height: 100vh;
    height: 100vh;
}

.split-layout-wide {
    grid-template-columns: 50% 50%;
}

.split-left {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #1c1c1c;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.split-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
}

.split-left-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.05) 40%,
            rgba(0, 0, 0, 0.5) 100%);
}

.split-left-title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--site-title-size);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

@media (min-width: 721px) {
    .split-left-content {
        padding-top: 4rem;
    }

    .split-left-title {
        position: absolute;
        top: 1rem;
        left: 2rem;
    }
}

.split-left-slogan,
.split-left-post-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.3;
    max-width: 400px;
}

.split-left-slogan {
    margin: 0 0 1.5rem;
    margin-top: auto;
}

.split-left-post {
    display: grid;
    gap: 0.6rem;
    margin-top: auto;
}

.split-left-post-title {
    line-height: 1.3;
}

.split-left-post-date {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.split-right {
    overflow-y: auto;
    min-height: 100vh;
    background: #fafafa;
    position: relative;
    z-index: 1;
}

.split-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}

.split-right>* {
    position: relative;
    z-index: 1;
}

.split-right .container {
    padding-top: 2rem;
}

.site-title {
    font-family: var(--font-display);
    font-size: var(--site-title-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-items: flex-start;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.nav-children {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.6rem;
}

.nav-child {
    font-size: 0.75em;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.mobile-site-title {
    display: none;
}

.mobile-top-bar {
    display: none;
}

.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: 3rem 5vw;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 0.5rem;
}

.hero .meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.container {
    padding: 3rem 5vw;
    max-width: 1100px;
    margin: 0 auto;
}

.post-body {
    font-size: 1.05rem;
    color: #333;
    text-align: left;
}

.post-body img {
    max-width: 100%;
    height: auto;
}

.post-body img.align-left {
    float: left;
    max-width: min(45%, 360px);
    margin: 0.25rem 1.2rem 0.9rem 0;
    border-radius: 6px;
}

.post-body img.align-right {
    float: right;
    max-width: min(45%, 360px);
    margin: 0.25rem 0 0.9rem 1.2rem;
    border-radius: 6px;
}

.post-body img.img-size-sm {
    max-width: min(30%, 260px);
}

.post-body img.img-size-md {
    max-width: min(45%, 360px);
}

.post-body img.img-size-lg {
    max-width: min(60%, 520px);
}

.post-body img.img-size-full {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
}

.post-body::after {
    content: "";
    display: block;
    clear: both;
}

.post-body a {
    color: #b8941a;
    text-decoration: underline;
}

.post-body a:hover {
    color: #8a6f14;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.page-gallery {
    margin-top: 2.5rem;
}

.page-gallery .gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin: 0 0 1.5rem;
    color: var(--text);
    text-align: left;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
}

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

.card {
    background: transparent;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.section-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    color: #333;
}

.post-body h2 {
    color: #1a1a1a;
}

.places-page .card > h2 {
    color: #1a1a1a;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.lightbox.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 4.5rem 2.5rem 2.5rem;
}

.lightbox.is-zoomed img {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

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

.lightbox-controls {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    padding: 0;
    color: var(--text);
    font-size: 2rem;
    gap: 1rem;
}

.lightbox-controls button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.lightbox-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

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

.lightbox-zoom {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

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

.footer {
    padding: 2rem 5vw;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.button {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.admin-quick-edit {
    position: fixed;
    top: 4.25rem;
    right: 1rem;
    z-index: 11000;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-quick-edit:hover {
    color: #111;
    filter: brightness(1.04);
}

@media (max-width: 720px) {
    .admin-quick-edit {
        top: 3.75rem;
        right: 0.75rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.74rem;
    }
}

.map-page {
    padding-bottom: 3rem;
    background: #fafafa;
    position: relative;
}

.map-page .section-title {
    color: #333;
}

.map-stats {
    margin: 0 0 1.25rem;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.map-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

.map-panel {
    position: relative;
    background: transparent;
    padding: 1rem 0;
    min-height: 60vh;
    overflow: visible;
}

/* Full-page dot grid background */
.map-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}

/* Places page dot grid background */
.places-page .immersive-right {
    background: #fafafa;
}

.places-page .immersive-right::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.places-page .immersive-right > :not(.sr-only) {
    position: relative;
    z-index: 1;
}

/* Single place listings should keep the lone tile anchored to the top. */
.places-page .immersive-right.single-post-listing {
    scroll-snap-type: none;
}

@media (max-width: 720px) {
    .places-page .immersive-right.single-post-listing {
        padding-top: 0;
    }
}

.uk-map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 55vh;
}

.map-zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.map-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #333;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, transform 0.15s ease;
}

.map-zoom-btn:hover {
    background: #f0f0f0;
}

.map-zoom-btn:active {
    transform: scale(0.95);
}

.uk-outline {
    fill: none;
    stroke: none;
}

/* The UK landmass dots */
.uk-land-dot {
    opacity: 0.92;
}

.uk-landmass {
    pointer-events: none;
}

.uk-marker {
    fill: #1a1a1a;
    stroke: #ffffff;
    stroke-width: 0.04;
    cursor: pointer;
    transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0.03px 0.06px rgba(0, 0, 0, 0.4));
}

.uk-marker:hover {
    fill: #e63946;
    stroke-width: 0.08;
    filter: drop-shadow(0 0.05px 0.12px rgba(0, 0, 0, 0.6));
}

.map-card {
    position: absolute;
    left: var(--card-x, 50%);
    top: var(--card-y, 50%);
    transform: translate(-50%, calc(-100% - 18px));
    width: min(320px, 85vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 16px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.map-card.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, calc(-100% - 24px));
}

.map-card.is-open.is-below {
    transform: translate(-50%, 24px);
}

.map-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    transition: background 0.2s ease;
}

.map-card-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.map-card-media {
    height: 160px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    background-size: cover;
    background-position: center;
}

.map-card-media-link {
    display: block;
}

.map-card-media.has-image {
    background-color: #f0f0f0;
}

.map-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.map-card-date {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

.map-card-title {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.map-card-title:hover {
    color: #333;
    text-decoration: underline;
}

.map-card-blurb {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.55;
}

.map-legend {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.map-legend p {
    margin: 0;
}

@media (max-width: 900px) {
    .map-panel {
        padding: 1rem 0;
    }

    .map-page::before {
        background-size: 14px 14px;
    }

    .places-page .immersive-right::before {
        background-size: 14px 14px;
    }

    .map-card {
        width: min(300px, 90vw);
    }
}

/* ============================================
   IMMERSIVE POST LAYOUT
   ============================================ */

body.immersive-post {
    background: #fafafa;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-width: 721px) {
    body.immersive-post {
        scrollbar-color: var(--accent) rgba(0, 0, 0, 0.1);
    }

    body.immersive-post::-webkit-scrollbar {
        width: 10px;
    }

    body.immersive-post::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 999px;
        border: 2px solid rgba(0, 0, 0, 0.1);
    }

    body.immersive-post::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.reading-progress.is-hidden {
    display: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e6a020);
    transition: width 0.15s ease-out;
}

/* Adventure Hero Section */
.adventure-hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    z-index: 2;
}

.adventure-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.adventure-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adventure-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.75) 100%);
}

.adventure-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 5vw 5rem;
    width: 100%;
    max-width: 900px;
}

.adventure-hero-logo {
    position: absolute;
    top: 2rem;
    left: 5vw;
    z-index: 3;
    display: inline-block;
    color: var(--text);
    text-transform: uppercase;
}

@media (min-width: 721px) {
    .adventure-hero-logo {
        top: 1rem;
        left: 2rem;
    }
}

@media (max-width: 720px) {
    .adventure-hero-logo {
        display: none;
    }
}

.adventure-hero-meta {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}


.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.post-tags .meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f1f1f1;
    color: #1b1b1b;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid #d7d7d7;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-tags .meta-chip:hover,
.post-tags .meta-chip:focus {
    background: #e7e7e7;
    border-color: #bdbdbd;
    color: #111;
}

.adventure-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.adventure-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.accessibility-block {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.accessibility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

.accessibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    text-transform: none;
}

.accessibility-badge.is-yes,
.accessibility-badge.is-smooth,
.accessibility-badge.is-mostly-smooth,
.accessibility-badge.is-easy,
.accessibility-badge.is-toilets,
.accessibility-badge.is-parking,
.accessibility-badge.is-both {
    background: rgba(30, 120, 80, 0.45);
    border-color: rgba(160, 230, 200, 0.4);
}

.accessibility-badge.is-partial,
.accessibility-badge.is-mixed,
.accessibility-badge.is-moderate,
.accessibility-badge.is-unknown {
    background: rgba(80, 80, 80, 0.45);
    border-color: rgba(200, 200, 200, 0.35);
}

.accessibility-badge.is-no,
.accessibility-badge.is-rough,
.accessibility-badge.is-challenging,
.accessibility-badge.is-none {
    background: rgba(150, 60, 60, 0.45);
    border-color: rgba(255, 180, 180, 0.35);
}

.accessibility-summary {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.adventure-hero-scroll-hint {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollHint 2s ease-in-out infinite;
}

.adventure-hero-scroll-hint span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    text-align: center;
}

@keyframes scrollHint {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Immersive Main Content */
.immersive-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5vw 5rem;
    position: relative;
}

.immersive-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}

.immersive-content {
    position: relative;
    z-index: 1;
}

/* Immersive Content */
.immersive-content {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.immersive-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.immersive-text h2,
.immersive-text h3,
.immersive-text h4 {
    font-family: var(--font-display);
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.immersive-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.immersive-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.immersive-text h4 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.immersive-text p {
    margin-bottom: 1.5rem;
}

.immersive-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.immersive-text img.align-left {
    float: left;
    max-width: min(40%, 340px);
    margin: 0.5rem 1.5rem 1rem 0;
}

.immersive-text img.align-right {
    float: right;
    max-width: min(40%, 340px);
    margin: 0.5rem 0 1rem 1.5rem;
}

.immersive-text::after {
    content: "";
    display: block;
    clear: both;
}

.immersive-text a {
    color: #b8941a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.immersive-text a:hover {
    color: #8a6f14;
}

.immersive-text blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent);
    background: rgba(242, 193, 78, 0.08);
    border-radius: 0 12px 12px 0;
}

.immersive-text blockquote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

.immersive-text ul,
.immersive-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.immersive-text li {
    margin-bottom: 0.5rem;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-posts-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a1a1a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.related-posts .post-tile {
    height: 240px;
    min-height: 240px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-posts .post-tile-content {
    padding: 1.25rem;
    border-radius: 0;
}

.related-posts .post-tile-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-posts .post-tile-meta {
    font-size: 0.8rem;
}

.related-posts .post-tile-meta .tile-location {
    display: block;
}

.related-posts .post-tile-meta .tile-meta-sep {
    display: none;
}

.related-posts .post-tile-meta .tile-date {
    display: block;
    white-space: nowrap;
}

.post-tile-no-image {
    background: #f3f3f3;
}

.post-tile-no-image .post-tile-content {
    position: relative;
    color: #222;
    background: none;
    backdrop-filter: none;
}

.post-tile-no-image .post-tile-title {
    color: #1a1a1a;
}

@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .related-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .related-posts .post-tile {
        height: 220px;
        min-height: 220px;
    }
}

/* Enhanced Immersive Gallery */
.immersive-gallery {
    margin: 4rem 0;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a1a1a;
}

.places-page .section-title,
.places-page .gallery-title {
    text-align: left;
}

.places-page .meta {
    color: #1a1a1a;
}

.gallery-grid.immersive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid.immersive img {
    width: 100%;
    height: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-grid.immersive img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #111;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(242, 193, 78, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Enhanced Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 5rem 2.5rem 2.5rem;
}

.lightbox.is-zoomed img {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-fullscreen {
    position: absolute;
    top: 1.5rem;
    right: 5.5rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-fullscreen:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.lightbox-controls {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    padding: 0;
    color: var(--text);
    font-size: 1.8rem;
    gap: 1rem;
}

.lightbox-controls button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.lightbox-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(2px);
}

.lightbox-nav[data-lightbox-prev]:hover {
    transform: translateX(-2px);
}

.lightbox-zoom {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.lightbox-zoom:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-zoom[aria-pressed="true"] {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.scroll-animate.fade-in {
    transform: translateY(0);
}

.scroll-animate.slide-left {
    transform: translateX(-50px);
}

.scroll-animate.slide-right {
    transform: translateX(50px);
}

.scroll-animate.scale-up {
    transform: scale(0.95);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes slowZoom {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@media (prefers-reduced-motion: reduce) {

    .post-tile.reveal-on-scroll,
    .post-tile.reveal-on-scroll.is-visible,
    .immersive-menu.is-open .immersive-menu-links a,
    body.immersive-home .immersive-left-bg,
    body.is-ready.immersive-home .immersive-logo,
    body.is-ready.immersive-home .immersive-tagline-block,
    body.is-ready.immersive-home .adventure-hero-scroll-hint {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================
   IMMERSIVE POST MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 900px) {

    /* Immersive Post Layout */
    .adventure-hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }

    .adventure-hero-bg {
        background-position: bottom center;
    }

    .adventure-hero-content {
        padding: 2rem 5vw 6rem 5vw;
    }

    .adventure-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .adventure-hero-excerpt {
        font-size: 1rem;
        margin-bottom: 4rem;
    }

    .adventure-hero-scroll-hint {
        bottom: 3.5rem;
    }

    .immersive-main {
        padding: 2rem 5vw 4rem;
    }

    .adventure-location {
        margin: -2rem auto 2rem;
    }

    .adventure-location-inner {
        padding: 0.875rem 1.25rem;
    }

    .location-icon {
        font-size: 1.25rem;
    }

    .immersive-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .immersive-text h2 {
        font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    }

    .immersive-text h3 {
        font-size: clamp(1.3rem, 3vw, 1.6rem);
    }

    .immersive-text h4 {
        font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    }

    .immersive-text img {
        margin: 1.5rem 0;
    }

    .immersive-text img.align-left,
    .immersive-text img.align-right {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
    }

    .gallery-grid.immersive {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .gallery-grid.immersive img {
        height: 150px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }

    .lightbox-close,
    .lightbox-fullscreen {
        width: 44px;
        height: 44px;
        top: 1rem;
        right: 1rem;
    }

    .lightbox-fullscreen {
        right: 4.5rem;
    }

    .lightbox-controls {
        bottom: 1.5rem;
        top: auto;
    }
}

@media (max-width: 720px) {

    /* ============================================
       MOBILE RESPONSIVE
       ============================================ */
    .immersive-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 100vh auto;
        height: auto;
        overflow: auto;
    }

    body {
        overflow: auto;
        position: relative;
    }


    .split-layout {
        height: auto;
        min-height: 100vh;
        background: #fafafa;
    }

    .split-right {
        overflow: visible;
        min-height: auto;
        padding-top: 40px;
    }

    .immersive-left {
        height: 100vh;
    }

    .immersive-left-content {
        padding: 1rem 1rem 3.5rem;
    }

    body.immersive-home .immersive-left-content .immersive-tagline-block {
        margin-bottom: 2rem;
    }

    body.immersive-home .immersive-left-content .adventure-hero-scroll-hint {
        display: block;
    }

    body.immersive-home .adventure-hero-scroll-hint {
        bottom: 4.5rem;
    }

    body.immersive-home .immersive-logo {
        display: none;
    }

    .immersive-right {
        height: auto;
        overflow: visible;
        padding-top: 40px;
    }

    body.immersive-home .immersive-right {
        padding-top: 0;
    }

    .mobile-top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(6px);
        z-index: 50;
        pointer-events: none;
        display: block;
    }

    .mobile-site-title {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 60;
        font-family: var(--font-body);
        font-weight: 300;
        font-size: var(--site-title-size);
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: var(--text);
    }


    .mobile-site-title a {
        color: inherit;
    }

    .adventure-hero-scroll-hint {
        bottom: 4.5rem;
    }

    .adventure-hero-scroll-hint span {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        padding: 0.65rem 1.25rem;
    }

    .immersive-right::before {
        display: none;
    }

    .post-tile {
        height: 45vh;
    }

    .immersive-menu {
        width: 100vw;
    }

    .immersive-nav {
        position: absolute;
    }

    .lightbox-controls {
        top: auto;
        bottom: 2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        justify-content: center;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        transform: none;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    body.edge-nav .immersive-nav {
        right: 1rem;
        left: auto;
        transform: none;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero {
        min-height: 45vh;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .split-left {
        display: none;
    }

    .split-left-content {
        padding: 1.5rem;
    }

    .gallery-grid img {
        height: 140px;
    }

    .post-body img.align-left {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }

    .post-body img.align-right {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }

    .immersive-tagline,
    .split-left-slogan {
        font-size: 1.4rem;
    }

    .split-left-slogan,
    .split-left-post-title {
        max-width: 22ch;
        text-wrap: balance;
    }

    .post-tile-content {
        padding: 1.5rem;
    }
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: #1a1a1a;
}

.comments-empty {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.comment-admin-reply {
    border-left: 4px solid var(--accent);
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 1rem;
}

.comment-date {
    color: #666;
    font-size: 0.875rem;
}

.comment-body {
    line-height: 1.6;
    white-space: pre-wrap;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #fff3cf;
    color: #7f6111;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-actions {
    margin: 0.65rem 0 0;
}

.comment-reply-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #8a6f14;
}

.comment-children {
    margin-top: 0.9rem;
    margin-left: 1.1rem;
    padding-left: 0.9rem;
    border-left: 2px solid #e4e4e4;
}

.comment-notice {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.comment-notice-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.comment-notice-error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.comment-form {
    margin-top: 2rem;
    padding: clamp(1.1rem, 2.4vw, 1.5rem);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
}

.comment-form-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}

.comment-form-help {
    margin: 0.45rem 0 1.2rem;
    color: #666;
    font-size: 0.92rem;
}

.comment-replying-to {
    margin: 0.45rem 0 0.9rem;
    color: #555;
    font-size: 0.9rem;
}

.comment-replying-to a {
    color: #8a6f14;
    text-decoration: underline;
}

.comment-reply-cancel {
    border: 0;
    background: none;
    color: #8a6f14;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.comment-reply-cancel:hover,
.comment-reply-cancel:focus {
    color: #6d5710;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.comment-field {
    margin: 0;
}

.comment-field label {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

#comment-form input,
#comment-form textarea {
    margin-top: 0;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font: inherit;
}

#comment-form input::placeholder,
#comment-form textarea::placeholder {
    color: #7a7a7a;
}

#comment-form input:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

#comment-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Keep comment fields fully solid on immersive post pages. */
body.immersive-post #comment-form input,
body.immersive-post #comment-form textarea {
    background: #ffffff;
    background-color: #ffffff;
    opacity: 1;
}

.comment-form-submit {
    margin-top: 0.9rem;
}

@media (max-width: 720px) {
    .comments-section {
        margin: 2.25rem auto;
        padding: 0 1rem;
    }

    .comment-form-grid {
        grid-template-columns: 1fr;
    }

    .comment-children {
        margin-left: 0.6rem;
        padding-left: 0.6rem;
    }
}

.not-found-related-posts {
    border-top: 0;
    padding-top: 0;
}

.place-nearby-posts {
    border-top: 0;
    padding-top: 0;
}

.places-page .place-nearby-posts .related-posts-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    margin-bottom: 1.5rem;
}

.places-page .place-nearby-posts .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.places-page .place-nearby-posts .post-tile-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
