/* ============================================================
   HESPERIDES — Mobile App Design System
   Palette: Pure Black & White
   Font: Inter (single typeface, variable weights)
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* B&W Palette */
  --black:   #000000;
  --dark:    #111111;
  --gray-1:  #1A1A1A;
  --gray-2:  #333333;
  --gray-3:  #555555;
  --gray-4:  #777777;
  --gray-5:  #999999;
  --gray-6:  #BBBBBB;
  --gray-7:  #DDDDDD;
  --gray-8:  #EBEBEB;
  --gray-9:  #F5F5F5;
  --gray-10: #FAFAFA;
  --white:   #FFFFFF;

  /* Semantic aliases (kept for JS template compatibility) */
  --gold:         #000000;
  --gold-dark:    #111111;
  --gold-light:   #444444;
  --gold-pale:    #EEEEEE;
  --brown:        #000000;
  --brown-2:      #1A1A1A;
  --brown-3:      #555555;
  --brown-4:      #888888;
  --olive:        #111111;
  --olive-2:      #1A1A1A;
  --olive-3:      #555555;
  --cream:        #FFFFFF;
  --cream-2:      #F5F5F5;
  --cream-3:      #FAFAFA;
  --border:       #E5E5E5;
  --border-light: #EEEEEE;
  --shadow:       rgba(0,0,0,0.06);
  --shadow-md:    rgba(0,0,0,0.10);
  --shadow-lg:    rgba(0,0,0,0.18);

  --color-primary:   #000000;
  --color-secondary: #333333;
  --color-text:      #000000;
  --color-muted:     #666666;
  --color-bg:        #FFFFFF;
  --color-bg-alt:    #F5F5F5;
  --color-card:      #FFFFFF;
  --color-border:    #E5E5E5;
  --color-white:     #FFFFFF;

  /* Typography — single font */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:  'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* space for fixed bottom nav on mobile */
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-muted   { color: var(--gray-4); }
.text-center  { text-align: center; }

/* App-style overline label */
.overline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-4);
  display: block;
}

/* Ornament kept for compatibility — now plain gray line */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-8);
}

/* ── 4. Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section    { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .overline { margin-bottom: 0.6rem; }
.section-header .ornament { justify-content: center; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p  { max-width: 560px; margin: 0 auto; color: var(--gray-4); font-size: 1.05rem; line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8em 1.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover {
  background: var(--gray-1);
  border-color: var(--gray-1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: var(--gray-9);
  color: var(--black);
  border-color: var(--gray-9);
}
.btn-secondary:hover { background: var(--gray-8); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: var(--white); color: var(--black); }

.btn-ghost {
  background: transparent;
  color: var(--gray-4);
  padding-left: 0;
  padding-right: 0;
  border: none;
  border-radius: 0;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--black); }

.btn-sm { padding: 0.55em 1.2em; font-size: 0.8rem; }
.btn-lg { padding: 1em 2.5em; font-size: 1rem; }

/* ── 6. Navbar ────────────────────────────────────────────── */
.navbar {
  display: none;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
/* Override transparent — always solid in app mode */
.navbar.transparent {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-8);
}
.navbar.transparent .navbar-links a { color: var(--gray-2); }
.navbar.transparent .navbar-logo    { color: var(--black); }
.navbar.transparent .navbar-toggle span { background: var(--black); }

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  flex-shrink: 0;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.logo-coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.footer-brand .logo-img { height: 40px; filter: invert(1); }

.navbar-links {
  display: none;
}
.navbar-actions { margin-left: auto; }

/* ── Language toggle ────────────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(0,0,0,0.06); border-radius: 20px;
  padding: 3px; gap: 2px;
}
.navbar.transparent .lang-toggle { background: rgba(255,255,255,0.12); }
.lang-btn {
  width: 30px; height: 26px; border: none; background: transparent;
  border-radius: 15px; font-size: 0.88rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; line-height: 1;
}
.lang-btn.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}
.navbar.scrolled .lang-btn.active { background: #fff; }
/* Mobile drawer lang toggle */
.navbar-mobile .lang-toggle {
  background: #f5f5f5; margin: 0.75rem 1.5rem 0.5rem;
  width: fit-content;
}
.navbar-mobile .lang-btn { width: 34px; height: 28px; font-size: 0.95rem; }
.navbar-mobile .lang-btn.active { background: #fff; }
.navbar-links a {
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gray-3);
  transition: color var(--transition);
  position: relative;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--black); }
.navbar-links a:hover::after,
.navbar-links a.active::after { transform: scaleX(1); }

.navbar-actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.navbar-actions .btn { display: none; }

.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  margin-left: auto;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
  border-radius: 2px;
}

/* Mobile nav drawer — hidden (using bottom nav instead) */
.navbar-mobile { display: none; }

/* ── 7. Bottom Navigation (Mobile App) ───────────────────── */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gray-8);
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1000;
}
body { padding-bottom: 64px; }

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray-5);
  transition: color var(--transition);
  text-decoration: none;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--black); }

.bnav-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}
.bnav-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding-top: 0;
}

.hero-bg { display: none; } /* Override legacy element */

/* Subtle texture: grid of dots */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100svh - 60px);
  padding: var(--space-2xl) 0;
  justify-content: center;
}

.hero-text { min-width: 0; max-width: 700px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: var(--space-lg);
}
.hero-label::before, .hero-label::after { display: none; }

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-lg);
}
.hero-title span { color: var(--gray-6); }
.hero-subtitle .hero-sub-italic { font-style: italic; font-weight: 700; }

.hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero visual — hidden (single-column centered layout) */
.hero-visual { display: none; }
.hero-compass {
  width: min(380px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-compass::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}
.hero-compass::after {
  content: '';
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.04);
}
.hero-compass-inner {
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  animation: rotateCompass 60s linear infinite;
  font-weight: 100;
  user-select: none;
}
@keyframes rotateCompass { to { transform: rotate(360deg); } }

/* Mobile-only hero logo (above hero-label) */
.hero-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-mobile-logo-img {
  width: 180px;
  height: auto;
  filter: invert(1) brightness(1.1);
  opacity: 0.9;
}

/* Hero logo display (replaces compass) */
.hero-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.hero-logo-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  filter: invert(1) brightness(1.1);
  opacity: 0.92;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.025); }
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  min-width: 0;
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero-stat-item { flex-shrink: 0; }
.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-top: 4px;
  white-space: nowrap;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-6);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-scroll-arrow {
  width: 1.5px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:0.3; } 50%{ opacity:0.9; } }

/* ── 9. City Cards ────────────────────────────────────────── */
.city-card {
  background: var(--white);
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: var(--gray-7);
}

.city-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-9);
}
.city-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: grayscale(30%);
}
.city-card:hover .city-card-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.city-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.city-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.city-card-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.city-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: var(--space-md);
  font-size: 0.75rem;
  color: var(--gray-4);
  font-weight: 500;
}
.city-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-card-link {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.city-card-link:hover { gap: 10px; }

/* ── 10. Blog Cards ───────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  border-color: var(--gray-7);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-9);
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: grayscale(40%);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.blog-card-category {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.blog-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 8px;
}
.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--gray-4);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-5);
  font-weight: 500;
  border-top: 1px solid var(--gray-9);
  padding-top: var(--space-md);
}
.blog-card-link {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.blog-card-link:hover { gap: 9px; }

/* ── 11. Passport / Steps Section ────────────────────────── */
.passport-section {
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.passport-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.passport-section .section-header h2 { color: var(--white); }
.passport-section .section-header p  { color: var(--gray-5); }
.passport-section .ornament { color: var(--gray-6); }
.passport-section .ornament::before,
.passport-section .ornament::after { background: rgba(255,255,255,0.1); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.step-item { text-align: center; position: relative; }
.step-item::after {
  content: '→';
  position: absolute;
  right: calc(-1 * var(--space-xl) / 2);
  top: 28px;
  transform: translateX(50%);
  color: rgba(255,255,255,0.15);
  font-size: 1.2rem;
}
.step-item:last-child::after { display: none; }

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.02em;
}
.step-item h4 { color: var(--white); margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.step-item p  { color: var(--gray-5); font-size: 0.875rem; line-height: 1.6; }

/* ── 12. Detail Pages ─────────────────────────────────────── */
.detail-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
  background: var(--black);
}
.detail-hero-bg { position: absolute; inset: 0; }
.detail-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(60%);
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.detail-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-xl) 0;
}
.detail-hero-content h1 { color: var(--white); letter-spacing: -0.03em; }

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-breadcrumb a:hover { color: var(--white); }
.detail-breadcrumb span   { opacity: 0.4; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-md);
  margin-top: var(--space-md);
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
}
.detail-meta-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.detail-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-9);
}
.detail-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.detail-body p { color: var(--gray-2); line-height: 1.85; font-size: 0.95rem; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.sidebar-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: var(--space-md);
}
.sidebar-card p { font-size: 0.875rem; color: var(--gray-3); }

/* Stamp widget */
.passport-stamp {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px dashed var(--gray-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  padding: 12px;
}
.passport-stamp .stamp-title {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.passport-stamp .stamp-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 4px 0;
}

/* Info list in sidebar */
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--gray-3);
  font-weight: 500;
}
.info-list .info-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; opacity: 0.6; }

/* Mini map */
.mini-map {
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-8);
  filter: grayscale(100%);
}

/* ── 13. Blog Listing ─────────────────────────────────────── */
.blog-page-header {
  background: var(--black);
  padding: calc(60px + 3rem) 0 2.5rem;
  text-align: center;
}
.blog-page-header h1 { color: var(--white); letter-spacing: -0.04em; }
.blog-page-header p  { color: var(--gray-5); max-width: 480px; margin: 1rem auto 0; }
.blog-page-header .ornament { color: var(--gray-6); justify-content: center; margin-bottom: 0.75rem; }
.blog-page-header .ornament::before,
.blog-page-header .ornament::after { background: rgba(255,255,255,0.12); }

/* Segment-control style filters (iOS-like) */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: var(--space-xl) 0;
}
.category-filter-btn {
  padding: 0.5em 1.1em;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--gray-8);
  background: var(--white);
  color: var(--gray-4);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
}
.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ── 14. Map Page ─────────────────────────────────────────── */
/* Layout now handled by inline styles in map.html (position:fixed full-screen) */

.filter-group {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--gray-9);
}
.filter-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 8px;
}
.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.6em 0.85em;
  border: 1.5px solid var(--gray-8);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--black);
}

.map-city-list { flex: 1; overflow-y: auto; }
.map-city-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: 1.5px solid transparent;
  margin-bottom: 4px;
}
.map-city-item:hover,
.map-city-item.active {
  background: var(--gray-10);
  border-color: var(--gray-8);
}
.map-city-item img {
  width: 52px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-9);
  filter: grayscale(50%);
}
.map-city-item-info h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.01em; }
.map-city-item-info span { font-size: 0.72rem; color: var(--gray-4); font-weight: 500; }

/* map-container removed — layout is now position:fixed in map.html */

/* B&W custom map pins */
.custom-pin { position: relative; width: 32px; height: 40px; cursor: pointer; }
.custom-pin-dot {
  width: 20px; height: 20px;
  background: var(--black);
  border: 2.5px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  position: absolute;
  top: 0; left: 6px;
  transition: transform 0.2s, background 0.2s;
}
.custom-pin:hover .custom-pin-dot { background: var(--gray-2); transform: rotate(-45deg) scale(1.25); }
.custom-pin-shadow {
  width: 10px; height: 5px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
}

.map-popup { min-width: 200px; }
.map-popup h4 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.map-popup p  { font-size: 0.78rem; color: var(--gray-4); margin-bottom: var(--space-md); }
.map-popup .btn { display: block; text-align: center; }

.map-filter-toggle {
  display: none;
  position: fixed;
  bottom: calc(64px + var(--space-md));
  left: var(--space-md);
  z-index: 500;
}

/* ── 15. About Page ───────────────────────────────────────── */
.about-hero {
  background: var(--black);
  padding: calc(60px + 3rem) 0 2.5rem;
  text-align: center;
}
.about-hero h1 { color: var(--white); letter-spacing: -0.04em; }
.about-hero p  { color: var(--gray-5); max-width: 520px; margin: 1rem auto 0; }

.about-feature {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--gray-9);
}
.about-feature:nth-child(even) { flex-direction: row-reverse; }
.about-feature-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gray-9);
  border: 1px solid var(--gray-8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.about-feature-text h3 { margin-bottom: 8px; letter-spacing: -0.02em; }
.about-feature-text p  { color: var(--gray-3); font-size: 0.9rem; line-height: 1.7; }

/* ── 16. Page Header (generic) ────────────────────────────── */
.page-header {
  background: var(--black);
  padding: calc(60px + 3rem) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); letter-spacing: -0.04em; }
.page-header .ornament { margin-bottom: var(--space-md); color: var(--gray-5); }
.page-header .ornament::before,
.page-header .ornament::after { background: rgba(255,255,255,0.1); }

/* ── 17. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--gray-5);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.footer-brand-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand-bottom-inner { max-width: 360px; }
.footer-brand-bottom .navbar-logo { color: var(--white); }
.footer-brand-bottom p { font-size: 0.875rem; line-height: 1.7; color: var(--gray-5); }
.footer-brand .navbar-logo { color: var(--white); margin-bottom: var(--space-md); }
.footer-brand .logo-coin   { background: var(--white); color: var(--black); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--gray-5); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 0.875rem; color: var(--gray-5); font-weight: 500; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-5);
  font-weight: 500;
}
.footer-bottom a:hover { color: var(--white); }

/* ── 18. Utilities ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--gray-4);
}
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p  { color: var(--gray-5); margin-top: 8px; }

.divider {
  height: 1px;
  background: var(--gray-9);
  margin: var(--space-xl) 0;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gray-9);
  color: var(--gray-2);
  border: 1px solid var(--gray-8);
}

.spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--gray-8);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: var(--space-xl) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 19. Animations ───────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade  { animation: fadeIn  0.4s var(--ease) both; }
.animate-slide { animation: slideUp 0.4s var(--ease) both; }

.stagger > * { animation: slideUp 0.4s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ── 20. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content    { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .hero-scroll     { display: none; } /* hides "KEŞFET" absolute element that overlaps stats */
  .hero-mobile-logo { display: flex; }
  .detail-layout  { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .steps-grid     { grid-template-columns: 1fr; }
  .step-item::after { display: none; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-2xl: 2rem;
  }

  /* navbar-links/toggle already handled globally for mobile-first layout */

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid                 { grid-template-columns: 1fr; }

  /* map layout is fully handled in map.html inline styles */

  .footer-grid   { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-feature { flex-direction: column !important; }
  .hero-actions  { flex-direction: column; align-items: center; }

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

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero-title { font-size: 2.2rem; }
  .detail-hero { height: 45vh; min-height: 260px; }
  .category-filters { gap: 6px; }
}

/* ── 21. Blog Detail Content ──────────────────────────────── */
.blog-lead-excerpt {
  font-size: 1.05rem;
  color: var(--gray-3);
  font-style: italic;
  border-left: 3px solid var(--black);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.blog-detail-hero {
  position: relative;
  height: 52vh;
  min-height: 320px;
  overflow: hidden;
  background: var(--black);
}
.blog-detail-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(50%);
}
.blog-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.blog-detail-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-xl) 0;
}
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-detail-hero { height: 40vh; min-height: 260px; }
}

/* Related content in sidebar */
.related-cities-list,
.similar-blogs { display: flex; flex-direction: column; gap: 10px; }

.related-city-item,
.similar-blog-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 6px;
  transition: background var(--transition);
}
.related-city-item:hover,
.similar-blog-item:hover { background: var(--gray-10); }

.related-city-item img { width: 48px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.similar-blog-item img { width: 60px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.similar-blog-item-text h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.similar-blog-item-text span { font-size: 0.72rem; color: var(--gray-5); }

/* ── 22. Mobile card: horizontal list layout ──────────────── */
@media (max-width: 640px) {
  /* City cards → horizontal on mobile */
  .grid-3 .city-card,
  .grid-3 .blog-card {
    flex-direction: row;
  }
  .grid-3 .city-card-image {
    width: 110px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 110px;
  }
  .grid-3 .city-card-content {
    padding: 0.875rem;
  }
  .grid-3 .city-card-content h3 { font-size: 0.95rem; }
  .grid-3 .city-card-excerpt { -webkit-line-clamp: 2; margin-bottom: 8px; }

  .grid-3 .blog-card-image {
    width: 110px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 110px;
  }
  .grid-3 .blog-card-content { padding: 0.875rem; }
  .grid-3 .blog-card-content h3 { font-size: 0.9rem; line-height: 1.3; }
  .grid-3 .blog-card-excerpt { -webkit-line-clamp: 2; }
  .grid-3 .blog-card-category { top: 8px; right: 8px; font-size: 0.55rem; }
  .grid-3 .blog-card-footer { border-top: none; padding-top: 6px; }

  /* Hero mobile improvements */
  .hero { min-height: 100svh; }
  .hero-content { padding: var(--space-lg) 0; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; }

  /* Section spacing */
  .section { padding: 2.5rem 0; }

  /* Detail page hero on mobile */
  .detail-hero { height: 40vh; min-height: 240px; }
  .detail-hero-content h1 { font-size: 1.6rem; }
  .detail-layout { padding: 1.5rem 0; gap: 1.5rem; }

  /* Sidebar card tighter on mobile */
  .sidebar-card { padding: 1rem; margin-bottom: 0.75rem; }
}

/* ── 23. Blog content typography ──────────────────────────── */
.detail-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-9);
  color: var(--black);
}
.detail-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.detail-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--black);
}
.detail-body p {
  color: var(--gray-2);
  line-height: 1.9;
  font-size: 0.975rem;
  margin-bottom: 1.25rem;
}
.detail-body ul, .detail-body ol {
  color: var(--gray-2);
  line-height: 1.8;
  font-size: 0.975rem;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.detail-body ul li, .detail-body ol li { margin-bottom: 6px; }
.detail-body strong { font-weight: 700; color: var(--black); }
.detail-body em { font-style: italic; }
.detail-body blockquote {
  border-left: 3px solid var(--black);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--gray-3);
  font-style: italic;
}
.detail-body img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  filter: grayscale(20%);
}
