:root {
  --ink: #173f35;
  --ink-deep: #0e2923;
  --paper: #f4f0e4;
  --paper-bright: #fffdf7;
  --orange: #e86639;
  --blue: #78aeba;
  --gold: #dfb84e;
  --muted: #66756f;
  --line: rgba(23, 63, 53, .18);
  --shadow: 0 24px 60px rgba(21, 48, 41, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { color: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .065; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.masthead {
  min-height: 82px; padding: 14px clamp(20px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--paper-bright); background: var(--ink); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 1.1; letter-spacing: .12em; }
.brand em { font-family: "Fraunces", serif; text-transform: none; letter-spacing: 0; font-size: 15px; }
.brand-mark { width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font: 700 25px/1 "Fraunces", serif; color: var(--gold); }
.weather-note { font: 500 11px/1 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a7d28d; margin-right: 8px; box-shadow: 0 0 0 5px rgba(167,210,141,.1); }
.saved-button { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; background: transparent; padding: 10px 15px; cursor: pointer; }
.saved-button span { color: #ef9272; margin-right: 4px; }
.saved-button b { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 6px; background: var(--paper); color: var(--ink); border-radius: 50%; font-size: 11px; }

.hero {
  height: min(560px, 67vh); min-height: 440px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 83% 26%, rgba(223,184,78,.25), transparent 18%),
    linear-gradient(128deg, var(--ink-deep) 0%, var(--ink) 58%, #315e50 100%);
  color: var(--paper-bright); padding: clamp(48px, 7vw, 96px) clamp(20px, 8vw, 122px);
}
.hero::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.hero-copy { position: relative; z-index: 2; max-width: 820px; animation: rise .8s ease both; }
.eyebrow { font: 500 11px/1 "DM Mono", monospace; letter-spacing: .16em; color: var(--gold); }
h1 { margin: 18px 0 20px; font: 700 clamp(64px, 10vw, 138px)/.8 "Fraunces", serif; letter-spacing: -.055em; }
h1 i { color: var(--orange); font-weight: 600; }
.lede { max-width: 580px; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; opacity: .83; }
.hero-stamp {
  position: absolute; z-index: 2; right: clamp(30px, 8vw, 130px); top: 95px;
  width: 132px; height: 132px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg);
  font: 500 9px/1.4 "DM Mono", monospace; letter-spacing: .15em;
}
.hero-stamp strong { font: 700 38px/1 "Fraunces", serif; color: var(--gold); letter-spacing: -.04em; }
.mountain-line { position: absolute; left: 0; right: 0; bottom: -4px; height: 160px; opacity: .2; }
.mountain-line svg { width: 100%; height: 100%; fill: var(--paper); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.explorer { padding: 28px clamp(20px, 4vw, 64px) 70px; max-width: 1600px; margin: auto; overflow-x: clip; }
.toolbar { display: flex; gap: 18px; align-items: stretch; position: relative; margin-top: -61px; z-index: 6; }
.search { flex: 1; min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: var(--paper-bright); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); }
.search span { font: 30px/1 "Fraunces", serif; transform: rotate(-20deg); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: #85918b; }
.view-toggle { padding: 7px; display: flex; align-items: center; background: var(--paper-bright); box-shadow: var(--shadow); }
.view-toggle button { border: 0; background: transparent; padding: 17px 19px; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.view-toggle button.active { background: var(--ink); color: white; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width:0; padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 15px; cursor: pointer; font-size: 12px; font-weight: 600; }
.chip:hover, .chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.select-wrap { display: flex; align-items: center; gap: 10px; font: 500 10px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.select-wrap select { border: 0; border-bottom: 1px solid var(--ink); padding: 7px 24px 7px 3px; background: transparent; color: var(--ink); font-weight: 700; outline: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 14px; color: var(--muted); font-size: 12px; }
.results-bar p { margin: 0; }
.results-bar strong { color: var(--ink); font: 700 24px/1 "Fraunces", serif; margin-right: 4px; }

.content { display: grid; gap: 18px; width:100%; max-width:100%; min-width:0; height: 720px; overflow-x:clip; }
.content.hybrid { grid-template-columns: minmax(390px, 47%) 1fr; }
.content.list { grid-template-columns: 1fr; height: auto; }
.content.map { grid-template-columns: 1fr; height: min(760px, 75vh); }
.content.list .map-panel, .content.map .list-panel { display: none; }
.list-panel { min-width:0; max-width:100%; overflow-y: auto; overflow-x:hidden; padding-right: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.content.list .list-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
.place-card {
  position: relative; min-height: 250px; border: 1px solid var(--line); background: var(--paper-bright);
  padding: 0; text-align: left; cursor: pointer; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.place-card:hover, .place-card.active { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(23,63,53,.12); border-color: var(--orange); }
.card-visual { height: 150px; padding: 16px; color: white; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone), #071915 40%)); }
.card-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.place-card:hover .card-photo { transform:scale(1.045); }
.card-shade { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(6,24,20,.08), rgba(6,24,20,.73)); }
.card-visual::after { content:""; position:absolute; width:120px; height:120px; border:1px solid rgba(255,255,255,.25); border-radius:50%; right:-28px; top:-43px; box-shadow: 0 0 0 20px rgba(255,255,255,.04), 0 0 0 40px rgba(255,255,255,.025); }
.card-icon { position:relative; z-index:1; font-size: 34px; filter: grayscale(.2); }
.scope-label { position: absolute; z-index:2; bottom: 10px; left: 15px; font: 500 9px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.heart {
  position: absolute; z-index: 3; right: 10px; top: 10px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%; display: grid; place-items: center; background: rgba(10,30,25,.22); color: white; font-size: 16px;
}
.heart.saved { background: var(--orange); border-color: var(--orange); }
.card-body { padding: 15px 16px 17px; }
.card-kicker { margin: 0 0 5px; color: var(--orange); font: 500 9px/1.4 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.place-card h2 { margin: 0 0 8px; font: 700 22px/1.05 "Fraunces", serif; letter-spacing: -.02em; }
.place-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-meta { display: flex; gap: 10px; margin-top: 12px; font: 500 9px/1 "DM Mono", monospace; text-transform: uppercase; }
.map-panel { position: relative; width:100%; max-width:100%; min-width:0; min-height: 400px; border: 1px solid var(--line); background: #cbd7ce; overflow: hidden; contain:layout paint; }
#map { width: 100%; max-width:100%; height: 100%; overflow:hidden; contain:layout paint; }
.map-key { position: absolute; z-index: 500; left: 14px; bottom: 14px; background: rgba(255,253,247,.94); padding: 10px 12px; box-shadow: 0 5px 20px rgba(0,0,0,.12); font: 500 9px/1 "DM Mono", monospace; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px 0 10px; }
.dot:first-child { margin-left: 0; }
.dot.city { background: var(--ink); }.dot.trip { background: var(--orange); }
.marker-pin {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg);
  color: white; background: var(--ink); border: 2px solid var(--paper-bright); box-shadow: 0 5px 12px rgba(0,0,0,.28); font-size: 14px;
}
.marker-pin span { transform: rotate(45deg); }
.marker-pin.trip { background: var(--orange); }
.leaflet-popup-content-wrapper { border-radius: 2px; font-family: "Manrope", sans-serif; color: var(--ink); }
.leaflet-popup-content strong { font: 700 17px/1.2 "Fraunces", serif; }

.detail-drawer {
  position: fixed; z-index: 1000; right: 0; top: 0; bottom: 0; width: min(480px, 94vw); background: var(--paper-bright);
  max-width: 100vw;
  contain: layout paint;
  padding: 72px 36px 40px; transform: translateX(105%); transition: transform .35s cubic-bezier(.22,.8,.25,1); box-shadow: -20px 0 60px rgba(14,41,35,.2); overflow-y: auto;
}
.detail-drawer.open { transform: none; }
.drawer-close { position: absolute; top: 20px; right: 24px; border: 1px solid var(--line); background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 25px; }
.drawer-art { height: 240px; position:relative; display: grid; place-items: center; overflow:hidden; font-size: 72px; color: white; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone), #071915 45%)); }
.drawer-art img { width:100%; height:100%; object-fit:cover; }
.photo-credit { position:absolute; right:8px; bottom:7px; padding:5px 7px; color:white; background:rgba(5,20,17,.72); font:500 8px/1.2 "DM Mono", monospace; text-decoration:none; }
.drawer-kicker { margin: 28px 0 8px; color: var(--orange); font: 500 10px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.detail-drawer h2 { margin: 0; font: 700 42px/.98 "Fraunces", serif; letter-spacing: -.035em; }
.drawer-description { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 18px 0 24px; }
.context-note { margin:-12px 0 22px; color:var(--muted); font:500 9px/1.5 "DM Mono", monospace; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { background: var(--paper-bright); padding: 14px; }
.detail-grid span { display:block; font: 500 9px/1 "DM Mono", monospace; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.detail-grid strong { font-size: 13px; }
.tip { margin-top: 22px; padding: 18px; border-left: 3px solid var(--gold); background: #f5edcf; font-size: 13px; line-height: 1.6; }
.tip strong { font-family: "Fraunces", serif; font-size: 16px; }
.drawer-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:22px; }
.directions { display: inline-flex; padding: 13px 18px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; font-size: 12px; }
.official-link { background:var(--orange); }
.scrim { position: fixed; inset: 0; z-index: 900; background: rgba(9,30,25,.45); opacity: 0; visibility: hidden; transition: .3s; }
.scrim.show { opacity: 1; visibility: visible; }
.empty { grid-column: 1/-1; padding: 70px 20px; text-align: center; border: 1px dashed var(--line); }
.empty strong { display:block; font: 700 28px/1.2 "Fraunces", serif; }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 46px clamp(20px, 4vw, 64px); background: var(--ink-deep); color: white; font-size: 12px; }
footer strong { font: 700 20px/1 "Fraunces", serif; } footer span, footer p { opacity:.65; } footer p { max-width: 680px; margin:0; line-height:1.7; }

@media (max-width: 1000px) {
  .hero-stamp { display:none; }
  .content.hybrid { grid-template-columns: minmax(320px, 44%) 1fr; }
  .list-panel { grid-template-columns: 1fr; }
  .content.list .list-panel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .weather-note { display:none; }
  .hero { min-height: 410px; height: 58vh; padding-top: 62px; }
  h1 { font-size: clamp(56px, 18vw, 88px); }
  .lede { font-size: 14px; max-width: 90%; }
  .toolbar { flex-direction: column; margin-top: -42px; }
  .search { min-height: 62px; }
  .view-toggle { justify-content: stretch; }
  .view-toggle button { flex:1; padding:13px 8px; }
  .filter-row { align-items:flex-start; flex-direction:column; }
  .filter-group { max-width:100%; }
  .select-wrap { max-width:100%; }
  .content.hybrid { display: flex; flex-direction: column; height: auto; }
  .content.hybrid .list-panel { order:2; grid-template-columns: 1fr 1fr; overflow: visible; padding:0; }
  .content.hybrid .map-panel { width:100%; max-width:100%; height: 390px; flex:none; }
  .content.list .list-panel { grid-template-columns: 1fr 1fr; }
  .content.map { height: 70vh; }
  .results-bar #scopeNote { display:none; }
  footer { flex-direction:column; }
}
@media (max-width: 470px) {
  .brand span:last-child { display:none; }
  .saved-button { padding:9px 11px; }
  .content.hybrid .list-panel, .content.list .list-panel { grid-template-columns: 1fr; }
  .place-card { min-height: 230px; }
}
@media (max-width: 350px) {
  .masthead, .explorer, footer { padding-left: 16px; padding-right: 16px; }
  .view-toggle button { letter-spacing:.04em; }
  .chip { padding-left:12px; padding-right:12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
