:root {
  --paper: #f6f4ee; --surface: #fffefa; --ink: #1b211e; --muted: #6c736d;
  --line: #d9d8cf; --tomato: #d7543d; --tomato-dark: #a93828;
  --green: #1f6a52; --mustard: #d9a62e; --blue: #397b91;
  --shadow: 0 16px 42px rgba(31, 41, 36, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 1100; height: 72px; padding: 0 clamp(18px, 4vw, 64px); display: flex; align-items: center; gap: 28px; background: rgba(246,244,238,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: 240px; }
.brand-mark { width: 40px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--tomato); color: white; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.top-stats { display: flex; gap: 20px; margin-left: auto; color: var(--muted); font-size: 13px; }
.top-stats strong { color: var(--ink); }
.icon-button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; }
.workspace-band { padding: 24px clamp(18px, 4vw, 64px); display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; display: flex; align-items: center; max-width: 760px; }
.search-wrap > svg { position: absolute; left: 14px; width: 20px; color: var(--muted); }
.search-wrap input { width: 100%; height: 46px; padding: 0 48px 0 45px; border: 1px solid var(--line); border-radius: 6px; background: white; outline: none; }
.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,106,82,.12); }
.clear-search { position: absolute; right: 7px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.clear-search svg { width: 17px; }
.segmented { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 7px; background: #eeece5; }
.segmented button { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; white-space: nowrap; }
.segmented button.active { background: var(--surface); color: var(--green); box-shadow: 0 1px 5px rgba(33,44,38,.12); font-weight: 600; }
.segmented svg { width: 17px; }
.segmented.compact button { height: 36px; padding: 0 13px; }
.filter-row { grid-column: 1 / -1; display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.select-wrap { display: grid; gap: 4px; }.select-wrap span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.select-wrap select { height: 38px; min-width: 150px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.map-band, .content-section, .timeline-band { padding: 34px clamp(18px, 4vw, 64px); }
.map-band { background: #dfe8df; border-bottom: 1px solid #c7d1c7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 4px; color: var(--tomato-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", serif; letter-spacing: 0; }
h1, h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1; } h3 { margin: 0; }
#map { width: 100%; height: clamp(330px, 47vh, 560px); border: 1px solid rgba(53,80,62,.22); border-radius: 7px; overflow: hidden; background: #c8ddd8; }
.text-button { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.text-button svg { width: 17px; }
.result-count { color: var(--muted); font-size: 13px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 18px; }
.place-tile { min-width: 0; border: 0; padding: 0; border-radius: 7px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 rgba(25,35,30,.08), 0 8px 24px rgba(25,35,30,.08); text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.place-tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(25,35,30,.08), 0 13px 30px rgba(25,35,30,.15); }
.tile-image { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }.place-tile:hover img { transform: scale(1.025); }
.tile-count { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 5px; background: rgba(24,31,27,.82); color: white; font-size: 12px; }
.tile-copy { padding: 14px 15px 16px; }.tile-copy h3 { font-size: 22px; line-height: 1.05; }.tile-meta { margin-top: 7px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.category-swatch { width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; display: inline-block; }.food-swatch { background: var(--tomato); }.drink-swatch { background: var(--blue); }
.empty-state { padding: 72px 20px; text-align: center; color: var(--muted); }.empty-state svg { width: 38px; height: 38px; }.empty-state h3 { margin-top: 12px; color: var(--ink); font-size: 24px; }.empty-state p { margin: 6px 0; }
.year-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }.year-strip button { min-width: 72px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; }.year-strip button.active { background: var(--green); color: white; border-color: var(--green); }
.photo-stream { margin-top: 18px; columns: 5 220px; column-gap: 14px; }.stream-photo { width: 100%; margin: 0 0 14px; padding: 0; display: block; break-inside: avoid; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: white; }.stream-photo img { width: 100%; display: block; }.stream-photo span { display: block; padding: 9px; font-size: 12px; text-align: left; }
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(18,25,22,.72); backdrop-filter: blur(5px); }
.detail-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 8px; overflow: auto; }
.dialog-close { position: sticky; z-index: 6; top: 12px; float: right; margin: 12px 12px -52px 0; background: rgba(255,254,250,.94); }
.detail-layout { min-height: 620px; }
.detail-gallery { position: sticky; z-index: 2; top: 0; min-width: 0; padding: 12px 16px; background: #191d1a; box-shadow: 0 8px 26px rgba(10,14,12,.22); }.main-photo-wrap { position: relative; width: 100%; height: clamp(300px, 44vh, 430px); overflow: hidden; }.main-photo-wrap img { position: absolute; inset: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; transition: opacity .18s ease; }.main-photo-wrap img.changing { opacity: .25; }
.nav-photo { position: absolute; top: 50%; width: 42px; height: 48px; border: 0; border-radius: 5px; display: grid; place-items: center; background: rgba(255,255,255,.86); cursor: pointer; }.nav-photo.previous { left: 10px; }.nav-photo.next { right: 10px; }
.photo-status { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 6px; color: white; background: rgba(16,21,18,.78); font-size: 12px; backdrop-filter: blur(8px); }.slideshow-toggle { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.16); cursor: pointer; }.slideshow-toggle svg { width: 17px; height: 17px; }
.detail-copy { padding: 32px clamp(20px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 30px 56px; border-bottom: 1px solid var(--line); }.kind-badge { display: inline-flex; padding: 5px 8px; border-radius: 5px; color: white; background: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; }.detail-copy h2 { margin-top: 16px; font-size: 38px; line-height: 1.04; }.detail-description { margin: 14px 0 0; font-family: "Newsreader", serif; font-size: 21px; line-height: 1.45; }
.meta-list { margin: 0; border-top: 1px solid var(--line); }.meta-list div { padding: 12px 0; display: grid; grid-template-columns: 90px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }.meta-list dt { color: var(--muted); font-size: 12px; }.meta-list dd { margin: 0; font-size: 13px; }
.detail-browser { padding: 30px clamp(18px, 4vw, 48px) 42px; background: var(--surface); }.gallery-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }.gallery-heading h3 { font-size: 25px; }.gallery-heading .eyebrow { margin-bottom: 3px; }.gallery-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }.thumb-grid button { position: relative; min-width: 0; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: #fff; color: var(--ink); text-align: left; cursor: pointer; opacity: .9; box-shadow: 0 1px 0 rgba(22,26,23,.08); }.thumb-grid button:hover { opacity: 1; }.thumb-grid button.active { border-color: var(--mustard); opacity: 1; box-shadow: 0 0 0 2px rgba(217,166,46,.22); }.thumb-grid img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }.thumb-caption { min-width: 0; padding: 9px 10px 10px; display: grid; gap: 4px; }.thumb-caption strong { font-size: 13px; line-height: 1.2; }.thumb-description { min-height: 2.7em; overflow: hidden; color: #3f443f; font-family: "Newsreader", serif; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.thumb-caption small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.gallery-sentinel { height: 62px; display: grid; place-items: center; }.gallery-sentinel[hidden] { display: none; }.gallery-loader { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: gallery-spin .8s linear infinite; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }
.info-dialog { width: min(520px, calc(100vw - 32px)); padding: 34px; border-radius: 8px; }.info-dialog h2 { margin: 10px 0 18px; }.info-dialog p:last-child { color: var(--muted); line-height: 1.65; }
.leaflet-popup-content-wrapper { border-radius: 6px; }.map-popup { width: 190px; }.map-popup img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }.map-popup strong { display: block; margin-top: 7px; font-size: 14px; }.map-popup span { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 14px; }.brand { min-width: 0; }.brand small, .top-stats { display: none; }.topbar .icon-button { margin-left: auto; }
  .workspace-band { padding: 16px 14px; grid-template-columns: 1fr; }.segmented:not(.compact) { width: 100%; }.segmented:not(.compact) button { flex: 1; justify-content: center; }.filter-row { align-items: stretch; }.filter-row > * { flex: 1 1 145px; }.select-wrap select { width: 100%; min-width: 0; }
  .map-band, .content-section, .timeline-band { padding: 26px 14px; } h1, h2 { font-size: 29px; } #map { height: 360px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.tile-copy { padding: 11px; }.tile-copy h3 { font-size: 18px; }.tile-meta { display: block; }.tile-meta span { display: block; margin-top: 3px; }
  .detail-dialog { width: 100vw; max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }.detail-gallery { padding: 7px; }.main-photo-wrap { height: clamp(220px, 34vh, 290px); }.detail-copy { padding: 25px 18px 30px; display: block; }.detail-copy h2 { font-size: 32px; }.meta-list { margin-top: 24px; }.detail-browser { padding: 25px 12px 36px; }.thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.thumb-caption { padding: 8px; }.thumb-description { font-size: 12px; }.gallery-heading h3 { font-size: 22px; }
}
@media (max-width: 390px) { .tile-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gallery-loader { animation: none; }.main-photo-wrap img { transition: none; } }
