/* Styles for the v11 pages (js/more-*.js). */

/* ---------- settings, dark mode override, text size ---------- */
:root[data-theme="dark"] {
  --sand: #12171d; --sand-2: #1b222b; --card: #1d252f; --ink: #eee6d6; --muted: #a5adb8; --nile: #0d2233; --line: #2c3743; --shadow: 0 2px 10px rgba(0, 0, 0, .35); --accent: #6cc3df;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-text="large"] { font-size: 112.5%; }
:root[data-text="xl"] { font-size: 125%; }
:root[data-text="large"] body { font-size: 1.06rem; }
:root[data-text="xl"] body { font-size: 1.14rem; }
.icon-btn { text-decoration: none; font-size: 1.15rem; padding: 4px 8px; margin-inline-start: auto; color: #fff; }
.topbar .icon-btn + .lang-btn { margin-inline-start: 4px; }
.settings input[type="date"] { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.lead { font-size: 1.1rem; }
.map { height: 360px; border-radius: 12px; overflow: hidden; margin: 12px 0; }
.small-map { height: 280px; }

/* phrasebook, food, gods, signs */
.phrase-list { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 760px) { .phrase-list { grid-template-columns: 1fr 1fr; } }
.phrase { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.phrase p { margin: 2px 0; }
.phrase-ar { font-family: Cairo, sans-serif; font-size: 1.45rem; font-weight: 700; }
.food-item h2 .muted { font-family: Cairo, sans-serif; font-weight: 400; }
.god-glyph, .sign-g, .quiz-glyph { font-family: "Noto Sans Egyptian Hieroglyphs", serif; font-size: 2.6rem; line-height: 1.2; color: var(--gold); }
.god .pill { display: inline-block; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.sign { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; }
.sign-g { font-size: 3.2rem; }

/* timeline */
.history-tl { list-style: none; padding: 0; margin: 16px 0; position: relative; }
.history-tl::before { content: ""; position: absolute; inset-inline-start: 19px; top: 0; bottom: 0; width: 3px; background: var(--line); }
.history-tl li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; position: relative; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 3px solid var(--gold); display: grid; place-items: center; z-index: 1; }
.history-tl .panel { margin: 0; }

/* checklists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--nile-2); flex: none; }
.check input:checked + span { text-decoration: line-through; color: var(--muted); }
.warn-panel { border-inline-start: 4px solid #b0442b; }

/* night sky */
.moon-now { display: flex; align-items: center; gap: 16px; }
.moon-ic { font-size: 3.5rem; }

/* place page extras */
.crowd-tip, .weather-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.weather-box:empty { display: none; }
.wx-days { display: flex; gap: 8px; margin: 6px 0; }
.wx-day { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: var(--sand-2); }
.wx-day strong { font-size: 1.3rem; }
.wx-day.hot { background: #f6d4c4; color: #7a2410; }
.wx-day.hot .muted { color: #7a2410; }
.open-pill { background: #dff3e4; color: #1d6b31; }
.closed-pill { background: #f8dcd6; color: #8f2c19; }

/* I'm lost & emergency card */
.big-btn { font-size: 1.15rem; padding: 14px 22px; }
.lost-card { margin: 16px 0; padding: 22px; border-radius: 18px; background: #fff7d6; color: #1d2733; border: 3px solid #c8902e; font-family: Cairo, sans-serif; }
.lost-big { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.lost-mid { font-size: 1.45rem; margin: 6px 0; }
.lost-small { font-size: 1rem; color: #5d6673; margin: 6px 0 0; }
.emergency-card { margin: 16px 0; border-radius: 18px; overflow: hidden; border: 3px solid #b0442b; background: #fff; color: #1d2733; }
.ec-title { margin: 0; padding: 12px 16px; background: #b0442b; color: #fff; font-weight: 700; font-family: Cairo, sans-serif; font-size: 1.2rem; }
.ec-row { display: flex; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid #eee; }
.ec-row strong { font-size: 1.15rem; white-space: pre-wrap; }
.ec-label { font-size: .85rem; color: #5d6673; }
.card-form label, .panel > label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-weight: 600; }
.card-form input, .card-form textarea, #barg-form input, .panel textarea, .panel input:not([type]), .panel input[type="number"] { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
#barg-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.big-num { font-size: 1.6rem; font-weight: 800; margin: 2px 0; }
.barg-grid .panel { margin: 0; }

/* planners */
.lucky-plan { list-style: none; padding: 0; display: grid; gap: 14px; }
.lucky-plan h3 { margin: 0 0 6px; }
.walk-list { padding-inline-start: 22px; display: grid; gap: 10px; }
.walk-list .panel { margin: 0; }
.walk-list h3 { margin: 6px 0 2px; }
.num-pin, .fac-pin, .exp-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--nile); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.fac-pin, .exp-pin { background: #fff; font-size: 14px; }
.month-grid .panel, .ram-time { margin: 0; }
.ramadan-banner { background: linear-gradient(90deg, #14324a, #3b2a5a); color: #fff; margin: 12px 0; }
.countdown { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.fact-box p { margin: 4px 0; }

/* quiz */
.quiz-box { margin-top: 12px; }
.quiz-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.quiz-opts { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .quiz-opts { grid-template-columns: 1fr 1fr; } }
.quiz-opt { text-align: start; }
.quiz-opt.right { background: #2e7d3e; color: #fff; border-color: #2e7d3e; }
.quiz-opt.wrong { background: #b0442b; color: #fff; border-color: #b0442b; }

/* saved extras, explored, diary */
.saved-links { margin: 10px 0; }
.progress { height: 10px; border-radius: 999px; background: var(--sand-2); overflow: hidden; margin: 4px 0 10px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #2e7d3e); }
.city-progress { display: grid; gap: 4px; }
@media (min-width: 760px) { .city-progress { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.diary-cover { text-align: center; font-size: 1.8rem; padding: 24px 0; border-bottom: 3px double var(--gold); }
.diary-trip h2 { border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.diary-entry { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.diary-entry img { max-width: 100%; border-radius: 12px; }
@media print {
  .topbar, .tabbar, .no-print, .page-head { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
}
