/* ============================================================
   kalgoorlie.info — main stylesheet
   Palette
     --gold        #D4A017
     --sand        #C9A66B
     --charcoal    #2B2B2B
     --rust        #9B4B2A
     --off-white   #F5F1E8
   Type: Fraunces (display, variable serif) + Manrope (body)
============================================================ */

:root {
    --gold:       #D4A017;
    --gold-deep:  #A8800C;
    --sand:       #C9A66B;
    --sand-pale:  #E6D5B0;
    --charcoal:   #2B2B2B;
    --charcoal-2: #3A3937;
    --rust:       #9B4B2A;
    --off-white:  #F5F1E8;
    --paper:      #FAF7F0;
    --ink:        #1E1C1A;
    --muted:      #6F665C;
    --line:       #E5DECB;

    --serif:  "Fraunces", "Times New Roman", Georgia, serif;
    --sans:   "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;
    --shadow-1: 0 1px 2px rgba(43,43,43,.06), 0 4px 12px rgba(43,43,43,.06);
    --shadow-2: 0 4px 8px rgba(43,43,43,.08), 0 18px 40px rgba(43,43,43,.12);

    --wrap-w: 1180px;
}

/* ------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap-w); margin: 0 auto; padding: 0 22px; }

/* Skip link */
.skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--charcoal); color: var(--off-white);
    padding: 8px 14px; border-radius: var(--r-sm);
    z-index: 9999;
}
.skip:focus { left: 8px; }

/* ============================================================ HEADER */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,247,240,0.92);
    backdrop-filter: saturate(120%) blur(8px);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 22px;
    max-width: var(--wrap-w); margin: 0 auto;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-weight: 700;
    font-size: 1.32rem; letter-spacing: -0.01em;
    color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 32px; height: 32px;
    background: var(--charcoal);
    border-radius: 7px;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name em {
    color: var(--gold-deep); font-style: normal;
}

.primary-nav {
    display: flex; gap: 4px; margin-left: auto;
    list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 12px;
    color: var(--ink);
    font-weight: 500; font-size: 0.95rem;
    border-radius: var(--r-sm);
    transition: background .15s;
}
.primary-nav a:hover { background: var(--off-white); color: var(--rust); text-decoration: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.header-search {
    display: flex; align-items: center;
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
}
.header-search input {
    border: 0; background: transparent;
    font-family: inherit; font-size: 0.92rem;
    width: 140px; outline: none;
}
.header-search button {
    background: var(--charcoal); color: var(--off-white);
    border: 0; width: 30px; height: 30px;
    border-radius: 999px;
    display: grid; place-items: center;
}
.header-search button svg { width: 14px; height: 14px; }

.lang-switch { display: flex; gap: 2px; font-size: 0.82rem; }
.lang-switch a {
    color: var(--muted); padding: 4px 6px;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }

.nav-toggle {
    display: none; background: transparent; border: 0;
    width: 38px; height: 38px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); margin: 5px auto;
    transition: transform .2s, opacity .2s;
}

/* ============================================================ HERO */
.hero {
    position: relative;
    min-height: 78vh;
    color: var(--off-white);
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-vignette {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(43,43,43,0.25) 0%, rgba(43,43,43,0.45) 50%, rgba(43,43,43,0.85) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(212,160,23,0.15), transparent 60%);
}
.hero-inner { padding: 80px 22px 60px; }
.hero-eyebrow {
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 0.78rem;
    color: var(--gold); margin: 0 0 10px;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--off-white); margin: 0 0 18px;
    font-weight: 700;
}
.hero-title em {
    font-style: italic; color: var(--gold);
    font-weight: 600;
}
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(245,241,232,0.85);
    max-width: 560px; margin: 0 0 30px;
}
.hero-search {
    display: flex; align-items: center;
    background: var(--paper);
    border-radius: 999px;
    padding: 6px;
    max-width: 580px;
    box-shadow: var(--shadow-2);
}
.hero-search input {
    flex: 1; border: 0; background: transparent;
    padding: 14px 18px;
    font-family: inherit; font-size: 1rem;
    color: var(--ink); outline: none;
}
.hero-search button {
    display: flex; align-items: center; gap: 8px;
    background: var(--charcoal); color: var(--off-white);
    border: 0; padding: 12px 22px;
    border-radius: 999px; font-weight: 600;
    font-size: 0.95rem;
    transition: background .15s;
}
.hero-search button:hover { background: var(--rust); }
.hero-search--inline { background: rgba(43,43,43,0.06); margin-top: 20px; }
.hero-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 24px 0 0; padding: 0; list-style: none;
}
.hero-chips a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(245,241,232,0.3);
    color: var(--off-white);
    border-radius: 999px;
    font-size: 0.86rem;
    transition: background .15s, border-color .15s;
}
.hero-chips a:hover {
    background: rgba(212,160,23,0.18);
    border-color: var(--gold);
    text-decoration: none;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; max-width: var(--wrap-w); margin: 40px auto 0;
    padding: 0 22px;
    border-top: 1px solid rgba(245,241,232,0.18);
    border-bottom: 1px solid rgba(245,241,232,0.18);
}
.hero-stats > div {
    padding: 18px 14px; text-align: center;
    border-right: 1px solid rgba(245,241,232,0.12);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats span {
    display: block; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: rgba(245,241,232,0.65);
}
.hero-stats strong {
    display: block; font-family: var(--serif);
    font-size: 1.5rem; color: var(--off-white);
    margin-top: 4px;
}

/* ============================================================ SECTIONS */
.section-head {
    margin: 0 auto 36px;
    max-width: 680px; text-align: center;
}
.section-head--split {
    max-width: var(--wrap-w);
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; text-align: left;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em; font-size: 0.76rem;
    color: var(--rust); font-weight: 600;
    margin: 0 0 8px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }

/* Blocks (homepage grid) */
.blocks { padding: 80px 0; }
.block-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 14px;
}
.block {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 200px;
    padding: 22px;
    border-radius: var(--r-md);
    background-color: var(--charcoal);
    background-size: cover;
    background-position: center;
    color: var(--off-white);
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease;
}
.block::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(43,43,43,0.05) 0%, rgba(43,43,43,0.85) 100%);
}
.block:hover { transform: translateY(-3px); text-decoration: none; color: var(--off-white); }
.block h3 {
    color: var(--off-white); font-size: 1.4rem;
    margin: 0 0 4px;
}
.block p {
    color: rgba(245,241,232,0.85); font-size: 0.92rem;
    margin: 0;
}
.block-tag {
    position: absolute; top: 16px; left: 16px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--gold); color: var(--charcoal);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.block--large { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.block--large h3 { font-size: 2rem; }
.block--medium { grid-column: span 2; min-height: 250px; }

/* ============================================================ WIDGETS */
.widgets {
    background: linear-gradient(180deg, var(--paper) 0%, var(--off-white) 100%);
    padding: 70px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    box-shadow: var(--shadow-1);
    position: relative;
}
.widget h3 {
    font-family: var(--sans); font-weight: 700;
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--rust);
    margin: 0 0 14px;
}
.widget--weather { background: linear-gradient(135deg, #F5E2A8 0%, #E6C46D 100%); border-color: var(--gold); }
.widget--weather h3 { color: var(--charcoal); }
.weather-temp {
    font-family: var(--serif); font-size: 3rem;
    font-weight: 600; line-height: 1; color: var(--charcoal);
}
.weather-temp small { font-size: 1.2rem; opacity: 0.65; }
.weather-cond { font-size: 0.95rem; color: var(--charcoal); margin: 6px 0 0; }
.weather-extra {
    display: flex; gap: 14px; margin-top: 14px;
    font-size: 0.82rem; color: var(--charcoal-2);
}
.weather-extra span strong { display: block; font-size: 1rem; }

.widget--sunrise svg { display: block; margin: 0 auto; }
.sun-times {
    display: flex; justify-content: space-between;
    margin-top: 10px; font-size: 0.9rem;
}
.sun-times strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.sun-times span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

.widget--fuel ul { list-style: none; padding: 0; margin: 0; }
.widget--fuel li {
    display: flex; justify-content: space-between;
    padding: 7px 0; border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}
.widget--fuel li:last-child { border-bottom: 0; }
.widget--fuel strong { font-family: var(--serif); font-weight: 600; color: var(--rust); }

.widget--events ul { list-style: none; padding: 0; margin: 0; }
.widget--events li {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.widget--events li:last-child { border-bottom: 0; }
.widget--events .ev-date {
    background: var(--charcoal); color: var(--off-white);
    border-radius: var(--r-sm); text-align: center;
    padding: 6px 0;
}
.widget--events .ev-date strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.widget--events .ev-date span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }
.widget--events .ev-title { font-weight: 600; font-size: 0.95rem; }
.widget--events .ev-loc { font-size: 0.82rem; color: var(--muted); }

.widget--distance label { display: block; font-size: 0.8rem; color: var(--muted); margin: 6px 0 2px; }
.widget--distance select, .widget--distance input {
    width: 100%; padding: 9px 10px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font-family: inherit; font-size: 0.95rem; background: var(--paper);
}
.widget--distance .dist-result {
    margin-top: 14px; padding: 12px;
    background: var(--off-white); border-radius: var(--r-sm);
    font-family: var(--serif); font-size: 1.2rem; text-align: center;
    color: var(--rust);
}
.widget--distance .dist-result small { display: block; color: var(--muted); font-size: 0.7rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }

.widget--emergency ul { list-style: none; padding: 0; margin: 0; }
.widget--emergency li {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem;
}
.widget--emergency li:last-child { border-bottom: 0; }
.widget--emergency .em-num { font-family: var(--serif); font-weight: 600; color: var(--rust); }
.widget--emergency .em-000 { font-size: 1.1rem; }

/* ============================================================ MAP TEASER */
.map-teaser {
    padding: 80px 0;
    background: var(--charcoal);
    color: var(--off-white);
}
.map-teaser .eyebrow { color: var(--gold); }
.map-teaser h2 { color: var(--off-white); }
.map-teaser .lead { color: rgba(245,241,232,0.7); }
.map-preview {
    aspect-ratio: 4/3;
    background:
        radial-gradient(circle at 60% 40%, rgba(212,160,23,0.12), transparent 50%),
        repeating-linear-gradient(45deg, rgba(245,241,232,0.04) 0 1px, transparent 1px 18px),
        var(--charcoal-2);
    border-radius: var(--r-md);
    border: 1px solid rgba(245,241,232,0.1);
    position: relative;
    overflow: hidden;
}
.map-preview-grid { position: absolute; inset: 0; }
.map-pin {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212,160,23,0.25), 0 0 0 12px rgba(212,160,23,0.08);
}
.map-pin span {
    position: absolute; left: 18px; top: -4px;
    font-size: 0.78rem; color: var(--off-white);
    white-space: nowrap;
    background: rgba(43,43,43,0.85);
    padding: 2px 8px; border-radius: var(--r-sm);
}

/* ============================================================ ARTICLES */
.articles { padding: 80px 0; background: var(--off-white); }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.article-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--shadow-1); transition: transform .25s;
}
.article-card:hover { transform: translateY(-2px); }
.article-img { display: block; aspect-ratio: 16/10; background: var(--sand) center / cover; }
.article-body { padding: 18px; }
.article-body time { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.article-body h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.article-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================ PAGE TEMPLATE */
.page-hero {
    min-height: 380px;
    background-size: cover; background-position: center;
    color: var(--off-white);
    display: flex; align-items: flex-end;
    padding: 60px 0;
}
.page-hero .wrap { width: 100%; }
.page-section { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--gold); margin: 0 0 8px; }
.page-section a { color: var(--gold); }
.page-hero h1 { color: var(--off-white); font-size: clamp(2rem, 4.5vw, 3.6rem); margin: 0 0 14px; max-width: 22ch; }
.page-excerpt { color: rgba(245,241,232,0.85); font-size: 1.15rem; max-width: 56ch; margin: 0; }

.page-body {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 60px; padding: 60px 22px 100px;
}
.page-content {
    font-size: 1.06rem; line-height: 1.75;
}
.page-content > p.lede {
    font-size: 1.28rem; line-height: 1.5;
    color: var(--ink); font-weight: 400;
    border-left: 3px solid var(--gold);
    padding-left: 22px; margin-bottom: 32px;
}
.page-content h2 {
    font-size: 1.7rem;
    margin: 1.8em 0 0.5em;
    color: var(--ink);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }
.page-content a { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-content a.ghost-link { background: var(--off-white); border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 0.92rem; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content li { margin-bottom: 0.4em; }
.page-content blockquote {
    border-left: 3px solid var(--rust);
    padding: 4px 0 4px 22px; margin: 1.5em 0;
    font-family: var(--serif); font-style: italic; font-size: 1.18rem;
    color: var(--charcoal);
}
.page-content aside.callout {
    background: var(--off-white);
    border-left: 4px solid var(--gold);
    padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: 2em 0;
}
.page-content aside.callout strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; color: var(--rust); }
.page-content aside.callout p:last-child { margin-bottom: 0; }
.page-content img { border-radius: var(--r-md); margin: 1.4em 0; }

.page-aside { align-self: start; position: sticky; top: 92px; }
.aside-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px; margin-bottom: 18px;
    box-shadow: var(--shadow-1);
}
.aside-card h4 {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--rust);
    margin: 0 0 12px; font-family: var(--sans); font-weight: 700;
}
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li a { font-weight: 500; }
.aside-newsletter p { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.aside-newsletter input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font-family: inherit; margin-bottom: 8px;
}
.aside-newsletter button {
    width: 100%; padding: 10px;
    background: var(--charcoal); color: var(--off-white);
    border: 0; border-radius: var(--r-sm);
    font-family: inherit; font-weight: 600;
}

/* ============================================================ SECTION BANNER */
.section-banner {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
    color: var(--off-white);
    padding: 80px 0 70px;
    position: relative; overflow: hidden;
}
.section-banner::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 90% 20%, rgba(212,160,23,0.18), transparent 40%),
      repeating-linear-gradient(135deg, rgba(245,241,232,0.02) 0 1px, transparent 1px 24px);
    pointer-events: none;
}
.section-banner .eyebrow { color: var(--gold); position: relative; }
.section-banner .eyebrow a { color: var(--gold); }
.section-banner h1 { color: var(--off-white); position: relative; }
.section-banner .lead { color: rgba(245,241,232,0.78); position: relative; }
.section-grid-wrap { padding: 60px 0 100px; }

/* card grid (section pages) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--shadow-1);
    color: var(--ink); display: block;
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); text-decoration: none; color: var(--ink); }
.card-img { aspect-ratio: 16/10; background: var(--sand) center / cover; }
.card-img--placeholder {
    background:
      linear-gradient(135deg, var(--sand) 0%, var(--rust) 100%);
}
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card-body p { color: var(--muted); font-size: 0.94rem; }
.card-arrow { color: var(--rust); font-weight: 600; font-size: 0.9rem; }

/* category grid (directory index) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 26px 22px;
    color: var(--ink); text-align: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-2); text-decoration: none; color: var(--ink); }
.cat-icon {
    width: 52px; height: 52px;
    background: var(--off-white);
    color: var(--rust);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 12px;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.cat-count { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* listings */
.listing-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.listing {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 0; overflow: hidden;
    position: relative;
    display: flex; align-items: stretch; gap: 0;
}
.listing--featured { border-color: var(--gold); }
.listing-flag {
    position: absolute; top: -10px; left: 18px;
    background: var(--gold); color: var(--charcoal);
    padding: 2px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    z-index: 2;
}
.listing-image {
    flex: 0 0 200px; align-self: stretch;
    display: flex; min-height: 140px;
}
.listing-image > img,
.listing-image > .venue-thumb--placeholder {
    width: 100%; height: 100%;
    border-radius: 0;
}
.listing-body { flex: 1; padding: 20px 22px; }
.listing h3 { font-size: 1.18rem; margin: 0 0 4px; }
.listing-meta { font-size: 0.92rem; color: var(--muted); margin: 2px 0; }
.listing-meta a { color: var(--rust); }
.listing-desc { font-size: 0.96rem; margin: 8px 0 0; }
@media (max-width: 640px) {
    .listing { flex-direction: column; }
    .listing-image { flex: 0 0 auto; height: 160px; min-height: 160px; }
}

/* ============================================================ MAP PAGE */
.map-section { padding: 30px 0 60px; }
.map-shell {
    display: grid; grid-template-columns: 1fr 320px;
    height: 70vh; min-height: 480px;
    max-width: var(--wrap-w); margin: 0 auto 24px;
    padding: 0 22px;
    gap: 18px;
}
.map-canvas {
    background: var(--charcoal-2);
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    overflow: hidden;
}
.map-side {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow-y: auto;
    padding: 18px;
}
.map-side h2 { font-size: 1.1rem; margin: 0 0 10px; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rust); }
.map-list { list-style: none; padding: 0; margin: 0; }
.map-list li { border-bottom: 1px dashed var(--line); }
.map-list li:last-child { border-bottom: 0; }
.map-list-item {
    background: transparent; border: 0;
    text-align: left; padding: 10px 0;
    width: 100%; cursor: pointer;
    font-family: inherit;
}
.map-list-item:hover { color: var(--rust); }
.map-list-item strong { display: block; font-size: 0.95rem; font-weight: 600; }
.map-list-item span { font-size: 0.82rem; color: var(--muted); }
.map-attr { font-size: 0.78rem; color: var(--muted); }

/* ============================================================ SEARCH */
.search-count { color: var(--muted); margin: 0 0 18px; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-results li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.search-results a { display: block; padding: 18px 22px; color: var(--ink); }
.search-results a:hover { background: var(--off-white); text-decoration: none; }
.result-kind { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rust); font-weight: 700; }
.search-results h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.search-results p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.empty { color: var(--muted); padding: 30px 0; }

/* ============================================================ 404 */
.error-page {
    min-height: 60vh;
    display: grid; place-items: center;
    background: var(--off-white);
    padding: 80px 22px;
}
.error-inner { text-align: center; }
.error-num {
    font-family: var(--serif); font-size: 7rem;
    line-height: 1; color: var(--gold);
    margin: 0; font-weight: 700;
}
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* ============================================================ BUTTONS */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    font-family: inherit; font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, transform .15s;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-deep); color: var(--off-white); text-decoration: none; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(43,43,43,0.05); text-decoration: none; }
.btn-rust { background: var(--rust); color: var(--off-white); }
.btn-rust:hover { background: var(--charcoal); color: var(--off-white); text-decoration: none; }

/* ============================================================ FOOTER */
.site-footer {
    background: var(--charcoal);
    color: rgba(245,241,232,0.75);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-col h4 {
    color: var(--gold);
    font-family: var(--sans); font-weight: 700;
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.14em; margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: rgba(245,241,232,0.75); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(245,241,232,0.1);
    padding-top: 22px; margin-top: 40px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; color: rgba(245,241,232,0.55);
}
.footer-bottom a { color: rgba(245,241,232,0.7); }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
    .primary-nav, .header-search { display: none; }
    .nav-toggle { display: block; }
    .primary-nav.is-open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 12px 22px;
    }
    .primary-nav.is-open a { padding: 10px 8px; border-bottom: 1px dashed var(--line); }

    .block-grid { grid-template-columns: repeat(2, 1fr); }
    .block--large, .block--medium { grid-column: span 2; }
    .block--large { min-height: 320px; }

    .widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head--split { grid-template-columns: 1fr; gap: 30px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .page-body { grid-template-columns: 1fr; gap: 40px; }
    .page-aside { position: static; }
    .map-shell { grid-template-columns: 1fr; height: auto; }
    .map-canvas { height: 50vh; min-height: 320px; }
    .map-side { max-height: 320px; }

    .hero { min-height: 70vh; }
    .hero-inner { padding: 50px 22px 30px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-stats > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .block-grid { grid-template-columns: 1fr; }
    .block--large, .block--medium { grid-column: span 1; }
    .widgets-grid, .article-grid, .card-grid, .cat-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-search { flex-direction: column; padding: 12px; border-radius: var(--r-md); }
    .hero-search input { width: 100%; padding: 10px 4px; }
    .hero-search button { width: 100%; justify-content: center; }
}

/* ============================================================
   Image placeholders (in-page figures + venue thumbnails)
   ============================================================ */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
  padding: 48px 24px;
  min-height: 220px;
  border: 2px dashed var(--gold, #d4a017);
  background: linear-gradient(135deg, rgba(212,160,23,0.04), rgba(155,75,42,0.04));
  border-radius: var(--r-md, 6px);
  text-align: center;
}
.img-placeholder .ph-icon {
  font-size: 2.4rem;
  opacity: 0.55;
  filter: grayscale(0.3);
}
.img-placeholder .ph-label {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rust, #9b4b2a);
  max-width: 480px;
  line-height: 1.4;
}

/* Venue thumbnail on directory listing cards */
.venue-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--cream, #f5ecd9);
  border-radius: var(--r-sm, 4px) var(--r-sm, 4px) 0 0;
}
.venue-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212,160,23,0.18), rgba(155,75,42,0.18));
  color: var(--rust, #9b4b2a);
  font-family: var(--display, Georgia, serif);
  font-size: 1.05rem;
  text-align: center;
  padding: 16px;
  border: 1px dashed rgba(212,160,23,0.5);
}
.venue-thumb--placeholder .ph-icon { font-size: 1.8rem; opacity: 0.6; }
.venue-thumb--placeholder .ph-label { font-size: 0.9rem; opacity: 0.85; }

/* ============================================================
   Content images (TinyMCE-inserted) + defensive rules
   ============================================================ */

/* TinyMCE inserts images wrapped in <figure> when image_caption is on.
   Style figures as proper block-level media with optional caption. */
.page-content figure {
    margin: 1.6em 0;
    padding: 0;
}
.page-content figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: 0;
}
.page-content figure figcaption {
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 8px;
}

/* Class options exposed in the TinyMCE Image dialog */
.page-content img.img-centered,
.page-content figure img.img-centered {
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}
.page-content img.img-left,
.page-content figure img.img-left {
    float: left;
    max-width: 45%;
    margin: 0.5em 1.4em 1em 0;
}
.page-content img.img-right,
.page-content figure img.img-right {
    float: right;
    max-width: 45%;
    margin: 0.5em 0 1em 1.4em;
}

/* Defensive: if an image gets dropped DIRECTLY inside a heading or sandwiched
   into a paragraph (TinyMCE allows this if the cursor was inside text),
   force it onto its own line so the page is at least readable. The proper
   fix is to put images in figures via the Image dialog, but this rule
   prevents old/legacy bad placements from rendering as invisible/broken. */
.page-content h1 > img,
.page-content h2 > img,
.page-content h3 > img,
.page-content h4 > img,
.page-content h5 > img,
.page-content h6 > img {
    display: block;
    margin: 0.6em 0;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
}
.page-content p > img {
    display: block;
    margin: 1.2em auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
}
