/* Safa's Kitchen — modern editorial style anchored in the Lebanese flag */
:root {
  --flag-red: #c11e26;
  --flag-red-dark: #8e1219;
  --cedar-green: #2a5d36;
  --cedar-green-dark: #173a1f;
  --gold: #b08a3e;             /* warm gold accent for luxury touches */
  --gold-soft: #d4b87a;
  --warm-white: #faf7f0;       /* magazine off-white */
  --paper: #ffffff;
  --soft-sand: #f1e8d2;
  --ink: #15110d;
  --ink-soft: #6b6258;
  --ink-mute: #9a9085;
  --rule: #ece4d2;
  --rule-strong: #d8cdb5;
  --shadow-sm: 0 1px 2px rgba(21, 17, 13, 0.04), 0 4px 12px rgba(21, 17, 13, 0.04);
  --shadow-lg: 0 4px 12px rgba(21, 17, 13, 0.06), 0 16px 40px rgba(21, 17, 13, 0.08);
  --shadow-hover: 0 8px 16px rgba(21, 17, 13, 0.08), 0 24px 56px rgba(21, 17, 13, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Inter', 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cedar-green-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

::selection { background: var(--gold-soft); color: var(--ink); }

/* Hairline flag stripe at the very top */
.flag-stripe {
  height: 3px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}
.flag-stripe span:nth-child(1) { background: var(--flag-red); }
.flag-stripe span:nth-child(2) { background: var(--paper); }
.flag-stripe span:nth-child(3) { background: var(--flag-red); }

/* ---- Site nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--warm-white);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-brand .cedar { width: 28px; height: auto; color: var(--cedar-green); }
.nav-brand .accent { color: var(--flag-red); font-style: italic; }
.nav-links { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--cedar-green-dark); }

/* ---- Hero (homepage) ---- */
.hero {
  position: relative;
  padding: 80px 40px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(176, 138, 62, 0.06), transparent 70%),
    radial-gradient(ellipse at 50% 0%, rgba(42, 93, 54, 0.05), transparent 60%),
    var(--warm-white);
}
.hero.hero-compact {
  padding: 36px 24px 32px;
}
.hero.hero-compact .eyebrow { margin-bottom: 12px; font-size: 11px; }
.hero.hero-compact h1 { font-size: clamp(40px, 6vw, 72px); }
.hero.hero-compact .arabic-mark {
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--cedar-green-dark);
  direction: rtl;
  margin-top: 6px;
}
.hero.hero-compact .tagline { margin-top: 14px; font-size: 19px; }

/* ---- Section structure (categories, map, recipe sections on homepage) ---- */
main.home { padding: 24px 40px 0; }
@media (max-width: 700px) { main.home { padding: 16px 20px 0; } }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-eyebrow.center { display: block; text-align: center; margin-bottom: 12px; }

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.05;
  margin: 0 0 28px;
}
.section-heading.center { text-align: center; }
.section-arabic {
  font-family: 'Amiri', serif;
  font-weight: 400;
  color: var(--cedar-green-dark);
  direction: rtl;
  font-size: 0.65em;
  margin-left: 12px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 80px auto 56px;
  color: var(--gold);
  max-width: 600px;
}
.section-divider .line { flex: 1; height: 1px; background: var(--gold); opacity: 0.6; }
.section-divider .cedar { width: 24px; height: auto; }

/* ---- Category strip ---- */
.category-strip { padding: 56px 0 72px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-soft);
}
.category-card .cat-image {
  aspect-ratio: 4 / 3;
  background: var(--soft-sand);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.category-card .cat-image svg { width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.category-card:hover .cat-image svg { transform: scale(1.05); }
.category-card .cat-body { padding: 16px 18px 18px; }
.category-card .cat-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.category-card .cat-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}
.category-card .cat-arabic {
  font-family: 'Amiri', serif;
  color: var(--cedar-green-dark);
  font-size: 16px;
  direction: rtl;
}
.category-card .cat-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
}
.category-card .cat-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-card .cat-arrow { transition: transform .25s ease; }
.category-card:hover .cat-arrow { transform: translateX(4px); }

/* ---- Embedded home map ---- */
.home-map {
  padding: 64px 0 32px;
  text-align: center;
}
.home-map .section-heading { margin-bottom: 8px; }
.home-map-intro {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
}
.home-map-cta {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-map-cta a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.home-map-cta a:hover { color: var(--cedar-green-dark); border-bottom-color: var(--cedar-green-dark); }

/* ---- Recipe sections (grouped by category on homepage) ---- */
.all-recipes { padding-bottom: 40px; }
.recipe-section { margin-top: 64px; scroll-margin-top: 80px; }
.recipe-section:first-child { margin-top: 32px; }
.section-banner {
  text-align: center;
  margin-bottom: 36px;
  padding: 24px 0;
  position: relative;
}
.section-banner::before, .section-banner::after {
  content: '';
  position: absolute; top: 50%;
  width: 80px; height: 1px; background: var(--gold); opacity: 0.5;
}
.section-banner::before { right: calc(50% + 140px); }
.section-banner::after { left: calc(50% + 140px); }
@media (max-width: 600px) {
  .section-banner::before, .section-banner::after { display: none; }
}
.section-banner-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.section-banner .section-eyebrow {
  letter-spacing: 0.4em;
  font-size: 11px;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.section-banner .section-heading {
  font-size: clamp(30px, 4vw, 42px);
  margin: 0;
}
.section-banner .section-arabic {
  font-size: 22px;
  margin-left: 0;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.hero h1 .accent {
  font-style: italic;
  color: var(--flag-red);
  font-weight: 500;
}
.hero h1 .arabic-large {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 0.55em;
  color: var(--cedar-green-dark);
  direction: rtl;
  margin-top: 8px;
  font-weight: 400;
}
.hero .tagline {
  margin-top: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.hero .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--gold);
}
.hero .ornament .line { width: 80px; height: 1px; background: var(--gold); }
.hero .ornament .cedar { width: 24px; height: auto; }

main { max-width: 1180px; margin: 0 auto; padding: 24px 40px; }

.intro {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
}
.intro a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.intro a:hover { color: var(--cedar-green-dark); border-bottom-color: var(--cedar-green-dark); }

.cedar-divider { width: 100%; max-width: 280px; height: 30px; color: var(--gold); display: block; margin: 8px auto 32px; }

/* ---- Filters + search ---- */
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 48px;
}
.search-input {
  font: inherit;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  padding: 14px 22px 14px 48px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b6258' stroke-width='1.5'><circle cx='8.5' cy='8.5' r='5.5'/><line x1='12.5' y1='12.5' x2='17' y2='17' stroke-linecap='round'/></svg>") 18px center / 18px no-repeat;
  min-width: 320px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 138, 62, 0.12); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.filter-btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-mute);
  position: relative;
  transition: color .2s ease;
}
.filter-btn::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease, left .25s ease;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); }
.filter-btn.active::after { width: calc(100% - 36px); left: 18px; }

/* ---- Recipe grid ---- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 56px 36px;
}
.recipe-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.recipe-card a { color: inherit; display: block; height: 100%; }
.recipe-card:hover { transform: translateY(-4px); }
.recipe-card .card-image {
  aspect-ratio: 4 / 3;
  background: var(--soft-sand);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.recipe-card:hover .card-image {
  box-shadow: var(--shadow-hover);
}
.recipe-card .card-image svg { width: 100%; height: 100%; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.recipe-card:hover .card-image svg { transform: scale(1.04); }
.recipe-card .card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21, 17, 13, 0.04) 0%, transparent 30%);
  pointer-events: none;
}
.recipe-card .card-body { padding: 22px 4px 0; }
.recipe-card .category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.recipe-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.recipe-card:hover h3 { color: var(--cedar-green-dark); }
.recipe-card .arabic {
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: var(--cedar-green-dark);
  direction: rtl;
  margin: 0;
  opacity: 0.85;
}
.recipe-card .translit {
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  margin: 2px 0 6px;
}

.no-results {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 0;
  display: none;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
}

/* ---- Recipe page ---- */
.crumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--gold); }

.recipe-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 24px 0 56px;
}
@media (max-width: 800px) {
  .recipe-hero { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 32px; }
}
.recipe-hero .hero-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.recipe-hero .hero-image svg { width: 100%; height: 100%; display: block; }
.recipe-hero .hero-text .category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.recipe-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 500;
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.recipe-hero .translit {
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-top: 10px;
}
.recipe-hero .arabic {
  font-family: 'Amiri', serif;
  font-size: 32px;
  color: var(--cedar-green-dark);
  direction: rtl;
  margin: 12px 0 0;
}
.recipe-hero .recipe-summary {
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
}

.recipe-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
}
.recipe-intro p { margin: 0 0 16px; }
.recipe-intro p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4em;
  float: left;
  line-height: 0.9;
  margin: 6px 8px 0 0;
  color: var(--flag-red);
  font-weight: 500;
}

.recipe-body {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 60px;
  margin-top: 32px;
}
@media (max-width: 800px) {
  .recipe-body { grid-template-columns: 1fr; gap: 32px; }
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cedar-green-dark);
  margin: 0 0 16px;
  padding-bottom: 0;
  border: none;
  position: relative;
  padding-left: 24px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 1px; background: var(--gold);
}

.ingredients-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  align-self: start;
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow-sm);
}
.ingredients-card ul, .equipment-card ul { padding-left: 0; margin: 0; list-style: none; }
.ingredients-card li, .equipment-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 16px;
}
.ingredients-card li:last-child, .equipment-card li:last-child { border-bottom: none; }
.equipment-card {
  background: transparent;
  padding: 24px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--rule);
}

.steps { padding-left: 0; counter-reset: step; list-style: none; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 76px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.7;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--flag-red);
  font-style: italic;
}
.steps li::after {
  content: '';
  position: absolute;
  left: 56px; top: 8px; bottom: 16px;
  width: 1px;
  background: var(--rule-strong);
}
.steps li:last-child::after { display: none; }

.note-block {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(176, 138, 62, 0.06), rgba(176, 138, 62, 0.02));
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.note-block strong {
  font-style: normal;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.serving {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: var(--ink);
  text-align: center;
}

.nutrition {
  margin-top: 32px;
  padding: 16px 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-align: center;
  text-transform: uppercase;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 64px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--cedar-green-dark); border-color: var(--cedar-green-dark); }
.btn.ghost { border-color: var(--rule-strong); color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.subrecipe { margin-top: 64px; }
.subrecipe + .subrecipe { border-top: 1px solid var(--rule); padding-top: 64px; }
.subrecipe-header { text-align: center; margin-bottom: 32px; }
.subrecipe-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.005em;
}
.subrecipe-header .translit { color: var(--ink-soft); font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 18px; margin-top: 6px; }
.subrecipe-header .arabic { font-family: 'Amiri', serif; color: var(--cedar-green-dark); direction: rtl; font-size: 24px; margin-top: 4px; }

footer.site-footer {
  text-align: center;
  padding: 80px 24px 56px;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--warm-white);
  margin-top: 80px;
  border-top: 1px solid var(--rule);
}
footer.site-footer .cedar { width: 36px; color: var(--gold); display: block; margin: 0 auto 16px; }
footer.site-footer .arabic-mark {
  display: block;
  margin-top: 12px;
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: var(--cedar-green-dark);
  direction: rtl;
}

/* Map page */
.map-page header.recipe-header { text-align: center; margin: 24px 0 32px; }
.map-page .map-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}
.map-page .hl-green { color: var(--cedar-green-dark); font-weight: 600; font-style: normal; }
.map-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

/* Layered map viewer */
.map-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 0 auto 32px;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
@media (max-width: 640px) {
  .map-tabs { grid-template-columns: repeat(2, 1fr); }
}
.map-tab {
  appearance: none;
  background: var(--paper);
  border: none;
  padding: 16px 14px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--rule);
  transition: background .25s ease, color .25s ease;
  font-family: inherit;
  color: var(--ink-soft);
}
.map-tab:last-child { border-right: none; }
@media (max-width: 640px) {
  .map-tab:nth-child(2) { border-right: none; }
  .map-tab:nth-child(1), .map-tab:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
.map-tab .map-tab-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.005em;
  transition: color .25s ease;
}
.map-tab .map-tab-tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.4;
}
.map-tab:hover { background: var(--warm-white); }
.map-tab:hover .map-tab-label { color: var(--cedar-green-dark); }
.map-tab.active {
  background: var(--ink);
}
.map-tab.active .map-tab-label { color: var(--paper); }
.map-tab.active .map-tab-tagline { color: var(--gold-soft); }

.map-stack {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  /* Reserve space matching map aspect ratio so the grid doesn't jump */
  aspect-ratio: 0.79 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-layer {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.map-layer.active { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .map-stack { padding: 12px; }
  .map-layer { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
}
.lebanon-map { width: 100%; height: auto; display: block; }
.lebanon-map a { cursor: pointer; }
.lebanon-map a:hover circle { filter: brightness(1.15); }
.lebanon-map a:hover text { fill: var(--cedar-green-dark); }
.legend-table {
  width: 100%;
  max-width: 760px;
  margin: 12px auto 0;
  border-collapse: collapse;
}
.legend-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 15px;
}
.legend-table .legend-kind {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 6px;
}
.legend-row.legend-recipe-town strong { color: var(--cedar-green-dark); }
.legend-row.legend-capital strong { color: var(--flag-red-dark); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.dot-capital { background: var(--flag-red); border: 2px solid var(--flag-red-dark); }
.dot-recipe-town { background: var(--cedar-green); }
.dot-city { background: var(--flag-red-dark); }

/* Print styles */
@media print {
  .flag-stripe, .actions, .crumb, footer.site-footer, .site-nav { display: none; }
  body { background: white; font-size: 11pt; line-height: 1.5; }
  .recipe-hero { grid-template-columns: 1fr; gap: 16px; padding: 0 0 24px; }
  .recipe-hero .hero-image { max-height: 240px; }
  .recipe-body { grid-template-columns: 1fr; gap: 24px; }
  .ingredients-card { position: static; border: 1px solid #999; break-inside: avoid; box-shadow: none; }
  .steps li::before { color: #444 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: ""; }
}
