@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");
@import url("../brand/brand.css");

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-snow);
  color: var(--color-peak-ink);
  min-height: 100vh;
}

.booking-app { min-height: 100vh; display: flex; flex-direction: column; }

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-glacier);
  gap: 1rem;
  flex-wrap: wrap;
}

.booking-header-left { display: flex; align-items: center; gap: 1rem; }
.booking-header img {
  height: 48px;
  width: auto;
}
.booking-header a.close-link {
  color: var(--color-stone);
  font-size: 0.9rem;
  text-decoration: none;
}
.booking-header a.close-link:hover { color: var(--color-lake); }

.booking-trust {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-pine);
  font-weight: 600;
}

.booking-trust span::before { content: "✓ "; }

.booking-currency {
  font-size: 0.8rem;
  color: var(--color-stone);
  text-align: right;
  width: 100%;
}

.booking-main {
  flex: 1;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.booking-main:has(.calendar-wrap),
.booking-main:has(.checkout-panel),
.booking-main:has(.time-list),
.booking-main:has(.hold-message) {
  max-width: 520px;
}

.booking-main h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.booking-subtitle { color: var(--color-stone); margin: 0 0 1.5rem; }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.activity-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(var(--color-navy-rgb), 0.88));
}

.activity-card.featured {
  grid-column: span 2;
  min-height: 280px;
}

@media (max-width: 700px) {
  .activity-card.featured { grid-column: span 1; }
}

.activity-card-body {
  position: relative;
  padding: 1rem;
  color: var(--color-white);
}

.activity-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--color-white);
}

.activity-card p { margin: 0 0 0.75rem; font-size: 0.85rem; opacity: 0.9; }

.activity-card .price { font-weight: 700; font-size: 0.9rem; }

.activity-card .btn-select {
  display: inline-block;
  background: var(--color-lake);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-wrap { max-width: 480px; width: 100%; margin: 0 auto; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-nav button {
  background: var(--color-glacier);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

.calendar-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-nav button:not(:disabled):hover {
  background: var(--color-lake);
  color: var(--color-white);
}

.calendar-nav h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  text-transform: uppercase;
}

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

.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-stone);
  padding: 0.25rem;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cal-day.empty { background: transparent; cursor: default; }
.cal-day.disabled { opacity: 0.35; cursor: not-allowed; }
.cal-day.available { background: var(--color-glacier); font-weight: 600; }
.cal-day.available:hover { background: var(--color-lake); color: var(--color-white); }
.cal-day.selected { background: var(--color-lake); color: var(--color-white); }

.cal-day .day-price { font-size: 0.65rem; opacity: 0.85; }

.time-list { list-style: none; padding: 0; margin: 1rem 0; }
.time-list li { margin-bottom: 0.5rem; }

.time-slot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-white);
  border: 2px solid var(--color-glacier);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.time-slot:hover { border-color: var(--color-lake); }
.time-slot.selected { border-color: var(--color-lake); background: var(--color-glacier); }

.checkout-panel {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-glacier);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input.invalid {
  border-color: #b33;
  background: #fff8f8;
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-glacier);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guest-controls { display: flex; align-items: center; gap: 0.75rem; }
.guest-controls button {
  width: 32px; height: 32px;
  border: 1px solid var(--color-lake);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-lake);
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amount-options button {
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--color-glacier);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.amount-options button[aria-pressed="true"] {
  border-color: var(--color-lake);
  background: var(--color-glacier);
}

.order-summary {
  background: var(--color-glacier);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.order-summary .total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--color-lake); color: var(--color-white); width: 100%; }
.btn-primary:hover { background: var(--color-peak-ink); }
.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
  background: var(--color-lake);
}
.btn-secondary { background: transparent; color: var(--color-lake); border: 2px solid var(--color-lake); }

.account-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; }
.account-tabs button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: var(--color-glacier);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.account-tabs button.active { background: var(--color-lake); color: var(--color-white); }

.hold-message {
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.hold-message h2 { color: var(--color-pine); }
.hold-message a { color: var(--color-lake); font-weight: 600; }

.booking-modal {
  max-width: 440px;
  width: calc(100% - 2rem);
  padding: 1.75rem;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  color: var(--color-peak-ink);
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.booking-modal::backdrop {
  background: rgba(var(--color-navy-rgb), 0.55);
}

.booking-modal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--color-pine);
}

.booking-modal p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.booking-modal a {
  color: var(--color-lake);
  font-weight: 600;
  word-break: break-all;
}

.booking-modal .btn {
  margin-top: 0.5rem;
}

.booking-modal.is-loading {
  min-height: 180px;
}

.booking-modal.is-loading #booking-request-result,
.booking-modal:not(.is-loading) #booking-request-loading {
  display: none;
}

.booking-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 140px;
  text-align: center;
}

.booking-modal-loading p {
  margin: 0;
  font-weight: 600;
  color: var(--color-stone);
}

.booking-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-glacier);
  border-top-color: var(--color-lake);
  border-radius: 50%;
  animation: booking-spin 0.7s linear infinite;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

.booking-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-glacier);
  font-size: 0.8rem;
  color: var(--color-stone);
  text-align: center;
}

.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-lake); }

.error-msg { color: #b33; font-size: 0.9rem; margin-top: 0.5rem; }
