/* Grace Time Travel — shared styles for the trilingual pages.
   Layout and colours stay inline in each page (as in the design); this file holds the base rules
   and the per-language fonts. Headings use var(--f-head) / var(--f-head-w), body text var(--f-body). */

:root {
  --f-head: Marcellus, Georgia, serif;
  --f-head-w: 400;
  --f-body: Jost, 'Helvetica Neue', Arial, sans-serif;
}
html[lang="zh-Hant"] {
  --f-head: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --f-head-w: 700;
  --f-body: Jost, 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
html[lang="zh-Hans"] {
  --f-head: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-head-w: 700;
  --f-body: Jost, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body { margin: 0; background: #FFFFFF; }
* { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: #12397A; }
a:hover { color: #0B2550; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #E2A63B; outline-offset: 3px;
}
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }

/* ---- Header (mobile first) ----
   Phones: logo, language switch and a menu button; the links and Enquire open in a panel below.
   1100px and up: the design's single row of logo, links, language switch and Enquire. */
.site-header { background: #FFFFFF; border-bottom: 1px solid #E6E1D6; }
.hdr-in {
  max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: none; font-family: Marcellus, Georgia, serif; font-size: 20px; line-height: 1.1; color: #12397A; }
.hdr-actions { display: contents; }
.lang-switch { order: 1; }
.site-header .menu-btn { order: 2; }
.hdr-nav {
  order: 3; flex-basis: 100%; display: none; flex-direction: column;
  font-size: 17px; font-weight: 500;
}
.hdr-nav a { padding: 12px 0; border-top: 1px solid #E6E1D6; color: #1A2233; text-decoration: none; }
.hdr-enquire {
  order: 4; flex-basis: 100%; display: none; justify-content: center; align-items: center;
  min-height: 48px; margin-bottom: 8px; padding: 0 22px; border-radius: 999px;
  background: #12397A; color: #FFFFFF; font-weight: 600; text-decoration: none;
}
.hdr-enquire:hover { color: #FFFFFF; background: #0B2550; }
.site-header.menu-open .hdr-nav { display: flex; }
.site-header.menu-open .hdr-enquire { display: inline-flex; }

@media (min-width: 480px) {
  .hdr-in { gap: 8px 12px; }
  .brand-text { display: block; }
}
@media (min-width: 600px) {
  .brand img { width: 60px; height: 60px; }
}
@media (min-width: 1100px) {
  .hdr-in { padding: 12px 24px; justify-content: space-between; gap: 12px 24px; }
  .brand { margin-right: 0; }
  .brand img { width: 72px; height: 72px; }
  .brand-text { font-size: 22px; }
  .site-header .menu-btn { display: none; }
  .hdr-nav, .site-header.menu-open .hdr-nav {
    order: 0; flex-basis: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 4px 26px; font-size: 16px;
  }
  .hdr-nav a { padding: 0; border: 0; }
  .hdr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .lang-switch { order: 0; }
  .hdr-enquire, .site-header.menu-open .hdr-enquire { order: 0; flex-basis: auto; display: inline-flex; min-height: 46px; margin: 0; }
}

/* Language buttons: a little narrower on the smallest phones so the header stays on one line */
.lang-btn { min-width: 44px; min-height: 40px; padding: 0 8px; }
a.lang-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (min-width: 360px) {
  .lang-btn { min-width: 52px; padding: 0 12px; }
}

/* ==== Tour pages: itinerary rows with photos, timetables, routes ====
   Shared by cairo-hurghada, nile-classic, desert-hurghada, exodus-red-sea and black-white-desert.
   Each day is one row: day marker, text, photos. Phones show the photos as a swipeable strip;
   from 1024px they sit in a third column beside the text. */
.tour-days { margin: 0; padding: 0; list-style: none; }
.day {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px calc(32px * var(--sg));
  padding: 28px 0; border-top: 1px solid #E6E1D6;
}
.day-mark { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.day-n { font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 24px; color: #12397A; }
.day-date { font-size: 15px; color: #4A5568; }
.day-body { min-width: 0; }
.day-body h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 24px; line-height: 1.2; color: #0B2550; }
.day-body p { margin: 0 0 10px; max-width: 62ch; }
.day-sub { color: #4A5568; }
.day-meta { font-size: 15px; color: #4A5568; }
.day-body p.day-meta { margin: 0; }
.day-block { margin-top: 16px; }
.day-block h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: #0B2550; }
.day-note { padding: 10px 14px; background: #FBF1DC; border-radius: 8px; font-size: 15px; color: #5C3B04; }
.stops { margin: 0 0 12px; padding: 0; list-style: none; max-width: 62ch; }
.stops li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-top: 1px dashed #E6E1D6; }
.stops li:first-child { border-top: 0; padding-top: 0; }
.stops b { font-weight: 600; color: #0B2550; }
@media (min-width: 480px) { .stops li { grid-template-columns: 150px minmax(0, 1fr); } }
.tt { width: 100%; max-width: 62ch; margin: 0 0 12px; border-collapse: collapse; font-size: 15px; }
.tt td { padding: 6px 10px 6px 0; border-top: 1px solid #E6E1D6; vertical-align: top; }
.tt td:first-child { width: 5em; white-space: nowrap; font-weight: 600; color: #12397A; }
.tt .tt-sub { display: block; color: #4A5568; }
.closed { columns: 2; column-gap: 24px; margin: 6px 0 0; font-size: 15px; }
.closed div { display: flex; gap: 10px; padding: 3px 0; break-inside: avoid; }
.closed b { flex: 0 0 6em; font-weight: 600; color: #0B2550; }
.weather { margin: 0; padding: 0; list-style: none; max-width: 62ch; }
.weather li { padding: 6px 0; border-top: 1px dashed #E6E1D6; }
.weather b { display: block; font-weight: 600; color: #0B2550; }

.day-photos {
  display: flex; gap: 8px; margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.day-photos img {
  flex: 0 0 auto; width: min(78vw, 360px); aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; background: #E6E1D6; scroll-snap-align: start;
}
.chapter { padding: calc(48px * var(--sy)) 0 14px; border-top: 2px solid #12397A; }
.chapter + .day { border-top: 0; }
.chapter h3 { margin: 0; font-family: var(--f-head); font-weight: var(--f-head-w); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: #12397A; }
.chapter p { margin: 4px 0 0; color: #4A5568; }

@media (min-width: 1024px) {
  .day { grid-template-columns: 150px minmax(0, 1fr) 380px; }
  .day-mark { display: block; }
  .day-date { margin-top: 2px; }
  .day-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; margin: 0; padding: 0; overflow: visible; }
  .day-photos img { width: 100%; }
  .day-photos.n1 img, .day-photos.n2 img, .day-photos.n3 img:first-child { grid-column: 1 / -1; }
}

/* Route as a numbered sequence (the order you travel in) */
.route-steps { margin: 0; padding: 14px 0 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px 20px; }
.route-steps li { position: relative; padding-top: 18px; border-top: 3px solid #E2A63B; }
.route-steps li::before, .route-list li::before {
  content: counter(step); counter-increment: step; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: #E2A63B; color: #0B2550; font-size: 14px; font-weight: 600;
}
.route-steps li::before { position: absolute; top: -15px; left: 0; }
.route-steps b { display: block; margin-bottom: 4px; font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 20px; line-height: 1.2; color: #0B2550; }
.route-steps span { font-size: 15px; color: #4A5568; }
.route-list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.route-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-top: 1px solid #E6E1D6; }
.route-list b { font-weight: 600; color: #0B2550; }
.route-list span { font-size: 15px; color: #4A5568; white-space: nowrap; }
.questions { margin: 0; padding: 0 0 0 1.2em; columns: 2 260px; column-gap: 32px; }
.questions li { padding: 4px 0; break-inside: avoid; }

/* When to go: three tiers, then the monthly table behind a toggle */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.tier { padding: 22px 24px; background: #FFFFFF; border-radius: 10px; border-left: 5px solid #C9CFDB; }
.tier-1 { border-left-color: #E2A63B; }
.tier-2 { border-left-color: #12397A; }
.tier-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #FBF1DC; color: #7A4D05; font-size: 14px; font-weight: 600; }
.tier b { display: block; margin: 10px 0 4px; font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 24px; line-height: 1.2; color: #0B2550; }
.tier p { margin: 0; font-size: 16px; color: #4A5568; }
.months summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; color: #12397A; }
.months summary .faq-plus { flex: 0 0 auto; transition: transform 0.2s; }
.climate { width: 100%; border-collapse: collapse; font-size: 15px; background: #FFFFFF; border-radius: 10px; overflow: hidden; }
.climate th { padding: 10px 12px; text-align: left; border-bottom: 2px solid #12397A; color: #12397A; font-weight: 600; }
.climate td { padding: 9px 12px; border-bottom: 1px solid #E6E1D6; }
.climate tr.good td { background: #FBF1DC; }
.climate tr.hot td { color: #8A94A6; }
.climate td:nth-child(2), .climate td:nth-child(3) { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .months summary .faq-plus { transition: none; } }

/* What to pack */
.pack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.pack-list { padding: 24px; background: #FFFFFF; border-radius: 10px; }
.pack-list h3 { margin: 0 0 10px; font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 22px; color: #0B2550; }
.pack-list ul { margin: 0; padding-left: 1.2em; }
.pack-list li { padding: 3px 0; }

/* Optional extras (on the dark included section) */
.extras { margin: 0; padding: 0; list-style: none; }
.extras li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(242,244,248,0.22); }
.extras b { font-weight: 600; }
.extras small { display: block; font-size: 14px; color: #CBD3E2; }
.extras span { font-weight: 600; color: #F0C36A; white-space: nowrap; }

/* Prices are not set yet: hide every "From [price per person]" until they are. Delete this rule to show them. */
.price-tbd { display: none !important; }
