/* ============================================
   THE EASTERN BLOG — Main Stylesheet
   Dark archive / documentary database aesthetic
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #000000;
  --bg-card:     #161616;
  --bg-card-hover: #1e1e1e;
  --bg-sidebar:  #111111;
  --border:      #2a2a2a;
  --border-light: #333;
  --ink:         #e8e8e8;
  --ink-muted:   #888;
  --ink-dim:     #555;
  --red:         #c0392b;
  --red-soft:    rgba(192,57,43,0.15);
  --white:       #fff;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'Courier New', monospace;
  --nav-h:       58px;
  --sidebar-w:   220px;
  --transition:  0.18s ease;
}

html {
  font-size: 14px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 2rem;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.35em 0.5em;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link--drop {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.nav-chevron {
  font-size: 0.8rem;
  color: var(--ink-dim);
  transition: color var(--transition);
}

.nav-link--drop:hover .nav-chevron,
.nav-link--drop.active .nav-chevron {
  color: var(--ink-muted);
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.site-logo:hover { color: var(--ink-muted); }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  padding: 0.3em;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-icon-btn:hover { color: var(--white); }

.nav-lang {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.nav-lang-pipe {
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
  user-select: none;
}

.nav-lang a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.nav-lang a:hover,
.nav-lang a.current {
  color: var(--white);
}

/* Mobile hamburger */
.nav-hamburger {
  background: none;
  border: none;
  color: var(--ink-muted);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.3em;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.22s;
}

/* ============================================
   DROPDOWNS
   ============================================ */
.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111111;
  border: 1px solid var(--border);
  border-top: none;
  z-index: 400;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-wrapper:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Slim dropdown — Sights categories */
.nav-dropdown--slim {
  width: 220px;
}

.nav-dropdown-item {
  display: block;
  padding: 0.72em 1.2em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--white);
}

/* Mega dropdown — Countries */
.nav-dropdown--mega {
  width: 840px;
  padding: 1.8rem 2rem;
}

.nav-mega-section {
  margin-bottom: 1.6rem;
}

.nav-mega-section:last-child {
  margin-bottom: 0;
}

.nav-mega-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  row-gap: 0;
}

.nav-mega-grid a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.45em 1em 0.45em 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  transition: color var(--transition);
  display: block;
}

.nav-mega-grid a:hover {
  color: var(--white);
}

.nav-mega-grid--asia {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
}

.nav-mega-grid--americas {
  grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   SIGHTS PAGE — Full-width header
   ============================================ */
.sights-header {
  margin-top: var(--nav-h);
  padding: 3.5rem 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.sights-header-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .sights-header-title { font-size: clamp(1.4rem, 6vw, 3rem); }
}

.sights-header-subtitle {
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  max-width: 60ch;
}

/* ============================================
   PAGE SHELL (below fixed nav)
   ============================================ */
.page-shell {
  margin-top: var(--nav-h);
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* When page-shell follows a sights-header, no extra top margin */
.page-shell--no-top {
  margin-top: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 0;
}

.sidebar-section {
  padding: 1.6rem 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.map-attribution {
  padding: 1rem 1.4rem;
  font-size: 0.65rem;
  color: var(--ink);
  line-height: 1.5;
}
.map-attribution a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-attribution a:hover {
  color: var(--red);
}

.sidebar-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.9rem;
  margin-top: 1.4rem;
}

.sidebar-heading:first-child {
  margin-top: 0;
}

.filter-list {
  list-style: none;
}

/* Sidebar section label */
.sidebar-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 0.8rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.filter-list {
  list-style: none;
  margin-top: 0;
}

.filter-list li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4em;
  padding: 0.65em 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  background: none;
  border-radius: 0;
}

.filter-count {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: auto;
  flex-shrink: 0;
}
.filter-count:empty { opacity: 0; }

/* Multilingual sidebar labels — show only the span matching current lang */
.lname { display: none; }
:lang(en) .lname[lang="en"],
:lang(ru) .lname[lang="ru"],
:lang(nl) .lname[lang="nl"] { display: inline; }

.filter-list li:last-child > a {
  border-bottom: none;
}

.filter-list li a:hover {
  color: var(--white);
  background: none;
}

.filter-list li a.active {
  color: var(--white);
  font-weight: 700;
  background: none;
}

.filter-list li a::before {
  content: '✓';
  display: inline-block;
  width: 1.1em;
  margin-right: 0.25em;
  visibility: hidden;
  flex-shrink: 0;
}

.filter-list li a.active::before {
  visibility: visible;
}

/* Continent accordion */
.continent-group {
  list-style: none;
}

.continent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
  padding: 0.62em 0;
  cursor: pointer;
  transition: color var(--transition);
}

.continent-btn:hover,
.continent-btn.open {
  color: var(--white);
}

.continent-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
  color: var(--ink-dim);
}

.continent-btn.open .continent-chevron {
  transform: rotate(180deg);
}

.continent-countries {
  list-style: none;
  display: none;
  padding-left: 0.9rem;
}

.continent-countries.open {
  display: block;
}

.continent-countries li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4em;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding: 0.5em 0;
}

.continent-countries li:last-child a {
  border-bottom: none;
}

/* Collapse chevron */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 0.9rem;
  margin-top: 1.4rem;
}

.sidebar-toggle:first-child { margin-top: 0; }

.chevron {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.sidebar-toggle.collapsed .chevron { transform: rotate(-90deg); }

.collapsible { overflow: hidden; }
.collapsible.collapsed { display: none; }

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.5rem 4rem;
}

.main-content--no-top {
  padding-top: 1.5rem;
}

/* Page title */
.page-title-block {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg);
}

/* ── Sight card ───────────────────────────────────────────── */
.sight-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Country cards on /countries use 2:3 flag ratio (hoist:fly = 2:3 → width:height = 3:2) */
#countriesGrid .sight-card-img { padding-top: 66.67%; }

/* Image wrapper — the whole card is image */
.sight-card-img {
  position: relative;
  padding-top: 80%;
  overflow: hidden;
  background: #111;
  display: block;
}

.sight-card-img img,
.sight-card-img .card-img-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.sight-card-img img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s;
  display: block;
}

.sight-card:hover .sight-card-img img { transform: scale(1.04); }

/* Placeholder when no image */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Dark overlay covering the whole image */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sight-card:hover .card-overlay,
.sight-related-card:hover .card-overlay { background: transparent; }

.sight-card:hover .card-title,
.sight-related-card:hover .card-title { opacity: 0; }

/* Title — centered in the image */
.card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1rem);
  font-family: 'Anton', 'Russo One', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  transition: opacity 0.3s ease;
}

/* Location — bottom left */
.card-location {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  max-width: calc(100% - 1.5rem);
  line-height: 1.35;
}

.card-loc-capital,
.card-loc-count {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Year — bottom right */
.card-year {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.card-year--unknown {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .loc-country { font-size: 0; }
  .loc-country::after { content: attr(data-short); font-size: 1rem; }
  .card-title { font-size: 1.6rem; }
  .card-year--unknown { font-size: 0; }
  .card-year--unknown::after { content: "?"; font-size: 0.92rem; font-weight: 600; opacity: 1; }
}

.card-overlay-meta,
.card-overlay-info,
.card-category-badge { display: none; }

/* Unused in new layout */
.card-top-bar,
.card-local-name,
.card-right,
.card-meta,
.card-body-right,
.card-badge,
.sight-card-body,
.card-bottom-bar { display: none; }

/* ============================================
   SINGLE SIGHT / POST PAGE
   ============================================ */
.post-page {
  padding: 3rem 2.5rem 5rem;
  max-width: 820px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  transition: color var(--transition);
}

.post-back:hover { color: var(--white); }
.post-back::before { content: '←'; }

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 0.8em;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--border-light);
  padding: 0.22em 0.6em;
}

.post-tag.red {
  border-color: var(--red);
  color: var(--red);
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.post-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%);
}

.post-hero-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1e1e;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Post body typography */
.post-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ccc;
}

.post-body p { margin-bottom: 1.3em; }

.post-body .lead {
  font-size: 1.05rem;
  color: #bbb;
  border-left: 2px solid var(--red);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.post-body h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 2rem 0 0.6rem;
}

.post-body blockquote {
  border-left: 2px solid var(--red);
  padding: 0.5em 1.2em;
  margin: 2rem 0;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 1rem;
}

.post-body figure {
  margin-block: 2.5rem;
}

.post-body figure img {
  width: 100%;
  filter: grayscale(0%);
}

.post-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1e1e;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post-body figcaption {
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-top: 0.5em;
  letter-spacing: 0.05em;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
  padding: 1.2rem 1.4rem;
  margin-block: 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.info-box strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5em;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Post nav prev/next */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.post-nav-item {
  background: var(--bg);
  padding: 1.2rem 1.4rem;
  transition: background var(--transition);
}

.post-nav-item:hover { background: var(--bg-card-hover); }

.post-nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4em;
}

.post-nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.post-nav-item:hover .post-nav-title { color: var(--white); }

.post-nav-item.next { text-align: right; }

/* ============================================
   ABOUT PAGE
   ============================================ */

/* ── Section 1: Hero ── */
.about-hero {
  margin-top: var(--nav-h);
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 520px;
  border-bottom: 1px solid var(--border);
}

.about-hero-left {
  padding: 4rem 3.5rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.about-hero-title {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.about-hero-tagline {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  max-width: 380px;
}

.about-hero-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 380px;
}

.about-hero-right {
  position: relative;
  overflow: hidden;
}

.about-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0%);
  display: block;
}

/* ── Section 2: Mission ── */
.about-mission-section {
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem;
}

.about-mission-section .home-label-text,
.about-approach-section .home-label-text {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.about-mission-inner {
  max-width: 900px;
}

.about-mission-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.about-mission-body {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about-mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.about-mission-card {
  background: var(--bg-card);
  padding: 1.6rem 1.8rem;
}

.about-mission-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.about-mission-card-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── Section 3: What we document ── */
.about-cats-section {
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem;
}

.about-cats-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.about-cats-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.about-cats-subtitle {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.about-cats-index {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.about-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.about-cat-card {
  background: var(--bg-card);
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background var(--transition);
}

.about-cat-card:hover {
  background: var(--bg-card-hover);
}

.about-cat-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  border: 1px solid var(--border-light);
  padding: 0.2em 0.5em;
  width: fit-content;
}

.about-cat-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.about-cat-card-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ── Section 4: Research approach ── */
.about-approach-section {
  padding: 5rem 2.5rem;
}

.about-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.about-approach-item {
  background: var(--bg-card);
  padding: 2.4rem 2rem;
}

.about-approach-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-dim);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1;
}

.about-approach-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.about-approach-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-hero-right {
    height: 340px;
    border-top: 1px solid var(--border);
    border-right: none;
  }
  .about-hero-left {
    border-right: none;
    padding: 3rem 1.5rem;
  }
  .about-mission-cards,
  .about-approach-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-cats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .about-cats-index { display: none; }
}

@media (max-width: 600px) {
  .about-hero-left {
    padding: 2.5rem 1.2rem;
  }
  .about-hero-right {
    height: 260px;
  }
  .about-mission-section,
  .about-cats-section,
  .about-approach-section {
    padding: 3.5rem 1.2rem;
  }
  .about-mission-cards,
  .about-approach-grid {
    grid-template-columns: 1fr;
  }
  .about-cats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg);
}

.footer-logo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer-links-row {
  display: flex;
  gap: 1.5rem;
}

.footer-links-row a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color var(--transition);
}

.footer-links-row a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.65rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.search-overlay.open {
  display: flex;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 1.5rem;
}

.search-overlay-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  display: block;
}

.search-overlay-input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  gap: 1rem;
  padding-bottom: 0.6rem;
}

.search-overlay-input-row svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
  width: 22px;
  height: 22px;
}

.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  caret-color: var(--white);
}

.search-overlay-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-overlay-hint {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-top: 1.2rem;
}

/* ── Search results ──────────────────────────────────────── */
.search-results {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
}

.sr-status {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  padding: 1rem 0;
  letter-spacing: 0.06em;
}

.sr-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.1s;
}

.sr-item:hover { background: rgba(255,255,255,0.05); }

.sr-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 2px;
  width: 7.5rem;
  text-align: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.1);
}

.sr-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sr-title {
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Search overlay — mobile ─────────────────────────────── */
@media (max-width: 640px) {
  .search-overlay {
    padding-top: 0;
    align-items: stretch;
  }
  .search-overlay-inner {
    padding: 1.25rem 1.1rem 1rem;
    max-width: 100%;
    overflow-y: auto;
  }
  .search-overlay-input {
    font-size: 1.35rem;
  }
  .search-overlay-label {
    margin-bottom: 0.85rem;
  }
  .sr-item {
    gap: 0.7rem;
    padding: 0.75rem 0.4rem;
  }
  .sr-badge {
    width: 5.5rem;
    font-size: 0.58rem;
  }
}

/* ============================================
   HOMEPAGE
   ============================================ */

/* Prevent page-shell layout on home */
.home-body .page-shell { display: block; }

/* --- Hero --- */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 4rem 2rem 5rem;
}

.home-hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.home-hero-title {
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.92;
}

.home-hero-tagline {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.home-hero-btns {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.home-btn {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1em 2.8em;
  transition: all var(--transition);
}

.home-btn--solid {
  background: var(--white);
  color: #000;
  border: 1px solid var(--white);
}

.home-btn--solid:hover {
  background: transparent;
  color: var(--white);
}

.home-btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}

.home-btn--outline:hover {
  border-color: var(--white);
}

/* --- Mission --- */
.home-mission {
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
}

.home-mission-inner {
  max-width: 900px;
}

.home-section-label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.6rem;
}

.home-label-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink-dim);
}

.home-label-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.home-mission-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.home-mission-body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 1.6rem;
}

.home-read-more {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.home-read-more:hover { color: var(--white); }

/* --- Categories --- (removed from homepage, kept for potential reuse) */

.home-categories-heading {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.home-cat-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  text-decoration: none;
}

.home-cat-card:hover {
  background: var(--bg-card-hover);
}

.home-cat-card--large,
.home-cat-card--small {
  aspect-ratio: 1 / 1;
}

.home-cat-card-img {
  position: absolute;
  inset: 0;
  background: #111;
  filter: grayscale(0%);
}

/* Placeholder tones for each category */
.home-cat-img--architecture { background: #0e0e0e; }
.home-cat-img--busstops     { background: #101010; }
.home-cat-img--infrastructure { background: #0c0c0c; }
.home-cat-img--monuments    { background: #121212; }

.home-cat-name {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.home-cat-sublabel {
  display: none;
}

/* ── Country page ─────────────────────────────────────────── */

/* Country page: title at bottom of hero (not vertically centered) */

/* Icons inside meta labels */
.meta-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35em;
  opacity: 0.65;
  vertical-align: middle;
}

/* 6-cell meta bar — higher specificity to override base 3-col rule */
.sight-meta-bar.sight-meta-bar--6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Flag shown above the title in the hero */
.country-hero-flag {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

/* Editorial intro below the fold */
.country-intro {
  padding: 2.5rem 2.5rem 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.country-intro--last {
  padding-bottom: 2.5rem;
}

/* Category filter bar */
.country-cat-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1.6rem 2.5rem 0;
  border-top: 1px solid var(--border);
}

.country-filter-desc {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.cat-filter-btn {
  padding: 0.38em 1em;
  font: 600 0.72rem/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.cat-filter-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.cat-filter-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}

/* ── Category page — stats + about ──────────────────── */
.cat-hero-stats {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
}

.cat-about {
  background: var(--bg);
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.cat-about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
  margin-bottom: 1em;
}
.cat-about-text:last-child { margin-bottom: 0; }

/* Cards grid inside country page */
.country-sights-wrap {
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.country-page .page-shell--no-top {
  border-top: 1px solid var(--border);
}

/* Hide the whole sights section when there are no sight cards */
.country-sights-wrap:not(:has(.sight-card)) {
  display: none;
}

.country-cards {
  margin: 1.6rem 2.5rem 0;
  background: var(--bg);
  border: none;
}

/* Responsive: 6-cell meta bar */
@media (max-width: 900px) {
  .sight-meta-bar.sight-meta-bar--6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .country-intro {
    padding-inline: 1.4rem;
  }
  .country-cat-filter {
    padding: 1.2rem 1rem 0;
  }
  .country-cards {
    margin: 1rem 1rem 0;
  }
}

@media (max-width: 600px) {
  .sight-meta-bar.sight-meta-bar--6 {
    grid-template-columns: 1fr 1fr;
  }
  .country-cards {
    grid-template-columns: 1fr 1fr;
    margin-inline: 0.6rem;
  }
  .sight-meta-bar--6 .sight-meta-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }
  .sight-meta-bar--6 .sight-meta-cell:nth-child(even) {
    border-right: none;
  }
  .sight-meta-bar--6 .sight-meta-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .sight-meta-bar--6 .sight-meta-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .sight-meta-bar--6 .sight-meta-value {
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
  }
  .meta-icon svg {
    width: 13px;
    height: 13px;
  }
  .country-hero-flag {
    font-size: 2.5rem;
  }
}

/* --- Footer --- */
.home-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.home-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding: 3rem 2.5rem;
  width: 100%;
}

.home-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-footer-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

.home-footer-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.home-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
}

.home-footer-social a {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color var(--transition);
}

.home-footer-social a:hover { color: var(--white); }

.home-footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.home-footer-sitemap-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.home-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.home-footer-nav a:hover { color: var(--white); }

.home-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.home-footer-bottom-left,
.home-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.home-footer-bottom-left a {
  color: var(--ink-dim);
  transition: color var(--transition);
}

.home-footer-bottom-left a:hover { color: var(--ink-muted); }

.home-footer-dot { color: var(--border-light); }

/* ============================================
   SIGHT / POST PAGE
   ============================================ */

/* Transparent navbar overlay on sight pages */
/* mask is on ::before only — keeping dropdowns (children) fully visible */
.sight-page .navbar {
  background: transparent;
  border-bottom: none;
}
.sight-page .navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.sight-page .navbar > * { position: relative; z-index: 1; }

.sight-page .navbar .nav-dropdown {
  background: #111111;
  border-top: 1px solid var(--border);
}

.sight-above-fold {
  height: 100vh;
  height: 100dvh; /* prevents address-bar resize jump on mobile */
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.sight-hero {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  background: linear-gradient(160deg, #1c1c1c 0%, #111 45%, #0d0d0d 100%);
}

.sight-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sight-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sight-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  color: #2a2a2a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sight-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%),
    linear-gradient(to top,    rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to right,  rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}

.sight-hero-bottom-right {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  z-index: 2;
}

.sight-hero-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-align: right;
}

.sight-hero-cat {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
  padding: 0.5em 1.2em;
  transition: all var(--transition);
  display: inline-block;
  white-space: nowrap;
}

.sight-hero-cat:hover {
  border-color: white;
  color: white;
}

.sight-hero-bottom-left {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
}

.sight-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 400;
  text-transform: uppercase;
  color: white;
  line-height: 0.92;
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 0.7rem;
}

/* Anton has no Cyrillic — switch to Inter black for Russian */
:lang(ru) .sight-hero-title {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sight-hero-subtitles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sight-hero-sub {
  display: block;
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  text-transform: uppercase;
}

.sight-hero-sub--georgian {
  font-family: 'Noto Sans Georgian', sans-serif;
  letter-spacing: 0.01em;
}

.sight-hero-sub--cyrillic {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
}

.sight-hero-location-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sight-hero-location {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: auto;
}

/* Meta bar */
.sight-meta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.sight-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 2.5rem;
  border-right: 1px solid var(--border);
}

.sight-meta-cell:last-child {
  border-right: none;
}

.sight-meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}

.sight-meta-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sight-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
  flex-shrink: 0;
}

.sight-meta-value--existing .sight-status-dot,
.sight-meta-value--preserved .sight-status-dot,
.sight-meta-value--intact .sight-status-dot      { background: #27ae60; }
.sight-meta-value--damaged .sight-status-dot     { background: #e67e22; }
.sight-meta-value--altered .sight-status-dot     { background: #f1c40f; }
.sight-meta-value--covered .sight-status-dot     { background: #555;    }
.sight-meta-value--removed .sight-status-dot     { background: #c0392b; }
.sight-meta-value--relocated .sight-status-dot   { background: #2980b9; }
.sight-meta-value--unknown .sight-status-dot     { background: #8e44ad; }

/* Two-column content */
.sight-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
}

@media (max-width: 768px) {
  .sight-content {
    grid-template-columns: 1fr;
  }

  .sight-aside-col {
    border-top: 1px solid var(--border);
    padding: 2rem 1.4rem 3rem;
  }

  .sight-text-col {
    padding: 2rem 1.4rem;
    border-right: none;
  }

  /* Hero */
  .sight-hero-bottom-left {
    left: 1.4rem;
    right: 1.4rem;
  }

  .cat-hero-stats {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
  }

  .sight-hero-bottom-right {
    right: 1.4rem;
    bottom: 1.5rem;
  }

  /* Meta bar: stack to single column */
  .sight-meta-bar {
    grid-template-columns: 1fr;
  }

  .sight-meta-cell {
    padding: 1rem 1.4rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sight-meta-cell:last-child {
    border-bottom: none;
  }

  .sight-meta-label {
    font-size: 0.65rem;
  }

  .sight-meta-value {
    font-size: 1rem;
    text-align: right;
  }

  /* Gallery: 1 column on narrow mobile */
  .sight-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Related: reduce padding on mobile */
  .sight-related {
    padding: 2rem 1.4rem 3rem;
  }

  .sight-related-card {
    flex: 0 0 50%;
    min-width: 160px;
  }
}

.sight-text-col {
  padding: 3rem 2.5rem 4rem;
  border-right: 1px solid var(--border);
}

.sight-section {
  margin-bottom: 2.8rem;
  color: #ccc;
}

.sight-section:last-child { margin-bottom: 0; }

.sight-section-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.2rem;
}

.sight-lead {
  font-size: 1rem;
  color: #bbb;
  border-left: 2px solid var(--red);
  padding-left: 1.2rem;
  margin-bottom: 1.4em;
  line-height: 1.75;
}

.sight-text-col p,
.sight-section p,
.sight-section div[data-lang] {
  font-size: 1rem;
  color: #ccc !important;
  line-height: 1.82;
  margin-bottom: 1.1em;
  user-select: none;
  -webkit-user-select: none;
}

.sight-text-col p:last-child { margin-bottom: 0; }

.sight-aside-col {
  padding: 2.5rem 2rem 4rem;
  background: var(--bg);
  border-right: none;
}

.sight-block-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.8rem;
}

/* Gallery */
.sight-gallery {
  margin-bottom: 0;
}

.sight-gallery-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.sight-gallery-header .sight-block-label {
  display: inline;
  margin-bottom: 0;
}

.sight-gallery-count {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
}

.sight-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 0.8rem;
}

.sight-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #111;
}

.sight-gallery-empty {
  aspect-ratio: 1 / 1;
  background: #0e0e0e;
  border: 1px solid #1a1a1a;
}

.sight-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.sight-gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.sight-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0,0,0,0.22);
  transition: opacity 0.25s;
  z-index: 1;
}

.sight-gallery-item:hover .sight-gallery-overlay {
  opacity: 1;
}

.sight-gallery-enlarge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.4em 0.9em;
}

/* Map */
.sight-map-block {
  margin-top: 2rem;
}

.sight-map-wrap {
  border: 1px solid var(--border);
  margin-top: 0.8rem;
}

.sight-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
  filter: grayscale(0%);
}

.sight-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-top: none;
  background: #111;
}

.sight-map-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.6);
  font: 400 0.72rem/1 var(--font);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color var(--transition);
}

.sight-map-copy-btn:hover { color: white; }
.sight-map-copy-btn svg { opacity: 0.6; flex-shrink: 0; transition: opacity var(--transition); }
.sight-map-copy-btn:hover svg { opacity: 1; }

.sight-map-enlarge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.sight-map-enlarge:hover { color: white; }

/* Share button (in aside, below map) */
.sight-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  width: 100%;
  margin-top: 0.6rem;
  padding: 1rem 1em;
  background: none;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), border-color var(--transition);
}

.sight-share-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.sight-share-icon { font-size: 1.1em; }

/* Related sights */
.sight-related {
  padding: 3rem 2.5rem 4rem;
  border-top: 1px solid var(--border);
}

.sight-related-header {
  margin-bottom: 1rem;
}

.sight-related-loading {
  color: var(--ink-dim);
  font-size: 0.82rem;
  padding: 1rem 0;
  grid-column: 1 / -1;
}

.sight-related-heading {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.sight-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sight-related-grid::-webkit-scrollbar { display: none; }

/* Related sight cards — same overlay visual as .sight-card */
.sight-related-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sight-rel-img-wrap {
  position: relative;
  padding-top: 80%;
  overflow: hidden;
  background: #111;
  display: block;
}

.sight-rel-img-wrap img,
.sight-rel-img-wrap .sight-rel-img-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.sight-rel-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2a2a2a;
  letter-spacing: 0.06em;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
}

.sight-rel-img-wrap img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
  display: block;
}

.sight-related-card:hover .sight-rel-img-wrap img { transform: scale(1.04); }

.sight-rel-overlay,
.sight-rel-title,
.sight-rel-sub { display: none; }

/* ============================================
   LIGHTBOX
   ============================================ */

/* Overlay: full-screen flex column so image lands at exact center */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 600;
  flex-direction: column;
  align-items: center;
  touch-action: none;
}

.lb-overlay.open { display: flex; }

/* Close button */
.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition);
  line-height: 1;
  padding: 0.4em;
}
.lb-close:hover { color: white; }

/* Arrows: absolute, vertically centred on the image (= screen centre) */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  font-size: 1.5rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  font-family: inherit;
}
.lb-arrow:hover { background: rgba(255,255,255,0.14); border-color: white; color: white; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* Top zone — expands to fill space above image; count centered within */
.lb-top {
  flex: 1;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

/* Image — fixed 90vw × 75vh box; overflow hidden clips zoom symmetrically */
.lb-img-wrap {
  flex: none;
  width: 90vw;
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

/* Inner element receives the zoom/pan transform */
.lb-img-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.lb-img-placeholder {
  width: 70vw;
  max-width: 900px;
  height: 55vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.1em;
}

.lb-img-inner img {
  width: 90vw;
  height: 75vh;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Bottom zone — expands to fill space below image; caption centered within */
.lb-bottom {
  flex: 1;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 6rem;
  pointer-events: none;
}

/* Counter — same size as caption */
.lb-count {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Caption */
.lb-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Mobile filter button (sights page only) */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 0.5em;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55em 1em;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: 1rem;
}
.mobile-filter-btn:hover { color: var(--white); border-color: var(--white); }
.mobile-filter-btn svg { opacity: 0.7; }

/* Sidebar overlay backdrop on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 149;
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 900px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    z-index: 150;
    width: 260px;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .sidebar.open { display: block; }

  .mobile-filter-btn { display: flex; }

  .main-content,
  .post-page {
    padding-inline: 1.4rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-hamburger { display: flex; }
  .nav-lang { display: none; }
  .nav-left .nav-link { display: none; }
  .nav-left .nav-divider { display: none; }
  .nav-left .nav-dropdown-wrapper { display: none; }
}

@media (max-width: 480px) {
  /* Hero title — prevent overflow on very small screens */
  .sight-hero-title {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  /* Category hero title on small screens */
  .sight-above-fold .sight-hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .sight-hero-sub {
    font-size: clamp(1rem, 5.5vw, 1.6rem);
  }

  .sight-hero-location {
    font-size: 0.72rem;
  }

  /* Gallery: 2-column grid on small mobile */
  .sight-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Related: full-width cards on very small screens */
  .sight-related-card {
    flex: 0 0 80%;
  }

  /* Meta bar: even more compact on very small screens */
  .sight-meta-bar--6 .sight-meta-cell {
    padding: 0.65rem 0.75rem;
  }
  .sight-meta-bar--6 .sight-meta-label {
    font-size: 0.55rem;
    letter-spacing: 0.07em;
  }
  .sight-meta-bar--6 .sight-meta-value {
    font-size: 0.78rem;
  }
}

/* ============================================
   MAP PAGE
   ============================================ */

/* Page shell: fixed height so map fills the screen, no scroll */
.page-shell--map {
  height: calc(100vh - var(--nav-h));
  min-height: 0;
  overflow: hidden;
}

/* Map fills all space to the right of the sidebar */
.map-wrap {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Mobile filter button floats over map */
.map-wrap .mobile-filter-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  margin-bottom: 0;
  background: var(--bg-card);
  border-color: var(--border);
}

/* ── Custom marker ── */
.map-marker {
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.map-marker:hover { transform: scale(1.4); }

/* ── Leaflet popup overrides ── */
.map-popup-wrap .leaflet-popup-content-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
}

/* Override Leaflet's blue link colour inside popups */
.map-popup-wrap a,
.map-popup-wrap a:visited {
  color: inherit;
  text-decoration: none;
}

.map-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: 310px !important;
  line-height: 1.4;
  font-family: var(--font);
}

/* Hide the default arrow tip */
.map-popup-wrap .leaflet-popup-tip-container { display: none; }

.map-popup-wrap .leaflet-popup-close-button {
  color: var(--ink-dim);
  top: 6px;
  right: 8px;
  font-size: 18px;
  z-index: 1;
  background: none;
}
.map-popup-wrap .leaflet-popup-close-button:hover { color: var(--ink); }

/* ── Popup content ── */
.map-popup-img {
  width: 100%;
  height: auto;
  display: block;
}

.map-popup-img--empty {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #2a2a2a;
  letter-spacing: 0.06em;
  filter: none;
}

.map-popup-body {
  padding: 0.8rem 0.9rem 0.9rem;
  font-family: var(--font);
}

.map-popup-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.map-popup-meta {
  font-size: 0.75rem;
  font-family: var(--font);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.map-popup-wrap .map-popup-meta-row {
  color: var(--ink-muted);
  font-family: var(--font) !important;
  font-size: 0.75rem;
}

.map-popup-meta-cat {
  color: var(--ink);
  font-weight: 600;
}

.map-popup-meta-label {
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-right: 0.15em;
}

.map-popup-wrap .map-popup-btn {
  display: block;
  background: var(--white);
  color: #000;
  border: 1px solid var(--white);
  text-decoration: none;
  text-align: center;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  transition: all var(--transition);
}
.map-popup-wrap .map-popup-btn:hover { background: transparent; color: var(--white); }

/* ── Map responsive ── */
@media (max-width: 900px) {
  .page-shell--map {
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
  }

  /* Sidebar becomes fixed overlay; map fills full width */
  .page-shell--map .sidebar {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: 280px;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 500;
  }

  .page-shell--map .sidebar.open { display: block; }

  .map-wrap {
    width: 100%;
  }

  .map-wrap .mobile-filter-btn { display: flex; }
}

@media (max-width: 900px) {
  .map-popup-wrap .leaflet-popup-content {
    width: 70vw !important;
    max-width: 420px;
  }
  .map-popup-wrap .leaflet-popup-content-wrapper {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .home-hero-title {
    font-size: clamp(3rem, 18vw, 6rem);
  }
  .home-mission {
    padding: 3.5rem 1.5rem;
  }
  .home-hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .home-btn {
    text-align: center;
  }
  .home-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    padding-inline: 1rem;
  }

  .nav-center { justify-content: center; }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item.next { text-align: left; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #0d0d0d;
  z-index: 400;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .mobile-nav { display: flex; }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid #1e1e1e;
}

.mobile-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2em;
  cursor: pointer;
  transition: color 0.15s;
}

.mobile-nav-close:hover { color: #fff; }

.mobile-nav-body {
  flex: 1;
  padding: 0.4rem 0 2rem;
}

.mobile-nav-section {
  padding: 1.2rem 0 0.4rem;
  border-bottom: 1px solid #1a1a1a;
}

.mobile-nav-section:last-child { border-bottom: none; }

.mobile-nav-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 1.4rem 0.7rem;
}

a.mobile-nav-label {
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

a.mobile-nav-label:hover {
  color: rgba(255,255,255,0.85);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-item:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}

.mobile-nav-chevron {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s, color 0.15s;
}

.mobile-nav-collapse.open .mobile-nav-chevron {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.7);
}

.mobile-nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.mobile-nav-sub.open {
  max-height: 600px;
}

.mobile-nav-sub a {
  display: block;
  padding: 0.4rem 1.4rem 0.4rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-nav-sub a:hover { color: #fff; }

.mobile-nav-langs {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 1.4rem 0.8rem;
}

.mobile-nav-lang {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.mobile-nav-lang:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.mobile-nav-lang.current {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ============================================
   SITEMAP PAGE
   ============================================ */

.sitemap-body {
  background: var(--bg);
  color: var(--ink);
}

.sitemap-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.sitemap-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}

.sitemap-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 0.5rem;
}

.sitemap-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.sitemap-section {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.sitemap-section--wide {
  grid-column: 1 / -1;
}

.sitemap-section--wide .sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.sitemap-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 1rem;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sitemap-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.sitemap-link:hover {
  background: #161616;
}

.sitemap-link-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  transition: color 0.15s;
}

.sitemap-link:hover .sitemap-link-name {
  color: #fff;
}

.sitemap-link-meta {
  font-size: 0.75rem;
  color: #555;
  font-weight: 400;
}

.sitemap-link-url {
  font-size: 0.72rem;
  color: #444;
  font-family: 'IBM Plex Mono', monospace, sans-serif;
  letter-spacing: 0.02em;
}

.sitemap-link:hover .sitemap-link-url {
  color: var(--red);
}
