/* Helena Backcountry Llamas — booking + availability (self-contained) */
:root {
  --hbl-navy: #0D1F2D;
  --hbl-gold: #B8922A;
  --hbl-cream: #F5F0E4;
  --hbl-warm-gray: #5C5346;
  --hbl-light-border: #E8E0D0;
  --hbl-white: #FFFFFF;
  --hbl-success: #2D6A4F;
  --hbl-danger: #9B2C2C;
  --hbl-partial: #C47A1A;
}

.hbl-book-section {
  background: var(--hbl-cream);
  padding: 4rem 1.25rem;
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--hbl-navy);
}

.hbl-book-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hbl-book-section .section-label {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hbl-gold);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hbl-book-section .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--hbl-navy);
}

.hbl-book-section .gold-divider {
  width: 48px;
  height: 2px;
  background: var(--hbl-gold);
  margin: 0 0 1rem;
}

.hbl-book-section .section-subtitle {
  color: var(--hbl-warm-gray);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hbl-booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* ---- Calendar ---- */
.hbl-cal-wrap {
  background: var(--hbl-white);
  border: 1px solid var(--hbl-light-border);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(13, 31, 45, 0.04);
}

.hbl-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hbl-cal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.hbl-cal-nav {
  display: flex;
  gap: 0.35rem;
}

.hbl-cal-nav button {
  background: var(--hbl-cream);
  border: 1px solid var(--hbl-light-border);
  color: var(--hbl-navy);
  width: 36px;
  height: 36px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.hbl-cal-nav button:hover {
  background: var(--hbl-navy);
  color: var(--hbl-cream);
  border-color: var(--hbl-navy);
}

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

.hbl-cal-dow {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hbl-warm-gray);
  padding: 0.35rem 0;
  font-weight: 600;
}

.hbl-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  border: 1px solid transparent;
  min-height: 36px;
}

.hbl-cal-day.empty {
  visibility: hidden;
}

.hbl-cal-day.open {
  background: #E8F5EE;
  color: var(--hbl-success);
  border-color: #C8E6D5;
}

.hbl-cal-day.partial {
  background: #FFF3E0;
  color: var(--hbl-partial);
  border-color: #FFE0B2;
}

.hbl-cal-day.booked {
  background: #FCE8E8;
  color: var(--hbl-danger);
  border-color: #F5C6C6;
  text-decoration: line-through;
}

.hbl-cal-day.past,
.hbl-cal-day.out-of-season {
  background: #F0EDE6;
  color: #B0A898;
  border-color: transparent;
}

/* Off-season (Nov 16 – Apr 30): bookable by request — same colours, subtle dashed edge */
.hbl-cal-day.open.off-season,
.hbl-cal-day.partial.off-season {
  border-style: dashed;
}

.hbl-cal-offseason-note {
  margin-top: 0.5rem;
  font-style: italic;
}

.hbl-cal-day .hbl-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 2px;
}

.hbl-cal-day.open .hbl-cal-dot { background: var(--hbl-success); }
.hbl-cal-day.partial .hbl-cal-dot { background: var(--hbl-partial); }
.hbl-cal-day.booked .hbl-cal-dot { background: var(--hbl-danger); }

.hbl-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hbl-light-border);
  font-size: 0.75rem;
  color: var(--hbl-warm-gray);
}

.hbl-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hbl-cal-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.hbl-cal-swatch.open { background: #E8F5EE; border-color: #C8E6D5; }
.hbl-cal-swatch.partial { background: #FFF3E0; border-color: #FFE0B2; }
.hbl-cal-swatch.booked { background: #FCE8E8; border-color: #F5C6C6; }
.hbl-cal-swatch.past { background: #F0EDE6; }
.hbl-cal-swatch.oos { background: #F0EDE6; }

.hbl-cal-meta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--hbl-warm-gray);
}

.hbl-cal-error {
  padding: 1rem;
  background: #FCE8E8;
  color: var(--hbl-danger);
  border-radius: 3px;
  font-size: 0.9rem;
}

/* ---- Form card ---- */
.hbl-form-card {
  background: var(--hbl-white);
  border: 1px solid var(--hbl-light-border);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 31, 45, 0.04);
}

.hbl-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .hbl-form-card .form-row {
    grid-template-columns: 1fr;
  }
}

.hbl-form-card .form-group {
  margin-bottom: 0.85rem;
}

.hbl-form-card label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hbl-warm-gray);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hbl-form-card input,
.hbl-form-card select,
.hbl-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hbl-light-border);
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--hbl-navy);
  background: var(--hbl-cream);
  transition: border-color 0.15s;
}

.hbl-form-card input:focus,
.hbl-form-card select:focus,
.hbl-form-card textarea:focus {
  outline: none;
  border-color: var(--hbl-gold);
}

.hbl-form-card textarea {
  min-height: 90px;
  resize: vertical;
}

.hbl-form-card .form-error {
  display: none;
  background: #FCE8E8;
  color: var(--hbl-danger);
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.hbl-form-card .form-error.visible {
  display: block;
}

.hbl-avail-warn {
  display: none;
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  color: #8A4B08;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hbl-avail-warn.visible {
  display: block;
}

/* Estimate box */
.hbl-estimate {
  background: var(--hbl-cream);
  border: 1px solid var(--hbl-light-border);
  border-radius: 3px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.hbl-estimate-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hbl-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hbl-estimate-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--hbl-navy);
}

.hbl-estimate-row.muted {
  color: var(--hbl-warm-gray);
  font-size: 0.82rem;
}

.hbl-estimate-row.deposit {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hbl-light-border);
  font-weight: 700;
  color: var(--hbl-gold);
}

.hbl-deposit-note {
  font-size: 0.8rem;
  color: var(--hbl-warm-gray);
  margin: 0.5rem 0 1rem;
  line-height: 1.55;
}

.hbl-form-submit {
  width: 100%;
  background: var(--hbl-navy);
  color: var(--hbl-cream);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.hbl-form-submit:hover:not(:disabled) {
  background: var(--hbl-gold);
  color: var(--hbl-navy);
}

.hbl-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hbl-form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.hbl-form-success.visible {
  display: block;
}

.hbl-form-success .check {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hbl-form-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.5rem;
  color: var(--hbl-navy);
}

.hbl-form-success p {
  color: var(--hbl-warm-gray);
  font-weight: 300;
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

.hbl-info-list {
  margin-top: 1.5rem;
}

.hbl-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}

.hbl-info-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.hbl-info-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--hbl-navy);
}

.hbl-info-text span,
.hbl-info-text a {
  font-size: 0.85rem;
  color: var(--hbl-warm-gray);
  font-weight: 300;
  line-height: 1.45;
}

.hbl-info-text a {
  color: var(--hbl-gold);
  text-decoration: none;
}

.hbl-info-text a:hover {
  text-decoration: underline;
}
