/* Maps & Places room — ported from the original build, re-skinned for the
   RISV2 dark marble + glass system. The coordinate plot (projection box,
   --plot-scale counter-scaling, dot/label geometry) is untouched; only the
   panels around it changed skin. */

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

.maps-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    padding: clamp(48px, 6vw, 86px) clamp(20px, 6vw, 90px);
    background: transparent;
}
.maps-intro h2 { margin: 0; font: 400 clamp(2.6rem, 4.6vw, 4.6rem)/.95 var(--serif); color: #f4efe2; }
.maps-intro > div > p:last-child { font: 1.02rem/1.68 var(--serif); color: var(--muted); max-width: 60ch; }
.maps-honesty {
    padding: 22px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--study-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.maps-honesty .authority-label { margin-top: 0; }
.maps-honesty p:last-child { margin: 0; font-size: .85rem; line-height: 1.62; color: var(--muted); }

/* ---- the coordinate plot ---- */
.place-plot-section {
    padding: clamp(30px, 4vw, 54px) clamp(16px, 5vw, 90px) clamp(40px, 5vw, 70px);
    background: radial-gradient(circle at 50% 20%, rgba(47, 143, 107, .1), transparent 60%);
}
.place-plot {
    position: relative;
    --plot-scale: 1;
    max-width: 1250px; margin: 0 auto;
    border: 1px solid rgba(201, 164, 92, .3);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(201, 164, 92, .10), transparent 62%),
        #0e1512;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
}
.place-plot svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.place-plot.is-dragging svg { cursor: grabbing; }

/* The drawn backdrop, pinned corner to corner with the projected box. It sits
   under everything and is deliberately quiet so the dots stay the subject. */
.plot-backdrop { opacity: .82; }

/* The degree grid. Its stroke width is counter-scaled in study-maps.js, along
   with the dot radii and label sizes - see the note on resize() there. */
.plot-grid line { stroke: rgba(233, 213, 154, .13); }

.plot-point { cursor: pointer; }
.plot-hit { fill: transparent; }
.plot-dot { fill: #e6c46b; stroke: #0e1512; stroke-width: 1.5; transition: fill .18s ease; }
.plot-point text {
    fill: rgba(255, 247, 222, .82);
    font-family: var(--serif); font-weight: 700;
    /* A dark halo behind each name so it stays readable over the backdrop. */
    paint-order: stroke;
    stroke: rgba(6, 12, 9, .72);
    pointer-events: none;
    transition: fill .18s ease;
}
.plot-point:hover .plot-dot,
.plot-point:focus-visible .plot-dot { fill: #fff3cf; }
.plot-point:hover text,
.plot-point:focus-visible text { fill: #fff; }

/* ---- zoom controls ---- */
.plot-zoom {
    position: absolute; z-index: 2; right: 12px; top: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.plot-zoom button {
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid rgba(201, 164, 92, .55); border-radius: 8px;
    background: rgba(10, 15, 13, .82); color: var(--gold-pale);
    font: 900 1rem var(--serif); cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.plot-zoom button:last-child { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.plot-zoom button:hover { background: var(--gold); color: #141109; border-color: var(--gold); }

.plot-hint {
    position: absolute; z-index: 2; left: 14px; bottom: 10px; margin: 0;
    font-size: .68rem; color: rgba(255, 247, 222, .5);
    pointer-events: none;
}
@media (max-width: 620px) { .plot-hint { display: none; } }
.plot-point:hover text,
.plot-point:focus-visible text { fill: #fff; }
.plot-point:focus-visible { outline: none; }
.plot-point.is-disputed .plot-dot { fill: transparent; stroke: #e6c46b; stroke-width: 2; stroke-dasharray: 3 2.5; }
.plot-note {
    max-width: 1250px; margin: 16px auto 0;
    font-size: .8rem; line-height: 1.6;
    color: rgba(255, 255, 255, .55);
}

/* ---- place cards ---- */
.places-section { padding: clamp(48px, 6vw, 86px) clamp(20px, 6vw, 90px); background: transparent; }
.places-section > header { max-width: 1450px; margin: 0 auto 22px; }
.places-section h2 { margin: 0; font: 400 clamp(2.2rem, 3.6vw, 3.4rem) var(--serif); color: #f4efe2; }
.places-section .authority-label { margin-top: 0; }

.region-filters { max-width: 1450px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.region-filters button {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass); color: var(--gold-pale);
    padding: 8px 14px; font-weight: 850; font-size: .71rem; cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.region-filters button.active, .region-filters button:hover {
    background: linear-gradient(135deg, #d8b878, var(--gold) 55%, #a8843e);
    color: #141109; border-color: transparent;
}

.place-grid {
    max-width: 1450px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.place-card {
    display: flex; flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden; transition: border-color .2s, transform .2s;
}
.place-card.is-focused { border-color: var(--study-gold); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }

/* The lettered plate sits underneath. When a photograph exists it covers the
   plate; when the file is missing the <img> removes itself and the plate shows,
   so a pending image never renders as a broken icon. */
.place-figure { position: relative; height: 152px; background: linear-gradient(150deg, #16442f, #0a2a20); }
.place-plate {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font: 400 2.6rem var(--serif); letter-spacing: .1em;
    color: rgba(233, 213, 154, .5);
}
.place-figure img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.place-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px 20px; flex: 1; }
.place-body h3 { margin: 0; font: 400 1.42rem var(--serif); color: #f4efe2; }
.place-flag {
    display: inline-block; margin-left: 8px; padding: 3px 7px;
    border: 1px solid rgba(201, 164, 92, .45);
    border-radius: 999px;
    font: 800 .55rem var(--sans, system-ui); letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold); vertical-align: middle;
}
.place-modern { margin: 0; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-pale); font-weight: 800; }
.place-body > p:not(.place-modern) { margin: 0; font-size: .84rem; line-height: 1.58; color: var(--muted); }
.place-refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 10px; }
.place-refs button {
    border: 1px solid rgba(201, 164, 92, .4); border-radius: 999px;
    background: transparent; color: var(--gold);
    padding: 6px 10px; font-weight: 800; font-size: .69rem; cursor: pointer;
}
.place-refs button:hover { background: var(--study-gold); color: #141109; }
.place-map-link { font-size: .72rem; font-weight: 800; color: var(--muted); text-decoration: underline; }
.place-map-link:hover { color: var(--gold-pale); }

/* ---- the ministries of Jesus and Paul ---- */
.ministry-section { padding: clamp(48px, 6vw, 86px) clamp(20px, 6vw, 90px); background: transparent; }
.ministry-section.is-paul { background: rgba(255, 255, 255, .02); }
.ministry-section > header { max-width: 1450px; margin: 0 auto 24px; }
.ministry-section .authority-label { margin-top: 0; }
.ministry-section h2 { margin: 0 0 10px; font: 400 clamp(2.2rem, 3.6vw, 3.4rem) var(--serif); color: #f4efe2; }
.ministry-section > header p { margin: 0 0 8px; font-size: .95rem; line-height: 1.62; color: var(--muted); max-width: 78ch; }
.ministry-note { font-size: .82rem !important; color: var(--muted) !important; border-left: 3px solid var(--study-gold); padding-left: 14px; }
.ministry-note b { color: var(--gold-pale); }

.stop-list {
    max-width: 1450px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px;
}
.stop-card {
    display: flex; gap: 14px; padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.stop-index {
    flex: none; width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 1px solid rgba(201, 164, 92, .5); border-radius: 50%;
    font: 800 .78rem var(--sans, system-ui); color: var(--gold);
}
.stop-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.stop-body h4 { margin: 0; font: 400 1.28rem var(--serif); color: #f4efe2; }
.stop-body > p { margin: 0; font-size: .84rem; line-height: 1.56; color: var(--muted); }

.stop-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stop-people li {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 5px 0; border-top: 1px solid var(--glass-border);
    font-size: .8rem; color: var(--ink);
}
.stop-people li:first-child { border-top: 0; }
.stop-people span { font-weight: 700; }
.stop-people button {
    border: 1px solid rgba(201, 164, 92, .35); border-radius: 999px;
    background: transparent; color: var(--gold);
    padding: 3px 7px; font-weight: 800; font-size: .63rem; cursor: pointer;
}
.stop-people button:hover { background: var(--study-gold); color: #141109; }

.journey { max-width: 1450px; margin: 0 auto 30px; }
.journey-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
    padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 2px solid rgba(201, 164, 92, .35);
}
.journey-head h3 { margin: 0; font: 400 1.75rem var(--serif); color: #f4efe2; }
.journey-head .place-refs { margin-top: 0; padding-top: 0; }

/* ---- archaeology ---- */
.archaeology-section { padding: clamp(48px, 6vw, 86px) clamp(20px, 6vw, 90px); background: transparent; }
.archaeology-section > header { max-width: 1450px; margin: 0 auto 26px; }
.archaeology-section h2 { margin: 0 0 10px; font: 400 clamp(2.2rem, 3.6vw, 3.4rem) var(--serif); color: #f4efe2; }
.archaeology-section .authority-label { margin-top: 0; }
.archaeology-section > header p { margin: 0 0 8px; font-size: .92rem; line-height: 1.62; color: var(--muted); max-width: 78ch; }
.archaeology-caveat { font-size: .82rem !important; color: var(--muted) !important; border-left: 3px solid var(--study-gold); padding-left: 14px; }

.find-grid {
    max-width: 1450px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px;
}
.find-card {
    display: flex; flex-direction: column; gap: 9px; padding: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.find-card h3 { margin: 0; font: 400 1.4rem var(--serif); color: #f4efe2; }
.find-meta { display: grid; gap: 4px; margin: 0; }
.find-meta > div { display: flex; gap: 8px; font-size: .74rem; }
.find-meta dt { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); min-width: 62px; }
.find-meta dd { margin: 0; color: var(--muted); }
.find-card p { margin: 0; font-size: .84rem; line-height: 1.58; color: var(--muted); }
.find-shows { padding-top: 8px; border-top: 1px solid var(--glass-border); }
.find-shows b { color: var(--gold-pale); }

@media (max-width: 900px) {
    .maps-intro { grid-template-columns: 1fr; }
    .plot-point text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .place-card, .plot-dot, .plot-point text { transition: none; }
    .place-card.is-focused { transform: none; }
}
