:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #8d8d8d;
  --text-dim: #666;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.16);
  --border: #232323;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  height: 60px;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.22rem;
}

.nav-toggle-icon span {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Ad leaderboard banner (responsive 970×250 / 728×90 / 320×50) ── */
.ad-leaderboard {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.ad-leaderboard-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

/* Collapse the banner when the ad slot is empty / unfilled */
.ad-leaderboard-inner:empty,
.ad-leaderboard-inner > div:empty {
  min-height: 0;
  padding: 0;
}

@media (max-width: 1199px) {
  .ad-leaderboard-inner {
    min-height: 90px;
  }
}

@media (max-width: 767px) {
  .ad-leaderboard-inner {
    min-height: 50px;
    overflow-x: auto;
  }
}

.site-main {
  min-height: 80vh;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem;
}

.hero {
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 1.4rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.18), rgba(10, 10, 10, 0) 42%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Hero with background image */
.hero--has-bg {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, var(--hero-overlay-opacity, 0.55)) 0%,
    rgba(10, 10, 10, calc(var(--hero-overlay-opacity, 0.55) * 0.6)) 40%,
    rgba(10, 10, 10, calc(var(--hero-overlay-opacity, 0.55) * 1.3)) 100%
  );
  z-index: 1;
}

.hero--has-bg .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
}

.hero-stats span {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

.section-head p,
.section-head a {
  margin: 0;
  color: var(--text-muted);
  text-decoration: none;
}

.section-head a:hover {
  color: var(--accent);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.55rem 0.9rem;
}

.pill:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.pill small {
  color: var(--text-dim);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.photo-card a {
  display: block;
  text-decoration: none;
}

.photo-card img,
.single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-meta {
  padding: 0.65rem 0.7rem 0.8rem;
}

.photo-meta h2,
.photo-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.photo-meta time {
  color: var(--text-dim);
  font-size: 0.76rem;
}

.photo-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: #191919;
}

.map-promo {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.56rem 1rem;
  border-radius: 5px;
}

.single-photo {
  max-width: 920px;
}

.breadcrumbs {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.single-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.single-image {
  margin: 1rem 0 1.2rem;
}

.single-caption {
  margin-bottom: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-coord {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.photo-nav {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.pagination {
  margin-top: 1rem;
}

.map-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.map-controls label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.map-controls select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  min-width: 180px;
}

.leaflet-map {
  width: 100%;
  height: 68vh;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-popup img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.map-popup a {
  color: #111;
  text-decoration: none;
}

/* ── Theme / Location hub grid ── */
.theme-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.theme-hub-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-hub-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.theme-hub-placeholder {
  background: #191919;
}

.theme-hub-info {
  padding: 0.8rem 1rem;
}

.theme-hub-info h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Playfair Display", serif;
}

.theme-hub-info span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.1rem;
}

/* ── Stories (editorial posts) ── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.story-card a {
  text-decoration: none;
  display: block;
}

.story-card img {
  width: 100%;
  height: auto;
  display: block;
}

.story-meta {
  padding: 0.9rem 1rem 1.1rem;
}

.story-meta h2 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.story-meta time {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.story-meta p {
  margin: 0;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

/* ── Pages (About, etc.) ── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.4rem 4rem;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 2rem;
  line-height: 1.1;
}

.page-body p {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.page-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.page-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-body a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 60px;
    height: auto;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links a:first-child {
    border-top: 0;
  }

  .site-header.is-nav-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

