/* ============================================================
   TÜRKİYE TARİH HARİTASI — "Altın Işık" Cinematic Light Theme
   Açık, modern, hayranlık uyandıran. Mobil öncelikli.
   ============================================================ */

:root {
  --bg-0: #faf7f0;
  --bg-1: #f1ecdf;
  --bg-2: #ffffff;
  --bg-3: #eae2cf;
  --panel: rgba(255, 255, 255, 0.92);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(66, 51, 28, 0.13);
  --gold: #a3752a;
  --gold-bright: #8f6420;
  --gold-dim: #c9a86a;
  --gold-soft: #f3e7c8;
  --gold-grad: linear-gradient(135deg, #b8862f 0%, #8f6420 100%);
  --text: #2d271f;
  --muted: #6f6556;
  --muted-2: #a29680;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 30px 70px -30px rgba(74, 58, 32, 0.35);
  --shadow-soft: 0 18px 40px -22px rgba(74, 58, 32, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(163, 117, 42, 0.28); }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #5d441a; }

img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #cfc3a8; border-radius: 10px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 6000;
  padding: 12px 22px;
  background: var(--gold-grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* Klavye erişilebilirliği */
:focus-visible {
  outline: 3px solid rgba(163, 117, 42, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(163, 117, 42, 0.55);
  outline-offset: 2px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: rgba(250, 247, 240, 0.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(250, 247, 240, 0.94);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 18px 40px -28px rgba(74, 58, 32, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: var(--gold-grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(163, 117, 42, 0.35);
}
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand .brand-name .brand-iz {
  color: var(--gold);
  font-weight: 800;
}
.brand .brand-name em {
  font-style: normal;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.brand .brand-sub {
  color: var(--gold);
  letter-spacing: 0.18em;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); }

/* Mobil menü (hamburger) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}
.nav-toggle:hover { border-color: rgba(163, 117, 42, 0.5); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--gold-bright);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-gold {
  background: var(--gold-grad);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(163, 117, 42, 0.5);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(163, 117, 42, 0.6); color: #fff; }
.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--gold-soft); border-color: rgba(163, 117, 42, 0.4); color: var(--gold-bright); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1000px 600px at 75% -5%, rgba(163, 117, 42, 0.14), transparent 60%),
    radial-gradient(900px 700px at 5% 110%, rgba(96, 124, 170, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Ephesus_Celsus_Library_Fa%C3%A7ade.jpg/1200px-Ephesus_Celsus_Library_Fa%C3%A7ade.jpg');
  background-size: cover;
  background-position: center 32%;
  opacity: 0.3;
  filter: saturate(0.9) contrast(1.02);
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.35) 0%, rgba(250, 247, 240, 0.05) 40%, rgba(250, 247, 240, 0.9) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(163, 117, 42, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 117, 42, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 20%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 140px;
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .gold {
  background: linear-gradient(135deg, #b8862f 0%, #7a5515 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 42px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 40px);
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 20px 28px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 122px;
  box-shadow: var(--shadow-soft);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1;
}
.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ SEARCH BAR ============ */
.search-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 24px 60px -24px rgba(74, 58, 32, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box:focus-within {
  border-color: rgba(163, 117, 42, 0.6);
  box-shadow: 0 24px 60px -24px rgba(74, 58, 32, 0.35), 0 0 0 4px rgba(163, 117, 42, 0.14);
}
.search-box svg { flex-shrink: 0; color: var(--gold); }
.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--sans);
  padding: 13px 0;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box .btn { flex-shrink: 0; }

.search-suggestions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  padding: 8px 17px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.chip:hover { color: var(--gold-bright); border-color: rgba(163, 117, 42, 0.5); background: var(--gold-soft); }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============ SECTION HEADINGS ============ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-1); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* ============ REGION GRID ============ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.region-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.region-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--region-color);
  opacity: 0.8;
}
.region-card:hover {
  transform: translateY(-6px);
  border-color: var(--region-color);
  box-shadow: 0 26px 50px -26px rgba(74, 58, 32, 0.4);
}
.region-card .region-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--region-color) 14%, transparent);
  color: var(--region-color);
  margin-bottom: 16px;
}
.region-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 6px; color: var(--text); }
.region-card p { color: var(--muted); font-size: 0.9rem; }
.region-card .count {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 0.78rem;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid rgba(163, 117, 42, 0.3);
  padding: 3px 13px;
  border-radius: 999px;
}

/* ============ FEATURE CARDS ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(163, 117, 42, 0.4); box-shadow: var(--shadow); }
.feature-card .f-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--gold-soft);
  border: 1px solid rgba(163, 117, 42, 0.25);
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ SPOTLIGHT CARDS ============ */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.spot-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  position: relative;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.spot-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow); border-color: rgba(163, 117, 42, 0.35); }
.spot-card .spot-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.spot-card:hover .spot-img { transform: scale(1.07); }
.spot-card .spot-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 10, 0.05) 25%, rgba(23, 18, 10, 0.93) 90%);
}
.spot-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  z-index: 2;
}
.spot-body .tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0c068;
  font-weight: 600;
}
.spot-body h3 { font-family: var(--serif); font-size: 1.65rem; margin: 8px 0; color: #fff; }
.spot-body p { color: rgba(250, 247, 240, 0.82); font-size: 0.9rem; }

/* ============ DETAIL PAGE ============ */
.detail-hero {
  position: relative;
  height: 64vh;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.detail-hero .dh-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.detail-hero .dh-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,18,10,0.5) 0%, transparent 40%, rgba(23,18,10,0.92) 94%);
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(700px 300px at 20% 0%, rgba(212, 162, 78, 0.12), transparent 70%);
}
.dh-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px 0 44px;
}
.dh-content .container { position: relative; }
.breadcrumb {
  font-size: 0.8rem;
  color: #f3e9d3;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: #f3e9d3; }
.breadcrumb a:hover { color: #f0c068; }
.breadcrumb .sep { color: rgba(243, 233, 211, 0.5); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge.era { color: #f0c068; border-color: rgba(240, 192, 104, 0.45); }
.detail-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.detail-hero .location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f3e9d3;
  font-size: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* Detail body layout */
.detail-body {
  position: relative;
  z-index: 3;
  margin-top: -8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px 0 100px;
}
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; gap: 30px; } }

.detail-section { margin-bottom: 46px; }
.detail-section h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-section h2::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--gold-grad);
  border-radius: 3px;
}
.detail-section p { color: #4a4237; font-size: 1.04rem; margin-bottom: 16px; }
.detail-section ul { list-style: none; }
.detail-section ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: #4a4237;
}
.detail-section ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 5px;
}

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.info-card h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--gold-bright);
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.92rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); }
.info-row .v { text-align: right; font-weight: 500; color: var(--text); }

/* Reach / travel card */
.travel-tip {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--gold-soft);
  border: 1px solid rgba(163, 117, 42, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.travel-tip .t-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.travel-tip p { font-size: 0.94rem; margin: 0; color: var(--text) !important; }

/* Mini map */
.mini-map { height: 260px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--glass-border); }

/* Sources */
.sources a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s;
}
.sources a:hover { color: var(--gold-bright); }

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.related-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.related-card:hover { transform: translateY(-4px); border-color: rgba(163, 117, 42, 0.4); box-shadow: var(--shadow-soft); }
.related-card .rc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.related-card:hover .rc-img { transform: scale(1.06); }
.related-card .rc-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(23, 18, 10, 0.92));
}
.related-card h4 {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  font-family: var(--serif);
  font-size: 1.18rem;
  z-index: 2;
  color: #fff;
}

/* ============ MAP PAGE ============ */
.map-page {
  position: relative;
  height: min(78vh, 780px);
  margin: 0 clamp(12px, 3vw, 44px);
  z-index: 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
#map {
  position: absolute;
  inset: 0;
  background: #e8e2d4;
  font-family: var(--sans);
}

/* Map overlay panel */
.map-panel {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 1000;
  width: min(350px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-panel-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.map-panel-head h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.map-panel-head .sub { color: var(--muted); font-size: 0.82rem; }
.map-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  text-align: left;
}
.map-toggle .mt-badge {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid rgba(163, 117, 42, 0.3);
  padding: 3px 11px;
  border-radius: 999px;
}
.map-toggle .mt-chevron {
  transition: transform 0.3s var(--ease);
  color: var(--muted);
  flex-shrink: 0;
}
.map-panel.collapsed .mt-chevron { transform: rotate(180deg); }

.map-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0 14px;
  margin-top: 14px;
}
.map-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.map-search input::placeholder { color: var(--muted-2); }
.map-search svg { color: var(--gold); flex-shrink: 0; }

.map-filters {
  display: flex;
  gap: 10px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.map-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(163, 117, 42, 0.5); }
.filter-btn.active {
  background: var(--gold-grad);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* Results list */
.map-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.result-item:hover { background: rgba(0, 0, 0, 0.05); }
.result-item.active { background: var(--gold-soft); }
.result-item .ri-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.result-item .ri-name { font-size: 0.94rem; font-weight: 600; color: var(--text); }
.result-item .ri-city { font-size: 0.78rem; color: var(--muted); }
.result-item .ri-go { margin-left: auto; color: var(--muted-2); transition: color 0.2s; }
.result-item:hover .ri-go { color: var(--gold-bright); }

.map-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 16px !important;
  box-shadow: 0 30px 70px -24px rgba(74, 58, 32, 0.45) !important;
}
.leaflet-popup-content { margin: 0; width: 280px !important; }
.leaflet-popup-tip { background: #ffffff; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); top: 8px; right: 8px; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--gold-bright); }
.leaflet-popup-content-wrapper, .leaflet-popup-content { overflow: visible; }

/* Custom marker */
.marker-wrap { background: transparent; border: none; }
.hist-marker {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(60, 48, 30, 0.45);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hist-marker .pin-dot {
  width: 11px; height: 11px;
  background: #fff;
  border-radius: 50%;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hist-marker:hover {
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 14px 28px rgba(60, 48, 30, 0.55);
}
.hist-marker::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.hist-marker:hover::before {
  opacity: 0.4;
  animation: pinPulse 1.6s infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Map popup with photo */
.map-popup { padding: 0; overflow: hidden; border-radius: 16px; }
.map-popup .pp-img {
  height: 104px;
  background-size: cover;
  background-position: center;
}
.map-popup .pp-body { padding: 15px 17px 17px; }
.map-popup .pp-tag {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 6px;
}
.map-popup h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text);
}
.map-popup .pp-meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 14px; }
.map-popup .pp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-popup .pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 17px;
  border-radius: 999px;
}
.map-popup .pp-dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-bright);
  padding: 9px 13px;
  border: 1px solid rgba(163, 117, 42, 0.4);
  border-radius: 999px;
  transition: all 0.2s;
}
.map-popup .pp-dir:hover { background: var(--gold-soft); color: var(--gold-bright); }

.dir-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: center;
}

/* Map legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 22px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.legend-item i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.legend-item:hover { color: var(--text); }
.legend-item.active { color: var(--gold-bright); font-weight: 600; }

/* Leaflet control */
.leaflet-bar a {
  background: #ffffff !important;
  color: var(--text) !important;
  border-color: var(--glass-border) !important;
}
.leaflet-bar a:hover { background: var(--gold-soft) !important; color: var(--gold-bright) !important; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--muted-2) !important;
  font-size: 0.68rem !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ============ LIST PAGE ============ */
.list-hero {
  padding: calc(var(--nav-h) + 70px) 0 40px;
  text-align: center;
  position: relative;
}
.list-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 50% 0%, rgba(163, 117, 42, 0.1), transparent 70%);
  pointer-events: none;
}
.list-hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5.5vw, 3.8rem); color: var(--text); position: relative; }
.list-hero p { color: var(--muted); max-width: 620px; margin: 16px auto 0; position: relative; }

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 36px 0;
  position: relative;
}
.list-toolbar .tb-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.list-toolbar .tb-search:focus-within {
  border-color: rgba(163, 117, 42, 0.6);
  box-shadow: 0 0 0 4px rgba(163, 117, 42, 0.14);
}
.list-toolbar .tb-search svg { color: var(--gold); flex-shrink: 0; }
.list-toolbar .tb-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 13px 0;
  font-family: var(--sans);
}
.list-toolbar .tb-search input::placeholder { color: var(--muted-2); }
.list-toolbar select {
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--sans);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3752a' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.list-toolbar select option { background: var(--bg-2); color: var(--text); }
.list-toolbar select:hover, .list-toolbar select:focus { border-color: rgba(163, 117, 42, 0.5); }
.list-toolbar .tb-count {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.list-toolbar .tb-count b { color: var(--gold-bright); }

.site-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; padding-bottom: 90px; }
.site-card {
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.site-card:hover { transform: translateY(-7px); border-color: rgba(163, 117, 42, 0.45); box-shadow: var(--shadow); }
.site-card .sc-img { height: 190px; position: relative; background-size: cover; background-position: center; }
.site-card .sc-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 10, 0.15) 0%, transparent 35%, rgba(23, 18, 10, 0.9) 100%);
}
.site-card .sc-photo-zoom {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.site-card:hover .sc-photo-zoom { transform: scale(1.08); }
.site-card .sc-img .sc-era {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 0.68rem;
  background: rgba(20, 16, 10, 0.7);
  backdrop-filter: blur(8px);
  padding: 5px 13px;
  border-radius: 999px;
  color: #f0c068;
  border: 1px solid rgba(240, 192, 104, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-card .sc-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.site-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; color: var(--text); }
.site-card .sc-city { color: var(--gold); font-size: 0.82rem; margin-bottom: 12px; letter-spacing: 0.05em; }
.site-card p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 18px; }
.site-card .sc-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.site-card .sc-types span {
  font-size: 0.72rem;
  padding: 5px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
}
.site-card .btn { align-self: flex-start; }

/* Marker cluster override */
.marker-cluster { background: transparent !important; }
.marker-cluster .mc-inner {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: var(--gold-grad);
  box-shadow: 0 10px 26px rgba(60, 48, 30, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ============ GALLERY ============ */
.gallery-section { padding-top: 50px; }
.gallery-main { position: relative; }
.gallery-stage {
  position: relative;
  height: min(64vh, 580px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-3);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.g-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.g-slide.active { opacity: 1; pointer-events: auto; }
.g-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav .g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.g-nav:hover { background: var(--gold-soft); color: var(--gold-bright); border-color: rgba(163, 117, 42, 0.4); }
.g-nav.prev { left: 18px; }
.g-nav.next { right: 18px; }
.gallery-counter {
  position: absolute;
  bottom: 16px; right: 18px;
  z-index: 5;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
.g-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s var(--ease);
}
.g-thumb:hover { opacity: 1; }
.g-thumb.active { border-color: var(--gold); opacity: 1; box-shadow: 0 8px 24px rgba(163, 117, 42, 0.3); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-credit {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(10, 8, 5, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 16, 10, 0.7);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-close { top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 2rem;
}
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(163, 117, 42, 0.5); color: #fff; }
.lb-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
  background: rgba(10, 8, 5, 0.6);
  padding: 8px 18px;
  border-radius: 999px;
}

/* Tag chips */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  font-size: 0.8rem;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid rgba(163, 117, 42, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}
.tag-chip:hover { background: rgba(163, 117, 42, 0.22); color: var(--gold-bright); }

.lead-para {
  font-size: 1.15rem;
  color: var(--gold-bright) !important;
  font-weight: 500;
  line-height: 1.7;
}

.related-card .rc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(23, 18, 10, 0.92));
  z-index: 1;
}
.related-card h4 { z-index: 2; }

/* ============ MINI MAP (detail) ============ */
.mini-pin { background: transparent; border: none; }
.mini-pin-inner {
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold-grad);
  border: 2px solid #fff;
  box-shadow: 0 5px 12px rgba(60, 48, 30, 0.4);
}
.mini-city { background: transparent; border: none; }
.mini-city-inner {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #3498db;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(60, 48, 30, 0.35);
}
.mini-dist { background: transparent; border: none; }
.mini-dist-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: #fff;
  border: 1px solid rgba(163, 117, 42, 0.4);
  border-radius: 999px;
  padding: 3px 11px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(60, 48, 30, 0.25);
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-1);
  border-top: 1px solid var(--glass-border);
  padding: 56px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 16px; color: var(--gold-bright); }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.92rem; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(163, 117, 42, 0.45);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: var(--gold-bright);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-soft); transform: translateY(-3px); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.8s var(--ease) forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }
.fade-up.d4 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-photo { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .navbar { padding: 0 16px; }
  .brand small { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px 26px;
    background: rgba(250, 247, 240, 0.97);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 40px 70px -30px rgba(74, 58, 32, 0.4);
    display: none;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 13px;
    font-size: 1.02rem;
    color: var(--text);
  }
  .nav-links a:hover { background: var(--gold-soft); }
  .nav-links .btn { justify-content: center; margin-top: 8px; }

  .hero-inner { padding-top: calc(var(--nav-h) + 30px); }
  .detail-hero { height: 52vh; }
  .map-page { height: 70vh; }

  /* Harita paneli → alt sheet */
  .map-panel {
    width: calc(100% - 20px);
    left: 10px; right: 10px;
    top: auto; bottom: 10px;
    max-height: 60vh;
    border-radius: 20px;
  }
  .map-toggle { display: flex; }
  .map-panel-head { display: none; }
  .map-panel.collapsed { max-height: 54px; overflow: hidden; }
  .map-panel.collapsed .map-search,
  .map-panel.collapsed .map-filters,
  .map-panel.collapsed .map-legend,
  .map-panel.collapsed .map-results { display: none; }
  .map-results { max-height: 26vh; }
  .map-toggle .mt-badge { display: none; }
}

@media (max-width: 480px) {
  .site-list { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .region-card { padding: 22px 18px; }
  .region-card .count { top: 18px; right: 18px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .back-to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .stat { min-width: 104px; padding: 16px 20px; }
  .stat b { font-size: 1.8rem; }
  .list-hero { padding-top: calc(var(--nav-h) + 50px); }
  .list-toolbar select { flex: 1 1 100%; }
  .site-card .sc-img { height: 200px; }
}
