/* Phone-first hand guide. Shared by /turkey, /lycianway, and /istanbul. */
:root {
  --p: #F5EFE0;
  --p-mid: #EDE3CE;
  --p-dark: #D4C7AE;
  --ink: #14100C;
  --ink-s: #2A221A;
  --gold: #A8822E;
  --gold-l: #C9A85C;
  --terra: #245A5E;
  --wave: #1A4A55;
  --muted: #5C4F42;
  --nav: #0E1416;
  --top-h: 44px;
  --strip-h: 62px;
  --bar-h: 64px;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html { height: 100%; scroll-behavior: smooth; }

body {
  background: var(--p);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

a { color: var(--terra); }

img { max-width: 100%; height: auto; }

.topnav {
  position: relative;
  flex: none;
  z-index: 40;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  background: var(--nav);
  border-bottom: 1px solid rgba(168, 130, 46, 0.28);
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar { display: none; }

.topnav a {
  flex: none;
  color: rgba(245, 239, 224, 0.72);
  text-decoration: none;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.topnav a.brand {
  color: var(--gold-l);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 18px;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid rgba(168, 130, 46, 0.35);
}

.topnav a[aria-current="page"],
.topnav a:hover { color: var(--gold-l); }

.datestrip-wrap {
  position: relative;
  flex: none;
  z-index: 30;
  background: rgba(245, 239, 224, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p-dark);
  max-width: 100%;
  overflow: hidden;
}

.datestrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 12px;
  scroll-snap-type: x proximity;
}

.datestrip::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 58px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--p-dark);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  padding: 4px 2px 5px;
}

.chip .n {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}

.chip .d {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.chip .p {
  font-size: 9px;
  letter-spacing: 0.01em;
  color: var(--terra);
  margin-top: 2px;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip.is-page {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.chip.is-cal {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--p);
}

.chip.is-cal .d,
.chip.is-cal .p { color: rgba(245, 239, 224, 0.88); }

.chip.is-page.is-cal {
  box-shadow: inset 0 0 0 2px var(--gold-l);
}

.wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: min(720px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 16px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.kicker {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  margin: 22px 0 8px;
}

h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin: 16px 0 6px;
}

.places {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--terra);
  margin-bottom: 12px;
}

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  list-style: none;
}

.who li {
  background: var(--p-mid);
  border: 1px solid var(--p-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
}

.who-note, .note, .cash-note, .lead {
  color: var(--ink-s);
  font-size: 16px;
  margin-bottom: 12px;
}

.today-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  background: var(--ink);
  color: var(--p);
  border-radius: 16px;
  min-height: 92px;
  padding: 16px 18px;
  margin: 8px 0 16px;
}

.today-cta .today-kicker {
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-l);
  font-size: 14px;
}

.today-cta .today-date {
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  color: var(--p);
}

.today-cta .today-sub {
  color: rgba(245, 239, 224, 0.78);
  font-size: 15px;
}

.shelves {
  display: grid;
  gap: 8px;
  margin: 8px 0 18px;
}

.shelves a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  color: var(--ink);
}

.shelves a strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}

.shelves a span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.phase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.phase-row a {
  text-decoration: none;
  border: 1px solid var(--p-dark);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: #fffdf8;
  font-size: 14px;
}

.wx {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
}

.wx-slot {
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  border-radius: 8px;
  padding: 8px;
  min-height: 72px;
}

.wx-when {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.wx-temp {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--terra);
  line-height: 1.2;
}

.wx-body { font-size: 13px; line-height: 1.35; color: var(--ink); }
.wx-feel { display: block; margin-top: 4px; color: var(--ink-s); }
.wx-body.coming { color: var(--muted); }
.wx-climate-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.walk-expect {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 12px;
  background: rgba(139, 90, 60, 0.06);
  border: 1px solid rgba(139, 90, 60, 0.16);
  border-radius: 12px;
}

.walk-expect .diff {
  grid-row: 1 / span 3;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.walk-expect .diff.easy { background: #5a7a4a; }
.walk-expect .diff.moderate { background: #b07a3a; }
.walk-expect .diff.hard { background: #8b3a2a; }
.walk-expect .diff.modhard { background: linear-gradient(160deg, #b07a3a, #8b3a2a); }

.walk-expect .row { font-size: 14.5px; line-height: 1.4; }
.walk-expect .row strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
}

.schedule {
  list-style: none;
  border-top: 1px solid var(--p-dark);
  margin-bottom: 8px;
}

.schedule li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-dark);
}

.sched-time {
  flex: 0 0 72px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  padding-top: 2px;
}

.inline-link {
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 90, 94, 0.35);
}

.day-quote {
  margin: 12px 0 16px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.beat {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--p-dark);
}

.actions, .tap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.actions a, .tap a, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  touch-action: manipulation;
}

.btn-call, a.call {
  background: var(--ink);
  color: var(--p);
}

.btn-go, a.go {
  background: var(--terra);
  color: var(--p);
}

.btn-ghost, a.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.meal, .stay, .cash-card, .info-card, .site-card, .flight, .xfer, .place-panel {
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
}

.meal h3, .stay h3, .info-card h3, .site-card h3, .place-panel h3 { margin-top: 0; }

.meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 4px;
}

.place-panel .actions { margin-bottom: 0; }

.meal-searches { margin: 0 0 12px; min-width: 0; }
.meal-search-block { margin: 0 0 10px; min-width: 0; max-width: 100%; }
.meal-where {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 650;
  line-height: 1.35;
}
.meal-search {
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  border-radius: 14px;
  max-width: 100%;
  overflow: hidden;
}
.meal-search summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 15px;
  touch-action: manipulation;
}
.meal-search summary::-webkit-details-marker { display: none; }
.meal-search summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.meal-search[open] summary::after { content: "▴"; }
.meal-picks {
  list-style: none;
  margin: 0;
  padding: 0 14px 8px;
  min-width: 0;
}
.meal-picks li {
  border-top: 1px solid var(--p-dark);
  padding: 10px 0;
  min-width: 0;
}
.meal-name { font-weight: 700; margin: 0; }
.meal-blurb {
  margin: 2px 0 8px;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.meal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.meal-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  touch-action: manipulation;
}
.meal-links a.menu-link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.meal-links a.maps-link {
  background: var(--terra);
  color: var(--p);
}

.cash-total {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}

.cash-total span {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

.cash-lines { list-style: none; margin-top: 8px; }
.cash-lines li {
  padding: 8px 0;
  border-top: 1px solid var(--p-dark);
  font-size: 16px;
}

.card-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--p-dark);
  font-size: 15px;
}

.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px 1.1em; }
.prose li { margin: 0 0 6px; }

.ontrip {
  background: var(--ink);
  color: var(--p);
  border-radius: 14px;
  padding: 14px;
  margin: 8px 0 16px;
}

.ontrip a { color: var(--gold-l); }
.ontrip h2 { color: var(--p); font-size: 24px; margin: 0 0 6px; }
.ontrip p { margin: 0 0 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 8px 0 16px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  border-bottom: 1px solid var(--p-dark);
}

th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-img {
  border-radius: 12px;
  border: 1px solid var(--p-dark);
  margin: 8px 0;
}

a.site-card { display: block; text-decoration: none; color: inherit; }

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  font-weight: 650;
  margin-bottom: 8px;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.daybar {
  position: relative;
  flex: none;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(14, 20, 22, 0.97);
  border-top: 1px solid rgba(168, 130, 46, 0.35);
}

.daybar a, .daybar .edge {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--p);
  font-size: 14px;
  font-weight: 650;
  border-radius: 12px;
  touch-action: manipulation;
}

.daybar .today {
  background: var(--gold-l);
  color: var(--ink);
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.daybar .edge[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.horizon-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.horizon-card {
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  border-radius: 12px;
  padding: 10px 12px;
}
.horizon-card h3 { margin: 0 0 4px; font-size: 18px; }

@media (max-width: 380px) {
  .walk-expect { grid-template-columns: 1fr; }
  .walk-expect .diff { grid-row: auto; width: fit-content; }
  .sched-time { flex-basis: 64px; }
}

@media (min-width: 720px) {
  body { font-size: 18.5px; }
  .wx-body { font-size: 14px; }
}

/* Full-trip cash shelf — same figures as the old long page. */
.cash-era {
  margin: 28px 0 4px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
}
.cash-lead {
  font-size: 16.5px;
  color: var(--ink-s);
  margin: 8px 0 12px;
}
.cash-table-label {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cost-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--p-dark);
  border-radius: 8px;
  background: #fffdf8;
  margin: 0 0 8px;
}
.cost-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.cost-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--p-dark);
  background: var(--p-mid);
}
.cost-table td {
  padding: 10px;
  border-bottom: 1px solid var(--p-dark);
  vertical-align: top;
}
.cost-table td.who { color: var(--muted); font-size: 14px; }
.cost-table td:last-child { color: var(--terra); font-weight: 700; white-space: nowrap; }
.cash-rules {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--p-mid);
  border-left: 3px solid var(--gold);
}
.cash-rules ul { margin: 8px 0 0 1.1em; }
.cash-fx { color: var(--muted); font-size: 14.5px; margin: 8px 0 16px; }
.person-grid { display: grid; gap: 10px; }
.person-card {
  background: #fffdf8;
  border: 1px solid var(--p-dark);
  border-left: 3px solid var(--terra);
  border-radius: 12px;
  padding: 12px 14px;
}
.person-card h4 { font-family: var(--display); font-size: 22px; font-weight: 500; }
.person-role { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.person-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.person-nums .num-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.person-nums .num-val { color: var(--terra); font-size: 18px; font-weight: 750; }
.person-nums .grand { grid-column: 1 / -1; border-top: 1px solid var(--p-dark); padding-top: 6px; }
.person-incl { color: var(--muted); font-size: 14px; margin-top: 8px; }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 10px 0; }

@media (max-width: 640px) {
  .cost-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
    max-width: 100%;
  }
  .cost-table {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .cost-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .cost-table tbody,
  .cost-table tr,
  .cost-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .cost-table tr {
    background: #fffdf8;
    border: 1px solid var(--p-dark);
    border-radius: 12px;
    padding: 10px 12px 6px;
    margin: 0 0 10px;
  }
  .cost-table td {
    border: 0;
    padding: 4px 0 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cost-table td:empty { display: none; }
  .cost-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1px;
  }
  .cost-table td:last-child { white-space: normal; }
}

.before-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  margin: 4px 0 10px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--gold-l);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.prep-list { padding-left: 1.2em; }
.prep-list li { margin: 6px 0; }

.acc-list { display: grid; gap: 8px; margin: 8px 0 20px; }
.person-acc { border: 1px solid var(--p-dark); border-radius: 12px; background: #fffdf8; }
.person-acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px;
}
.person-acc summary::-webkit-details-marker { display: none; }
.person-acc summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.person-acc[open] summary::after { content: "−"; }
.acc-name { font-family: var(--display); font-size: 20px; }
.acc-sum { margin-left: auto; color: var(--terra); font-weight: 700; font-size: 14px; text-align: right; }
.acc-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.acc-line { margin: 0; }

.chip.chip-before { border-style: dashed; }
.chip.chip-before .n { color: var(--gold); }

/* Laundry days: top banner and highlighted schedule rows. */
.laundry-banner {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--gold-l);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fbf1d8;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.laundry-banner strong { color: var(--gold); }
.schedule li.sched-laundry { background: #fbf1d8; border-left: 4px solid var(--gold); padding-left: 8px; }
.schedule li.sched-laundry .sched-time { color: var(--gold); }
#laundry-today { scroll-margin-top: calc(var(--top-h) + var(--strip-h) + 12px); }

/* Before You Leave checklist (enhanced by trip.js; plain list without JS) */
.checklist.is-checkable { list-style: none; padding-left: 0; }
.checklist.is-checkable li { position: relative; padding: 10px 6px 10px 44px; margin: 2px 0; min-height: 44px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: rgba(168,130,46,.15); }
.checklist.is-checkable li + li { border-top: 1px solid var(--p-dark); }
.checklist .chk { position: absolute; left: 8px; top: 10px; width: 26px; height: 26px; margin: 0; accent-color: var(--terra); cursor: pointer; }
.checklist li.is-done { color: var(--muted); opacity: .6; text-decoration: line-through; }
.checklist li a { position: relative; z-index: 1; }
.check-clear { margin-top: 10px; font-size: .9em; }

/* Tour guidebook images on day pages */
.guide-figs { display: grid; gap: 12px; }
.guide-figs.is-strip { grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.guide-figs.is-strip .guide-fig { scroll-snap-align: start; }
.guide-fig { margin: 0; }
.guide-fig img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--p-dark); background: var(--p-mid); }
.guide-fig figcaption { font-size: .85em; color: var(--muted); margin-top: 4px; }
.guide-figs.is-inline { display: grid; margin-top: 8px; }
.guide-figs.is-inline.is-strip { grid-auto-flow: column; grid-auto-columns: 78%; }
.guide-figs.is-inline .guide-fig figcaption { font-size: .8em; }
.guide-figs.is-inline { align-items: start; }
.guide-figs.is-inline .guide-fig img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Online / offline indicator and update banner */
.netstat { display: flex; align-items: center; gap: 6px; font-size: .78em; color: var(--muted); margin: 0 0 8px; }
.netstat .dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; flex: none; }
.netstat.is-online .dot { background: #2e8b57; }
.netstat.is-offline { color: #555; }
.sw-updated { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + 12px); z-index: 50; background: var(--nav); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 14px var(--body); box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* rev 2 */

/* Today's photos & notes */
.journal[hidden], .journal-jump[hidden] { display: none !important; }
.journal-btn input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.journal-btn { position: relative; }
.journal-jump { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin: 6px 0 12px; padding: 0 18px; border-radius: 999px; background: var(--terra); color: #fff !important; text-decoration: none; font: 600 16px var(--body); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.journal-jump::before { content: "📷"; }
.journal-jump span { font-weight: 400; opacity: .9; font-size: .9em; }
.journal-live[hidden], .diary-record[hidden] { display: none !important; }
.diary-record { margin-bottom: 12px; }
.journal { margin-top: 18px; }
.journal-name { display: block; font-size: .9em; color: var(--muted); margin-bottom: 8px; }
.journal-name input { display: block; width: 100%; max-width: 280px; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--p-dark); border-radius: 10px; background: #fff; }
.journal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.journal-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--terra); color: #fff; font: 600 15px var(--body); border: 0; cursor: pointer; }
.journal-status { font-size: .85em; color: var(--muted); min-height: 1em; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 14px; }
.journal-photo { margin: 0; }
.journal-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--p-mid); }
.journal-photo figcaption { font-size: .72em; color: var(--muted); margin-top: 2px; }
.journal-photo.is-pending img { opacity: .55; }
.journal-noteform textarea { width: 100%; padding: 10px; font: inherit; border: 1px solid var(--p-dark); border-radius: 10px; margin-bottom: 8px; box-sizing: border-box; }
.journal-notes { list-style: none; padding: 0; }
.journal-notes li { border-top: 1px solid var(--p-dark); padding: 10px 0; }
.journal-notes li p { margin: 0 0 4px; white-space: pre-wrap; }
.journal-notes li.is-pending { opacity: .6; }
.journal-by { font-size: .8em; color: var(--muted); }
.journal-del { color: #a33; }
.journal-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.journal-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.journal-lightbox p, .journal-lightbox a { color: #fff; font-size: .9em; }
.journal-lightbox button { margin-top: 10px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; }
.journal-name[hidden], .journal-as[hidden] { display: none !important; }
.journal-as { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--p-dark); border-radius: 999px; background: #fff; font: 15px var(--body); color: inherit; cursor: pointer; }
.journal-as span[aria-hidden] { color: var(--terra); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Turkish baths */
.baths-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin: 8px 0 4px; border-radius: 999px; border: 1px solid var(--terra); color: var(--terra); font: 600 14px var(--body); text-decoration: none; background: #fff; }
.bath-card { border-top: 1px solid var(--p-dark); padding-top: 14px; margin-top: 22px; }
.bath-card h2 { margin-top: 2px; }
.bath-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }
.bath-photo figcaption { font-size: .75em; color: var(--muted); }
.bath-facts { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: .92em; }
.bath-facts dt { font-weight: 700; color: var(--muted); }
.bath-facts dd { margin: 0; }
.bath-ph { font-size: .75em; color: var(--muted); margin: 0 6px 0 -2px; align-self: center; }
.bath-note { display: inline-block; background: #fff6cc; padding: 4px 10px; border-radius: 6px; font-family: "Comic Sans MS", "Bradley Hand", cursive; transform: rotate(-1deg); }
.bath-rs { background: var(--p-mid); padding: 6px 10px; border-radius: 8px; font-weight: 600; }
.bath-diff { margin-top: 10px; font-size: .9em; }
.bath-diff summary { cursor: pointer; color: var(--terra); min-height: 32px; }
.bath-proc li { margin-bottom: 6px; }

.bath-bestfit {
  margin: 16px 0 8px;
  padding: 14px 14px 12px;
  border: 1px solid var(--gold-l);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fbf1d8;
  color: var(--ink);
}
.bath-bestfit-kicker {
  margin: 0 0 4px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}
.bath-bestfit h2 { margin: 0 0 8px; font-size: 1.35rem; }
.bath-bestfit p { margin: 0 0 8px; }
.bath-bestfit-alts { margin: 0 0 8px; padding-left: 1.15em; }
.bath-bestfit-alts li { margin-bottom: 4px; }
.bath-bestfit-tip { margin: 0; font-size: .95em; }
.bath-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--p-mid);
  border: 1px solid var(--p-dark);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
  text-transform: uppercase;
}
.bath-badge-top {
  background: #fbf1d8;
  border-color: var(--gold-l);
  color: var(--gold);
}
.bath-card { scroll-margin-top: calc(var(--top-h) + var(--strip-h) + 12px); }
#best-fit { scroll-margin-top: calc(var(--top-h) + var(--strip-h) + 12px); }

/* Ask Veronica: always visible at the right of the header */
.topnav .ask-v{position:sticky;right:0;margin-left:auto;flex:none;background:var(--terra);color:#fff;border:0;border-radius:999px;padding:.35em .85em;font:inherit;font-size:.85rem;font-weight:600;box-shadow:-10px 0 10px var(--nav);cursor:pointer;white-space:nowrap}

/* Home button pinned top-left */
.topnav a.home-btn{position:sticky;left:0;z-index:2;display:inline-flex;align-items:center;gap:.35em;background:var(--nav);color:#fff;font-weight:600;font-size:.9rem;padding:.35em .7em .35em 0;box-shadow:10px 0 10px var(--nav);white-space:nowrap}
.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 16px}
.quick-links a{display:block;padding:12px 10px;border-radius:12px;background:#fffdf7;border:1px solid rgba(168,130,46,.35);color:inherit;font-weight:600;text-decoration:none;font-size:.95rem}
.journal-edit { color: var(--terra); }
.journal-edited { font-style: italic; }
.journal-editform textarea { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; font-size: max(16px, 1em); border: 1px solid var(--p-dark); border-radius: 10px; margin: 0 0 8px; background: #fff; -webkit-appearance: none; }
.journal-editbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.journal-btn.journal-cancel { background: #fff; color: inherit; border: 1px solid var(--p-dark); }
.journal-btn:disabled { opacity: .6; }
.journal-editmsg { font-size: .85em; color: var(--muted); min-height: 1em; margin: 6px 0 0; }
.journal-by .journal-edit, .journal-by .journal-del { display: inline-block; padding: 10px 6px; margin: -10px -2px; }

/* Restaurant menus in English with keto notes (build_turkey.py menu_section) */
.say-it { margin: 2px 0 0; font-size: .82em; color: #777; }
.menu-en { margin: 8px 0 2px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 0 10px; background: rgba(255,255,255,.6); }
.menu-en summary { cursor: pointer; font-weight: 600; font-size: .92em; padding: 8px 0; }
.menu-en[open] summary { border-bottom: 1px solid rgba(0,0,0,.08); }
.menu-body { padding: 4px 0 10px; font-size: .92em; line-height: 1.38; }
.menu-body h4 { margin: 12px 0 4px; font-size: 1em; }
.menu-items, .menu-phr { list-style: none; padding: 0; margin: 0; }
.menu-items li, .menu-phr li { padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.menu-body .ph { color: #888; font-size: .85em; font-weight: 400; white-space: normal; }
.menu-body em { color: #555; }
.kv { display: inline-block; min-width: 1.1em; text-align: center; font-weight: 700; }
.kv-ok { color: #1a7f37; } .kv-mid { color: #b07d00; } .kv-no { color: #b42318; }
.menu-src, .menu-gen, .menu-legend { font-size: .86em; color: #666; margin: 6px 0; }
.menu-best-h { font-weight: 700; margin: 12px 0 4px; }
.menu-best { margin: 0 0 6px; padding-left: 1.3em; }
.menu-more { margin: 8px 0 0; font-size: .9em; }

/* Itinerary restaurant names jump to the full entry lower on the page (build_turkey.py link_itinerary) */
.schedule .ph { color: #888; font-size: .82em; font-weight: 400; }
/* the page scrolls inside main, below the nav + date strip, so only a small gap is needed */
article.stay[id^="eat-"], li[id^="pick-"] { scroll-margin-top: 12px; }
.menu-jump { margin: 6px 0 2px; font-size: .9em; }
.wx-status, .wx-retry { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding: 10px 12px; }
.wx-retry { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px dashed currentColor; border-radius: 8px; cursor: pointer; }

/* Ancient timeline (/turkey/timeline/) */
.tl-hellenic { margin: 14px 0 18px; }
.tl-jump { list-style: none; padding: 0; margin: 0 0 8px; font-size: .92em; }
.tl-jump li { margin: 0; }
.tl-jump a { display: flex; gap: 10px; min-height: 36px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--p-mid); }
.tl-d { flex: 0 0 9.5em; color: var(--muted); font-size: .9em; }
.tl { border-left: 3px solid var(--terra); margin: 18px 0 0 4px; padding-left: 14px; }
.tl-era { position: relative; padding-top: 6px; margin-bottom: 22px; scroll-margin-top: calc(var(--top-h) + var(--strip-h) + 12px); }
.tl-era::before { content: ""; position: absolute; left: -22px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--terra); border: 2px solid #fff; }
.tl-era h2 { margin: 2px 0 6px; }
.tl-dates { margin: 0; font: 700 14px var(--body); color: var(--terra); letter-spacing: .02em; }
.tl-where { margin: 0 0 6px; font-size: .95em; }
.tl-era ul { margin: 0 0 8px; padding-left: 1.15em; }
.tl-era li { margin-bottom: 5px; }
.tl-trip { background: var(--p-mid); padding: 6px 10px; border-radius: 8px; font-size: .92em; margin: 0; }
