:root {
  --ink: #17151c;
  --ink-soft: #2b2732;
  --paper: #f7f4f2;
  --surface: #ffffff;
  --line: #ded7d3;
  --muted: #706a73;
  --violet: #6754f2;
  --violet-soft: #ece9ff;
  --pink: #ee2d67;
  --pink-soft: #ffe6ee;
  --gold: #b67500;
  --gold-soft: #fff1cd;
  --teal: #078b94;
  --teal-soft: #dff6f7;
  --red: #c72338;
  --red-soft: #ffe7ea;
  --shadow: 0 18px 50px rgba(23, 21, 28, 0.09);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-block-end: calc(72px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #1f9fff;
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4,
p {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

h2 {
  margin-block-end: 0;
  font-size: clamp(2rem, 7vw, 3.7rem);
  letter-spacing: -0.045em;
}

.page-shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 12px 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-block-end: 10px;
  color: #f6c7d7;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--violet);
}

.hero {
  position: relative;
  min-height: min(760px, 92svh);
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero__photo,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  object-fit: cover;
  object-position: 45% 42%;
  height: 52%;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(23, 21, 28, 0.03) 12%, rgba(23, 21, 28, 0.16) 32%, rgba(23, 21, 28, 0.98) 54%, var(--ink) 100%),
    linear-gradient(90deg, rgba(23, 21, 28, 0.22), transparent 58%);
}

.hero__content {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding-block: 96px 38px;
}

.hero h1 {
  max-width: 750px;
  margin-block-end: 16px;
  font-size: clamp(3.1rem, 15vw, 7rem);
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: #f5bdd0;
}

.hero__lead {
  max-width: 650px;
  margin-block-end: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button--light {
  color: var(--ink);
  background: #fff;
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.48);
}

.button--dark {
  color: #fff;
  background: var(--ink);
}

.button--pink {
  color: #fff;
  background: var(--pink);
}

.button--gold {
  color: var(--ink);
  background: #f2bd48;
}

.status-section {
  padding-block: 24px 40px;
}

.source-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 18px;
  padding: 14px 16px;
  color: #4d4751;
  background: #eee9e5;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.source-note > span {
  color: var(--teal);
  font-size: 0.7rem;
  line-height: 2.1;
}

.source-note p {
  margin: 0;
}

.trip-facts {
  display: grid;
  gap: 10px;
}

.trip-facts article {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trip-facts article > span {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 16px;
  color: var(--violet);
  font-size: 1.35rem;
}

.trip-facts small,
.trip-facts strong,
.trip-facts p {
  display: block;
}

.trip-facts small {
  margin-block-end: 6px;
  color: var(--muted);
  font-weight: 700;
}

.trip-facts strong {
  max-width: 90%;
  margin-block-end: 4px;
  font-size: 1rem;
}

.trip-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-map {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block-start: 4px;
  color: var(--violet);
  font-weight: 800;
  text-decoration: none;
}

.quick-highlights {
  display: grid;
  grid-auto-columns: minmax(78vw, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  padding-block: 0 54px;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.quick-highlights::-webkit-scrollbar {
  display: none;
}

.highlight {
  position: relative;
  min-height: 176px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
  text-decoration: none;
}

.highlight > span:first-child {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 16px;
  font-size: 1.8rem;
}

.highlight small,
.highlight strong,
.highlight > span:last-child {
  display: block;
}

.highlight small {
  margin-block-end: 26px;
  font-weight: 800;
  opacity: 0.72;
}

.highlight strong {
  margin-block-end: 6px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.highlight > span:last-child {
  font-size: 0.9rem;
  opacity: 0.8;
}

.highlight--pink {
  color: #fff;
  background: var(--pink);
}

.highlight--gold {
  color: #342200;
  background: #f6c55b;
}

.highlight--violet {
  color: #fff;
  background: var(--violet);
}

.booking,
.itinerary,
.food,
.tips,
.links-section {
  padding-block: 32px 64px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 24px;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 10vw, 4rem);
}

.progress {
  display: grid;
  min-width: 72px;
  min-height: 72px;
  place-content: center;
  text-align: center;
  background: var(--violet-soft);
  border-radius: 50%;
}

.progress span,
.progress small {
  display: block;
}

.progress span {
  color: var(--violet);
  font-weight: 900;
}

.progress small {
  color: var(--muted);
  font-size: 0.65rem;
}

.check-list,
.useful-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-item {
  display: grid;
  grid-template-columns: 1fr 52px;
  min-height: 74px;
  border-block-end: 1px solid var(--line);
}

.check-item:last-child {
  border-block-end: 0;
}

.check-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  cursor: pointer;
}

.check-item input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 2px solid #aaa1aa;
  border-radius: 8px;
}

.check-item input:checked + .checkmark {
  position: relative;
  background: var(--teal);
  border-color: var(--teal);
}

.check-item input:checked + .checkmark::after {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 7px;
  content: "✓";
  color: #fff;
  font-weight: 900;
}

.check-item input:focus-visible + .checkmark {
  outline: 3px solid #1f9fff;
  outline-offset: 3px;
}

.check-item label > span:last-child {
  min-width: 0;
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-block-start: 2px;
  color: var(--muted);
}

.check-item > a {
  display: grid;
  place-content: center;
  color: var(--violet);
  border-inline-start: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
}

.text-button {
  min-height: 44px;
  padding: 8px 2px;
  color: var(--violet);
  background: transparent;
  border: 0;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.day-tabs {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: grid;
  grid-auto-columns: minmax(66px, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  margin-inline: -16px;
  padding: 9px 16px;
  overflow-x: auto;
  background: rgba(247, 244, 242, 0.96);
  border-block: 1px solid rgba(222, 215, 211, 0.8);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tabs a {
  display: grid;
  min-height: 52px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
}

.day-tabs a small,
.day-tabs a strong {
  display: block;
  line-height: 1.12;
}

.day-tabs a small {
  font-size: 0.68rem;
}

.day-tabs a.is-today {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
}

.days {
  display: grid;
  gap: 14px;
  margin-block-start: 18px;
}

.day {
  overflow: clip;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(23, 21, 28, 0.03);
  scroll-margin-block-start: 82px;
}

.day > summary {
  display: grid;
  grid-template-columns: 76px 1fr 28px;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 13px 15px;
  list-style: none;
  cursor: pointer;
}

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

.day__date {
  display: grid;
  min-height: 64px;
  place-content: center;
  text-align: center;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: 16px;
}

.day__date strong,
.day__date small,
.day__title h3,
.day__title small {
  display: block;
}

.day__date strong {
  font-size: 1.08rem;
}

.day__date small,
.day__title small {
  color: var(--muted);
  font-size: 0.72rem;
}

.day__title h3 {
  margin-block-end: 4px;
  font-size: 1.05rem;
}

.day__chevron {
  color: var(--muted);
  font-size: 1.5rem;
  transition: transform 180ms ease;
}

.day[open] .day__chevron {
  transform: rotate(180deg);
}

.day[open] > summary {
  border-block-end: 1px solid var(--line);
}

.day.is-today {
  border-color: var(--violet);
  box-shadow: 0 12px 36px rgba(103, 84, 242, 0.12);
}

.day.is-today .day__date::after {
  content: "היום";
  margin-block-start: 2px;
  color: var(--pink);
  font-size: 0.62rem;
  font-weight: 900;
}

.day__content {
  padding: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block-end: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
}

.notice__icon {
  min-width: 36px;
  padding: 6px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.notice strong,
.notice p {
  display: block;
}

.notice p {
  margin: 3px 0 0;
  color: #4d4650;
  font-size: 0.9rem;
}

.notice--info,
.notice--beauty {
  background: var(--teal-soft);
}

.notice--info .notice__icon,
.notice--beauty .notice__icon {
  color: #fff;
  background: var(--teal);
}

.notice--warning {
  background: var(--gold-soft);
}

.notice--warning .notice__icon {
  color: #fff;
  background: var(--gold);
}

.notice--critical {
  background: var(--red-soft);
}

.notice--critical .notice__icon {
  color: #fff;
  background: var(--red);
}

.notice--concert {
  background: var(--pink-soft);
}

.notice--concert .notice__icon {
  color: #fff;
  background: var(--pink);
}

.timeline {
  display: grid;
  gap: 8px;
}

.stop-card {
  display: grid;
  grid-template-columns: 22px 1fr;
}

.stop-card__rail {
  position: relative;
}

.stop-card__rail::after {
  position: absolute;
  inset-block: 22px -12px;
  inset-inline-start: 10px;
  width: 2px;
  content: "";
  background: var(--line);
}

.stop-card:last-child .stop-card__rail::after {
  display: none;
}

.stop-card__rail span {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 5px;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--violet);
  border-radius: 50%;
}

.stop-card__body {
  min-width: 0;
  padding: 14px;
  background: #faf8f7;
  border: 1px solid #ebe5e1;
  border-radius: var(--radius-sm);
}

.stop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 6px;
}

.stop-card time {
  color: var(--violet);
  font-weight: 950;
}

.stop-card h4 {
  margin-block-end: 6px;
  font-size: 1.05rem;
}

.stop-card p {
  margin-block-end: 12px;
  color: var(--muted);
  font-size: 0.91rem;
}

.stop-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.transfer {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  color: #fff;
  background: var(--violet);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.map-button::before {
  margin-inline-end: 6px;
  content: "📍";
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
}

.badge--booking {
  color: #8b1236;
  background: var(--pink-soft);
}

.feature {
  padding-block: 72px;
  color: #fff;
  scroll-margin-block-start: 70px;
}

.feature--concert {
  background: var(--ink);
}

.feature--chabad {
  background: #39301d;
}

.feature__grid {
  display: grid;
  gap: 34px;
}

.feature__art {
  position: relative;
  display: grid;
  min-height: 330px;
  place-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 45, 103, 0.88), transparent 34%),
    radial-gradient(circle at 80% 76%, rgba(103, 84, 242, 0.9), transparent 38%),
    #23202a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
}

.feature__art::before,
.feature__art::after {
  position: absolute;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.feature__art::before {
  inset-block-start: -46px;
  inset-inline-start: -52px;
}

.feature__art::after {
  inset-block-end: -70px;
  inset-inline-end: -32px;
}

.feature__art span {
  font-size: clamp(2rem, 10vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.feature__art em {
  margin-block-start: 22px;
  color: #f9c1d3;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

.feature__art--holiday {
  color: #3b2700;
  background:
    radial-gradient(circle at 22% 23%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(140deg, #f8da88, #de9f25 72%);
}

.feature__art--holiday span {
  font-size: clamp(4rem, 20vw, 8rem);
  line-height: 0.8;
}

.feature__art--holiday em {
  color: #553900;
}

.feature__content h2 {
  margin-block-end: 22px;
}

.feature__content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.feature__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-block-end: 18px;
}

.feature__stats div {
  min-width: 0;
  padding: 13px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}

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

.feature__stats small {
  margin-block-end: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.67rem;
}

.feature__stats strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.feature__callout {
  margin-block: 16px;
  padding: 16px;
  color: var(--ink);
  background: var(--pink-soft);
  border-inline-start: 5px solid var(--pink);
  border-radius: 14px;
}

.feature__callout--critical {
  background: var(--gold-soft);
  border-inline-start-color: #d68d00;
}

.feature__callout p {
  margin: 4px 0 0;
}

.compact-list {
  padding-inline-start: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.compact-list li + li {
  margin-block-start: 5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--violet);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link--light {
  color: #fff;
}

.section-intro {
  max-width: 760px;
  margin-block-end: 24px;
  color: var(--muted);
}

.no-burger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 12px;
  color: #8b1236;
  background: var(--pink-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.food-grid {
  display: grid;
  gap: 12px;
}

.food-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.food-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 12px;
}

.food-card__type {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
}

.food-card h3 {
  margin-block-end: 4px;
  font-size: 1.2rem;
}

.food-card__when {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 850;
}

.food-card p:not(.food-card__when) {
  min-height: 50px;
  margin-block-end: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-button--small {
  width: 100%;
  background: var(--ink);
}

.transit {
  padding-block: 70px;
  background: #efebe8;
  scroll-margin-block-start: 70px;
}

.transit-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-content: center;
  background: var(--violet-soft);
  border-radius: 50%;
  font-size: 1.8rem;
}

.recommendation {
  display: grid;
  gap: 12px;
  margin-block-end: 18px;
  padding: 20px;
  color: #fff;
  background: var(--violet);
  border-radius: var(--radius);
}

.recommendation > span {
  width: max-content;
  padding: 4px 9px;
  color: var(--violet);
  background: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.recommendation h3 {
  margin-block-end: 8px;
  font-size: 1.35rem;
}

.recommendation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.fare-grid {
  display: grid;
  gap: 8px;
  margin-block-end: 28px;
}

.micro-note {
  margin-block: -12px 28px;
  padding: 13px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border-inline-start: 4px solid var(--teal);
  border-radius: 12px;
  font-size: 0.82rem;
}

.fare-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.fare-card strong {
  font-size: 0.96rem;
}

.fare-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.fare-card > span {
  direction: ltr;
  color: var(--violet);
  font-size: 1.05rem;
  font-weight: 950;
}

.transit-columns {
  display: grid;
  gap: 12px;
  margin-block-end: 18px;
}

.transit-columns article,
.sintra-ticket {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
}

.transit-columns h3,
.sintra-ticket h3 {
  margin-block-end: 12px;
  font-size: 1.3rem;
}

.transit-columns ul {
  margin-block-end: 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.transit-columns li + li {
  margin-block-start: 7px;
}

.sintra-ticket {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-block-end: 26px;
  border: 1px solid #ddd4cc;
}

.sintra-ticket p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.route-maps {
  display: grid;
  gap: 14px;
}

.route-maps figure {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-maps a {
  display: block;
  overflow: hidden;
  border-radius: 13px;
}

.route-maps img {
  width: 100%;
  height: auto;
}

.route-maps figcaption {
  padding: 13px 8px 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.official-links {
  margin-block-start: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.official-links summary {
  min-height: 62px;
  padding: 17px 20px;
  font-weight: 900;
  cursor: pointer;
}

.official-links > div {
  display: grid;
  gap: 4px;
  padding: 0 12px 14px;
}

.official-links a {
  display: flex;
  min-height: 45px;
  align-items: center;
  padding: 8px;
  color: var(--violet);
  border-block-start: 1px solid #eee9e6;
  font-size: 0.85rem;
  font-weight: 750;
}

.tips-grid {
  display: grid;
  gap: 12px;
}

.tips-grid article {
  position: relative;
  min-height: 190px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tips-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-block-end: 20px;
  place-content: center;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: 13px;
  font-weight: 900;
}

.tips-grid h3 {
  margin-block-end: 7px;
}

.tips-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.useful-links {
  display: grid;
  gap: 8px;
}

.useful-links a {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.useful-links small,
.useful-links strong {
  display: block;
}

.useful-links small {
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 900;
}

.useful-links strong {
  font-size: 0.91rem;
}

.useful-links a > span:last-child {
  color: var(--violet);
  font-size: 1.2rem;
  font-weight: 900;
}

.emergency {
  padding-block: 56px;
  color: #fff;
  background: var(--ink-soft);
}

.emergency__grid {
  display: grid;
  gap: 10px;
}

.emergency__grid > a {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

.emergency__grid small {
  color: rgba(255, 255, 255, 0.64);
}

.emergency__grid strong {
  font-size: 1.25rem;
}

.emergency__map {
  font-weight: 900;
}

.site-footer {
  padding-block: 26px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.75rem;
}

.site-footer .page-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
}

.site-footer p {
  margin: 0;
}

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(64px + env(safe-area-inset-bottom));
  padding-block-end: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-block-start: 1px solid var(--line);
  box-shadow: 0 -12px 34px rgba(23, 21, 28, 0.09);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-content: center;
  text-align: center;
  color: #5f5962;
  text-decoration: none;
}

.bottom-nav a > span,
.bottom-nav a > small {
  display: block;
}

.bottom-nav a > span {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}

.bottom-nav a > small {
  font-size: 0.64rem;
  font-weight: 800;
}

.bottom-nav a.is-active {
  color: var(--violet);
}

.to-top {
  position: fixed;
  inset-inline-start: 16px;
  inset-block-end: calc(80px + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.noscript {
  position: fixed;
  inset-inline: 8px;
  inset-block-end: 74px;
  z-index: 120;
  padding: 12px;
  color: var(--ink);
  background: var(--gold-soft);
  border: 1px solid #d5a33a;
  border-radius: 12px;
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: calc(82px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: 360px;
  margin-inline: auto;
  padding: 13px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#itinerary,
#food,
#tips,
#links {
  scroll-margin-block-start: 72px;
}

@media (min-width: 580px) {
  .trip-facts,
  .food-grid,
  .fare-grid,
  .tips-grid,
  .useful-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-highlights {
    grid-auto-columns: minmax(310px, 1fr);
  }

  .recommendation {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .sintra-ticket {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 820px) {
  .page-shell {
    width: min(calc(100% - 64px), var(--shell));
  }

  .hero {
    min-height: 680px;
  }

  .hero__photo {
    height: 100%;
    object-position: center 43%;
  }

  .hero__content {
    padding-block-end: 58px;
  }

  .hero__lead {
    font-size: 1.2rem;
  }

  .trip-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-highlights {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row;
    overflow: visible;
  }

  .check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .check-item:nth-child(odd) {
    border-inline-end: 1px solid var(--line);
  }

  .day-tabs {
    margin-inline: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .day__content {
    padding: 22px;
  }

  .stop-card__body {
    display: grid;
    grid-template-columns: 130px minmax(180px, 0.9fr) minmax(260px, 1.5fr) minmax(215px, auto);
    gap: 16px;
    align-items: center;
  }

  .stop-card__top {
    display: block;
    margin: 0;
  }

  .stop-card__top .badge {
    margin-block-start: 7px;
  }

  .stop-card h4,
  .stop-card p {
    margin: 0;
  }

  .stop-card__actions {
    justify-content: flex-end;
  }

  .feature__grid {
    grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1.2fr);
    align-items: center;
  }

  .feature__grid--reverse {
    grid-template-columns: minmax(400px, 1.2fr) minmax(320px, 0.8fr);
  }

  .feature__grid--reverse .feature__art {
    grid-column: 2;
    grid-row: 1;
  }

  .feature__grid--reverse .feature__content {
    grid-column: 1;
    grid-row: 1;
  }

  .feature__art {
    min-height: 520px;
  }

  .food-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .transit-columns,
  .route-maps {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .useful-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .emergency__grid {
    grid-template-columns: 1.1fr repeat(3, 1fr);
    align-items: stretch;
  }

  .bottom-nav {
    inset-inline: auto;
    right: auto;
    left: 50%;
    inset-block-end: 18px;
    width: min(570px, calc(100% - 32px));
    min-height: 60px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .bottom-nav a {
    min-height: 60px;
  }

  .to-top {
    inset-block-end: 28px;
  }
}

@media (min-width: 1120px) {
  .trip-facts article,
  .food-card,
  .tips-grid article,
  .useful-links a {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .trip-facts article:hover,
  .food-card:hover,
  .tips-grid article:hover,
  .useful-links a:hover {
    transform: translateY(-3px);
    border-color: #c9c0bc;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 370px) {
  .page-shell {
    width: min(calc(100% - 22px), var(--shell));
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero__content {
    padding-block-end: 26px;
  }

  .day > summary {
    grid-template-columns: 68px 1fr 22px;
    padding-inline: 10px;
  }

  .feature__stats {
    grid-template-columns: 1fr;
  }

  .bottom-nav a > small {
    font-size: 0.58rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
  }

  .bottom-nav,
  .to-top,
  .hero__actions,
  .day-tabs,
  .booking {
    display: none !important;
  }

  .hero {
    min-height: 460px;
  }

  .day,
  .food-card,
  .fare-card,
  .tips-grid article {
    break-inside: avoid;
  }
}
