/* Locations index + location pages. Tokens and header/footer come from site-base.css */
.loc-main { padding-top: 76px; }

/* ── Map hero ── */
.loc-hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--border); }
#loc-map {
  height: clamp(380px, calc(100vh - 76px - 130px), 720px);
  background: #e9e9e9;
  z-index: 1;
}
.loc-hero-caption {
  position: absolute; left: 64px; top: 14px; z-index: 500;
  background: rgba(255,255,255,.94); border: 1px solid var(--border);
  padding: 14px 20px; max-width: 320px; pointer-events: none;
}
.loc-hero-caption .section-label { margin: 0 0 4px; }
.loc-hero-caption h1 {
  font-family: 'Playfair Display', serif; font-weight: 400; font-size: 26px; color: var(--black);
}
.loc-fail { padding: 120px 24px; text-align: center; color: var(--grey); }
.loc-fail a { color: var(--accent); }

/* greyscale basemap so the accent pin carries the colour */
#loc-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
#loc-map .leaflet-control-attribution { font-family: 'Inter', sans-serif; font-size: 10px; }
#loc-map .leaflet-control-zoom a { color: var(--black); }
#loc-map .leaflet-container { font-family: 'Inter', sans-serif; }

.loc-pin { background: none; border: 0; }
.loc-pin span {
  display: block; width: 28px; height: 28px; margin: 0 auto;
  background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.loc-pin:focus-visible span, .loc-pin:hover span { background: #9E401F; }
.leaflet-marker-icon.loc-pin:focus { outline: none; }
.loc-tip.leaflet-tooltip {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--black);
  background: #fff; border: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 5px 10px;
}
.loc-tip.leaflet-tooltip-top:before { border-top-color: var(--border); }

/* ── Index body ── */
.loc-intro { max-width: 1100px; margin: 0 auto; padding: 56px 40px 24px; }
.loc-intro p { font-size: 17px; line-height: 1.7; color: var(--grey); max-width: 640px; }
.loc-grid {
  max-width: 1100px; margin: 0 auto; padding: 8px 40px 96px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.loc-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px;
  border: 1px solid var(--border); text-decoration: none; color: var(--black);
  transition: border-color .2s, transform .2s;
}
.loc-card:hover, .loc-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.loc-card-country {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
}
.loc-card-name { font-family: 'Playfair Display', serif; font-size: 26px; }
.loc-card-date { font-size: 13px; color: var(--light-grey); }
.loc-card-go { margin-top: 10px; font-size: 13px; color: var(--accent); }

/* ── Location page ── */
.loc-page { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.loc-crumb { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.loc-crumb a { color: var(--accent); text-decoration: none; }
.loc-page h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin-bottom: 14px; }
.loc-lede { font-size: 19px; line-height: 1.65; color: var(--grey); margin-bottom: 28px; }
.loc-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin: 28px 0 8px;
}
.loc-facts div { background: #fff; padding: 16px 18px; }
.loc-facts dt { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--accent); }
.loc-facts dd { font-size: 13px; color: var(--grey); margin-top: 4px; line-height: 1.45; }
.loc-sec { margin-top: 48px; scroll-margin-top: 96px; }
.loc-sec .section-label, .loc-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.loc-sec h2 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 28px; margin-bottom: 14px; }
.loc-sec p, .loc-sec li { font-size: 16px; line-height: 1.75; color: var(--grey); }
.loc-sec p + p { margin-top: 12px; }
.loc-sec ul { padding-left: 20px; }
.loc-sec a { color: var(--accent); }
.loc-fig { margin: 28px 0; }
.loc-fig img { display: block; width: 100%; height: auto; background: var(--bg); }
.loc-fig.slot { display: none; } /* image slot left empty until a licensed photo is added */
.loc-fig figcaption { font-size: 12px; color: var(--light-grey); margin-top: 8px; line-height: 1.5; }
.loc-fig figcaption a { color: var(--light-grey); }
.loc-note { font-size: 13px; color: var(--light-grey); border-top: 1px solid var(--border); margin-top: 56px; padding-top: 20px; line-height: 1.6; }
.loc-note a { color: var(--light-grey); }
.loc-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.loc-toc a { font-size: 13px; color: var(--grey); text-decoration: none; border-bottom: 1px solid var(--border); }
.loc-toc a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 768px) {
  .loc-main { padding-top: 68px; }
  #loc-map { height: clamp(340px, calc(100svh - 68px - 150px), 640px); }
  .loc-hero-caption { left: 56px; top: 10px; padding: 10px 14px; }
  .loc-hero-caption h1 { font-size: 20px; }
  .loc-intro { padding: 36px 20px 16px; }
  .loc-grid { padding: 8px 20px 56px; }
  .loc-page { padding: 36px 20px 56px; }
}


.loc-ref { font-size: 10px; line-height: 0; margin-left: 1px; }
.loc-ref a { text-decoration: none; color: var(--accent); }
#sources ol { padding-left: 22px; }
#sources li { font-size: 14px; margin-bottom: 6px; scroll-margin-top: 96px; }
#sources li:target { background: #fbefe9; }
.loc-sec em { color: var(--light-grey); }

.loc-visited { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--light-grey); margin: -4px 0 16px; }
