:root {
  --ink: #15202b;
  --muted: #607083;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --teal: #0f9f8f;
  --red: #d94b45;
  --gold: #b7791f;
  --navy: #111827;
  --shadow: 0 18px 50px rgba(20, 32, 43, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand img { flex: 0 0 auto; }
.brand strong { display: block; line-height: 1.05; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.brand.compact { min-width: auto; }

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
}

.nav a:hover { color: var(--ink); }

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 23, 38, 0.84), rgba(14, 23, 38, 0.24)),
    url("https://cdn-imgix.headout.com/media/images/247b5585157a09cf7dd165ef627df8cd-7148-Rome-EntrytoColosseum-PalatineHill-RomanForum-15.jpg?auto=compress,format&w=1800&q=82") center/cover;
}

.hero-content {
  position: relative;
  width: min(920px, calc(100% - 36px));
  padding: 0 0 54px clamp(18px, 5vw, 70px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow { color: #5eead4; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(42px, 6vw, 72px); line-height: 0.96; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 30px; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 18px; }

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
}

.searchbar {
  display: grid;
  grid-template-columns: auto 120px auto;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 8px;
}

.searchbar label { color: var(--muted); font-size: 13px; font-weight: 700; }
.searchbar input, .searchbar select {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
}

.searchbar button, .cta {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: white;
  background: var(--teal);
  cursor: pointer;
  font-weight: 800;
}

.toolbar, .band, .guide, .faq, .footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 0 18px;
}

.controls {
  display: flex;
  gap: 10px;
}

.controls select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
}

.status {
  width: min(1180px, calc(100% - 36px));
  min-height: 24px;
  margin: 0 auto 16px;
  color: var(--muted);
}

.quick-sections {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 34px;
  display: grid;
  gap: 26px;
}

.essentials {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(20, 32, 43, 0.07);
}

.essentials-head {
  margin-bottom: 18px;
}

.essentials-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
}

.essential-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.essential-card:first-child {
  grid-row: span 1;
}

.essential-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.essential-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.essential-body span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.essential-body h3 {
  margin: 0;
  line-height: 1.28;
}

.essential-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.essential-meta {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
}

.essential-meta strong {
  color: var(--teal);
  font-size: 22px;
}

.essential-meta small {
  color: var(--muted);
}

.essential-body .cta {
  width: 100%;
}

.rail {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rail-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.rail-head span {
  color: var(--muted);
  font-size: 13px;
}

.rail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
}

.rail-item {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-height: 318px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 32, 43, 0.06);
}

.rail-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
  background: #dce5ea;
}

.rail-item span {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-height: 168px;
  padding: 14px;
}

.rail-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.32;
  font-size: 15px;
  font-weight: 850;
}

.rail-item small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.rail-item small b {
  color: var(--teal);
  font-style: normal;
}

.rail-item small em {
  font-style: normal;
}

.grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.load-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 56px;
  text-align: center;
}

.load-more {
  min-width: 240px;
}

.card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(20, 32, 43, 0.06);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dce5ea;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
}

.card-body { padding: 15px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.title { min-height: 48px; margin-bottom: 12px; font-size: 17px; line-height: 1.35; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.radar-price {
  color: var(--teal);
  font-size: 24px;
  font-weight: 900;
}

.source-price {
  color: var(--muted);
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ghost {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.band, .guide, .faq, .editorial, .reviews-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.editorial, .reviews-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.reviews-section {
  padding-top: 52px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(20, 32, 43, 0.07);
}

.review-media {
  height: 210px;
  background: #e6edf2;
}

.review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: white;
  background: linear-gradient(135deg, #0e1726, #0f9f8f);
  font-size: 44px;
  font-weight: 900;
}

.review-copy {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.review-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0;
}

.review-copy p {
  min-height: 104px;
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.review-meta {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.review-meta span {
  color: var(--muted);
  font-size: 13px;
}

.guide-feature-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.guide-feature {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
  color: white;
  background: #0e1726;
}

.guide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.05), rgba(14, 23, 38, 0.88));
}

.guide-feature.vatican {
  background: url("https://cdn-imgix.headout.com/media/images/25eae30a3a4d3f7bc44571fe7b6bca47-6732-rome-vatican-museums---sistine-chapel-tickets-20.jpg?auto=compress,format&w=760&q=82") center/cover;
}

.guide-feature.colosseum {
  background: url("https://cdn-imgix.headout.com/media/images/247b5585157a09cf7dd165ef627df8cd-7148-Rome-EntrytoColosseum-PalatineHill-RomanForum-15.jpg?auto=compress,format&w=760&q=82") center/cover;
}

.guide-feature.transfers {
  background: url("https://cdn-imgix.headout.com/media/images/84bf2b04-ab83-40a2-a7cf-244f502c730e-1760602441457-319997.jpg?auto=compress,format&w=760&q=82") center/cover;
}

.guide-feature > * {
  position: relative;
}

.guide-feature span {
  margin-bottom: 8px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-feature h3 {
  max-width: 420px;
  margin-bottom: 8px;
  font-size: 24px;
}

.guide-feature p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.guide-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #e6fffb;
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.attraction-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.attraction-grid button {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.attraction-grid button:hover,
.link-cloud button:hover,
.rail-item:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nearby-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: #0e1726;
  color: white;
}

.nearby-grid span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.feature-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.feature-grid p, .faq p, .footer p { color: var(--muted); line-height: 1.55; }

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-cloud button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 10px 14px;
  cursor: pointer;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 10px;
}

.faq summary { cursor: pointer; font-weight: 800; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.62);
}

.modal[hidden] { display: none; }

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.close {
  position: sticky;
  top: 12px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal-content { padding: 22px; }
.modal-gallery { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.modal-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.variant { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 10px; }
.variant.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.16);
}

.select-option {
  width: 100%;
  margin-top: 6px;
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.checkout-box {
  position: sticky;
  top: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.step-row label {
  color: var(--muted);
  font-weight: 800;
}

.stepper {
  display: grid;
  grid-template-columns: 38px 54px 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.stepper button {
  border: 0;
  background: white;
  cursor: pointer;
  font-size: 20px;
}

.stepper input {
  width: 54px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.checkout-total strong {
  color: var(--ink);
  font-size: 22px;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .nav { display: none; }
  .grid, .feature-grid, .guide-grid, .nearby-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-feature-row { grid-template-columns: 1fr; }
  .attraction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchbar { grid-template-columns: 1fr; align-items: stretch; }
  .toolbar { align-items: start; flex-direction: column; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .topbar { gap: 12px; }
  .brand { min-width: 0; }
  .hero { min-height: 650px; }
  .hero-content { padding-right: 18px; }
  .grid, .feature-grid, .guide-grid, .nearby-grid, .reviews-grid { grid-template-columns: 1fr; }
  .essentials { padding: 18px; }
  .essentials-grid { grid-template-columns: 1fr; }
  .attraction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-list { grid-template-columns: 1fr; }
  .controls { width: 100%; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; }
  .modal-gallery { grid-template-columns: 1fr; }
  .selection-layout { grid-template-columns: 1fr; }
  .checkout-box { position: static; }
}
