/* ── Booking Calendar — De Buwepleats ──────────────────────────────────── */

.bwp-loading {
  text-align: center;
  padding: 2rem 0;
  color: #5e7a99;
  font-family: 'Inter', sans-serif;
  font-style: italic;
}

/* Navigation wrapper */
.bwp-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bwp-prev,
.bwp-next {
  flex-shrink: 0;
  margin-top: 2.25rem;
  width: 36px;
  height: 36px;
  border: 1px solid #b8cfe0;
  border-radius: 8px;
  background: none;
  color: #1a3a6b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.bwp-prev:hover,
.bwp-next:hover {
  background: #f8fafc;
  border-color: #1a3a6b;
}

/* Month grid layout */
.bwp-months {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .bwp-months { grid-template-columns: 1fr 1fr; }
}

.bwp-month-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a3a6b;
  text-align: center;
  margin-bottom: 0.6rem;
}

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

/* Day-of-week headers */
.bwp-dh {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5e7a99;
  padding-bottom: 4px;
}

/* Day buttons */
.bwp-day {
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #1c1c1e;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s;
}

.bwp-empty { background: none; }

.bwp-avail {
  cursor: pointer;
}
.bwp-avail:hover {
  background: #c8def2;
  color: #0d2240;
}

.bwp-today {
  outline: 1.5px solid #1a3a6b;
  outline-offset: -1.5px;
}

.bwp-past {
  color: #b8cfe0;
  cursor: not-allowed;
}

.bwp-blocked {
  background: #fee2e2;
  color: #dc2626;
  cursor: not-allowed;
}

/* Departure-only: another booking starts here, so arrival is blocked but departure is fine.
   Diagonal split — left half clear (you can leave), right half taken (new guests arrive). */
.bwp-departure-only {
  background: linear-gradient(to right, transparent 50%, #fee2e2 50%);
  color: #1c1c1e;
  cursor: pointer;
}
.bwp-departure-only:hover {
  background: linear-gradient(to right, #c8def2 50%, #fca5a5 50%);
  color: #0d2240;
}

/* Selected check-in / check-out */
.bwp-ci,
.bwp-co {
  background: #1a3a6b !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
}

/* Hover range preview */
.bwp-hover-range {
  background: #c8def2;
  color: #0d2240;
  border-radius: 0;
}

/* In-range days */
.bwp-range {
  background: #c8def2;
  color: #0d2240;
  border-radius: 0;
}
.bwp-ci + .bwp-range,
.bwp-range:first-child { border-radius: 6px 0 0 6px; }
.bwp-range:last-child,
.bwp-range + .bwp-co   { border-radius: 0 6px 6px 0; }

/* Date summary line */
.bwp-summary {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #b8cfe0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #5e7a99;
  font-style: italic;
  min-height: 2.5rem;
  transition: border-color 0.2s;
}

.bwp-summary.bwp-has-dates {
  border-color: #1a3a6b;
  color: #0d2240;
  font-style: normal;
  font-weight: 600;
}

/* ── Booking form ──────────────────────────────────────────────────────────── */
.bwp-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #b8cfe0;
}

.bwp-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bwp-form-grid { grid-template-columns: 1fr 1fr; }
}

.bwp-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5e7a99;
  margin-bottom: 0.35rem;
}

.bwp-input,
.bwp-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #b8cfe0;
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #1c1c1e;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.bwp-input:focus,
.bwp-textarea:focus {
  outline: none;
  border-color: #1a3a6b;
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12);
}

.bwp-textarea { resize: vertical; min-height: 90px; }

.bwp-error {
  margin-top: 0.75rem;
  padding: 0.6rem 0.875rem;
  background: #fff0e8;
  border: 1px solid #e8b49a;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #9a4a28;
  display: none;
}
.bwp-error.visible { display: block; }

.bwp-submit {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2.5rem;
  background: #1a3a6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}

.bwp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.30);
  filter: brightness(1.1);
}

.bwp-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 58, 107, 0.18);
}

.bwp-checkbox-row {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bwp-checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #1a3a6b;
  cursor: pointer;
}

.bwp-checkbox-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #5e7a99;
  cursor: pointer;
  line-height: 1.5;
}

.bwp-checkbox-label a {
  color: #1a3a6b;
  text-decoration: underline;
}

.bwp-disclaimer {
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #5e7a99;
  font-style: italic;
}

/* ── Pricing Breakdown Card ────────────────────────────────────────────────── */
.bwp-pricing {
  margin-top: 1.25rem;
  background: #f8fafc;
  border: 1px solid #b8cfe0;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.bwp-pricing[hidden] { display: none; }

.bwp-pricing-header {
  background: #1a3a6b;
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bwp-pricing-header-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.bwp-pricing-header-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: #c8def2;
  font-style: italic;
}

.bwp-pricing-lines { padding: 0.25rem 0; }

.bwp-pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: #1c1c1e;
  border-bottom: 1px solid #e4edf6;
}

.bwp-pricing-line:last-child { border-bottom: none; }

.bwp-pricing-label { color: #5e7a99; }

.bwp-pricing-label strong {
  color: #1c1c1e;
  font-weight: 600;
}

.bwp-pricing-amount {
  font-weight: 600;
  white-space: nowrap;
  padding-left: 1rem;
}

.bwp-pricing-line.negative .bwp-pricing-amount { color: #2a7a4b; }

/* BTW informational line — shown inside the fee block, not additive */
.bwp-pricing-line--btw {
  font-size: 0.78rem;
  font-style: italic;
  background: #f0f5fa;
}
.bwp-pricing-line--btw .bwp-pricing-label,
.bwp-pricing-line--btw .bwp-pricing-amount {
  color: #5e7a99;
  font-weight: 400;
}

/* Divider between accommodation lines and fees */
.bwp-pricing-divider {
  height: 1px;
  background: #b8cfe0;
  margin: 0.25rem 1.25rem;
}

.bwp-pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1.25rem;
  background: #eff4f9;
  border-top: 2px solid #b8cfe0;
  color: #1a3a6b;
}

.bwp-pricing-total-label {
  font-size: 1rem;
  font-weight: 700;
}

.bwp-pricing-total-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.bwp-pricing-total-amount {
  font-size: 1.25rem;
  font-weight: 700;
}

.bwp-pricing-total-avg {
  font-size: 0.72rem;
  font-weight: 400;
  color: #5e7a99;
}

.bwp-pricing-min-warn {
  padding: 0.45rem 1.25rem 0.55rem;
  font-size: 0.78rem;
  color: #9a4a28;
  background: #fff0e8;
  border-top: 1px solid #f0c4aa;
}

.bwp-pricing-breakfast {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a3a6b;
  border-top: 1px solid #e4edf6;
  line-height: 1.5;
}

.bwp-pricing-estimate {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem;
  color: #5e7a99;
  font-style: italic;
  border-top: 1px solid #e4edf6;
  line-height: 1.5;
}

.bwp-pricing-estimate::before {
  content: "ℹ";
  font-style: normal;
  flex-shrink: 0;
  margin-top: 0.05em;
}
