:root {
  --paper: #f7f3ea;
  --paper-deep: #ede7da;
  --surface: #fffdf8;
  --surface-soft: #faf7f0;
  --ink: #1d2b2a;
  --muted: #61706d;
  --line: #d8d0c2;
  --green: #2d6b50;
  --green-dark: #214c3d;
  --heather: #62517b;
  --red: #a83c45;
  --blue: #315f73;
  --shadow: 0 14px 36px rgba(31, 44, 39, 0.12);
  --shadow-soft: 0 8px 22px rgba(31, 44, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92) 0%, rgba(247, 243, 234, 0.98) 42%, var(--paper) 100%),
    repeating-linear-gradient(90deg, rgba(29, 43, 42, 0.025) 0 1px, transparent 1px 36px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.has-map-viewer {
  overflow: hidden;
}

body,
button,
select,
input {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(216, 208, 194, 0.86);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fffdf8;
  background: var(--green-dark);
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.1rem;
  line-height: 1.05;
}

.brand small {
  overflow: hidden;
  max-width: 210px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.top-task-button,
.top-info-button,
.secondary-button,
.filter-chip,
.close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
}

.top-task-button {
  gap: 8px;
  padding: 0 10px;
}

.top-info-button {
  display: none;
  padding: 0 11px;
}

.top-task-button strong,
.bottom-nav strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 0.72rem;
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 96px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-card,
.info-panel,
.section-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.today-card {
  display: grid;
  grid-template-columns: minmax(118px, 42%) 1fr;
  overflow: hidden;
  min-height: 280px;
}

.loading-block {
  padding: 22px;
}

.today-photo {
  position: relative;
  min-height: 100%;
  background: var(--green-dark);
}

.today-photo-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: inherit;
}

.today-photo-button:focus-visible {
  outline: 3px solid rgba(255, 253, 248, 0.88);
  outline-offset: -5px;
}

.today-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.today-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(20, 31, 29, 0.58) 100%);
  pointer-events: none;
}

.today-photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  color: white;
  font-size: 0.8rem;
  font-weight: 850;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.today-photo em {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: white;
  background: rgba(16, 23, 22, 0.5);
  backdrop-filter: blur(10px);
}

.today-photo em svg {
  width: 20px;
  height: 20px;
}

.today-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.mini-label {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: white;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.today-content h1 {
  font-size: 1.5rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.today-content h1 span {
  display: block;
}

.today-content h1 span:first-child {
  margin-bottom: 2px;
  font-size: 0.82em;
}

.today-summary {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.today-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.today-points div,
.panel-title,
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.today-points svg {
  margin-top: 2px;
  color: var(--green);
}

.today-points span,
.today-points strong {
  display: block;
}

.today-points strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.88rem;
}

.today-points span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.primary-link svg {
  width: 18px;
  height: 18px;
}

.summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.info-panel {
  padding: 16px;
}

.panel-title {
  align-items: center;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.panel-title h2 {
  color: var(--ink);
  font-size: 1.18rem;
}

.flight-row {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 208, 194, 0.76);
}

.flight-row strong {
  color: var(--red);
  font-size: 0.88rem;
}

.flight-row span {
  color: var(--ink);
  font-weight: 850;
}

.flight-row small,
.compact-list,
.baggage-list p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
}

.secondary-button {
  width: 100%;
  margin-top: 14px;
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.section-block {
  margin-top: 18px;
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 1.35rem;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.route-list {
  position: relative;
  display: grid;
  gap: 0;
}

.route-list::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--green-dark);
  opacity: 0.34;
  pointer-events: none;
}

.route-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 208, 194, 0.72);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.route-item:first-child {
  border-top: 0;
}

.route-item:hover {
  background: rgba(45, 107, 80, 0.06);
}

.route-item:focus-visible {
  outline: 3px solid rgba(45, 107, 80, 0.28);
  outline-offset: 3px;
}

.route-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 8px;
  border: 3px solid var(--surface);
  border-radius: 999px;
  color: white;
  background: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 0 1px var(--green-dark);
}

.route-item.is-open .route-marker {
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.route-item img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.route-item h3 {
  margin-top: 3px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
}

.route-item p,
.route-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.38;
}

.route-item p {
  font-weight: 650;
}

.route-item small {
  font-size: 0.8rem;
}

.route-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-action svg {
  width: 14px;
  height: 14px;
}

.route-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.route-meta strong {
  color: var(--green-dark);
}

.route-item.is-open .route-meta strong {
  color: var(--red);
}

.days-head {
  align-items: end;
}

.region-field {
  display: grid;
  gap: 5px;
  min-width: 132px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.region-field select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 12px;
}

.filter-chip svg {
  width: 18px;
  height: 18px;
}

.filter-chip.is-active {
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.days-list {
  display: grid;
  gap: 10px;
}

.day-card {
  scroll-margin-top: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(31, 44, 39, 0.06);
}

.day-card.is-current {
  border-color: rgba(45, 107, 80, 0.56);
  box-shadow: 0 0 0 3px rgba(45, 107, 80, 0.1), var(--shadow-soft);
}

.date-block {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(45, 107, 80, 0.18);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--green-dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.date-block span,
.date-block small {
  font-size: 0.72rem;
  font-weight: 900;
}

.date-block strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1;
}

.day-main {
  min-width: 0;
  padding: 12px;
}

.day-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.day-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.day-topline span {
  min-width: 0;
}

.day-topline em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(97, 112, 109, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.day-main h3 {
  margin-top: 10px;
  font-size: 1.14rem;
  line-height: 1.15;
}

.day-main > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.kid-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-top: 8px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--heather);
  background: rgba(98, 81, 123, 0.1);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.25;
  white-space: nowrap;
}

.kid-preview strong {
  flex: 0 0 auto;
  font-weight: 950;
}

.weather-card {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(49, 95, 115, 0.18);
  border-radius: 7px;
  background: rgba(49, 95, 115, 0.08);
}

.weather-card--hero {
  margin-top: 14px;
  padding: 11px;
}

.weather-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.weather-head span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.weather-head small {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.weather-head strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.weather-head b {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.weather-metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 7px;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
}

.weather-metric small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.weather-metric strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.weather-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.weather-hour {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.15;
}

.weather-hour time {
  color: var(--blue);
  font-weight: 950;
}

.weather-hour strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}

.weather-hour span {
  overflow-wrap: anywhere;
}

.weather-empty {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.weather-empty strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
}

.weather-empty span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.task-row em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--green-dark);
  background: rgba(45, 107, 80, 0.11);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.tag-row span:nth-child(2n) {
  color: var(--heather);
  background: rgba(98, 81, 123, 0.11);
}

.tag-row span:nth-child(3n) {
  color: var(--red);
  background: rgba(168, 60, 69, 0.11);
}

.day-sections {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.day-section-toggle {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.day-section-toggle > summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 13px 0 10px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.day-section-toggle > summary::-webkit-details-marker {
  display: none;
}

.day-section-toggle > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.day-section-toggle > summary svg {
  justify-self: center;
  width: 18px;
  height: 18px;
}

.day-section-toggle[open] {
  border-color: rgba(45, 107, 80, 0.26);
}

.day-section-toggle[open] > summary {
  background: rgba(45, 107, 80, 0.08);
}

.day-section-toggle[open] > summary::after {
  transform: rotate(225deg);
}

.day-section-content {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.day-section-content .detail-section,
.day-section-content .kid-mission,
.day-section-content .guide-panel,
.day-section-content .weather-card {
  margin-top: 0;
}

.detail-section {
  display: grid;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}

.detail-section {
  gap: 9px;
  border: 1px solid rgba(216, 208, 194, 0.72);
  background: rgba(250, 247, 240, 0.68);
}

.detail-section h4 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-section h4 {
  color: var(--green-dark);
}

.detail-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid rgba(45, 107, 80, 0.16);
  border-radius: 8px;
  background: rgba(45, 107, 80, 0.055);
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-top: 1px solid rgba(45, 107, 80, 0.13);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-time {
  min-width: 0;
}

.timeline-time time,
.timeline-time span {
  display: inline-flex;
  min-width: 50px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(45, 107, 80, 0.09);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1.25;
}

.timeline-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-copy > strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.timeline-detail {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(216, 208, 194, 0.68);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.62);
}

.timeline-detail > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(45, 107, 80, 0.1);
}

.timeline-detail svg {
  width: 15px;
  height: 15px;
}

.timeline-detail em {
  display: block;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
}

.timeline-detail p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.guide-panel {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(49, 95, 115, 0.18);
  border-radius: 8px;
  background: rgba(49, 95, 115, 0.06);
}

.guide-photo-button {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 8px;
  border: 1px solid rgba(49, 95, 115, 0.2);
  border-radius: 8px;
  color: var(--blue);
  background: var(--surface);
  text-align: left;
}

.guide-photo-button img {
  width: 104px;
  height: 74px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--paper-deep);
}

.guide-photo-button span,
.guide-photo-button strong,
.guide-photo-button em {
  display: block;
  min-width: 0;
}

.guide-photo-button strong {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 950;
}

.guide-photo-button em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.guide-photo-button svg {
  justify-self: center;
  width: 18px;
  height: 18px;
}

.guide-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-notes li {
  min-width: 0;
}

.guide-note-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(49, 95, 115, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.guide-note-button:active {
  transform: translateY(1px);
}

.guide-note-button:disabled {
  opacity: 1;
  cursor: default;
}

.guide-note-button:disabled em,
.guide-note-button:disabled > svg {
  display: none;
}

.guide-note-button span,
.guide-note-button strong,
.guide-note-button p,
.guide-note-button em {
  display: block;
  min-width: 0;
}

.guide-note-button strong {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.25;
}

.guide-note-button p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.guide-note-button em {
  margin-top: 7px;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-note-button > svg {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: var(--green-dark);
}

.kid-mission {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(98, 81, 123, 0.18);
  border-radius: 8px;
  background: rgba(98, 81, 123, 0.06);
}

.kid-mission-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kid-mission-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--heather);
}

.kid-mission-head svg {
  width: 18px;
  height: 18px;
}

.kid-mission-head strong {
  display: block;
  color: var(--heather);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-mission-head h4 {
  margin-top: 1px;
  font-size: 1rem;
  line-height: 1.18;
}

.kid-mission-head em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--heather);
  background: rgba(98, 81, 123, 0.12);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.kid-ages {
  display: grid;
  gap: 8px;
}

.kid-ages p {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.38;
}

.kid-ages strong {
  display: block;
  margin-bottom: 2px;
  color: var(--heather);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.kid-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.kid-map-card {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(98, 81, 123, 0.16);
  padding-top: 10px;
}

.kid-map-button {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 120px;
  padding: 8px;
  border: 1px solid rgba(98, 81, 123, 0.18);
  border-radius: 8px;
  color: var(--heather);
  background: var(--surface);
  text-align: left;
}

.kid-map-button img {
  width: 116px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(98, 81, 123, 0.12);
  border-radius: 7px;
  background: white;
}

.kid-map-button span,
.kid-map-button strong,
.kid-map-button em {
  display: block;
  min-width: 0;
}

.kid-map-button strong {
  color: var(--heather);
  font-size: 0.9rem;
  font-weight: 950;
}

.kid-map-button em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.kid-map-check,
.map-done-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 900;
}

.kid-map-check {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--heather);
  background: rgba(98, 81, 123, 0.08);
  font-size: 0.84rem;
}

.kid-map-check input,
.map-done-toggle input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--green);
}

.detail-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 208, 194, 0.72);
}

.detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-row:last-child {
  padding-bottom: 0;
}

.detail-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(45, 107, 80, 0.1);
}

.detail-row > span svg {
  width: 17px;
  height: 17px;
}

.detail-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.detail-row strong {
  display: block;
  font-size: 0.82rem;
}

.detail-row p {
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-map-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.inline-map-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(45, 107, 80, 0.24);
  outline-offset: 2px;
}

.checklater {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.checklater > strong {
  color: var(--red);
  font-size: 0.84rem;
}

.check-row,
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input,
.task-row input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--green);
}

.check-row span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.check-row input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 74px;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(216, 208, 194, 0.9);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 850;
}

.bottom-nav button.is-active {
  color: var(--green-dark);
}

.bottom-nav button.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.bottom-nav strong {
  position: absolute;
  top: 6px;
  right: calc(50% - 25px);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 10px;
  background: rgba(29, 43, 42, 0.42);
}

.sheet-backdrop[hidden] {
  display: none;
}

.task-sheet {
  width: min(560px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: white;
  background: #101716;
}

.map-viewer[hidden] {
  display: none;
}

.map-viewer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 23, 22, 0.94);
}

.map-viewer-toolbar h2 {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-viewer-toolbar p {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-done-toggle {
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  white-space: nowrap;
}

.map-viewer .close-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.map-viewer-stage {
  min-height: 0;
  overflow: auto;
  padding: 12px 10px calc(18px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.map-viewer-stage img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: white;
}

.hero-viewer-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-viewer-stage {
  display: grid;
  align-items: center;
}

.hero-viewer-stage img {
  width: min(100%, 1180px);
  background: transparent;
}

.info-sheet-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.guide-detail-backdrop {
  z-index: 58;
}

.guide-detail-sheet {
  max-height: min(86vh, 820px);
}

.guide-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.guide-detail-section {
  display: grid;
  gap: 12px;
}

.guide-detail-section p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.58;
}

.guide-fact-list {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding: 12px 12px 12px 30px;
  border: 1px solid rgba(49, 95, 115, 0.14);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(49, 95, 115, 0.06);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.42;
}

.guide-moment {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(45, 107, 80, 0.09);
}

.guide-moment strong {
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-moment span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.info-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(216, 208, 194, 0.78);
  border-radius: 8px;
  background: var(--surface-soft);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 950;
}

.info-card h3 svg {
  width: 18px;
  height: 18px;
}

.info-card .flight-row {
  padding: 0;
  border-top: 0;
}

.stay-info-list {
  display: grid;
  gap: 10px;
}

.stay-info-card {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 208, 194, 0.78);
}

.stay-info-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.stay-info-card > strong {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 950;
}

.stay-info-card > span,
.stay-info-card > small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.stay-info-card > small b {
  color: var(--ink);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 9px auto 2px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  font-size: 1.32rem;
}

.sheet-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.sheet-head p[data-mode="pending"] {
  color: #8a5a00;
}

.sheet-head p[data-mode="ok"] {
  color: #19724c;
}

.sheet-head p[data-mode="local"],
.sheet-head p[data-mode="error"] {
  color: #8a3f2f;
}

.close-button {
  min-height: 38px;
  padding: 0 11px;
}

.task-list {
  display: grid;
}

.task-add-form {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 208, 194, 0.72);
  background: rgba(45, 107, 80, 0.055);
}

.task-add-form label {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.task-add-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.task-add-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(45, 107, 80, 0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.task-add-form button,
.task-delete-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
}

.task-add-form button {
  padding: 0 12px;
  color: white;
  background: var(--green-dark);
}

.task-row {
  position: relative;
  align-items: center;
  min-height: 74px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(216, 208, 194, 0.72);
}

.task-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.task-check span {
  min-width: 0;
  flex: 1 1 auto;
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row strong {
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.task-row small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.task-check input:checked + span {
  opacity: 0.58;
  text-decoration: line-through;
}

.task-row em {
  flex: 0 0 auto;
  max-width: 112px;
  text-align: center;
}

.task-delete-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 9px;
  color: var(--red);
  background: rgba(168, 60, 69, 0.1);
}

.empty-task-list {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 208, 194, 0.72);
}

.empty-task-list strong {
  color: var(--ink);
}

.baggage-list {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface-soft);
}

.baggage-list h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}

@media (max-width: 520px) {
  .page-shell,
  .today-card {
    max-width: calc(100vw - 28px);
  }

  .today-card {
    grid-template-columns: 1fr;
  }

  .today-photo img {
    height: 230px;
    min-height: 0;
    max-height: 260px;
  }

  .today-content {
    width: 100%;
    max-width: calc(100vw - 28px);
    padding: 16px;
  }

  .today-points div {
    min-width: 0;
  }

  .top-task-button {
    min-width: 48px;
    padding: 0 12px;
  }

  .top-task-button span {
    display: none;
  }

  .map-viewer-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .map-done-toggle {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-time time,
  .timeline-time span {
    min-width: 0;
    padding: 0 10px;
  }
}

@media (max-width: 380px) {
  .today-photo img {
    min-height: 190px;
  }

  .route-item {
    grid-template-columns: 34px 58px 1fr;
  }

  .route-item img {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 520px) {
  .weather-hours {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .topbar {
    padding: 12px max(24px, calc((100vw - 1120px) / 2));
  }

  .brand small {
    max-width: none;
  }

  .page-shell {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .today-card {
    grid-template-columns: 330px 1fr;
    min-height: 360px;
  }

  .today-photo img {
    min-height: 360px;
  }

  .today-content {
    padding: 30px;
  }

  .today-content h1 {
    max-width: 720px;
    font-size: 2.35rem;
  }

  .today-summary {
    max-width: 720px;
    font-size: 1.04rem;
  }

  .today-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
  }

  .primary-link {
    margin-top: 24px;
  }

  .top-info-button {
    display: inline-flex;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .section-block {
    margin-top: 24px;
    padding: 22px;
  }

  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .route-list::before {
    display: none;
  }

  .route-item:nth-child(2) {
    border-top: 0;
  }

  .days-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bottom-nav {
    display: none;
  }

  .sheet-backdrop {
    align-items: center;
    padding: 18px;
  }

  .task-sheet {
    border-radius: 8px;
  }

  .map-viewer-stage {
    display: grid;
    place-items: center;
  }

  .map-viewer-stage img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 102px);
  }
}

@media (min-width: 1060px) {
  .route-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-item:nth-child(3) {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
