:root {
  --ink: #1a221e;
  --muted: #5f6860;
  --paper: #fbfaf6;
  --line: #d9d4c8;
  --pine: #21483d;
  --pine-2: #2f6f60;
  --sun: #d79239;
  --sea: #1e6d83;
  --clay: #b85f3d;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(18, 30, 27, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2eee5;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 24px clamp(16px, 4vw, 56px) 58px;
  overflow: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-rooftop-camping.png");
  background-size: cover;
  background-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 19, 0.8), rgba(10, 22, 19, 0.36) 48%, rgba(10, 22, 19, 0.1)),
    linear-gradient(0deg, rgba(242, 238, 229, 0.98), rgba(242, 238, 229, 0) 28%);
}

.topbar,
.hero__content,
.summary {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.brand,
.nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.12);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 54px auto 0;
}

.intro {
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.overline {
  margin: 0 0 10px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 18px;
  align-items: start;
}

.booking,
.summary {
  border: 1px solid rgba(255, 253, 248, 0.55);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.booking {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.booking__header,
.calendar-head,
.summary-total,
.number-row,
.km-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.booking__header h2,
.summary h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.price-pill {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--pine);
  font-weight: 800;
  text-align: center;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.extras h3,
.included h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rental-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rental-card,
.check-row,
.number-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.rental-card {
  display: flex;
  gap: 10px;
  min-height: 92px;
  padding: 13px;
  cursor: pointer;
}

.rental-card.is-active {
  border-color: var(--pine-2);
  box-shadow: inset 0 0 0 1px var(--pine-2);
}

.rental-card.is-disabled {
  color: #7f7b72;
  background: #eeebe4;
}

.rental-card input,
.check-row input {
  accent-color: var(--pine-2);
}

.rental-card strong,
.check-row strong,
.number-row strong {
  display: block;
  margin-bottom: 5px;
}

small {
  color: var(--muted);
  line-height: 1.35;
}

.calendar-shell {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.season-prices {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eadcc0;
  border-radius: 8px;
  color: #4f4638;
  background: #fff4dc;
  font-size: 0.86rem;
  line-height: 1.35;
}

.icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

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

.weekdays {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.day {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.day span {
  font-weight: 800;
  line-height: 1;
}

.day small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.day:disabled {
  color: #b6b0a7;
  background: #ebe7de;
  cursor: default;
}

.day:disabled small {
  color: #aaa39a;
}

.day.is-blocked {
  border-color: #d1c6bb;
  color: #7d756c;
  background:
    repeating-linear-gradient(
      135deg,
      #eee8de,
      #eee8de 6px,
      #e2d9ce 6px,
      #e2d9ce 12px
    );
}

.day.is-blocked small {
  color: #8b3217;
  font-size: 0.58rem;
}

.day.is-range {
  border-color: #d8c199;
  background: #f6e4c4;
}

.day.is-selected {
  color: var(--white);
  background: var(--sea);
}

.day.is-selected small {
  color: rgba(255, 253, 248, 0.88);
}

.day.is-high {
  box-shadow: inset 0 -3px 0 var(--sun);
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.date-row label,
.km-row {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.date-row input,
.km-row input,
.number-row input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
}

.status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--clay);
  font-size: 0.9rem;
  line-height: 1.35;
}

.distance-error {
  display: none;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d49476;
  border-radius: 8px;
  color: #8b3217;
  background: #fff0e8;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.distance-error.is-visible {
  display: block;
}

.extras,
.included {
  display: grid;
  gap: 10px;
}

.check-row,
.number-row {
  padding: 12px;
}

.check-row {
  display: flex;
  gap: 12px;
}

.number-row input,
.km-row input {
  max-width: 92px;
  margin-top: 0;
  text-align: right;
}

.details-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf6;
}

.details-box summary {
  padding: 11px 12px;
  color: var(--pine);
  font-weight: 800;
  cursor: pointer;
}

.details-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 16px 13px 30px;
  color: var(--muted);
}

.km-row {
  display: none;
  padding: 0 2px;
}

.km-row.is-visible {
  display: flex;
}

.included {
  padding: 14px;
  border-radius: 8px;
  background: #edf3ef;
}

.included ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.summary {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.summary-list {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 0.9rem;
}

.summary-list div,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 900;
}

.contact-fields {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.contact-fields p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-fields input {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}

.contact-fields small {
  font-size: 0.78rem;
}

.primary-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--pine);
  font-weight: 900;
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.info-band {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 22px clamp(16px, 4vw, 28px);
  border-top: 1px solid var(--line);
}

.info-band h2 {
  margin-bottom: 8px;
}

.info-band details {
  margin-top: 10px;
}

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

.primary-btn:hover,
.icon-btn:hover {
  filter: brightness(1.04);
}

@media (max-width: 900px) {
  .hero {
    padding-bottom: 120px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero__content {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

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

  .intro {
    padding-top: 0;
  }

  .summary {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 12px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .booking {
    padding: 14px;
  }

  .rental-options,
  .date-row {
    grid-template-columns: 1fr;
  }

  .calendar-shell {
    padding: 10px;
  }

  .day {
    font-size: 0.82rem;
  }

  .number-row,
  .km-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
