.booking-modal[hidden] {
  display: none;
}

.booking-page {
  background: #f6eee8;
  padding: 40px 0 80px;
  overflow-x: clip;
}

.booking-page__inner {
  max-width: 1100px;
}

.booking-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(79, 50, 40, 0.12);
  display: grid;
  gap: 26px;
}

.booking-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #efe5dd;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.booking-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-hero__placeholder {
  padding: 120px 24px;
  text-align: center;
  color: #7d6b62;
  font-weight: 600;
}

.booking-hero__tags {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-chip {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4b3c35;
  border: 1px solid #f0dfd5;
}

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

.booking-thumb {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #f4eee8;
  box-shadow: inset 0 0 0 1px #efe2d8;
  aspect-ratio: 4 / 3;
  height: auto;
}

.booking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.booking-thumb:hover img {
  transform: scale(1.03);
}

.booking-thumb.is-hidden {
  display: none;
}

.booking-info {
  display: grid;
  gap: 12px;
}

.booking-title {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  margin: 0;
  color: #2e211d;
}

.booking-desc {
  margin: 0;
  color: #5b4a42;
  line-height: 1.6;
}

.booking-desc--rich p,
.booking-desc--rich ul,
.booking-desc--rich ol,
.booking-desc--rich h3,
.booking-desc--rich h4 {
  margin: 0 0 0.9rem;
}

.booking-desc--rich ul,
.booking-desc--rich ol {
  padding-left: 1.25rem;
}

.booking-desc--rich strong,
.booking-desc--rich h3,
.booking-desc--rich h4 {
  color: #2e211d;
}

.booking-desc--rich a {
  color: #0f6b4a;
  text-decoration: underline;
}

.booking-meta h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b6a60;
  margin-bottom: 8px;
}

.booking-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #4a3c35;
  display: grid;
  gap: 6px;
}

.booking-form {
  display: block;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.booking-column {
  min-width: 0;
}

.booking-panel {
  background: #fff8f3;
  border: 1px solid #f0dfd5;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.booking-panel__title {
  font-weight: 700;
  color: #3c2c26;
}

.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-fields--dates {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-field {
  display: grid;
  gap: 6px;
}

.booking-field--full {
  grid-column: 1 / -1;
}

.booking-field--small {
  max-width: 140px;
}

.booking-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7b6a60;
}

.booking-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6d9d0;
  background: #fff;
  color: #2f221d;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-input:focus {
  outline: none;
  border-color: #c7a696;
  box-shadow: 0 0 0 3px rgba(199, 166, 150, 0.25);
}

.booking-input--small {
  text-align: center;
}

.booking-input--textarea {
  min-height: 110px;
  resize: vertical;
}

.booking-error {
  color: #b91c1c;
  font-size: 13px;
}

.booking-panel--summary {
  background: #fff;
}

.booking-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  color: #3c2c26;
}

.booking-summary__total {
  border-top: 1px dashed #e3d4ca;
  margin-top: 6px;
  padding-top: 10px;
}

.booking-summary__actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.booking-summary__actions--compact {
  justify-items: start;
}

.booking-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4a3c35;
}

.booking-terms input {
  accent-color: #0f6b4a;
}

.booking-btn--primary {
  width: 100%;
  background: #0f6b4a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.booking-btn--compact {
  width: auto;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booking-btn--primary[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-btn--primary[aria-disabled="true"]:hover {
  background: #0f6b4a;
}

.booking-btn--primary:hover {
  background: #0c5b3f;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.4);
}

.booking-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  width: min(880px, 92vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 80px rgba(8, 16, 30, 0.2);
  z-index: 1;
}

.booking-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.booking-modal__header h3 {
  font-size: 20px;
  margin: 0;
}

.booking-modal__close {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.booking-modal__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-nav__btn {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.booking-nav__months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  flex: 1;
}

.booking-month__title {
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.booking-month__week,
.booking-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.booking-weekday {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.booking-day {
  position: relative;
  border: none;
  background: transparent;
  padding: 8px 0;
  border-radius: 999px;
  cursor: pointer;
  color: #111827;
  font-weight: 500;
}

.booking-day--empty {
  background: transparent;
}

.booking-day.is-disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.booking-day.is-range {
  background: #e8ecef;
  border-radius: 999px;
}

.booking-day.is-start,
.booking-day.is-end {
  background: #454545;
  color: #fff;
  border-radius: 999px;
}

.booking-day.is-hover {
  background: #f1f5f9;
}

.booking-day__number {
  display: inline-block;
  width: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.booking-day__dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #e11d48;
  border-radius: 50%;
}

.booking-day.is-booked {
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
}

.booking-day.is-booked .booking-day__dot {
  display: none;
}

.booking-modal__footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-modal__error {
  color: #b91c1c;
  font-size: 14px;
}

.booking-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.booking-btn {
  border: none;
  background: #0f6b4a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.booking-btn--ghost {
  background: #f3f4f6;
  color: #111827;
}

.booking-unavailable {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fbfaf7;
  color: #3f3f3f;
  font-size: 13px;
}

.booking-unavailable__title {
  font-weight: 600;
  margin-bottom: 6px;
}

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

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

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

  .booking-field--small {
    max-width: none;
  }
}

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

  .booking-card {
    padding: 18px;
    border-radius: 20px;
    gap: 20px;
  }

  .booking-hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .booking-hero__tags {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 6px;
  }

  .booking-hero__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .booking-modal {
    align-items: flex-end;
  }

  .booking-modal__dialog {
    width: 100%;
    max-height: min(88vh, 760px);
    border-radius: 20px 20px 0 0;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .booking-modal__nav {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: start;
  }

  .booking-nav__months {
    gap: 14px;
  }

  .booking-month__week,
  .booking-month__grid {
    gap: 4px;
  }

  .booking-day {
    padding: 6px 0;
  }

  .booking-day__number {
    width: 28px;
  }

  .booking-modal__actions {
    flex-direction: column-reverse;
  }

  .booking-btn,
  .booking-btn--ghost {
    width: 100%;
  }
}
