/* =========================================
   Travel Guides Hub — Premium Stylesheet
   RTL · Light & Dark Mode · Phase 2
   ========================================= */

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

/* ── Design tokens — LIGHT (default) ───── */
:root {
  /* Brand palette — Ocean Teal */
  --clr-primary:       #1a5f7a;
  --clr-primary-dk:    #134d63;
  --clr-secondary:     #57c5b6;
  --clr-secondary-dk:  #3fafa0;
  --clr-accent:        #f59e0b;
  --clr-accent-dk:     #d97706;
  /* Brand identity (logo: luxury navy blue → deep teal/cyan) */
  --brand-navy:        #1f3c88;   /* primary solid button */
  --brand-navy-2:      #15295e;   /* button gradient end */
  --brand-teal:        #149bb3;   /* active / hover accent */
  --brand-teal-2:      #18c0cf;   /* teal gradient highlight */
  --icon-inactive:     #5a6f9c;   /* muted navy — inactive line icons */
  --icon-active:       #149bb3;   /* deep teal — hover/active line icons */
  /* Active-state accent for facet filters / tags (deep teal, replaces orange) */
  --map-accent:        #149bb3;
  --map-accent-2:      #0f7e93;

  --clr-bg:            #f0f5f7;
  --clr-surface:       #ffffff;
  --clr-surface-2:     #f4f9fb;
  --clr-text:          #0d1f26;
  --clr-muted:         #5a7a87;
  --clr-border:        #dcedf2;
  --clr-lock:          #94a3b8;
  --clr-success:       #057a6b;
  --clr-error:         #dc2626;

  --hero-from:         #071b24;
  --hero-mid:          #0e3548;
  --hero-to:           #1a5f7a;

  --shadow-sm:   0 1px 3px rgba(26,95,122,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 20px rgba(26,95,122,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 48px rgba(26,95,122,.13), 0 4px 14px rgba(0,0,0,.07);
  --card-glow:   0 10px 30px rgba(26,95,122,.18), 0 4px 12px rgba(0,0,0,.08);

  --radius:      20px;
  --radius-sm:   12px;
  --transition:  .25s ease;

  --track-bg:    rgba(255,255,255,.2);
  --thumb-bg:    #ffffff;
}

/* ── Design tokens — DARK ───────────────── */
[data-theme="dark"] {
  --clr-bg:          #071218;
  --clr-surface:     #0c1e27;
  --clr-surface-2:   #112736;
  --clr-text:        #ddf0f5;
  --clr-muted:       #7aaab8;
  --clr-border:      #1a3545;
  --clr-lock:        #5a8090;
  --clr-success:     #2dd4bf;
  --clr-error:       #ef4444;

  --hero-from:       #040d11;
  --hero-mid:        #09232f;
  --hero-to:         #0f3f52;

  --shadow-sm:  0 1px 3px  rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.55);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.7);
  --card-glow:  0 10px 30px rgba(87,197,182,.2), 0 4px 12px rgba(0,0,0,.5);

  --track-bg:   rgba(255,255,255,.12);
  --thumb-bg:   #071218;

  /* Brand identity on dark — lift navy/teal for contrast */
  --brand-navy:    #2a55b8;
  --brand-navy-2:  #1b357e;
  --brand-teal:    #2bb6cc;
  --brand-teal-2:  #34d2e0;
  --icon-inactive: #8aa0c8;
  --icon-active:   #2bb6cc;
  --map-accent:    #2bb6cc;
  --map-accent-2:  #1796ab;
}

html { font-size: 16px; }

/* ── Minimalist line icons (inline SVG, inherit currentColor) ───────────── */
.licon {
  width: 1.05em; height: 1.05em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.16em;
  stroke: currentColor;
}

body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
}

/* ── Hero Header ─────────────────────────── */
.site-header {
  background:
    radial-gradient(ellipse at 10% 70%, rgba(26,95,122,.65) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(87,197,182,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 105%, rgba(245,158,11,.1) 0%, transparent 55%),
    linear-gradient(160deg, var(--hero-from) 0%, var(--hero-mid) 50%, var(--hero-to) 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.75rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--clr-secondary) 30%, var(--clr-accent) 70%, transparent 100%);
  opacity: .65;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  direction: ltr; /* brand on far left, toggle on far right */
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.4));
}

.header-tagline {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,.62);
  margin-bottom: 1.75rem;
  letter-spacing: .3px;
  line-height: 1.7;
}

/* ── Utility Top Mini-Bar ────────────────── */
.topbar {
  background: linear-gradient(180deg, #eef4f6 0%, #e6eef1 100%);
  border-bottom: 1px solid rgba(26,95,122,.12);
  position: relative;
  z-index: 30;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, #0a1a22 0%, #07151c 100%);
  border-bottom-color: rgba(87,197,182,.14);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: #2a5566;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .35rem .8rem;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .topbar-item { color: #9fc7cf; }

.topbar-item:hover:not(:disabled) {
  background: rgba(26,95,122,.08);
  border-color: rgba(26,95,122,.18);
}
[data-theme="dark"] .topbar-item:hover:not(:disabled) {
  background: rgba(87,197,182,.1);
  border-color: rgba(87,197,182,.22);
}

.topbar-item:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 2px;
}

.topbar-icon { font-size: .95rem; line-height: 1; }

.topbar-label { white-space: nowrap; }

/* Theme switch (track + thumb) inside the topbar */
.theme-switch { padding-inline-end: .55rem; }

.toggle-track {
  display: block;
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
  border: 1.5px solid rgba(26,95,122,.2);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.toggle-thumb {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), color .35s ease;
}

.toggle-thumb svg { transform: rotate(-15deg); }

[data-theme="dark"] .toggle-track {
  background: linear-gradient(135deg, rgba(15,63,82,.9), rgba(7,27,36,.95));
  border-color: rgba(87,197,182,.3);
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(22px);
  color: #0f3f52;
}

/* Language dropdown */
.topbar-lang { position: relative; }

.lang-current { font-weight: 700; opacity: .85; }

.lang-chevron { opacity: .65; transition: transform .25s ease; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + .35rem);
  inset-inline-start: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: var(--clr-surface, #fff);
  border: 1px solid rgba(26,95,122,.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26,95,122,.18);
  z-index: 40;
}
[data-theme="dark"] .lang-menu {
  background: #0d1f28;
  border-color: rgba(87,197,182,.18);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.lang-menu.hidden { display: none; }

.lang-option {
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-option:hover { background: rgba(26,95,122,.08); }
[data-theme="dark"] .lang-option:hover { background: rgba(87,197,182,.12); }
.lang-option.is-active { color: var(--clr-primary); background: rgba(87,197,182,.14); }
[data-theme="dark"] .lang-option.is-active { color: var(--clr-secondary); }

/* ── Main ───────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.section-intro {
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: .65rem;
  letter-spacing: .2px;
  transition: color var(--transition);
  padding-right: 0;
}

[data-theme="dark"] .section-title { color: #e2e8f0; }

.section-title::before { display: none; }

.section-title-accent { color: var(--clr-accent); }

.section-desc {
  color: var(--clr-muted);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
  transition: color var(--transition);
}

/* ── No Results ─────────────────────────── */
.no-results {
  text-align: center;
  color: var(--clr-muted);
  padding: 2.5rem;
  font-size: 1rem;
}
.no-results.hidden { display: none; }

/* ── Guides Grid ────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  gap: 1.75rem;
  align-items: start;
}

/* ── Loading ────────────────────────────── */
.loading-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--clr-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

[data-theme="dark"] .spinner { border-top-color: #7ec8e3; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Guide Card ─────────────────────────── */
.guide-card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-border);
  transition:
    transform .3s cubic-bezier(.34,1.56,.64,1),
    box-shadow .3s ease,
    border-color var(--transition);
  will-change: transform;
  position: relative;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
}

.guide-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-glow);
  border-color: rgba(87,197,182,.3);
}

.guide-card:hover::before { opacity: 1; }

.guide-card[data-id="russia"]:hover::before    { background: linear-gradient(90deg, #b91c1c, #1d4ed8); }

/* ── Scenic Card Cover ───────────────────── */
.card-cover {
  position: relative;
  height: 168px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(7,27,36,.88) 0%,
    rgba(7,27,36,.35) 52%,
    rgba(7,27,36,.05) 100%);
}

.card-cover-text {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 2;
  padding: .9rem 1.3rem 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}

.card-country {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  margin-top: .15rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.card-body {
  padding: 1.15rem 1.4rem .4rem;
  flex: 1;
}

.card-preview {
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.65;
  transition: color var(--transition);
}

.card-footer {
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: border-color var(--transition);
}

/* ── In-card decryption loading ────────── */
.card-unlocking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .4rem 0 .2rem;
  color: var(--clr-muted);
  font-size: .85rem;
  font-weight: 600;
}

.card-unlocking .spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
}

/* ── Primary CTA button ──────────────────── */
.btn-read {
  flex: 1;
  padding: .78rem 1.2rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(26,95,122,.35);
  letter-spacing: .02em;
  text-align: center;
}

.btn-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,95,122,.45);
}

.btn-read:active { transform: scale(.97); }

/* ── Protected — unlock form ─────────────── */
.unlock-form { display: flex; gap: .5rem; }

.unlock-input {
  flex: 1;
  padding: .6rem .9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  direction: ltr;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  outline: none;
  min-width: 0;
  background: var(--clr-bg);
  color: var(--clr-text);
}
.unlock-input:focus       { border-color: var(--clr-primary); }
.unlock-input.input-error { border-color: var(--clr-error); animation: shake .3s ease; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.btn-unlock {
  padding: .6rem 1rem;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform .12s;
  flex-shrink: 0;
}
.btn-unlock:hover    { background: var(--clr-accent-dk); }
.btn-unlock:active   { transform: scale(.97); }
.btn-unlock:disabled { opacity: .55; cursor: not-allowed; }

.lock-icon-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--clr-lock);
  font-size: .78rem;
  margin-bottom: .6rem;
  transition: color var(--transition);
}

.error-msg {
  color: var(--clr-error);
  font-size: .8rem;
  margin-top: .4rem;
  display: none;
  transition: color var(--transition);
}
.error-msg.visible { display: block; }

/* ══════════════════════════════════════════
   DEDICATED FULL-SCREEN GUIDE PAGE
══════════════════════════════════════════ */
.guide-view {
  position: relative;
  min-height: 100vh;
  background: var(--clr-bg);
  transition: background var(--transition);
  animation: guide-fade .3s ease;
}
.guide-view.hidden { display: none; }

@keyframes guide-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When viewing a guide, hide the home dashboard chrome */
body.viewing-guide .topbar,
body.viewing-guide .site-header,
body.viewing-guide .main-content,
body.viewing-guide .site-footer { display: none; }

/* ── Minimalist floating back button ─────── */
.guide-back-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 6;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 4px 18px rgba(7,27,36,.28);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.guide-back-btn:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(7,27,36,.36);
}
.guide-back-btn:active { transform: scale(.93); }
.guide-back-btn:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 3px; }

/* ── Full-bleed hero banner ──────────────── */
.guide-hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 56vh, 560px);
  background-size: cover;
  background-position: center;
  background-color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Cinematic scrim for text legibility + smooth bottom-fade into page bg */
.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(7,27,36,.30) 0%,
      rgba(7,27,36,.48) 42%,
      rgba(7,27,36,.55) 64%,
      rgba(7,27,36,.30) 82%,
      var(--clr-bg) 100%);
}

.guide-hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}

.guide-hero-eyebrow {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .35rem 1.1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guide-hero-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}

.guide-hero-country {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,.88);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.guide-hero-divider {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  margin: .2rem 0;
}

/* ── Content area — luxury multi-column grid ─ */
.guide-content-area {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  line-height: 1.75;
}

/* ── State-driven layout: index sidebar + dynamic panel ── */
.guide-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
  align-items: start;
}

/* index — list of pressable section buttons */
.guide-index {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 26px rgba(26,95,122,.09);
}
[data-theme="dark"] .guide-index { box-shadow: 0 8px 26px rgba(0,0,0,.4); }

.guide-index-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: .72rem .85rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              transform .15s ease, color var(--transition), box-shadow var(--transition);
}
.guide-index-item .gi-icon  { font-size: 1.18rem; flex-shrink: 0; line-height: 1; display: inline-flex; }
.guide-index-item .gi-icon .licon { width: 1.18rem; height: 1.18rem; color: var(--icon-inactive); transition: color var(--transition); }
.guide-index-item:hover .gi-icon .licon,
.guide-index-item.active .gi-icon .licon { color: var(--icon-active); }
.guide-index-item .gi-label { flex: 1; }
.guide-index-item .gi-lock  { font-size: .8rem; opacity: .65; flex-shrink: 0; }

.guide-index-item:hover {
  background: var(--clr-bg);
  border-color: var(--clr-border);
  transform: translateX(-3px);
}
.guide-index-item:active { transform: translateX(-1px) scale(.99); }

.guide-index-item.active {
  background: linear-gradient(135deg, #0f2942, #1a3a52);
  color: #fff;
  border-color: rgba(126,200,227,.42);
  box-shadow: 0 6px 18px rgba(15,41,66,.32);
}
.guide-index-item.active .gi-label { color: #fff; }
.guide-index-item.active .gi-lock  { opacity: .9; }

.guide-index-item.locked { opacity: .82; }

/* dynamic panel — one section visible at a time */
.guide-panel { min-width: 0; }
.guide-panel-section { animation: panelFade .28s ease; }
.guide-panel-section.hidden { display: none; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.guide-panel .guide-section {
  background: var(--clr-surface);
  box-shadow: 0 6px 22px rgba(26,95,122,.08);
}
[data-theme="dark"] .guide-panel .guide-section {
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}

/* ════════════════════════════════════════════
   Structured guide tree — nested accordions
   (single source of content; fully usable on mobile)
════════════════════════════════════════════ */
.guide-accordions { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.gsec {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 1rem;
  box-shadow: 0 6px 22px rgba(26,95,122,.08);
  transition: border-color var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .gsec { box-shadow: 0 6px 22px rgba(0,0,0,.4); }
.gsec.open { border-color: rgba(126,200,227,.42); }

.gsec-head {
  display: flex; align-items: center; gap: .8rem;
  width: 100%; text-align: right; font-family: inherit;
  font-size: 1.02rem; font-weight: 800; color: var(--clr-text);
  background: var(--clr-surface-2);
  border: none; border-bottom: 1px solid transparent;
  padding: 1.05rem 1.25rem; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.gsec.open .gsec-head { border-bottom-color: var(--clr-border); }
.gsec-head:hover { color: var(--clr-primary); }
[data-theme="dark"] .gsec-head:hover { color: #7ec8e3; }
.gsec-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; display: inline-flex; }
.gsec-icon .licon { width: 1.3rem; height: 1.3rem; color: var(--icon-inactive); transition: color var(--transition); }
.gsec-head:hover .gsec-icon .licon,
.gsec.open .gsec-icon .licon { color: var(--icon-active); }
.gsec-title { flex: 1; }
.gsec-chevron { font-size: 1.25rem; line-height: 1; opacity: .55; flex-shrink: 0; transition: transform .3s ease; }
.gsec.open .gsec-chevron { transform: rotate(180deg); }

.gsec-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.gsec.open .gsec-panel { grid-template-rows: 1fr; }
.gsec-panel-inner { overflow: hidden; }
.gsec.open .gsec-panel-inner { padding: 1.1rem 1.25rem 1.3rem; }

.gsec-intro { line-height: 1.85; margin-bottom: 1rem; color: var(--clr-text); }

/* Section-level notice banner (e.g. the shopping section's hours/prices caveat) */
.poi-notice {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 0 0 1.15rem; padding: .85rem 1rem;
  border: 1px solid rgba(20,155,179,.32);
  background: rgba(20,155,179,.07);
  border-radius: 12px;
  font-size: .85rem; line-height: 1.7; color: var(--clr-text);
}
.poi-notice-ic { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.5; }
.poi-notice-tx { flex: 1 1 auto; min-width: 0; }
.poi-notice strong { font-weight: 800; }

/* nested subsections */
.gsub-list { display: flex; flex-direction: column; gap: .65rem; }
.gsub {
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--clr-surface-2);
  transition: border-color var(--transition);
}
.gsub.open { border-color: rgba(126,200,227,.4); }
.gsub-head {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; text-align: right; font-family: inherit;
  font-size: .92rem; font-weight: 700; color: var(--clr-primary);
  background: transparent; border: none; cursor: pointer;
  padding: .85rem 1.05rem; transition: color var(--transition);
}
[data-theme="dark"] .gsub-head { color: #7ec8e3; }
.gsub-head:hover { color: var(--icon-active); }
.gsub-title { flex: 1; }
.gsub-ic { flex-shrink: 0; color: var(--icon-inactive); display: inline-flex; transition: color var(--transition); }
.gsub-ic .licon { width: 1.15rem; height: 1.15rem; }
.gsub-head:hover .gsub-ic, .gsub.open .gsub-ic { color: var(--icon-active); }
.gsub-chevron { font-size: 1.1rem; line-height: 1; opacity: .6; flex-shrink: 0; transition: transform .3s ease; }
.gsub.open .gsub-chevron { transform: rotate(180deg); }
.leg-ic { display: inline-flex; vertical-align: -2px; }
.leg-ic .licon { width: .92rem; height: .92rem; }
.err-ic { display: inline-flex; vertical-align: -3px; margin-inline-end: .35rem; }
.err-ic .licon { width: 1.1rem; height: 1.1rem; }
.gsub-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.gsub.open .gsub-panel { grid-template-rows: 1fr; }
.gsub-panel-inner { overflow: hidden; line-height: 1.8; }
.gsub.open .gsub-panel-inner { padding: 0 1.05rem 1rem; }

.empty-note {
  color: var(--clr-muted);
  font-size: .86rem;
  font-style: italic;
  padding: .2rem 0;
  margin: 0;
  opacity: .85;
}

/* ── Interactive maps section ── */
.guide-maps { display: flex; flex-direction: column; gap: 1rem; }
.map-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.map-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: inherit; font-size: .85rem; font-weight: 700;
  color: var(--clr-text); background: var(--clr-surface-2);
  border: 1px solid var(--clr-border); border-radius: 999px;
  padding: .5rem .95rem; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.map-chip:hover { border-color: rgba(126,200,227,.5); }
.map-chip:hover .map-chip-ic { color: var(--icon-active); }
.map-chip-ic { color: var(--icon-inactive); transition: color var(--transition); }
.map-chip.active {
  background: linear-gradient(135deg, #0f2942, #1a3a52);
  color: #fff; border-color: rgba(126,200,227,.42);
}
.map-chip.active .map-chip-ic { color: #fff; }
.map-embed {
  border: 1px solid var(--clr-border);
  border-radius: 14px; overflow: hidden;
  height: 380px; background: var(--clr-surface-2);
}
.map-frame { width: 100%; height: 100%; border: 0; display: block; }
.map-list { display: none; }
.map-list.active { display: block; animation: panelFade .28s ease; }

/* ── Facet filter bar (cuisine + price) — orange active accent ── */
.map-facets { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.facet-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.facet-label {
  font-size: .8rem; font-weight: 800; color: var(--clr-muted);
  margin-inline-end: .15rem; white-space: nowrap;
}
.facet-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.facet-chip {
  font-family: inherit; font-size: .82rem; font-weight: 700;
  color: var(--clr-text); background: var(--clr-surface-2);
  border: 1px solid var(--clr-border); border-radius: 999px;
  padding: .42rem .9rem; cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}
.facet-chip:hover { border-color: var(--map-accent); color: var(--map-accent); }
.facet-chip:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 2px; }
.facet-chip.active {
  background: linear-gradient(135deg, var(--map-accent), var(--map-accent-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(20,155,179,.28);
}

/* ── Restaurant rows — clean vertical list ── */
.map-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.map-item {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem 1rem;
  border: 1px solid var(--clr-border); border-radius: 14px;
  padding: 1rem 1.15rem; background: var(--clr-surface-2);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition), transform .15s ease;
}
.map-item.is-hidden { display: none; }
.map-item:hover { border-color: rgba(126,200,227,.45); transform: translateY(-1px); }
.map-item:focus-visible { outline: 2px solid rgba(126,200,227,.7); outline-offset: 2px; }
.map-item.active {
  border-color: rgba(126,200,227,.6); background: var(--clr-surface);
  box-shadow: 0 6px 20px rgba(15,41,66,.18);
}
.map-item-main { flex: 1 1 60%; min-width: 0; }
.map-item-title { font-size: 1rem; font-weight: 800; color: var(--clr-text); margin: 0 0 .4rem; }
.map-item-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .45rem; }
.map-tag {
  font-size: .72rem; font-weight: 700; line-height: 1;
  padding: .32rem .6rem; border-radius: 999px;
  border: 1px solid var(--clr-border); color: var(--clr-muted);
  background: var(--clr-surface);
}
.map-tag-cuisine { color: var(--clr-primary); border-color: rgba(126,200,227,.4); }
[data-theme="dark"] .map-tag-cuisine { color: #7ec8e3; }
.map-tag-price { color: var(--map-accent); border-color: rgba(20,155,179,.4); }
.map-tag-type {
  color: var(--map-accent); border-color: rgba(20,155,179,.45);
  background: rgba(20,155,179,.08);
}
.map-item-addr {
  font-size: .82rem; color: var(--clr-muted); margin: 0 0 .3rem;
  display: flex; align-items: center; gap: .35rem;
}
.mi-addr-ic { color: var(--icon-inactive); width: .95rem; height: .95rem; }

/* Rich, scannable place description (HTML: lead paragraph + icon fact lists
   + optional titled sub-block). Authored in the data/admin as HTML. */
.map-item-desc { font-size: .88rem; line-height: 1.75; color: var(--clr-text); margin: 0; }
.map-item-desc > :first-child { margin-top: 0; }
.map-item-desc > :last-child { margin-bottom: 0; }
.map-item-desc p { margin: 0 0 .55rem; }
.map-item-desc strong { color: var(--clr-text); font-weight: 800; }
[data-theme="dark"] .map-item-desc strong { color: #eaf6fb; }

.poi-facts, .poi-sublist {
  list-style: none; margin: .15rem 0 .55rem; padding: 0;
  display: flex; flex-direction: column; gap: .42rem;
}
.poi-facts li { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.75; }
.poi-ic {
  flex: 0 0 auto; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1.75; min-height: 1.75em;
  margin-inline-end: .12rem;
}
.poi-tx { flex: 1 1 auto; min-width: 0; }

.poi-block {
  margin: .15rem 0 .55rem; padding: 0;
  border: 0; border-radius: 0; background: none;
}
/* Inline links inside content subsections / map descriptions (on-brand, no box) */
.gsub-panel-inner a, .map-item-desc a, .poi-tx a, .poi-block-title a {
  color: var(--map-accent); font-weight: 700; text-decoration: none;
}
.gsub-panel-inner a:hover, .map-item-desc a:hover,
.poi-tx a:hover, .poi-block-title a:hover { text-decoration: underline; }
.poi-block-title {
  display: flex; align-items: flex-start; gap: .55rem; line-height: 1.75;
  margin: 0 0 .42rem !important; font-weight: 800;
}
/* App entries with store-download buttons (essential apps + airport transport) */
.poi-app { margin: .15rem 0 1rem; }
.poi-app:last-child { margin-bottom: .2rem; }
.poi-app-head {
  display: flex; align-items: flex-start; gap: .55rem; line-height: 1.75;
  margin: 0 0 .3rem; font-weight: 800;
}
.poi-app-head strong { color: var(--clr-text); }
[data-theme="dark"] .poi-app-head strong { color: #eaf6fb; }
.poi-app-text { margin: 0 0 .55rem; padding-inline-start: 1.5rem; }
.app-store-links {
  display: flex; flex-wrap: wrap; gap: .55rem;
  padding-inline-start: 1.5rem;
}
/* Luxury ghost buttons — transparent, thin muted-navy border, navy text; teal on hover. No orange. */
.app-store-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .95rem; border-radius: .7rem;
  border: 1px solid color-mix(in srgb, var(--icon-inactive) 55%, transparent);
  background: transparent;
  color: var(--icon-inactive) !important; font-weight: 700; font-size: .88rem;
  text-decoration: none !important; line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.app-store-btn:hover {
  background: color-mix(in srgb, var(--icon-active) 8%, transparent);
  border-color: var(--icon-active);
  color: var(--icon-active) !important;
  transform: translateY(-1px); text-decoration: none !important;
}
.app-store-btn:focus-visible {
  outline: 2px solid var(--icon-active); outline-offset: 2px;
}
/* CTA/store ghost-button leading line icon — sized; color inherits the button (muted navy → teal on hover) */
.app-store-btn .licon { width: 1rem; height: 1rem; }
/* Lucide line icons inside content bodies (facts/blocks/app heads) — muted navy */
.poi-ic .licon { width: 1.1rem; height: 1.1rem; color: var(--icon-inactive); display: block; flex: 0 0 auto; vertical-align: middle; overflow: visible; }

.poi-sublist { margin: 0; gap: .32rem; }
.poi-sublist li { position: relative; padding-inline-start: .95rem; }
.poi-sublist li::before {
  content: "•"; position: absolute; inset-inline-start: 0;
  color: var(--map-accent); font-weight: 800;
}

/* ── Hotels section (الفنادق) — luxury category cards + quick-summary grid ── */
.htl-wrap { display: flex; flex-direction: column; gap: 1rem; }
.htl-cat {
  border: 1px solid var(--clr-border); border-radius: 14px;
  background: color-mix(in srgb, var(--clr-text) 3%, transparent);
  padding: 1.05rem 1.15rem;
}
.htl-cat-title {
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 .55rem; font-weight: 800; font-size: 1.02rem;
  color: var(--brand-navy);
}
[data-theme="dark"] .htl-cat-title { color: #cdd9f5; }
.htl-cat-desc { margin: 0 0 .7rem; line-height: 1.8; color: var(--clr-text); }
.htl-suit {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: .2rem 0 .75rem; line-height: 1.7; color: var(--clr-text);
}
.htl-suit > span { flex: 1 1 auto; min-width: 0; }
.htl-suit strong { font-weight: 800; }
.htl-names { display: flex; flex-wrap: wrap; gap: .5rem; }
.htl-name {
  display: inline-block; direction: ltr; unicode-bidi: isolate;
  font-size: .85rem; font-weight: 700; line-height: 1.3;
  padding: .4rem .72rem; border-radius: 9px;
  border: 1px solid var(--clr-border); background: var(--clr-bg);
  color: var(--brand-navy);
}
[data-theme="dark"] .htl-name {
  color: #c3d2f4;
  background: color-mix(in srgb, var(--clr-text) 5%, transparent);
}
/* English place/hotel/station names embedded in Arabic text — uniform size + bold */
.htl-en { font-weight: 700; unicode-bidi: isolate; }
/* Quick summary grid (الخلاصة السريعة) */
.htl-summary {
  border: 1px solid color-mix(in srgb, var(--map-accent) 35%, var(--clr-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--map-accent) 6%, transparent);
  padding: 1.1rem 1.2rem; margin-top: .35rem;
}
.htl-summary-title {
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 .85rem; font-weight: 800; font-size: 1.02rem; color: var(--clr-text);
}
.htl-summary-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem;
}
.htl-sum-item {
  display: flex; flex-direction: column; gap: .28rem;
  padding: .7rem .85rem; border-radius: 10px;
  border: 1px solid var(--clr-border); background: var(--clr-bg);
}
.htl-q { font-size: .82rem; font-weight: 700; color: var(--clr-muted); }
.htl-a { font-weight: 800; line-height: 1.6; color: var(--map-accent); }
@media (max-width: 640px) {
  .htl-summary-grid { grid-template-columns: 1fr; }
}

/* Working-hours + pre-booking badges */
.map-item-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 0; }
.map-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 700; line-height: 1.2;
  padding: .34rem .62rem; border-radius: 9px;
  border: 1px solid var(--clr-border); background: var(--clr-surface); color: var(--clr-text);
}
.map-badge-ic { font-size: .85rem; line-height: 1; }
.map-badge-hours { color: var(--clr-muted); }
.map-badge-booking {
  color: var(--clr-text);
  border-color: rgba(20,155,179,.35);
  background: rgba(20,155,179,.06);
}
.map-badge-ic .licon { width: .95rem; height: .95rem; }

/* Per-row wide CTA → opens the place in Yandex Maps */
.map-item-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; min-width: 220px;
  font-family: inherit; font-size: .86rem; font-weight: 800;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  border: 1px solid transparent; border-radius: 11px;
  padding: .7rem 1.1rem;
  box-shadow: 0 6px 18px rgba(31,60,136,.3);
  transition: transform .15s ease, box-shadow var(--transition), filter var(--transition);
}
.map-item-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 24px rgba(31,60,136,.4); }
.map-item-btn:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 2px; }
.map-item-btn-icon { font-size: 1rem; line-height: 1; }
@media (max-width: 640px) {
  .map-item { flex-direction: column; align-items: stretch; }
  .map-item-btn { min-width: 0; width: 100%; }
}

#guide-content-area h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition);
}
[data-theme="dark"] #guide-content-area h2 { color: #7ec8e3; }

#guide-content-area h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin: 1.2rem 0 .4rem;
  transition: color var(--transition), border-color var(--transition);
}
[data-theme="dark"] #guide-content-area h3 { color: #7ec8e3; }

#guide-content-area p  { font-size: .95rem; color: var(--clr-text); margin-bottom: .5rem; line-height: 1.75; }
#guide-content-area ul { padding-right: 1.5rem; margin-bottom: .5rem; }
#guide-content-area li { font-size: .95rem; color: var(--clr-text); margin-bottom: .4rem; line-height: 1.75; }
#guide-content-area strong { color: var(--clr-primary); }
[data-theme="dark"] #guide-content-area strong { color: #63b3ed; }

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 1.4rem;
  font-size: .85rem;
  margin-top: auto;
  letter-spacing: .3px;
  transition: background var(--transition);
  border-top: 1px solid rgba(255,255,255,.06);
}
[data-theme="dark"] .site-footer { background: linear-gradient(135deg, #040c15, #08152a); }

/* ══════════════════════════════════════════
   RUSSIA GUIDE MODAL — Rich Content Styles
══════════════════════════════════════════ */

/* ── Badges ──────────────────────────────── */
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: rgba(45,138,160,.12);
  color: #1a5f7a;
  border: 1px solid rgba(45,138,160,.40);
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .badge-free {
  background: rgba(126,200,227,.14);
  color: #7ec8e3;
  border-color: rgba(126,200,227,.32);
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: linear-gradient(135deg, #0f2942, #1a3a52);
  color: #e8f4f8;
  border: 1px solid rgba(126,200,227,.40);
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .badge-premium {
  background: linear-gradient(135deg, #0a1f33, #13283b);
  color: #cfe8f3;
  border-color: rgba(126,200,227,.35);
}

/* ── Table of Contents ───────────────────── */
.guide-toc {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.toc-label {
  font-weight: 800;
  font-size: .9rem;
  color: var(--clr-primary);
  margin-bottom: .75rem;
}
[data-theme="dark"] .toc-label { color: #7ec8e3; }

.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
}

.toc-col { display: flex; flex-direction: column; gap: .3rem; }

.toc-col-title {
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
}

.toc-link {
  font-size: .82rem;
  color: var(--clr-primary);
  text-decoration: none;
  padding: .18rem .4rem;
  border-radius: 5px;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.toc-link:hover {
  background: var(--clr-border);
  color: var(--clr-text);
}
[data-theme="dark"] .toc-link { color: #7ec8e3; }

/* ── Section Dividers ────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0 1.2rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
}

.free-divider::before,
.free-divider::after    { background: linear-gradient(90deg, transparent, rgba(45,138,160,.55), transparent); }
.premium-divider::before,
.premium-divider::after { background: linear-gradient(90deg, transparent, rgba(26,58,82,.65), transparent); }

.divider-badge {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 800;
  padding: .3rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}

.free-divider    .divider-badge { background: rgba(45,138,160,.12); color: #1a5f7a; border: 1px solid rgba(45,138,160,.40); }
.premium-divider .divider-badge { background: linear-gradient(135deg,#0f2942,#1a3a52); color: #e8f4f8; border: 1px solid rgba(126,200,227,.40); }
[data-theme="dark"] .free-divider    .divider-badge { background: rgba(126,200,227,.14); color: #7ec8e3; border-color: rgba(126,200,227,.32); }
[data-theme="dark"] .premium-divider .divider-badge { background: linear-gradient(135deg,#0a1f33,#13283b); color: #cfe8f3; border-color: rgba(126,200,227,.35); }

/* ── Guide Sections ──────────────────────── */
.guide-section {
  margin-bottom: 1.6rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.2rem;
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition), border-color var(--transition);
}

.section-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }

.guide-section-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--clr-text) !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  flex: 1;
}

/* ── Info Blocks — softly tinted micro-card panels ─ */
.info-block {
  margin: .85rem 1rem;
  padding: 1rem 1.15rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  line-height: 1.75;
  transition: border-color var(--transition), background var(--transition);
}

.info-block-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: .5rem;
}
[data-theme="dark"] .info-block-title { color: #7ec8e3; }

/* ── Accordions — collapsible detail panels ─ */
.info-block.accordion-item {
  padding: 0;
  overflow: hidden;
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  color: var(--clr-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .85rem 1.1rem;
  transition: color var(--transition);
}
[data-theme="dark"] .accordion-trigger { color: #7ec8e3; }
.accordion-trigger:hover { color: var(--icon-active); }
.accordion-title { flex: 1; }
.accordion-chevron {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: .7;
  transition: transform .3s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion-item.open .accordion-body { grid-template-rows: 1fr; }
.accordion-body-inner {
  overflow: hidden;
  padding: 0 1.1rem;
}
.accordion-item.open .accordion-body-inner { padding-bottom: .95rem; }

.info-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .82rem;
  color: #78350f;
  margin-top: .75rem;
}
[data-theme="dark"] .info-note {
  background: #451a03;
  border-color: #92400e;
  color: #fcd34d;
}

/* ── Styled List ─────────────────────────── */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.styled-list li {
  padding-right: 1.1rem;
  position: relative;
  font-size: .87rem;
  color: var(--clr-text);
  line-height: 1.5;
}
.styled-list li::before {
  content: '▸';
  position: absolute;
  right: 0;
  color: var(--clr-accent);
  font-size: .75rem;
  top: .15rem;
}

/* ── Prayer Times ────────────────────────── */
.prayer-times {
  list-style: none;
  padding: 0;
  margin: .4rem 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.prayer-times li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem .6rem;
  border-radius: 6px;
  font-size: .85rem;
  background: var(--clr-surface-2);
  transition: background var(--transition);
}
.prayer-name { font-weight: 700; color: var(--clr-text); }
.prayer-time { font-weight: 700; color: var(--clr-primary); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .prayer-time { color: #7ec8e3; }

/* ── Metro List ──────────────────────────── */
.metro-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.metro-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .9rem;
  background: var(--clr-surface-2);
  border-radius: 8px;
  transition: background var(--transition);
}

.metro-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .25rem;
  box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}

.metro-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}
.metro-info strong { font-size: .88rem; color: var(--clr-text); }

.metro-line {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 10px;
  margin-left: .2rem;
}
.red-line    { background: #fee2e2; color: #991b1b; }
.blue-line   { background: #dbeafe; color: #1e3a8a; }
.orange-line { background: #ffedd5; color: #9a3412; }
.brown-line  { background: #f5f0eb; color: #5c4033; }
[data-theme="dark"] .red-line    { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .blue-line   { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .orange-line { background: #431407; color: #fdba74; }
[data-theme="dark"] .brown-line  { background: #292524; color: #d6bcb4; }

.metro-dest {
  font-size: .78rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}

.metro-tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--clr-muted);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: .1rem .4rem;
  border-radius: 6px;
  margin-top: .15rem;
  transition: background var(--transition), border-color var(--transition);
}

/* ── Yandex Map Button ───────────────────── */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  padding: .45rem 1rem;
  background: var(--clr-primary);
  color: #fff !important;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform .12s;
  font-family: inherit;
}
.map-btn:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-1px);
}
[data-theme="dark"] .map-btn { background: #1e6896; }
[data-theme="dark"] .map-btn:hover { background: #155075; }

/* ── Landmark Grid ───────────────────────── */
.landmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.landmark-item {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--clr-border);
  border-left: 1px solid var(--clr-border);
  transition: background var(--transition), border-color var(--transition);
}
.landmark-item:hover { background: var(--clr-surface-2); }
.landmark-item:nth-child(odd) { border-left: none; }

.landmark-header {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .4rem;
}

.landmark-icon { font-size: 1.4rem; flex-shrink: 0; }
.landmark-name { font-size: .88rem; font-weight: 800; color: var(--clr-text); display: block; margin-bottom: .2rem; }
.landmark-desc { font-size: .82rem; color: var(--clr-muted); line-height: 1.5; margin-bottom: .4rem; }

/* ── Activity List ───────────────────────── */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--clr-border);
  transition: border-color var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item.other-activities { background: var(--clr-surface-2); transition: background var(--transition); }

.activity-header {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .5rem;
}
.activity-icon { font-size: 1.3rem; flex-shrink: 0; }
.activity-header strong { font-size: .92rem; color: var(--clr-text); display: block; }

/* ── TOC locked links ────────────────────── */
.toc-link-locked {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.toc-link-locked::after {
  content: '';
  font-size: .65rem;
}

/* ── Premium Gate (inline in guide page) ── */
.premium-gate {
  margin-top: 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px dashed var(--clr-border);
  transition: border-color var(--transition);
}

.premium-gate-inner {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--clr-surface-2);
  transition: background var(--transition);
}

.premium-gate-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .75rem;
  filter: drop-shadow(0 2px 6px rgba(245,158,11,.35));
}

.premium-gate-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: .5rem;
  transition: color var(--transition);
}

.premium-gate-desc {
  font-size: .88rem;
  color: var(--clr-muted);
  max-width: 420px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
  transition: color var(--transition);
}

/* ── Inline unlock form ──────────────────── */
.inline-unlock-form { width: 100%; }

.inline-unlock-row {
  display: flex;
  gap: .5rem;
  max-width: 380px;
  margin: 0 auto;
}

.inline-unlock-input {
  flex: 1;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  direction: ltr;
  text-align: center;
  background: var(--clr-surface);
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  min-width: 0;
}
.inline-unlock-input:focus     { border-color: var(--clr-accent); }
.inline-unlock-input.input-error { border-color: var(--clr-error); animation: shake .3s ease; }

.inline-unlock-btn {
  padding: .7rem 1.4rem;
  background: linear-gradient(135deg, #f59e0b, #e67e22);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition), transform .12s;
  box-shadow: 0 3px 12px rgba(245,158,11,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}
.inline-unlock-btn:hover    { opacity: .88; transform: translateY(-1px); }
.inline-unlock-btn:active   { transform: scale(.97); }
.inline-unlock-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.inline-error-msg {
  color: var(--clr-error);
  font-size: .82rem;
  margin-top: .5rem;
  display: none;
  transition: color var(--transition);
}
.inline-error-msg.visible { display: block; }

/* ── Responsive overrides for guide content ── */
@media (max-width: 560px) {
  .toc-grid        { grid-template-columns: 1fr; }
  .landmark-grid   { grid-template-columns: 1fr; }
  .landmark-item   { border-left: none !important; }
  .inline-unlock-row { flex-direction: column; }
  .inline-unlock-btn { width: 100%; }
}

/* ── Guide layout on mobile: accordion tree is the navigation ── */
@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 14px;
  }
  /* The nested accordion list is fully usable on its own, so the desktop
     quick-nav sidebar is hidden — nothing is duplicated or cut off. */
  .guide-index { display: none; }
  .gsec-head { font-size: .98rem; padding: .95rem 1rem; }
  .gsec.open .gsec-panel-inner { padding: 1rem 1rem 1.15rem; }
  .map-embed { height: 300px; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 640px) {
  .logo-title  { font-size: 1.2rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-back-btn { top: 1rem; right: 1rem; width: 42px; height: 42px; }
  .guide-hero-text { padding: 1.25rem; }
  .header-top-row { flex-wrap: wrap; gap: .75rem; }
  .brand-logo { height: 46px; }
}

@media (max-width: 520px) {
  .topbar-inner { gap: .35rem; padding: .4rem .75rem; justify-content: space-between; }
  .topbar-item { padding: .3rem .5rem; font-size: .75rem; }
  .topbar-label { display: none; }
  .lang-current { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTERACTIVE MAP — Smart Proximity (Leaflet)
═══════════════════════════════════════════════════════════════════════════ */
.imap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.1rem 1rem;
  margin: 0 0 1.5rem;
}
.imap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.imap-title {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.imap-title-ic { color: var(--icon-active); width: 1.3rem; height: 1.3rem; }
.imap-locate .licon { width: 1.05rem; height: 1.05rem; }
.imap-locate {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary-dk));
  border: none;
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: var(--shadow-sm);
}
.imap-locate:hover { transform: translateY(-1px); filter: brightness(1.08); }
.imap-locate:active { transform: translateY(0); }
.imap-locate:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.imap-sub {
  color: var(--clr-muted);
  font-size: .88rem;
  margin: .55rem 0 .85rem;
}

/* Category filter pills */
.imap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .9rem;
}
.imap-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--clr-text);
  background: var(--clr-surface-2);
  border: 1.5px solid var(--clr-border);
  border-radius: 999px;
  padding: .42rem .9rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.imap-pill-ic { color: var(--icon-inactive); transition: color .15s ease; }
.imap-pill:hover { border-color: var(--brand-teal); transform: translateY(-1px); }
.imap-pill:hover .imap-pill-ic { color: var(--icon-active); }
.imap-pill:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.imap-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-teal), var(--map-accent-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(20,155,179,.28);
}
.imap-pill.active .imap-pill-ic { color: #fff; }

/* Body: map canvas + sidebar list */
.imap-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.imap-map {
  height: 460px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: #0a151c;
  z-index: 0;
}
.imap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 460px;
  overflow-y: auto;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-surface-2);
  scrollbar-width: thin;
}
.imap-li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--clr-border);
  cursor: pointer;
  transition: background .14s ease;
}
.imap-li:last-child { border-bottom: none; }
.imap-li:hover { background: var(--clr-surface); }
.imap-li.active {
  background: var(--clr-surface);
  box-shadow: inset 3px 0 0 var(--clr-secondary);
}
.imap-li:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: -2px; }
.imap-li-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--pin, var(--icon-inactive));
  background: color-mix(in srgb, var(--pin, var(--clr-secondary)) 14%, transparent);
  transition: transform .14s ease;
}
.imap-li-ic .licon { width: 1.05rem; height: 1.05rem; }
.imap-li:hover .imap-li-ic,
.imap-li.active .imap-li-ic { transform: scale(1.08); }
.imap-li-tx {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  flex: 1 1 auto;
}
.imap-li-name {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imap-li-cat { font-size: .74rem; color: var(--clr-muted); }
.imap-li-metro {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .14rem;
  font-size: .74rem;
  color: var(--clr-muted);
}
.imap-li-metro-tx {
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imap-dist {
  flex: 0 0 auto;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: .76rem;
  color: var(--clr-secondary);
  background: rgba(87, 197, 182, .12);
  border: 1px solid rgba(87, 197, 182, .3);
  border-radius: 999px;
  padding: .12rem .5rem;
  white-space: nowrap;
}
.imap-note {
  margin: .7rem 0 0;
  min-height: 1.1em;
  font-size: .82rem;
  color: var(--clr-muted);
  text-align: center;
}

/* Custom luxury teardrop map pins (category-colored, white inner icon) */
.imap-pin-wrap { background: transparent; border: none; }
.imap-pin {
  --pin: #2a4d9b;
  width: 32px;
  height: 44px;
  transform-origin: 50% 100%;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), filter .16s ease;
  cursor: pointer;
}
.imap-pin-body {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4));
}
.imap-pin-drop {
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 1.4;
}
.imap-pin-wrap:hover { z-index: 600 !important; }
.imap-pin-wrap:hover .imap-pin {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5));
}
.imap-pin-wrap:focus-visible { outline: none; }
.imap-pin-wrap:focus-visible .imap-pin { transform: scale(1.15); }

/* Animated user blue-dot */
.imap-userdot-wrap { background: transparent; border: none; }
.imap-userdot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2b8cff;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(43, 140, 255, .55);
  position: relative;
}
.imap-userdot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(43, 140, 255, .45);
  animation: imap-pulse 1.8s ease-out infinite;
  z-index: -1;
}
@keyframes imap-pulse {
  0%   { transform: scale(.7); opacity: .9; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Leaflet popup — dark theme + nearby recommendations */
.imap-popup .leaflet-popup-content-wrapper {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.imap-popup .leaflet-popup-content { margin: .7rem .85rem; line-height: 1.5; }
.imap-popup .leaflet-popup-tip { background: var(--clr-surface); border: 1px solid var(--clr-border); }
.imap-popup a.leaflet-popup-close-button { color: var(--clr-muted); }
.imap-pop-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; }
.imap-pop-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: #fff;
  background: var(--pin, var(--brand-teal));
}
.imap-pop-ic .licon { width: 1rem; height: 1rem; }
.imap-pop-name {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-text);
}
.imap-pop-link {
  display: inline-block;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .84rem;
  color: var(--clr-secondary);
  text-decoration: none;
}
.imap-pop-link:hover { text-decoration: underline; }
.imap-pop-metro {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: -.1rem 0 .55rem;
  font-family: "Tajawal", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-muted);
}
.imap-pop-metro-ic { color: #d9232e; }
.imap-pop-metro-ic .licon { width: .95rem; height: .95rem; }
.imap-pop-metro-tx { line-height: 1.3; }

/* Cross-category "nearby" recommendations inside the popup. */
.imap-pop-recs {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.imap-pop-recs-h {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: "Tajawal", sans-serif;
  font-size: .74rem;
  font-weight: 800;
  color: var(--clr-muted);
  margin-bottom: .15rem;
}
.imap-pop-recs-ic { color: var(--icon-active); }
.imap-pop-recs-ic.licon { width: .9rem; height: .9rem; }
.imap-rec {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: start;
  padding: .35rem .4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--clr-surface-2);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.imap-rec:hover { border-color: color-mix(in srgb, var(--map-accent) 45%, transparent); background: color-mix(in srgb, var(--map-accent) 7%, var(--clr-surface-2)); }
.imap-rec:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 1px; }
.imap-rec-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: #fff;
  background: var(--pin, var(--brand-teal));
}
.imap-rec-ic .licon { width: .8rem; height: .8rem; }
.imap-rec-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1 1 auto; }
.imap-rec-name {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imap-rec-cat { font-size: .68rem; font-weight: 600; color: var(--clr-muted); }
.imap-rec-d {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  flex: 0 0 auto;
  font-family: "Tajawal", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  color: var(--map-accent);
  white-space: nowrap;
}
.imap-rec-d .licon { width: .8rem; height: .8rem; }

@media (max-width: 760px) {
  .imap-body { grid-template-columns: 1fr; }
  .imap-map { height: 340px; }
  .imap-list { height: 280px; }
}

/* Mobile map fixes: keep leaflet popups inside the map (close button reachable,
   never sliding under the filter pills) and let sidebar names render in full. */
@media (max-width: 768px) {
  /* Cap the popup width so it fits the viewport. */
  .imap-popup.leaflet-popup { max-width: calc(100vw - 36px) !important; }
  /* Cap height + scroll the body so the popup can't overflow the map and tuck
     the 'X' close button under the category filter container above it. */
  .imap-popup .leaflet-popup-content-wrapper {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .imap-popup .leaflet-popup-content { max-height: 250px; }
  /* Keep the close button pinned + clearly tappable above the scroll area. */
  .imap-popup a.leaflet-popup-close-button {
    z-index: 2;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 22px;
  }
  /* Let Arabic sidebar names wrap fully instead of being clipped with a
     leading ellipsis ("… مسجد موسك"). */
  .imap-li-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }
}

/* Active marker emphasis (driven by JS .is-active on the divIcon element). */
.imap-pin-wrap.is-active { z-index: 1200 !important; }
.imap-pin-wrap.is-active .imap-pin {
  transform: scale(1.22);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

/* ═══════════════════════════════════════════════════════════════════════════
   DYNAMIC SMART ITINERARY — location-aware day plan (in itineraries section)
═══════════════════════════════════════════════════════════════════════════ */
.smart-itin-slot:empty { display: none; }
.smart-itin {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.7rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background:
    radial-gradient(150% 120% at 100% 0%, rgba(87, 197, 182, .06), transparent 55%),
    var(--clr-surface-2);
  overflow: hidden;
}
.smart-itin::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--clr-secondary), transparent 80%);
  opacity: .75;
}
.smart-itin-head {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.smart-itin-title-ic { color: var(--icon-active); width: 1.15rem; height: 1.15rem; }
.smart-itin-cta-btn .licon { width: 1.05rem; height: 1.05rem; }
.smart-itin-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--clr-text);
}
.smart-itin-sub {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--clr-muted);
}

/* Clean vertical timeline: cards stacked in one centered column, linked by a
   thin connector that carries the transition (distance) badge between stops. */
.smart-itin-timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 30rem;
  margin-inline: auto;
}
.smart-stop { display: block; }
.smart-leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .15rem 0;
}
.smart-leg::before,
.smart-leg::after {
  content: "";
  width: 1px;
  height: .7rem;
  background: linear-gradient(var(--clr-border), color-mix(in srgb, var(--clr-secondary) 40%, transparent));
}
.smart-leg::after {
  background: linear-gradient(color-mix(in srgb, var(--clr-secondary) 40%, transparent), var(--clr-border));
}
.smart-leg-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--clr-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: .22rem .75rem;
  white-space: nowrap;
}
.smart-venue {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  text-align: start;
  cursor: pointer;
  padding: .95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  font: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.smart-venue:hover {
  border-color: color-mix(in srgb, var(--clr-secondary) 55%, var(--clr-border));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.smart-venue:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 2px;
}
.smart-venue-ic {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--icon-inactive);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--brand-navy) 32%, transparent);
  transition: color .15s ease, border-color .15s ease;
}
.smart-venue-ic .licon { width: 1.3rem; height: 1.3rem; }
.smart-venue:hover .smart-venue-ic {
  color: var(--icon-active);
  background: transparent;
  border-color: color-mix(in srgb, var(--brand-teal) 45%, transparent);
}
.smart-venue-tx {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .22rem;
}
.smart-venue-name {
  min-width: 0;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: -.005em;
  color: var(--clr-text);
}
.smart-venue-metro {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  color: color-mix(in srgb, var(--clr-secondary) 78%, var(--clr-muted));
  letter-spacing: -.003em;
}
.smart-venue-go {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: .95rem;
  color: var(--clr-secondary);
  opacity: .65;
  transition: opacity .18s ease, transform .18s ease;
}
.smart-venue:hover .smart-venue-go { opacity: 1; transform: translateX(-2px); }

/* Metro station chip on a venue list card (sits just under the title) */
.metro-ic { display: inline-flex; flex: 0 0 auto; color: #d9232e; }
.metro-ic .licon { width: .92rem; height: .92rem; }
.metro-car-ic { display: inline-flex; flex: 0 0 auto; color: inherit; }
.metro-car-ic .licon { width: .92rem; height: .92rem; }
/* Unified white / light-gray linear metro icon (hotels). Never red. */
.metro-light-ic { display: inline-flex; flex: 0 0 auto; color: #cdd5e3; }
.metro-light-ic .licon { width: .92rem; height: .92rem; }
.smart-venue-metro { display: inline-flex; align-items: center; gap: .25rem; }
.map-item-metro {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1;
  padding: .3rem .58rem;
  margin: 0 0 .5rem;
  border-radius: 999px;
  color: var(--clr-secondary);
  background: color-mix(in srgb, var(--clr-secondary) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr-secondary) 28%, transparent);
}

/* ── Metro guide reference section (🚇 دليل المترو السياحي) ───────────────── */
.metro-guide-lead {
  line-height: 1.85;
  color: var(--clr-muted);
  margin: 0 0 1.25rem;
}
.metro-stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.metro-station {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.metro-station:hover {
  border-color: color-mix(in srgb, var(--clr-secondary) 50%, var(--clr-border));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.metro-station-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
}
.metro-station-ar,
.metro-station-en {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.4;
}
.metro-station-en { direction: ltr; unicode-bidi: isolate; }
.metro-station-sep {
  font-size: 1.05rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-navy) 55%, transparent);
}
.metro-station-areas {
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid var(--clr-border);
}
.metro-areas-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: .6rem;
}
.metro-areas-title .licon {
  width: 1rem;
  height: 1rem;
  color: var(--map-accent);
  flex: 0 0 auto;
}
.metro-station-venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.metro-station-venues li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--clr-text);
}
.metro-station-venues li .licon {
  width: .95rem;
  height: .95rem;
  color: var(--map-accent);
  flex: 0 0 auto;
}

/* === Metro tourist guide (دليل المترو السياحي) — 3 grouped accordion tabs === */
.mtg-sub {
  margin: 0 0 1.1rem;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--clr-muted);
}
.mtg-stations {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.mtg-st {
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mtg-st:hover {
  border-color: color-mix(in srgb, var(--clr-secondary) 50%, var(--clr-border));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.mtg-st-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
}
.mtg-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 8%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, .35);
}
.mtg-st-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--brand-navy);
}
.mtg-st-en {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-navy) 62%, transparent);
}
.mtg-line {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
  padding: .15rem .55rem;
  border-radius: 999px;
  color: var(--clr-muted);
  background: color-mix(in srgb, var(--brand-navy) 7%, transparent);
  border: 1px solid var(--clr-border);
}
.mtg-areas {
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid var(--clr-border);
}
.mtg-areas-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: .55rem;
}
.mtg-areas-title .licon {
  width: 1rem;
  height: 1rem;
  color: var(--map-accent);
  flex: 0 0 auto;
}
.mtg-areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.mtg-areas-list li {
  position: relative;
  padding-inline-start: 1rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--clr-text);
}
.mtg-areas-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--map-accent);
}

/* Pre-location prompt (no static itinerary — fully dynamic section) */
.smart-itin-prompt {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--clr-muted);
}
.smart-itin-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--clr-secondary), var(--clr-accent));
  color: #07151b;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.smart-itin-cta-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.smart-itin-cta-btn:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }

/* ── Itinerary closing card + "extend route" control ──────────────────────── */
.smart-itin-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  max-width: 30rem;
  margin: 1.4rem auto 0;
  padding: 1.3rem 1.4rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--clr-secondary) 38%, var(--clr-border));
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(87, 197, 182, .07), transparent 60%),
    var(--clr-surface);
}
.smart-itin-end-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: var(--icon-active);
  background: color-mix(in srgb, var(--clr-secondary) 14%, transparent);
}
.smart-itin-end-ic .licon { width: 1.3rem; height: 1.3rem; }
.smart-itin-end-tx { display: flex; flex-direction: column; gap: .3rem; }
.smart-itin-end-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--clr-text);
}
.smart-itin-end-sub {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--clr-muted);
}
.smart-itin-extend-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--map-accent), var(--map-accent-2));
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .86rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.smart-itin-extend-btn .licon { width: 1.05rem; height: 1.05rem; }
.smart-itin-extend-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.smart-itin-extend-btn:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.smart-itin-end-done {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-muted);
}
.smart-itin-end-done .licon { width: 1rem; height: 1rem; color: var(--icon-active); }

/* ── Pre-publish map audit (DEV-ONLY QA utility, hidden in production) ──────── */
.mapaudit {
  margin: 2.75rem auto 0;
  max-width: 1100px;
  border: 1px dashed color-mix(in srgb, var(--clr-secondary) 32%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--clr-secondary) 4%, transparent);
  overflow: hidden;
}
.mapaudit-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-secondary);
}
.mapaudit-emoji { font-size: 1rem; line-height: 1; }
.mapaudit-chev { margin-inline-start: auto; transition: transform .2s ease; opacity: .7; }
.mapaudit.open .mapaudit-chev { transform: rotate(180deg); }
.mapaudit-body { padding: 0 1.15rem 1.3rem; }
.mapaudit-note { margin: 0 0 .9rem; font-size: .72rem; color: var(--clr-muted); }
.mapaudit-summary { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.1rem; }
.mapaudit-stat {
  font-size: .78rem; font-weight: 700; padding: .32rem .72rem; border-radius: 999px;
  background: color-mix(in srgb, var(--clr-secondary) 10%, transparent);
  color: var(--clr-muted);
}
.mapaudit-stat.ok { color: #2b8a6e; background: color-mix(in srgb, #2b8a6e 14%, transparent); }
.mapaudit-stat.bad { color: var(--clr-error); background: color-mix(in srgb, var(--clr-error) 14%, transparent); }
.mapaudit-section + .mapaudit-section { margin-top: 1.25rem; }
.mapaudit-h { margin: 0 0 .65rem; font-size: .88rem; font-weight: 800; }
.mapaudit-h.ok { color: #2b8a6e; }
.mapaudit-h.bad { color: var(--clr-error); }
.mapaudit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.mapaudit-chip {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .7rem; border-radius: 10px; font-size: .82rem;
  border: 1px solid color-mix(in srgb, #2b8a6e 45%, transparent);
  background: color-mix(in srgb, #2b8a6e 7%, transparent);
  color: var(--clr-secondary);
}
.mapaudit-tick { font-size: .8rem; line-height: 1; flex: 0 0 auto; }
.mapaudit-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapaudit-chip small { margin-inline-start: auto; color: var(--clr-muted); font-size: .67rem; flex: 0 0 auto; }
.mapaudit-misslist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mapaudit-miss {
  padding: .7rem .85rem; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--clr-error) 45%, transparent);
  background: color-mix(in srgb, var(--clr-error) 8%, transparent);
}
.mapaudit-misshead { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mapaudit-misshead strong { color: var(--clr-error); font-size: .9rem; }
.mapaudit-misshead small { color: var(--clr-muted); font-size: .7rem; }
.mapaudit-missmsg { display: block; margin-top: .35rem; color: var(--clr-error); font-size: .76rem; line-height: 1.65; }
.mapaudit-allok {
  display: flex; align-items: center; gap: .4rem;
  color: #2b8a6e; font-weight: 700; font-size: .85rem; margin: 0;
}
.mapaudit-empty { color: var(--clr-muted); font-size: .85rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   SINGLE-DEVICE ACCESS GATEWAY (premium dark overlay)
════════════════════════════════════════════════════════════════════════ */
body.access-locked { overflow: hidden; }

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(31, 155, 179, 0.20), transparent 60%),
    linear-gradient(160deg, #0a1428 0%, #0c1c33 46%, #081019 100%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.access-gate.hidden { display: none; }

.access-card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(20, 36, 62, 0.94), rgba(10, 20, 38, 0.96));
  border: 1px solid rgba(120, 170, 200, 0.18);
  border-radius: 22px;
  padding: 2.4rem 2rem 1.9rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #eaf2f8;
  animation: accessIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes accessIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.access-logo {
  width: 116px;
  height: auto;
  margin: 0 auto 1.2rem;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.access-title {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: #f4f9fc;
}
.access-sub {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #a9bed1;
  margin: 0 auto 1.6rem;
  max-width: 34ch;
}

.access-form { display: flex; flex-direction: column; gap: 0.8rem; }
.access-input {
  width: 100%;
  font-family: "Tajawal", monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: #eaf2f8;
  padding: 0.95rem 1rem;
  background: rgba(7, 16, 28, 0.7);
  border: 1.5px solid rgba(120, 170, 200, 0.25);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.access-input::placeholder { color: #5d7286; letter-spacing: 0.1em; }
.access-input:focus {
  border-color: #1f9bb3;
  box-shadow: 0 0 0 4px rgba(31, 155, 179, 0.18);
}

.access-submit {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(120deg, #15406a, #1f9bb3);
  box-shadow: 0 12px 28px rgba(31, 155, 179, 0.28);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.access-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(31, 155, 179, 0.36); }
.access-submit:active { transform: translateY(0); }
.access-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.access-msg { margin: 1.1rem 0 0; font-size: 0.95rem; line-height: 1.6; min-height: 1.2em; }
.access-msg.is-info { color: #a9bed1; }
.access-msg.is-error {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(158, 43, 58, 0.16);
  border: 1px solid rgba(200, 80, 95, 0.38);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #ffd9de;
}
.access-msg-ar { font-weight: 700; }
.access-msg-en { font-size: 0.85rem; color: #e9b9c0; direction: ltr; }

.access-foot { margin: 1.35rem 0 0; font-size: 0.8rem; color: #7c93a8; }

/* "Buy now" CTA — for visitors without an activation code: opens the Salla
   product page in a new tab. Teal-forward so it reads as distinct from the
   navy→teal "تفعيل الدخول" submit. */
.access-buy-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: #7c93a8;
  font-size: 0.82rem;
  font-family: "Tajawal", sans-serif;
}
.access-buy-divider::before,
.access-buy-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(120, 170, 200, 0.2);
}
.access-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(110deg, #1c5560 0%, #2a7f8a 55%, #379aa1 100%);
  box-shadow: 0 10px 24px rgba(28, 85, 96, 0.28);
  transition: transform 0.15s, box-shadow 0.2s;
}
.access-buy:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(28, 85, 96, 0.38); }
.access-buy:active { transform: translateY(0); }
.access-buy:focus-visible { outline: 3px solid rgba(52, 210, 224, 0.6); outline-offset: 2px; }
.access-buy-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.access-buy-ic svg { width: 1.45rem; height: 1.45rem; }
.access-buy-tx { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; min-width: 0; }
.access-buy-title {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
}
.access-buy-sub {
  font-family: "Tajawal", sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .access-card { padding: 2rem 1.4rem 1.6rem; border-radius: 18px; }
  .access-title { font-size: 1.38rem; }
}
