/*
Theme Name: The Reading Rambler
Theme URI: https://thereadingrambler.com
Author: The Reading Rambler
Description: Custom classic WordPress theme for The Reading Rambler book review and RV travel blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: reading-rambler
*/

/* ============================================================
   WORDPRESS — HIDE THEME'S OWN HEADER & SITE TITLE
   Suppresses the WordPress theme header so only our custom
   header is visible. Covers block themes, classic themes,
   Hostinger/Neve/Astra/Hello Elementor, and generics.
============================================================ */

/* Block themes (WP 5.9+ / Full Site Editing) */
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part,
header.wp-block-template-part,
.wp-block-site-title,
.wp-block-site-logo:not(.trr-logo),

/* Classic themes */
#masthead, #site-header, #header,
.custom-header, .site-branding,

/* Hostinger / Neve theme */
.nv-navbar, .hfg-header, .header-main,
.nv-primary-navigation-sidebar,

/* Astra theme */
#ast-hfcm-header, .ast-header-break-point,
.site-header-section, .main-header-bar,

/* Hello Elementor / Elementor Pro */
.elementor-location-header,

/* OceanWP */
#site-header.wp-block-template-part,

/* Catch-all: any <header> that is NOT our #trr-header */
body > header:not(#trr-header),
.wp-site-blocks > header:not(#trr-header) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================================
   WORDPRESS FULL-WIDTH BREAKOUT
   Reliable method: wrapper div uses transform to center
   at 100vw regardless of WordPress content container width.
============================================================ */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Remove all padding/margin from WP content wrappers */
.entry-content,
.entry-content > p:empty,
.wp-block-post-content,
.wp-block-group,
.wp-block-group__inner-container,
.site-content, .page-content,
.content-area, #primary, #content,
.single-page-content,
main,
article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Main page wrapper — breaks out using transform (most reliable method) */
#trr-page {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   KILL WORDPRESS TOP SPACING
============================================================ */
html { margin-top: 0 !important; }

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* WordPress block theme page wrappers */
.wp-site-blocks,
.wp-site-blocks > .wp-block-group,
.wp-block-post-content,
.wp-block-template-part,
.entry-content,
.page-content,
.site-content,
#content, #primary,
.content-area,
main.wp-block-query,
.wp-block-post,
.single-page-content {
    margin-top:  0 !important;
    padding-top: 0 !important;
}

/* Some themes inject a spacer element at the top */
.wp-site-blocks > *:first-child:empty,
.wp-block-spacer:first-child {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Admin bar fix — WP forces margin-top on <html> when logged in */
body.admin-bar { margin-top: 0 !important; }
body.admin-bar .affiliate-topbar { top: 32px !important; }
body.admin-bar #trr-header { top: calc(32px + var(--topbar-height)) !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .affiliate-topbar { top: 46px !important; }
    body.admin-bar #trr-header { top: calc(46px + var(--topbar-height)) !important; }
}

/* Keep wrapper flush to the top. Main content handles the offset. */
#trr-page { padding-top: 0; }

/* All top-level sections are naturally 100% of the trr-page wrapper */
.affiliate-topbar,
.hero,
.section,
.section-newsletter,
.site-footer {
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   CSS VARIABLES — Derived directly from The Reading Rambler logo
============================================================ */
:root {
    --topbar-height: 34px;
    --header-height: 98px;
    --safe-area-top: env(safe-area-inset-top, 0px);

    --brown-dark:    #3D1C02;
    --brown-mid:     #7B3F1E;
    --amber:         #C8874A;
    --amber-light:   #D9A26A;
    --cream:         #FAF0DC;
    --cream-light:   #FDF8EE;
    --cream-post:    #FFFCF6;
    --cream-dark:    #EFD9AA;
    --green:         #4E6E2E;
    --green-light:   #6B8F45;
    --gold:          #E8B830;
    --gold-light:    #F2CB5A;
    --sand:          #E8D5A8;
    --card-surface:  #FFFDF8;
    --text-dark:     #2A1200;
    --text-mid:      #5A3010;
    --text-light:    #8B6040;
    --white:         #FFFFFF;
    --shadow:        rgba(61, 28, 2, 0.12);
    --shadow-dark:   rgba(61, 28, 2, 0.28);

    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Lora', Georgia, serif;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
    --max-width: 1440px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--cream-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

body.single-post {
    background-color: var(--cream-post);
}

/* Subtle paper texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--amber); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brown-mid); }

.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;
}

/* ============================================================
   FTC AFFILIATE DISCLOSURE TOP BAR
============================================================ */
.affiliate-topbar {
    background: linear-gradient(90deg, #4a2200 0%, #6a3200 45%, #4a2200 100%);
    color: var(--sand);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.affiliate-topbar a { color: var(--gold-light); text-decoration: underline; font-weight: 600; }

/* ============================================================
   SITE HEADER & NAVIGATION
============================================================ */
#trr-header {
    background-color: var(--cream);
    border-bottom: 3px solid var(--brown-dark);
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 99999;
    box-shadow: 0 2px 16px var(--shadow);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: contain;
    border: none;
    background: transparent;
    flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brown-dark);
}
.logo-tagline {
    font-size: 0.68rem;
    color: var(--amber);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 14px; right: 14px;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-item:hover { color: var(--brown-dark); }
.nav-item:hover::after, .nav-item.active::after { transform: scaleX(1); }
.nav-item.active { color: var(--amber); }

.nav-cta {
    background-color: var(--brown-dark) !important;
    color: var(--cream) !important;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background-color: var(--amber) !important; color: var(--brown-dark) !important; }

@media (max-width: 1180px) {
    .primary-nav { gap: 2px; }
    .nav-item {
        font-size: 0.82rem;
        padding-inline: 10px;
    }
    .nav-cta { padding-inline: 16px; }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.hamburger-label { display: none; }
.hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 26px;
    min-width: 26px;
    height: 18px;
    line-height: 0;
    flex: 0 0 26px;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: var(--transition);
    flex: 0 0 2px;
}
.hamburger.open .hamburger-icon .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-icon .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-icon .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--cream);
    border-top: 1px solid var(--cream-dark);
    padding: 12px 24px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-item {
    padding: 13px 8px;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 1rem;
}
.mobile-nav .nav-item::after { display: none; }

/* ============================================================
   MAIN CONTENT OFFSET (below fixed topbar + header)
============================================================ */
#main-content { padding-top: calc(var(--topbar-height) + var(--header-height)) !important; }

body.single-post #main-content,
body.single-post .wp-block-post-content,
body.single-post .entry-content,
body.single-post article {
    background: var(--cream-post);
}

/* Gutenberg wraps each Custom HTML block in .wp-block-html — ensure no clipping */
.wp-block-html { overflow: visible !important; }

/* ============================================================
   SINGLE POST MOBILE GUTTERS
   Keep book reviews and travel posts from sitting too close to
   the screen edge after WordPress wrapper padding is reset.
============================================================ */
@media (max-width: 600px) {
    body.single-post .entry-content,
    body.single-post .wp-block-post-content {
        box-sizing: border-box;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.single-post .wp-block-html,
    body.single-post .prose-wrap,
    body.single-post .post-wrap,
    body.single-post .trr-book-review {
        box-sizing: border-box;
        max-width: 100% !important;
    }
}

/* ============================================================
   HOME HERO
============================================================ */
.hero {
    background-color: var(--brown-dark);
    background-image:
        radial-gradient(ellipse 60% 70% at 20% 60%, rgba(200,135,74,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(78,110,46,0.18) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 28px 108px !important;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,135,74,0.18);
    border: 1px solid rgba(200,135,74,0.45);
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 22px;
    animation: fadeUp 0.7s ease both;
}

.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 22px;
    animation: fadeUp 0.7s ease 0.1s both;
}
.hero-h1 em { color: var(--amber); font-style: italic; }

.hero-lead {
    font-size: 1.1rem;
    color: var(--sand);
    line-height: 1.85;
    margin-bottom: 38px;
    animation: fadeUp 0.7s ease 0.18s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.26s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber);
    color: var(--brown-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid var(--amber);
    transition: var(--transition);
    letter-spacing: 0.02em;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,135,74,0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(250,240,220,0.38);
    transition: var(--transition);
}
.btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(250,240,220,0.1);
    color: var(--cream);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid rgba(250,240,220,0.14);
    animation: fadeUp 0.7s ease 0.34s both;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-lbl {
    font-size: 0.7rem;
    color: var(--sand);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.4s both;
}
.hero-logo-ring {
    width: min(100%, 560px);
    height: auto;
    max-height: 420px;
    border-radius: 24px;
    border: none;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    object-fit: contain;
    background: transparent;
    animation: float 7s ease-in-out infinite;
}

@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

/* ============================================================
   INNER PAGE HERO (all inner pages use .hero-contact)
============================================================ */
.hero-contact {
    background-color: var(--brown-dark);
    background-image:
        radial-gradient(ellipse 60% 70% at 20% 60%, rgba(200,135,74,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(78,110,46,0.18) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.hero-contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 92px 28px 98px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-contact-inner > div:first-child {
    background: linear-gradient(180deg, rgba(250,240,220,0.07) 0%, rgba(250,240,220,0.03) 100%);
    border: 1px solid rgba(250,240,220,0.12);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.hero-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,135,74,0.18);
    border: 1px solid rgba(200,135,74,0.45);
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 22px;
}

.hero-contact h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.08;
    margin-bottom: 18px;
}

.hero-contact h1 em {
    color: var(--amber);
    font-style: italic;
}

.hero-contact p {
    color: var(--sand);
    font-size: 1.06rem;
    line-height: 1.9;
    max-width: 650px;
}

.hero-contact p + p {
    margin-top: 1rem;
}

.hero-contact-card {
    background: rgba(250,240,220,0.08);
    border: 1px solid rgba(250,240,220,0.15);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}

.hero-contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 14px;
}

.hero-contact-card p {
    font-size: 0.96rem;
    color: var(--sand);
    margin-bottom: 18px;
}

.hero-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--cream);
    font-size: 0.92rem;
}

.hero-contact-list i {
    color: var(--amber);
    margin-top: 4px;
    width: 18px;
    flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION STYLES
============================================================ */
.section      { padding: 84px 28px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-hd { text-align: center; margin-bottom: 52px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
}
.eyebrow::before { content: '— '; color: var(--amber-light); margin-right: 4px; }
.eyebrow::after  { content: ' —'; color: var(--amber-light); margin-left: 4px; }

.section-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}
.section-sub {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

.rv-planning-test {
    position: relative;
    overflow: hidden;
}

.rv-planning-test::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(200,135,74,0.14) 0%, transparent 34%),
        radial-gradient(circle at 88% 80%, rgba(78,110,46,0.09) 0%, transparent 30%),
        linear-gradient(180deg, rgba(255,250,242,0.96) 0%, rgba(247,238,225,0.92) 100%);
    pointer-events: none;
}

.rv-planning-test .section-inner {
    position: relative;
    z-index: 1;
}

.rv-planning-test .section-hd {
    max-width: 760px;
    margin: 0 auto 28px;
}

.rv-planning-test .section-h2 {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200,135,74,0.35);
}

.rv-planning-test .section-copy {
    max-width: 780px;
    margin: 0 auto;
    padding: 34px 36px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(129,85,48,0.12);
    border-radius: calc(var(--radius-xl) + 4px);
    box-shadow: 0 22px 50px rgba(90,60,32,0.08);
    backdrop-filter: blur(2px);
    position: relative;
}

.rv-planning-test .section-copy::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 18px;
    width: 4px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, var(--amber) 0%, rgba(200,135,74,0.18) 100%);
}

.rv-planning-test .section-copy p {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    margin: 0;
    padding-left: 18px;
}

.rv-planning-test .section-copy p + p {
    margin-top: 1.35rem;
}

/* Section background helpers */
.section-cream-light { background: var(--cream-light); }
.section-cream       { background: var(--cream); }

.ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 44px 0;
    color: var(--amber);
    font-size: 0.85rem;
}
.ornament::before, .ornament::after {
    content: '';
    height: 1px;
    width: 72px;
}
.ornament::before { background: linear-gradient(90deg, transparent, var(--amber)); }
.ornament::after  { background: linear-gradient(90deg, var(--amber), transparent); }

.cta-center { text-align: center; margin-top: 44px; }

/* Content block (prose layout) */
.content-block { max-width: 860px; margin: 0 auto; }

/* ============================================================
   FEATURED POSTS
============================================================ */
.section-featured { background: var(--cream-light); }

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.post-card {
    background: var(--card-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px var(--shadow-dark);
}
.post-card.is-featured { grid-row: span 2; }

.card-thumb {
    position: relative;
    overflow: hidden;
}
.card-thumb img,
.rv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card.is-featured .card-thumb { height: 300px; }
.post-card:not(.is-featured) .card-thumb { height: 155px; }

.thumb-fill {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}
.thumb-rv    { background: linear-gradient(135deg, #4E6E2E 0%, #2A3D18 100%); }
.thumb-books { background: linear-gradient(135deg, #7B3F1E 0%, #3D1C02 100%); }
.thumb-desert{ background: linear-gradient(135deg, #C8874A 0%, #7B3F1E 100%); }

.cat-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cat-rv    { background: var(--green); color: var(--white); }
.cat-books { background: var(--brown-dark); color: var(--cream); }

.card-body { padding: 24px; }
.post-card.is-featured .card-body { padding: 28px; }

.post-meta {
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--text-light);
    margin-bottom: 9px;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.25s;
}
.post-card.is-featured .card-title { font-size: 1.5rem; }
.post-card:not(.is-featured) .card-title { font-size: 1.08rem; }
.post-card:hover .card-title { color: var(--amber); }

.card-excerpt { font-size: 0.88rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 16px; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--amber);
}
.read-more i { font-size: 0.72rem; transition: transform 0.2s; }
.post-card:hover .read-more i { transform: translateX(4px); }

/* ============================================================
   ABOUT TEASER
============================================================ */
.section-about {
    background: var(--brown-dark);
    background-image:
        radial-gradient(ellipse 55% 70% at 5% 50%, rgba(200,135,74,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 45% 60% at 95% 50%, rgba(78,110,46,0.1) 0%, transparent 55%);
    color: var(--cream);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 72px;
    align-items: center;
}
.photo-frame { position: relative; }
.photo-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--sand), var(--amber-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 4px solid rgba(200,135,74,0.38);
    box-shadow: 0 24px 64px rgba(0,0,0,0.32);
    overflow: hidden;
}
.photo-box-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-deco-1 {
    position: absolute;
    bottom: -18px; right: -18px;
    width: 80px; height: 80px;
    border: 3px solid var(--amber);
    border-radius: var(--radius-xl);
    opacity: 0.35;
}
.photo-deco-2 {
    position: absolute;
    top: -12px; left: -12px;
    width: 48px; height: 48px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    opacity: 0.28;
}
.about-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    font-family: var(--font-body);
    margin-bottom: 12px;
}
.about-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 20px;
}
.about-h2 em { color: var(--amber); font-style: italic; }
.about-p { color: var(--sand); font-size: 1rem; line-height: 1.85; margin-bottom: 32px; opacity: 0.9; }

/* ============================================================
   ABOUT PAGE: Story & Topics
============================================================ */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.about-story-block {
    text-align: center;
}

.about-story-block h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 14px;
}

.about-story-block p {
    font-size: 0.97rem;
    color: var(--text-mid);
    line-height: 1.85;
}

/* ============================================================
   TOPICS GRID (used on About, RV Travel, Book Reviews, Shop, Contact)
============================================================ */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.topics-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.topic-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px var(--shadow);
    display: block;
    padding: 24px 20px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px var(--shadow-dark);
}

.topic-card:hover,
.topic-card:focus-visible {
    color: inherit;
}

.topic-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber) 0%, var(--brown-dark) 100%);
    color: var(--cream);
    font-size: 1.45rem;
}

.topic-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 8px;
}

.topic-desc {
    font-size: 0.84rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================================
   BOOK REVIEWS
============================================================ */
.section-books { background: var(--cream); }

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

.book-card {
    background: var(--card-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 16px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px var(--shadow-dark);
}
.book-cover {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    padding: 12px;
    background-color: #F8F1E4;
}

.book-cover img,
.book-cover .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
}

.bc1 { background: linear-gradient(135deg, #C8874A 0%, #7B3F1E 100%); }
.bc2 { background: linear-gradient(135deg, #4E6E2E 0%, #2A3D18 100%); }
.bc3 { background: linear-gradient(135deg, #3D1C02 0%, #7B3F1E 100%); }
.bc4 { background: linear-gradient(135deg, #E8B830 0%, #C8874A 100%); }

.rating-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.55);
    color: var(--gold);
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.book-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.book-genre {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 700;
    margin-bottom: 5px;
}
.book-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.3;
    margin-bottom: 4px;
}
.book-title a { color: inherit; }
.book-title a:hover { color: var(--amber); }
.book-author { font-size: 0.78rem; color: var(--text-light); font-style: italic; margin-bottom: 9px; }
.stars { display: flex; gap: 2px; margin-bottom: 9px; }
.stars i { color: var(--gold); font-size: 0.72rem; }
.stars .empty { color: var(--cream-dark); }
.book-blurb { font-size: 0.8rem; color: var(--text-mid); line-height: 1.65; flex: 1; margin-bottom: 12px; }
.book-btns { display: flex; gap: 8px; margin-top: auto; }
.btn-review {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--brown-dark);
    color: var(--cream);
    transition: var(--transition);
}
.btn-review:hover { background: var(--amber); color: var(--brown-dark); }
.btn-buy {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--cream-dark);
    color: var(--brown-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}
.btn-buy:hover { background: var(--green); color: var(--white); }

/* ============================================================
   RV TRAVEL
============================================================ */
.section-rv { background: var(--cream-light); }

.rv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.rv-card {
    background: var(--card-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.rv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px var(--shadow-dark);
}
.rv-thumb {
    height: 200px;
    position: relative;
}
.rv-fill {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}
.rvi1 { background: linear-gradient(135deg, #4E6E2E 0%, #2A3D18 100%); }
.rvi2 { background: linear-gradient(135deg, #C8874A 0%, #7B3F1E 100%); }
.rvi3 { background: linear-gradient(135deg, #3D1C02 0%, #C8874A 100%); }

.rv-body { padding: 20px; }
.rv-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.rv-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.25s;
}
.rv-title a { color: inherit; }
.rv-card:hover .rv-title a { color: var(--amber); }
.rv-excerpt { font-size: 0.86rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 16px; }
.rv-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--cream-dark);
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================================
   SHOP / AFFILIATE RESOURCES
============================================================ */
.section-shop {
    background: linear-gradient(160deg, var(--cream-dark) 0%, var(--sand) 100%);
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.shop-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px var(--shadow-dark);
}
.shop-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber) 0%, var(--brown-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cream);
    margin: 0 auto 16px;
}
.shop-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 8px;
}
.shop-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; }
.btn-shop {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--amber);
    color: var(--brown-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    transition: var(--transition);
    text-align: center;
}
.btn-shop:hover { background: var(--brown-dark); color: var(--cream); }
.affiliate-note {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-light);
    margin-top: 22px;
    font-style: italic;
}
.affiliate-note a { color: var(--amber); }

/* ============================================================
   NEWSLETTER
============================================================ */
.section-newsletter {
    background: var(--green);
    background-image:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(255,255,255,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 85% 50%, rgba(232,184,48,0.14) 0%, transparent 60%);
    padding: 84px 28px;
}
.nl-wrap {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.nl-icon { font-size: 2.4rem; display: block; margin-bottom: 14px; }
.nl-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}
.nl-desc { color: rgba(250,240,220,0.85); font-size: 1rem; line-height: 1.8; margin-bottom: 32px; }
.nl-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 14px;
}
.nl-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(250,240,220,0.28);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.nl-input::placeholder { color: rgba(250,240,220,0.55); }
.nl-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.18); }
.nl-btn {
    padding: 14px 24px;
    background: var(--amber);
    color: var(--brown-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.nl-btn:hover { background: var(--gold); transform: translateY(-2px); }
.nl-privacy {
    font-size: 0.73rem;
    color: rgba(250,240,220,0.55);
}
.nl-privacy a { color: rgba(250,240,220,0.7); text-decoration: underline; }

/* ============================================================
   CONTACT PAGE: Form & Layout
============================================================ */
.section-contact  { background: var(--cream-light); }
.section-topics   { background: var(--cream); }
.section-faq      { background: var(--cream-light); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.contact-form-card,
.contact-side-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px var(--shadow);
}

.contact-form-card { padding: 34px; }

.contact-form-title,
.contact-side-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.contact-form-sub {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-form { display: grid; gap: 18px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    background: var(--cream-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 16px;
    outline: none;
    transition: var(--transition);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: var(--amber);
    background: #fffdf8;
    box-shadow: 0 0 0 4px rgba(200,135,74,0.12);
}

.field-textarea {
    min-height: 180px;
    resize: vertical;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-side-card {
    padding: 28px;
    margin-bottom: 20px;
}

.contact-side-copy {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 18px;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.65;
}

.contact-info-list i {
    width: 18px;
    color: var(--amber);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-mini-grid { display: grid; gap: 20px; }

/* FAQ */
.faq-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: 24px 24px 22px;
    box-shadow: 0 4px 18px var(--shadow);
}

.faq-q {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.faq-a {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ============================================================
   AFFILIATE DISCLOSURE: Prose Layout
============================================================ */
.prose-section { background: var(--cream-light); }

.prose-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.prose-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin: 36px 0 12px;
}

.prose-wrap h3:first-child { margin-top: 0; }

.prose-wrap p {
    font-size: 0.97rem;
    color: var(--text-mid);
    line-height: 1.85;
}

.prose-wrap a { color: var(--amber); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--brown-dark);
    color: var(--sand);
    padding: 60px 28px 0 !important;
    overflow: visible !important;
    margin-top: 0 !important;
}
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(232,213,168,0.14);
}
.footer-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--cream) !important;
    margin-bottom: 4px;
}
.footer-tagline {
    font-size: 0.68rem;
    color: var(--amber) !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-about { font-size: 0.86rem; color: var(--sand) !important; line-height: 1.8; margin-bottom: 20px; opacity: 0.8; }
.social-row { display: flex; gap: 10px; }
.social-ico {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(232,213,168,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand);
    font-size: 0.88rem;
    transition: var(--transition);
}
.social-ico:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--brown-dark);
}
.footer-col-h {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-list a {
    color: var(--sand);
    font-size: 0.86rem;
    opacity: 0.78;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-list a:hover { color: var(--amber); opacity: 1; padding-left: 4px; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(232,213,168,0.45);
}
.footer-bottom a { color: rgba(232,213,168,0.45); }
.footer-bottom a:hover { color: var(--amber); }
.footer-legal-links { display: flex; gap: 16px; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 44px;
        padding: 72px 28px 84px;
    }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-ring { width: min(100%, 420px); max-height: 320px; }

    .hero-contact-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 72px 28px 80px;
    }

    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    .post-card.is-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .post-card.is-featured .card-thumb { height: 220px; }

    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-grid    { grid-template-columns: repeat(2, 1fr); }
    .shop-grid  { grid-template-columns: repeat(2, 1fr); }
    .topics-grid,
    .topics-grid-three { grid-template-columns: repeat(2, 1fr); }

    .about-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
    .photo-box  { max-width: 260px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
============================================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --topbar-height: 40px;
    }

    .logo-img { display: none; }

    .logo-text-wrap {
        display: none !important;
        min-width: 0;
    }

    .primary-nav { display: none; }
    .hamburger   { display: flex; }
    .nav-inner   {
        height: var(--header-height);
        width: 100%;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .site-logo {
        display: none !important;
    }

    .hamburger {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-left: 0;
        position: relative;
        z-index: 100001;
        width: auto;
        height: auto;
        padding: 8px;
        border-radius: 0;
        background: transparent;
        border: none;
    }

    .hamburger-label {
        display: inline-block;
        font-family: var(--font-body);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--brown-dark);
        line-height: 1;
    }

    .affiliate-topbar {
        display: block !important;
        text-align: center;
        padding: calc(5px + var(--safe-area-top)) 10px 5px;
        font-size: 0.52rem;
        line-height: 1.18;
    }

    .affiliate-topbar i { display: none; }

    #trr-header {
        position: fixed;
        top: calc(var(--topbar-height) + var(--safe-area-top));
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 99999;
    }

    #main-content {
        padding-top: calc(var(--topbar-height) + var(--header-height) + var(--safe-area-top)) !important;
    }

    .section { padding: 60px 16px; }
    .section-newsletter,
    .site-footer { padding-left: 16px; padding-right: 16px; }
    .hero-inner { padding: 60px 16px 72px; }
    .hero-contact-inner { padding: 58px 16px 68px; }

    .featured-grid { grid-template-columns: 1fr; }
    .post-card.is-featured { grid-column: span 1; }

    .books-grid { grid-template-columns: 1fr 1fr; }
    .rv-grid    { grid-template-columns: 1fr; }
    .shop-grid  { grid-template-columns: 1fr 1fr; }

    .about-story-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .nl-form { flex-direction: column; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
}

@media (max-width: 600px) {
    .affiliate-topbar {
        font-size: 0.5rem;
        padding: calc(5px + var(--safe-area-top)) 8px 5px;
    }

    .topics-grid,
    .topics-grid-three { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================================ */
@media (max-width: 480px) {
    .affiliate-topbar {
        font-size: 0.48rem;
        line-height: 1.08;
    }

    .books-grid { grid-template-columns: 1fr; }
    .shop-grid  { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 18px; justify-content: center; }
}

@media (max-width: 420px) {
    .nav-inner { padding: 0 10px; }
    .hamburger { padding: 6px; }
}

/* ============================================================
   SCROLL-REVEAL — glitch-free card entrance
   Cards are hidden via CSS before first paint (when trr-js is
   present on <html>), so JS never causes a visible→hidden flash.
   JS sets --trr-reveal-delay per card, then reveals via opacity/
   transform inline styles when the IntersectionObserver fires.
============================================================ */
.trr-js .post-card,
.trr-js .book-card,
.trr-js .rv-card,
.trr-js .shop-card,
.trr-js .topic-card {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity  .45s ease var(--trr-reveal-delay, 0s),
        transform .45s ease var(--trr-reveal-delay, 0s),
        box-shadow .3s ease;
}

/* ============================================================
   LITERARY MAP PAGE
============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.hero-lit-map {
    background-color: var(--brown-dark);
    background-image:
        radial-gradient(ellipse 55% 65% at 15% 70%, rgba(200,135,74,0.25) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 90% 15%, rgba(78,110,46,0.20) 0%, transparent 55%),
        radial-gradient(ellipse 30% 40% at 75% 80%, rgba(232,184,48,0.12) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-lit-map::before,
.hero-lit-map::after,
.hero-lit-map .hero-road-line {
    content: none !important;
    display: none !important;
    background: none !important;
    height: 0 !important;
}

.lit-map-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 92px 28px 104px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.lit-map-hero-text { max-width: 640px; }

.lit-map-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-stat-card {
    background: rgba(250,240,220,0.07);
    border: 1px solid rgba(250,240,220,0.14);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(4px);
}

.hero-stat-card .stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
    min-width: 54px;
}

.hero-stat-card .stat-lbl {
    font-size: 0.82rem;
    color: var(--sand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.hero-stat-card .stat-lbl i {
    margin-right: 6px;
    color: var(--amber-light);
}

/* ── Map Section ───────────────────────────────────────────── */
.section-map-area {
    padding: 52px 28px 72px;
    background: var(--cream-light);
}

.map-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.lit-map-seo-intro .section-inner,
.lit-map-routes .section-inner {
    max-width: var(--max-width);
}

.lit-map-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: stretch;
}

.lit-map-intro-copy {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    box-shadow: 0 8px 24px var(--shadow);
}

.lit-map-intro-copy p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.85;
}

.lit-map-intro-copy p + p {
    margin-top: 1rem;
}

.lit-map-seo-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lit-map-seo-stats div {
    background: var(--brown-dark);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 24px var(--shadow);
}

.lit-map-seo-stats dt {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1;
    color: var(--amber);
}

.lit-map-seo-stats dd {
    margin: 10px 0 0;
    color: var(--sand);
    font-size: 0.82rem;
    line-height: 1.35;
}

.map-section-hd {
    margin-bottom: 24px;
}

.lit-map-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px var(--shadow);
}

.lit-map-toc span {
    color: var(--brown-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-right: 4px;
    text-transform: uppercase;
}

.lit-map-toc a {
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-full);
    color: var(--text-mid);
    font-size: 0.82rem;
    padding: 7px 11px;
}

.lit-map-toc a:hover {
    border-color: var(--amber);
    color: var(--brown-dark);
}

.lit-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lit-route-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px var(--shadow);
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lit-route-card .topic-icon {
    margin-bottom: 16px;
}

.lit-route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px var(--shadow-dark);
}

.lit-route-meta {
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    margin: 0 auto 10px;
    max-width: 100%;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.lit-route-card h3 {
    font-family: var(--font-display);
    color: var(--brown-dark);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.lit-route-card p:not(.lit-route-meta) {
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}

.lit-route-card .lit-route-stops {
    border-top: 1px solid var(--cream-dark);
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: auto;
    padding-top: 16px;
}

.lit-route-stops strong {
    color: var(--brown-dark);
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.lit-route-stops span {
    display: inline;
}

.lit-route-stops span + span::before {
    content: ' • ';
    color: var(--amber);
    font-weight: 700;
}

.lit-faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.lit-faq-item {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    min-width: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 24px var(--shadow);
}

.lit-faq-content {
    padding: 48px 44px;
}

.lit-faq-content h3 {
    color: var(--brown-dark);
    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1.32;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.lit-faq-content p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.lit-map-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 52px;
    text-align: center;
}

/* ── Controls ──────────────────────────────────────────────── */
.map-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px var(--shadow);
}

.map-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.map-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    white-space: nowrap;
}

.map-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.map-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-full);
    background: var(--cream-light);
    color: var(--text-mid);
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.map-pill:hover {
    border-color: var(--amber);
    color: var(--brown-dark);
}

.map-pill.active {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--brown-dark);
    font-weight: 700;
}

.pill-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-hometown { background: var(--amber); }
.pill-setting  { background: var(--green); }
.pill-landmark { background: var(--gold);  }

.map-search-wrap {
    position: relative;
    flex-shrink: 0;
}

.map-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.82rem;
    pointer-events: none;
}

.map-search-input {
    padding: 8px 14px 8px 36px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-full);
    background: var(--cream-light);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-dark);
    width: 260px;
    transition: var(--transition);
}

.map-search-input::placeholder { color: var(--text-light); }

.map-search-input:focus {
    outline: none;
    border-color: var(--amber);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200,135,74,0.15);
}

/* ── Map + Sidebar layout ──────────────────────────────────── */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* ── The actual map canvas ─────────────────────────────────── */
.map-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 36px var(--shadow-dark);
    border: 2px solid var(--cream-dark);
}

#literary-map-canvas {
    height: 600px;
    width: 100%;
    background: var(--cream-light);
}

.map-fallback {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: var(--text-mid);
    font-weight: 600;
    background: var(--cream-light);
}

/* ── Legend ────────────────────────────────────────────────── */
.map-legend {
    position: absolute;
    bottom: 28px;
    left: 14px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 4px 16px var(--shadow);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 500;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.15);
}

.legend-hometown { background: var(--amber); }
.legend-setting  { background: var(--green); }
.legend-landmark { background: var(--gold);  }

/* ── Sidebar ───────────────────────────────────────────────── */
.map-sidebar {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    height: 640px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--cream-dark);
    background: var(--cream-light);
    flex-shrink: 0;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.sidebar-count {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--cream-dark);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--cream-dark) transparent;
}

.sidebar-list::-webkit-scrollbar { width: 6px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }

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

.sidebar-item-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.sidebar-item-btn:hover,
.sidebar-item.is-active .sidebar-item-btn {
    background: var(--cream-light);
}

.sidebar-item.is-active .sidebar-item-btn {
    background: rgba(200,135,74,0.10);
}

.sidebar-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.12);
}

.sidebar-dot--hometown { background: var(--amber); }
.sidebar-dot--setting  { background: var(--green); }
.sidebar-dot--landmark { background: var(--gold);  }

.sidebar-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.sidebar-item-city {
    font-size: 0.74rem;
    color: var(--text-light);
    line-height: 1.2;
}

.sidebar-arrow {
    font-size: 0.62rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-item.is-active .sidebar-arrow {
    transform: rotate(90deg);
    color: var(--amber);
}

/* ── Leaflet popup override ────────────────────────────────── */
.trr-popup .leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(61,28,2,0.28);
    border: 1px solid var(--cream-dark);
    font-family: var(--font-body);
    width: min(400px, calc(100vw - 44px));
    max-width: min(400px, calc(100vw - 44px));
}

.trr-popup .leaflet-popup-content {
    margin: 0;
    width: 100% !important;
}

.trr-popup.leaflet-popup {
    margin-bottom: 42px;
}

.trr-popup .leaflet-popup-tip-container { display: none; }

.map-popup-inner {
    padding: 12px 14px 16px;
    background: var(--white);
    max-height: none;
    overflow: visible;
}

.popup-header { margin-bottom: 7px; }

.popup-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    margin-bottom: 5px;
}

.popup-badge--hometown {
    background: rgba(200,135,74,0.14);
    color: var(--brown-mid);
    border: 1px solid rgba(200,135,74,0.35);
}

.popup-badge--setting {
    background: rgba(78,110,46,0.12);
    color: var(--green);
    border: 1px solid rgba(78,110,46,0.30);
}

.popup-badge--landmark {
    background: rgba(232,184,48,0.15);
    color: #7a6010;
    border: 1px solid rgba(232,184,48,0.40);
}

.popup-name {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.16;
    margin-bottom: 3px;
}

.popup-city {
    font-size: 0.73rem;
    color: var(--text-light);
    line-height: 1.25;
}

.popup-city i { margin-right: 4px; color: var(--amber); }

.popup-author {
    font-size: 0.76rem;
    color: var(--text-mid);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 6px;
}

.popup-author i { margin-right: 5px; color: var(--amber); }

.popup-books {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 7px;
    max-height: 28px;
    overflow: hidden;
}

.popup-book-tag {
    font-size: 0.66rem;
    line-height: 1.25;
    padding: 2px 7px;
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-full);
    color: var(--text-mid);
    font-style: italic;
}

.popup-desc {
    font-size: 0.73rem;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.popup-rv-tip {
    background: rgba(200,135,74,0.08);
    border: 1px solid rgba(200,135,74,0.22);
    border-radius: var(--radius-md);
    padding: 7px 9px;
    margin-bottom: 8px;
}

.popup-rv-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--amber);
    margin-bottom: 3px;
}

.popup-rv-label i { margin-right: 5px; }

.popup-rv-body {
    font-size: 0.7rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.popup-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    padding-bottom: 2px;
}

.popup-btn-maps,
.popup-btn-wiki,
.popup-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 31px;
    padding: 5px 7px;
    border-radius: var(--radius-md);
    font-size: 0.66rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.popup-btn-maps {
    background: var(--amber);
    color: var(--brown-dark);
    border: 1.5px solid var(--amber);
}

.popup-btn-maps:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
}

.popup-btn-wiki {
    background: var(--cream-light);
    color: var(--brown-mid);
    border: 1.5px solid var(--cream-dark);
}

.popup-btn-wiki:hover {
    border-color: var(--amber);
    color: var(--brown-dark);
}

.popup-btn-link {
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--cream-dark);
}

.popup-btn-link:hover {
    border-color: var(--amber);
    color: var(--brown-dark);
}

/* ── Custom Leaflet marker pins ────────────────────────────── */
.map-marker {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.30);
    border: 2px solid rgba(255,255,255,0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    will-change: transform;
}

.map-marker.is-hovered {
    transform: rotate(-45deg) scale(1.18) translateY(-2px);
    box-shadow: 0 9px 24px rgba(61,28,2,0.36);
    border-color: var(--white);
    z-index: 2;
}

.map-marker i {
    transform: rotate(45deg);
    font-size: 14px;
    color: #fff;
    line-height: 1;
}

.map-marker--hometown { background: var(--amber); }
.map-marker--setting  { background: var(--green); }
.map-marker--landmark { background: var(--gold);  }

.map-marker--landmark i { color: var(--brown-dark); }

/* ── RV Tips Grid ──────────────────────────────────────────── */
.trr-marker-tooltip {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    white-space: normal;
}

.trr-marker-tooltip::before {
    display: none;
}

.map-hover-card {
    min-width: 150px;
    width: max-content;
    max-width: 220px;
    box-sizing: border-box;
    padding: 8px 10px;
    background: rgba(255,253,248,0.97);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(61,28,2,0.22);
    color: var(--text-dark);
    font-family: var(--font-body);
    text-align: left;
}

.map-hover-card strong,
.map-hover-card span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.map-hover-card strong {
    font-size: 0.76rem;
    line-height: 1.25;
    color: var(--brown-dark);
}

.map-hover-card span {
    margin-top: 2px;
    font-size: 0.66rem;
    line-height: 1.2;
    color: var(--text-light);
}

.rv-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rv-tip-card {
    background: var(--card-surface);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: var(--transition);
}

.rv-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--shadow-dark);
}

.rv-tip-icon {
    width: 46px;
    height: 46px;
    background: rgba(200,135,74,0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--amber);
    font-size: 1.2rem;
}

.rv-tip-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 9px;
    line-height: 1.25;
}

.rv-tip-body {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .map-layout { grid-template-columns: 1fr; }
    .map-sidebar { height: 400px; }
    #literary-map-canvas { height: 480px; }
    .lit-map-intro-grid {
        grid-template-columns: 1fr;
    }
    .lit-route-grid,
    .lit-faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rv-tips-grid { grid-template-columns: repeat(2, 1fr); }
    .lit-map-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lit-map-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero-stat-card { flex: 1; min-width: 140px; }
}

@media (max-width: 640px) {
    .map-controls { flex-direction: column; align-items: stretch; gap: 12px; }
    .map-filter-group { flex-direction: column; align-items: flex-start; }
    .map-search-input { width: 100%; }
    .map-search-wrap { width: 100%; }
    .map-legend {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
        justify-content: center;
        border-width: 1px 0 0;
        border-radius: 0;
        box-shadow: none;
        padding: 11px 12px;
    }
    .legend-item {
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .rv-tips-grid { grid-template-columns: 1fr; }
    .lit-route-grid,
    .lit-faq-list,
    .lit-map-seo-stats {
        grid-template-columns: 1fr;
    }
    .lit-map-intro-copy,
    .lit-route-card,
    .lit-faq-content {
        padding: 22px;
    }
    #literary-map-canvas { height: clamp(430px, 70vh, 520px); }
    .map-sidebar { height: 360px; }
    .trr-popup .leaflet-popup-content-wrapper {
        width: min(260px, calc(100vw - 80px));
        max-width: min(260px, calc(100vw - 80px));
    }
    .map-popup-inner {
        max-height: min(340px, calc(100vh - 190px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 12px 14px;
    }
    .popup-name { font-size: 0.92rem; }
    .popup-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }
    .popup-rv-body {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    .popup-btn-maps,
    .popup-btn-wiki,
    .popup-btn-link {
        font-size: 0.58rem;
        min-height: 30px;
        padding: 5px 4px;
        white-space: normal;
        text-align: center;
    }
    .trr-popup.leaflet-popup {
        margin-bottom: 54px;
    }
}
