/*
  /book page only.
  Shared typography, colors and button styles come from style.css.
  This file intentionally does not modify style.css.
*/

.book-page {
  background: #fff;
}

.book-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.book-header {
  border-bottom: 1px solid var(--line, #dde3e8);
  background: #fff;
}

.book-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.book-header__back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy, #123b5d);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 900;
}

.book-header__back:hover {
  background: #f4f5f6;
}

.book-header__brand {
  justify-self: center;
  text-decoration: none;
}

.book-header__brand-mark {
  color: var(--navy, #123b5d);
  font-family: var(--heading, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.book-main {
  padding: 52px 0 80px;
}

.book-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.book-heading h1 {
  margin: 0;
  color: var(--navy, #123b5d);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.book-heading p {
  margin: 10px 0 0;
  color: var(--muted, #66788a);
  font-size: 1rem;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  gap: 58px;
  align-items: start;
}

.book-flow {
  min-width: 0;
}

.book-card {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line, #dde3e8);
  border-radius: 24px;
  background: #fff;
}

.book-card__heading {
  margin-bottom: 22px;
}

.book-card__heading h2,
.book-summary-card h2,
.book-summary-card h3 {
  margin: 0;
  color: var(--navy, #123b5d);
}

.book-card__heading h2 {
  font-size: 1.7rem;
}

.book-kicker {
  margin: 0 0 5px;
  color: var(--green, #3d8b5c);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.book-trip-row,
.book-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line, #dde3e8);
}

.book-trip-row:first-of-type {
  border-top: 0;
}

.book-trip-row > div,
.book-summary-row > div {
  display: grid;
  gap: 3px;
}

.book-trip-row strong,
.book-summary-row strong {
  color: var(--navy, #123b5d);
}

.book-trip-row span,
.book-summary-row span {
  color: var(--muted, #66788a);
}

.book-change-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 10px;
  background: #f1f2f3;
  color: var(--navy, #123b5d);
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
}

.book-edit-panel {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #dde3e8);
}

.book-edit-grid,
.book-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.book-edit-grid label,
.book-form-grid label,
.book-field-full {
  display: grid;
  gap: 7px;
}

.book-edit-grid label span,
.book-form-grid label span,
.book-field-full > span {
  color: var(--navy, #123b5d);
  font-size: .8rem;
  font-weight: 850;
}

.book-edit-grid input,
.book-edit-grid select,
.book-form-grid input,
.book-field-full textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd6dc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #173047);
  font: inherit;
}

.book-field-full {
  margin-top: 16px;
}

.book-field-full textarea {
  min-height: 126px;
  resize: vertical;
}

.book-save-trip {
  margin-top: 16px;
}

.book-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.book-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral, #f27d72);
}

.book-checkbox span {
  color: var(--ink, #173047);
}

.book-checkbox a {
  color: var(--navy, #123b5d);
  font-weight: 800;
}

.book-terms-note {
  margin: 18px 0 0;
  color: var(--muted, #66788a);
  font-size: .85rem;
}

.book-submit-area {
  padding-top: 6px;
}

.book-reserve-button {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
}

.book-submit-note {
  margin: 11px 0 0;
  color: var(--muted, #66788a);
  font-size: .8rem;
  text-align: center;
}

.book-form-message {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--navy, #123b5d);
  font-size: .85rem;
  font-weight: 800;
}

.book-form-message.is-error {
  color: #9d2f2f;
}

.book-form-message.is-success {
  color: var(--green, #3d8b5c);
}

/* Sticky reservation summary */
.book-summary-column {
  position: relative;
}

.book-summary-card {
  position: sticky;
  top: 22px;
  overflow: hidden;
  border: 1px solid var(--line, #dde3e8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 59, 93, .08);
}

.book-availability-callout {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f6;
  color: #713151;
  font-size: .82rem;
}

.book-property-summary {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.book-property-summary__main {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.book-property-summary__content {
  min-width: 0;
}

.book-property-summary img {
  width: 110px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background: #edf0f1;
}

.book-property-summary h2 {
  font-size: 1.08rem;
  line-height: 1.24;
}

.book-property-location {
  margin: 10px 0 0;
}

.book-property-facts {
  margin: 4px 0 0;
}

.book-property-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #dde3e8);
}

.book-property-reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 0;
  color: var(--ink, #173047);
  font-size: .78rem;
  font-weight: 800;
}

#summaryRating {
  display: inline-block;
  color: var(--ink, #173047);
}

#summaryRating::first-letter {
  color: var(--coral, #f27d72);
}

.book-property-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}

.book-property-badge {
  min-height: 28px;
}

.book-summary-section {
  margin: 0 22px;
  padding: 4px 0 18px;
  border-top: 1px solid var(--line, #dde3e8);
}

.book-summary-section h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.book-price-lines {
  display: grid;
  gap: 10px;
  padding: 8px 0 14px;
}

.book-price-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink, #173047);
  font-size: .88rem;
}

.book-price-line span:last-child {
  flex: 0 0 auto;
  font-weight: 700;
}

.book-price-placeholder {
  padding: 12px 0;
  color: var(--muted, #66788a);
  font-size: .84rem;
}

.book-price-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #dde3e8);
  color: var(--navy, #123b5d);
}

.book-pricing-error {
  margin: 0 22px 22px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff2f1;
  color: #8e3434;
  font-size: .82rem;
  font-weight: 750;
}

@media (max-width: 900px) {
  .book-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .book-summary-column {
    order: -1;
  }

  .book-summary-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .book-shell {
    width: min(100% - 24px, 1120px);
  }

  .book-main {
    padding-top: 32px;
  }

  .book-heading {
    margin-bottom: 24px;
  }

  .book-card {
    padding: 21px;
    border-radius: 20px;
  }

  .book-edit-grid,
  .book-form-grid {
    grid-template-columns: 1fr;
  }

  .book-property-summary {
    padding: 18px;
  }

  .book-property-summary__main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .book-property-summary img {
    width: 92px;
    height: auto;
  }

  .book-property-summary h2 {
    font-size: 1rem;
  }

  .book-property-trust {
    gap: 9px 12px;
    padding-top: 12px;
  }

  .book-summary-section {
    margin-left: 18px;
    margin-right: 18px;
  }
}

.book-page [hidden] {
  display: none !important;
}

.book-submit-button {
  cursor: pointer;
}
.book-submit-button:disabled {
  cursor: not-allowed;
}

/* Reservation submission progress */
.book-reservation-progress {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line, #dde3e8);
  border-radius: 14px;
  background: #f8fafb;
}

.book-reservation-progress__header {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.book-reservation-progress__header strong {
  color: var(--navy, #123b5d);
  font-size: .9rem;
}

.book-reservation-progress__header span {
  color: var(--muted, #66788a);
  font-size: .8rem;
}

.book-reservation-progress__track {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e5eaee;
}

.book-reservation-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--coral, #f27d72);
  animation: booking-progress 1.15s ease-in-out infinite;
}

@keyframes booking-progress {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(120%); }
  100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .book-reservation-progress__bar {
    width: 100%;
    animation: none;
  }
}
