/* =============================================================
   Booking widget styles - drop in placement
   GHL-ready: when GHL is wired, replace the whole #booking
   section with the GHL embed. These styles live in their own
   file so they can be removed cleanly.
   ============================================================= */

.booking {
  background: var(--cream-2);
  padding: 14vh 0;
  position: relative;
}

.booking-head {
  text-align: center;
  max-width: var(--read);
  margin: 0 auto 5vh;
  padding: 0 28px;
}
.booking-head .eyebrow { display: block; margin-bottom: 1.2rem; }
.booking-head h2 {
  font-weight: 280;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-bottom: 1rem;
}
.booking-head h2 em { color: var(--burgundy); font-style: italic; }
.booking-head p { color: var(--slate); font-size: 1.05rem; }

#booking-widget {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(52,73,94,0.18);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

/* ----- Left rail: property + dates + guests + total ----- */
.bw-left { padding: 3rem 2.5rem; border-right: 1px solid var(--line); }

.bw-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.bw-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.bw-tabs button:hover { color: var(--slate); }
.bw-tabs button.active { color: var(--burgundy); }
.bw-tabs button.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--burgundy);
}

.bw-property {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.bw-property [data-property-name] {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--slate-dark);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.bw-property [data-property-rate] {
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-dark);
}
.bw-capacity {
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

/* Inputs */
.bw-field { margin-bottom: 1.6rem; }
.bw-field label {
  display: block;
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.bw-field input[type="text"],
.bw-field input[type="email"],
.bw-field input[type="tel"],
.bw-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--slate-dark);
  transition: border-color .2s;
}
.bw-field input:focus,
.bw-field textarea:focus { outline: none; border-color: var(--olive-dark); }
.bw-field textarea { resize: vertical; min-height: 70px; }

[data-date-range] { cursor: pointer; background: var(--cream); }

.bw-guests {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 12px;
  width: fit-content;
}
.bw-guests button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.bw-guests button:hover { border-color: var(--burgundy); color: var(--burgundy); }
.bw-guests [data-guest-count] {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 360;
  color: var(--slate-dark);
  min-width: 24px;
  text-align: center;
}

/* Totals */
.bw-totals {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line);
}
.bw-totals .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
}
.bw-totals .row .lab {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.bw-totals .row .val {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--slate-dark);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.bw-totals .row.grand .val {
  font-size: 1.8rem;
  color: var(--burgundy);
  font-weight: 400;
}
.bw-totals .deposit-note {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-dark);
  text-align: right;
  margin-top: 0.4rem;
}

/* ----- Right rail: contact details + submit ----- */
.bw-right { padding: 3rem 2.5rem; background: var(--cream); }
.bw-right h3 {
  font-family: var(--display);
  font-weight: 320;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.bw-right .sub {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin-bottom: 2rem;
}

.bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

[data-submit] {
  width: 100%;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  padding: 16px 22px;
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s;
  margin-top: 0.8rem;
}
[data-submit]:hover:not([disabled]) { background: var(--burgundy-dark); }
[data-submit][disabled] { opacity: 0.5; cursor: not-allowed; }

[data-status] {
  margin-top: 1.2rem;
  padding: 12px 14px;
  font-size: 0.92rem;
  border-radius: 2px;
  display: none;
}
[data-status].sending,
[data-status].ok,
[data-status].err { display: block; }
[data-status].sending { background: var(--cream-2); color: var(--ink-muted); }
[data-status].ok { background: rgba(144,148,65,0.12); color: var(--olive-dark); border: 1px solid var(--olive-soft); }
[data-status].err { background: rgba(142,36,53,0.08); color: var(--burgundy); border: 1px solid rgba(142,36,53,0.2); }
[data-status] a { color: inherit; text-decoration: underline; }

.bw-fineprint {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  line-height: 1.55;
  font-style: italic;
}

/* ----- Flatpickr theme overrides (brand) ----- */
.flatpickr-calendar { font-family: var(--body); }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--olive-dark) !important;
  border-color: var(--olive-dark) !important;
  color: var(--white) !important;
}
.flatpickr-day.inRange {
  background: rgba(144,148,65,0.18) !important;
  border-color: rgba(144,148,65,0.18) !important;
  color: var(--slate-dark) !important;
  box-shadow: -5px 0 0 rgba(144,148,65,0.18), 5px 0 0 rgba(144,148,65,0.18) !important;
}
.flatpickr-day.today {
  border-color: var(--burgundy) !important;
}

/* ----- Property page: replace card with inline widget ----- */
.p-card-booking {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  #booking-widget { grid-template-columns: 1fr; }
  .bw-left { border-right: none; border-bottom: 1px solid var(--line); }
  .bw-row { grid-template-columns: 1fr; }
}
