/* Theme switch + dark theme for the city, country and hub pages.
   Light stays exactly as each page already looks. Dark is the same warm espresso-and-gold
   palette used on the homepage. Injected by scripts/theme-inject.js. */

/* ---------- the switch ---------- */
.pt-wrap { display: flex; align-items: center; gap: 12px }
.pt-switch { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0 }
.pt-switch button {
  width: 30px; height: 28px; border-radius: 999px; border: 0; background: transparent; color: #64748b; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease
}
.pt-switch button:hover { color: #b45309 }
.pt-switch button[aria-checked="true"] { background: #fff; color: #b45309; box-shadow: 0 1px 3px rgba(15, 23, 42, .25) }
.pt-switch svg, .pt-cycle svg { width: 16px; height: 16px; pointer-events: none }
.pt-cycle {
  display: inline-flex; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #b45309; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex: none
}
.pt-cycle svg { width: 18px; height: 18px }
.pt-cycle .i-light, .pt-cycle .i-dark { display: none }
html[data-theme-pref="light"] .pt-cycle .i-auto, html[data-theme-pref="dark"] .pt-cycle .i-auto { display: none }
html[data-theme-pref="light"] .pt-cycle .i-light { display: block }
html[data-theme-pref="dark"] .pt-cycle .i-dark { display: block }
@media (min-width: 640px) { .pt-switch { display: inline-flex } .pt-cycle { display: none } }
.pt-float { position: fixed; top: 14px; right: 14px; z-index: 60 }
html.theme-anim body, html.theme-anim body * { transition: background-color .25s ease, color .25s ease, border-color .25s ease !important }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(245, 158, 11, .6); outline-offset: 3px; border-radius: 10px }

/* ---------- dark ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  scrollbar-color: #5b4310 #14100a;
  --color-slate-50: #17120b; --color-slate-100: #211a10; --color-slate-200: #34291a; --color-slate-300: #4c3d27;
  --color-slate-400: #a6936f; --color-slate-500: #bcaa87; --color-slate-600: #d4c5a5; --color-slate-700: #e5d9bf;
  --color-slate-800: #f2e8d2; --color-slate-900: #fff3d8;
  --color-amber-50: #2b1f0c; --color-amber-100: #382811; --color-amber-200: #5b4310;
  --color-amber-400: #ffc247; --color-amber-500: #ffb02e; --color-amber-600: #ffb02e; --color-amber-700: #ffc247; --color-amber-800: #ffd37a
}
html[data-theme="dark"] body { background: #14100a; color: #d9ccb0 }
html[data-theme="dark"] ::selection { background: rgba(255, 194, 71, .35); color: #fff }
html[data-theme="dark"] .bg-white { background-color: #1b150d }
html[data-theme="dark"] .bg-white\/90, html[data-theme="dark"] .bg-white\/95 { background-color: rgba(20, 16, 10, .92) }
html[data-theme="dark"] .bg-slate-900, html[data-theme="dark"] .bg-slate-950, html[data-theme="dark"] .bg-slate-800 { background-color: #0e0a05 }
html[data-theme="dark"] .text-slate-100, html[data-theme="dark"] .text-slate-200, html[data-theme="dark"] .text-slate-300 { color: #d8cdb4 }
html[data-theme="dark"] .text-white { color: #fff }
/* amber buttons keep a deep fill and white text */
html[data-theme="dark"] .bg-amber-700 { background-color: #b45309 }
html[data-theme="dark"] .bg-amber-700:hover, html[data-theme="dark"] .hover\:bg-amber-600:hover { background-color: #d97706 }
html[data-theme="dark"] .border-amber-200 { border-color: rgba(255, 194, 71, .3) }
/* page parts */
html[data-theme="dark"] .local-card, html[data-theme="dark"] .faq-local { background: #1f1810; border-color: rgba(255, 214, 140, .16) }
html[data-theme="dark"] .local-card:hover { border-color: rgba(255, 194, 71, .5); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7) }
html[data-theme="dark"] .faq-local summary { color: #fff3d8 }
html[data-theme="dark"] .faq-local summary::after { color: #ffc247 }
html[data-theme="dark"] .faq-local p { color: #d9ccb0 }
html[data-theme="dark"] .shimmer-text { background: none; -webkit-text-fill-color: #ffc247; color: #ffc247 }
html[data-theme="dark"] .site-footer-local { background: linear-gradient(180deg, #3a2608, #2a1b06); color: #d8c8a4 }
html[data-theme="dark"] .site-footer-local a { color: #ecdfc4 }
html[data-theme="dark"] .site-footer-local a:hover { color: #ffc247 }
html[data-theme="dark"] nav img, html[data-theme="dark"] .site-footer-local img { filter: brightness(0) invert(1) }
html[data-theme="dark"] .pt-switch { background: #2a1f0e; border-color: rgba(255, 214, 140, .22) }
html[data-theme="dark"] .pt-switch button { color: #bda57a }
html[data-theme="dark"] .pt-switch button[aria-checked="true"] { background: #3a2a10; color: #ffc247; box-shadow: none }
html[data-theme="dark"] .pt-cycle { background: #2a1f0e; color: #ffc247; border-color: rgba(255, 214, 140, .25) }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #1b150d; color: #fff3d8; border-color: rgba(255, 214, 140, .24) }
html[data-theme="dark"] .text-purple-600, html[data-theme="dark"] .text-purple-700 { color: #c4a1ff }
html[data-theme="dark"] .text-emerald-600, html[data-theme="dark"] .text-emerald-700 { color: #6ee7b7 }
html[data-theme="dark"] .text-sky-700, html[data-theme="dark"] .text-sky-600 { color: #7dd3fc }
html[data-theme="dark"] .text-red-600, html[data-theme="dark"] .text-red-700 { color: #fca5a5 }
html[data-theme="dark"] .bg-amber-500.text-white, html[data-theme="dark"] .bg-amber-600.text-white, html[data-theme="dark"] .bg-amber-700.text-white { background-color: #b45309 }
html[data-theme="dark"] .bg-amber-500.text-white:hover, html[data-theme="dark"] .bg-amber-600.text-white:hover, html[data-theme="dark"] .bg-amber-700.text-white:hover,
html[data-theme="dark"] .hover\:bg-amber-500:hover, html[data-theme="dark"] .hover\:bg-amber-600:hover { background-color: #d97706 }
/* small phones: the logo already carries the name, so drop the repeated text to make room for the controls */
@media (max-width: 480px) { nav a[href="/"].flex > span { display: none } .pt-wrap { gap: 8px } }
/* legal pages: privacy, terms, badge */
html[data-theme="dark"] .legal-card { background: #1f1810; border-color: rgba(255, 214, 140, .16); box-shadow: none }
html[data-theme="dark"] .legal-card:hover { border-color: rgba(255, 194, 71, .5); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7) }
html[data-theme="dark"] .legal-box-summary { background: #2a1f0e; border-color: rgba(255, 214, 140, .22); border-left-color: #f59e0b }
html[data-theme="dark"] .bg-\[\#0b1020\] { background: linear-gradient(180deg, #3a2608, #2a1b06) }
html[data-theme="dark"] .border-l-amber-500 { border-left-color: #f59e0b }
html[data-theme="dark"] .text-amber-800 { color: #ffd37a }
/* language switch (English <-> Arabic) on the country pages that have both */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff;
  color: #b45309; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'Plus Jakarta Sans', sans-serif; letter-spacing: 0
}
.lang-switch:hover { background: #fff3d6 }
html[data-theme="dark"] .lang-switch { background: #2a1f0e; color: #ffc247; border-color: rgba(255, 214, 140, .25) }
html[data-theme="dark"] .lang-switch:hover { background: #3a2a10 }
/* Arabic pages: mirrored layout details */
html[dir="rtl"] .faq-local summary::after { float: left }
html[dir="rtl"] .lang-note { background: #fffbeb; color: #78350f }
html[dir="rtl"][data-theme="dark"] .lang-note { background: #2a1f0e; border-color: rgba(255, 214, 140, .22); color: #ffd37a }
html[dir="rtl"] .pt-float { right: auto; left: 14px }
