:root {
  --page-bg: #f5f0e6;
  --paper: #fffdfa;
  --paper-soft: #f7f2e8;
  --ink: #182827;
  --muted: #66736e;
  --line: #e1d7c5;
  --sea: #0f5f68;
  --sea-dark: #073f46;
  --sea-soft: #e5f0ef;
  --olive: #6f7656;
  --sand: #d9bd82;
  --sand-soft: #f3e7cf;
  --terracotta: #b96543;
  --whatsapp: #217a52;
  --success-soft: #e7f1ec;
  --danger: #9e3b31;
  --danger-soft: #f8e9e5;
  --disabled: #b8b0a2;
  --shadow: 0 24px 70px rgba(24, 40, 39, 0.12);
  --soft-shadow: 0 12px 34px rgba(24, 40, 39, 0.07);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(180deg, #f8f3e9 0%, #f3eadc 48%, #f7f2ea 100%),
    var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.booking-page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 42px);
}

.booking-calculator {
  overflow: hidden;
  border: 1px solid rgba(15, 95, 104, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.booking-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: grid;
  align-items: end;
  padding: clamp(26px, 6vw, 64px);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(7, 63, 70, 0.94) 0%, rgba(15, 95, 104, 0.86) 48%, rgba(111, 118, 86, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #0f5f68;
  background-position: center;
  background-size: cover;
}

.booking-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sand), rgba(217, 189, 130, 0.2));
  content: "";
}

.hero-content {
  max-width: 760px;
}

.brand-label,
.section-kicker,
.summary-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-label {
  color: #ead29f;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6.8vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 560;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 0;
}

.calendar-section,
.summary-panel {
  padding: clamp(18px, 3vw, 38px);
}

.calendar-section {
  border-right: 1px solid var(--line);
  background: #fffaf3;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-kicker,
.summary-eyebrow {
  color: var(--sea-dark);
}

.section-heading h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.selection-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.selection-strip div {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 95, 104, 0.13);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.selection-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.selection-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

.message-area {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 95, 104, 0.14);
  border-radius: var(--radius);
  background: #fbf7ef;
  color: var(--sea-dark);
  font-weight: 800;
}

.message-area.is-error {
  border-color: rgba(178, 61, 52, 0.28);
  background: var(--danger-soft);
  color: var(--danger);
}

.message-area.is-success {
  border-color: rgba(33, 122, 82, 0.2);
  background: var(--success-soft);
  color: #155a3d;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.month {
  overflow: hidden;
  border: 1px solid rgba(15, 95, 104, 0.13);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.month-title {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f4ead8;
  color: var(--sea-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

.weekday-grid,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-grid {
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.days-grid {
  gap: 4px;
  padding: 8px 10px 12px;
}

.day-spacer,
.day-button {
  aspect-ratio: 1;
  min-width: 0;
}

.day-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 900;
}

.day-button.is-disabled {
  color: var(--disabled);
  cursor: not-allowed;
  opacity: 0.58;
}

.day-button.is-available {
  border-color: rgba(15, 95, 104, 0.14);
  background: #f7fbfa;
  color: var(--sea-dark);
  cursor: pointer;
}

.day-button.is-available:hover,
.day-button.is-available:focus-visible {
  border-color: var(--sea);
  background: var(--sea-soft);
  outline: 3px solid rgba(15, 95, 104, 0.16);
  outline-offset: 2px;
}

.day-button.is-range {
  border-radius: 0;
  background: var(--sand-soft);
  color: var(--ink);
}

.day-button.is-selected {
  z-index: 1;
  border-color: var(--sea-dark);
  border-radius: var(--radius);
  background: var(--sea-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(7, 63, 70, 0.22);
}

.day-button.is-checkin::after,
.day-button.is-checkout::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.text-button {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--sea-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 242, 232, 0.76)),
    #fbf8f1;
}

.summary-shell {
  position: sticky;
  top: 22px;
}

.summary {
  padding: 20px;
  border: 1px solid rgba(15, 95, 104, 0.13);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.summary h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.empty-summary {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row span:first-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.summary-row strong {
  font-size: 1.04rem;
}

.summary-detail-title {
  margin: 18px 0 10px;
  color: var(--sea);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.price-list li {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.price-list span {
  color: var(--ink);
  font-weight: 750;
}

.price-list strong {
  color: var(--sea-dark);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--sand);
  font-size: 1.28rem;
  font-weight: 950;
}

.cta-area {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  filter: brightness(0.94);
  outline: 3px solid rgba(15, 95, 104, 0.18);
  outline-offset: 3px;
}

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

.cta-phone {
  background: var(--sea-dark);
}

.cta-whatsapp {
  background: var(--whatsapp);
}

.booking-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .calendar-section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-shell {
    position: static;
  }
}

@media (max-width: 700px) {
  .calendar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .booking-page {
    padding: 0;
  }

  .booking-calculator {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .booking-hero {
    min-height: 300px;
    padding: 24px 18px;
  }

  .calendar-section,
  .summary-panel {
    padding: 18px;
  }

  .selection-strip {
    grid-template-columns: 1fr;
  }

  .day-button {
    font-size: 0.86rem;
  }

  .total-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cta-button {
    width: 100%;
  }
}
