:root {
  --bg: #f1ece4;
  --bg-2: #e7ddd0;
  --ink: #211b17;
  --muted: #6f6257;
  --card: #fffdf9;
  --line: rgba(83, 61, 43, 0.16);
  --brand: #8b572f;
  --brand-2: #c18a56;
  --accent: #8b572f;
  --border: rgba(83, 61, 43, 0.16);
  --ring: rgba(155, 99, 51, 0.2);
  --shadow: 0 30px 80px rgba(57, 39, 25, 0.14);
  --shadow-soft: 0 14px 38px rgba(57, 39, 25, 0.1);
}

body {
  background:
    radial-gradient(ellipse at 8% 2%, rgba(193, 138, 86, 0.22), transparent 38%),
    radial-gradient(ellipse at 92% 18%, rgba(104, 65, 38, 0.12), transparent 34%),
    linear-gradient(145deg, #fbf8f2 0%, var(--bg) 48%, var(--bg-2) 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(77, 51, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 51, 33, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1280px;
  padding-top: 22px;
}

.top {
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 12px 40px rgba(53, 36, 23, 0.1);
}

.brand {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6b47a, #75421f);
  box-shadow: 0 0 0 5px rgba(155, 99, 51, 0.1);
  vertical-align: 2px;
}

.nav a {
  border-color: transparent;
  background: transparent;
  color: #4c3a2d;
  font-weight: 700;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 20px rgba(57, 39, 25, 0.08);
}

.hero {
  max-width: 1060px;
  padding: clamp(70px, 10vw, 126px) 4px 58px;
}

.hero::before {
  top: 44px;
  width: 96px;
  height: 3px;
  background: linear-gradient(90deg, #6d3f21, #d4a46f, transparent);
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #241a14;
}

.hero p {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  color: #6a594c;
}

.section > h2 {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.detail {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.96), rgba(245, 236, 225, 0.84));
  box-shadow: var(--shadow);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.home-actions .btn {
  min-height: 58px;
}

.grid {
  gap: 22px;
}

.card {
  border-color: rgba(91, 63, 43, 0.14);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.91);
  box-shadow: var(--shadow-soft);
}

.card::after {
  height: 3px;
  background: linear-gradient(90deg, #704324, #d2a06b, #704324);
}

.card:hover {
  border-color: rgba(139, 87, 47, 0.35);
  box-shadow: 0 28px 58px rgba(57, 39, 25, 0.16);
}

.card img {
  height: 224px;
  background: #ded2c4;
}

.card .body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card .body h2,
.card .body h3 {
  min-height: 2.45em;
  display: flex;
  align-items: flex-start;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.22;
}

.card .body > .meta:first-of-type {
  min-height: 7.2em;
  margin: 0;
}

.card .body > .meta:nth-of-type(2) {
  min-height: 48px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.card .body > .meta:nth-of-type(2) .chip {
  margin: 0;
}

.card .card-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 0;
}

.card .card-actions .btn {
  min-width: 142px;
}

.meta:empty {
  display: none;
}

.chip {
  border: 1px solid rgba(139, 87, 47, 0.14);
  background: rgba(139, 87, 47, 0.08);
  color: #794725;
}

.btn {
  min-height: 44px;
  border: 1px solid rgba(87, 48, 23, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, #9a6235, #70401f);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 12px 24px rgba(112, 64, 31, 0.2);
}

.btn.secondary {
  color: #523924;
  border-color: rgba(83, 61, 43, 0.18);
  background: rgba(255, 253, 249, 0.72);
}

.btn.secondary:hover {
  background: #fffdf9;
}

form.calc input,
form.calc select,
form.calc textarea {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.92);
}

form.calc input:focus,
form.calc select:focus,
form.calc textarea:focus {
  border-color: #b57a45;
}

#calcOut,
.book-wrap {
  border-color: rgba(139, 87, 47, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.92), rgba(239, 225, 208, 0.76));
}

.book-wrap[hidden] {
  display: none;
}

.map-badge {
  background: rgba(139, 87, 47, 0.1);
  color: var(--brand);
}

.route-map {
  border-color: rgba(139, 87, 47, 0.17);
  background: linear-gradient(135deg, #ede5d9, #d9cabb);
}

body .hint-icon {
  background: rgba(139, 87, 47, 0.1);
  color: var(--brand);
}

body .toggle-row,
body .vehicle-card,
body .book-msg {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.78);
}

body .vehicle-card:hover {
  border-color: rgba(139, 87, 47, 0.35);
  box-shadow: 0 12px 24px rgba(57, 39, 25, 0.1);
}

body .vehicle-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

body .vehicle-card.disabled {
  background: rgba(225, 216, 205, 0.65);
}

body .vehicle-media {
  background: linear-gradient(135deg, #eee5d9, #d8c9b8);
}

body .vehicle-name {
  color: var(--ink);
}

.tours-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  padding: clamp(74px, 10vw, 128px) 4px clamp(54px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.tours-hero h1 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.tours-hero-copy {
  padding-bottom: 5px;
}

.tours-hero-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.75;
}

.tours-text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.tours-text-link span {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tours-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: -18px;
}

.tours-list {
  display: grid;
  gap: clamp(34px, 6vw, 74px);
  padding: clamp(52px, 7vw, 88px) 0;
}

.tour-listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(91, 63, 43, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.94), rgba(246, 238, 228, 0.85));
  box-shadow: 0 24px 66px rgba(57, 39, 25, 0.12);
}

.tour-listing-card.reverse {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.tour-listing-card.reverse .tour-listing-media {
  grid-column: 2;
}

.tour-listing-card.reverse .tour-listing-content {
  grid-column: 1;
  grid-row: 1;
}

.tour-listing-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #d5c6b4;
}

.tour-listing-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 52%, rgba(46, 26, 13, 0.22));
  pointer-events: none;
}

.tour-listing-media img,
.tour-listing-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tour-listing-media img {
  z-index: 1;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.tour-listing-media:hover img {
  transform: scale(1.035);
}

.tour-listing-placeholder {
  display: grid;
  place-items: center;
  color: rgba(92, 54, 29, 0.28);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.5), transparent 27%),
    linear-gradient(145deg, #e7dac9, #c7a98b);
}

.tour-listing-placeholder span {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
}

.tour-listing-number {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 250, 243, 0.88);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tour-listing-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.tour-listing-content h2 {
  margin: 10px 0 18px;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.tour-listing-content h2 a {
  color: var(--ink);
}

.tour-listing-description {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.tour-listing-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tour-listing-facts div {
  min-width: 0;
  padding: 0 15px;
  border-left: 1px solid var(--line);
}

.tour-listing-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.tour-listing-facts dt {
  margin-bottom: 6px;
  color: #97816f;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-listing-facts dd {
  margin: 0;
  color: #4f3827;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.tour-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tours-closing {
  max-width: 880px;
  margin: 0 auto 34px;
  padding: clamp(36px, 6vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(193, 138, 86, 0.14), transparent 50%),
    rgba(255, 253, 249, 0.62);
  box-shadow: var(--shadow-soft);
}

.tours-closing h2 {
  max-width: 680px;
  margin: 10px auto 14px;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.tours-closing p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.tour-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) 4px 54px;
}

.tour-hero-copy {
  position: relative;
  z-index: 1;
}

.tour-eyebrow,
.tour-section-label,
.tour-stop-count {
  display: block;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-hero h1 {
  margin: 14px 0 20px;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.tour-hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.tour-facts,
.tour-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.tour-facts .chip {
  margin: 0;
  padding: 8px 12px;
}

.tour-hero-media {
  position: relative;
  min-height: clamp(420px, 50vw, 650px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px 32px 32px 110px;
  background: #d9ccbc;
  box-shadow: 0 34px 80px rgba(57, 39, 25, 0.2);
}

.tour-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 55%, rgba(55, 31, 15, 0.18));
  pointer-events: none;
}

.tour-hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.tour-image-placeholder,
.tour-stop-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(103, 61, 30, 0.45);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.46), transparent 26%),
    linear-gradient(145deg, #e7d8c4, #c8aa8b);
}

.tour-image-placeholder span {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tour-introduction {
  max-width: 820px;
  padding: 12px 0 26px;
}

.tour-introduction h2,
.tour-section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.08;
}

.tour-introduction p,
.tour-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.tour-stops-section {
  margin-top: 52px;
}

.tour-section-heading {
  max-width: 690px;
  margin-bottom: 30px;
}

.tour-timeline {
  position: relative;
  display: grid;
  gap: 26px;
}

.tour-timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, #c18a56, rgba(139, 87, 47, 0.16));
}

.tour-stop {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.tour-stop-marker {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 5px solid #f6f0e8;
  border-radius: 50%;
  color: #fffaf4;
  background: linear-gradient(145deg, #bb7f48, #71401f);
  box-shadow: 0 8px 22px rgba(112, 64, 31, 0.24);
  font-size: 0.75rem;
  font-weight: 800;
}

.tour-stop-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(280px, 1.18fr);
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 16px 38px rgba(57, 39, 25, 0.09);
}

.tour-stop-media {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #ddcfbe;
}

.tour-stop-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.tour-stop-card:hover .tour-stop-media img {
  transform: scale(1.035);
}

.tour-stop-placeholder span {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
}

.tour-stop-copy {
  align-self: center;
  max-height: 100%;
  overflow: auto;
  padding: clamp(24px, 4vw, 46px);
}

.tour-stop-copy h3 {
  margin: 8px 0 12px;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tour-stop-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.tour-booking-section {
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.tour-booking-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

footer {
  color: #7a6b5e;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .tour-listing-card,
  .tour-listing-card.reverse {
    grid-template-columns: 1fr 1fr;
  }

  .tour-listing-content {
    padding: 34px;
  }

  .tour-listing-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-listing-facts div,
  .tour-listing-facts div:first-child {
    padding: 0;
    border-left: 0;
  }

  .tour-hero {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .tour-hero-media {
    min-height: 460px;
    border-bottom-left-radius: 70px;
  }

  .tour-stop-card {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  }
}

@media (max-width: 800px) {
  .top {
    position: relative;
    top: 0;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    padding-top: 68px;
  }

  .hero::before {
    top: 38px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .tours-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 66px;
  }

  .tours-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }

  .tours-admin-actions {
    margin-top: 0;
  }

  .tours-list {
    padding-block: 42px;
  }

  .tour-listing-card,
  .tour-listing-card.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 20px;
  }

  .tour-listing-card.reverse .tour-listing-media,
  .tour-listing-card.reverse .tour-listing-content {
    grid-column: 1;
  }

  .tour-listing-card.reverse .tour-listing-media {
    grid-row: 1;
  }

  .tour-listing-card.reverse .tour-listing-content {
    grid-row: 2;
  }

  .tour-listing-media {
    min-height: 330px;
  }

  .tour-listing-content {
    padding: 28px 24px 30px;
  }

  .tour-listing-content h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .tour-listing-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .tour-listing-facts div,
  .tour-listing-facts div:first-child {
    padding: 0 9px;
    border-left: 1px solid var(--line);
  }

  .tour-listing-facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .card .body h2,
  .card .body h3,
  .card .body > .meta:first-of-type {
    min-height: 0;
  }

  .tour-hero {
    grid-template-columns: 1fr;
    padding: 62px 0 38px;
  }

  .tour-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .tour-hero-media {
    min-height: 410px;
    border-radius: 24px 24px 24px 70px;
  }

  .tour-stop {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
  }

  .tour-timeline::before {
    left: 20px;
  }

  .tour-stop-marker {
    width: 42px;
    height: 42px;
    border-width: 4px;
  }

  .tour-stop-card {
    grid-template-columns: 1fr;
    grid-template-rows: 240px minmax(0, 1fr);
    height: 500px;
  }

  .tour-stop-media {
    height: 100%;
  }

  .tour-stop-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }

  .tour-booking-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tour-listing-media {
    min-height: 260px;
  }

  .tour-listing-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-listing-facts div,
  .tour-listing-facts div:first-child {
    padding: 0;
    border-left: 0;
  }
}
