/* HBR — "Lokasi Homestay" section + footer info links (hbr-pages.js). */

.hbr-loc {
  margin: 40px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.hbr-loc-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--paper, #fff);
  border: 1px solid rgba(36, 68, 56, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(23, 61, 50, 0.08);
}

.hbr-loc-copy { padding: 40px 38px; }

.hbr-loc-eyebrow {
  margin: 0 0 10px;
  color: #a95f38;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hbr-loc-copy h2 {
  margin: 0 0 12px;
  color: var(--forest, #183c30);
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.hbr-loc-address { margin: 0 0 22px; color: var(--muted, #53635d); }

.hbr-loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.hbr-loc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}

.hbr-loc-btn-primary { background: #214d3e; color: #fff; }
.hbr-loc-btn-primary:hover { background: #1b3f33; }
.hbr-loc-btn-outline { border: 1px solid rgba(36, 68, 56, .25); color: #214d3e; }
.hbr-loc-btn-outline:hover { background: #f1f4f1; }
.hbr-loc-btn:active { transform: scale(.97); }

.hbr-loc-more { color: #a95f38; font-weight: 700; font-size: 14px; text-decoration: none; }

.hbr-loc-map {
  min-height: 320px;
  background: linear-gradient(155deg, #244438 0%, #3d6a55 100%);
  display: flex;
}

.hbr-loc-map iframe { width: 100%; min-height: 320px; border: 0; display: block; }

.hbr-loc-load {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #f5f0e7;
  font: 800 15px/1 var(--font-sans, sans-serif);
  cursor: pointer;
}

.hbr-loc-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: #c27a4a;
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.hbr-loc-load:hover .hbr-loc-pin { background: #d98d5c; }

[data-theme="dark"] .hbr-loc-btn-outline { border-color: var(--sand); color: #fff; }

@media (max-width: 760px) {
  .hbr-loc { padding: 0 16px; }
  .hbr-loc-inner { grid-template-columns: 1fr; }
  .hbr-loc-copy { padding: 28px 22px; }
  .hbr-loc-map, .hbr-loc-map iframe { min-height: 260px; }
}

/* Section titles below the booking form match the form's own
   ".section-heading h2" (assets/index-*.css). */
.hbr-event-copy h2,
.hbr-loc-copy h2 {
  color: var(--ink, #26332e);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

/* 50px between the homestay showcase, the Sewa Tapak card and the Lokasi
   card. The booking form (.form-stage) sits between the showcase and Sewa
   Tapak but is hidden whenever those two are shown (see hbr-gallery.css). */
.hbr-event { margin-top: 50px; }
.hbr-loc { margin-top: 50px; }

/* Light palette: neutral white instead of the warm cream/beige
   (overrides the bundle's :root; dark mode keeps its own values). */
:root:not([data-theme="dark"]) {
  --cream: #f7f8f7;
  --paper: #ffffff;
  --sand: #dde3de;
}
:root:not([data-theme="dark"]) body {
  background: radial-gradient(circle at 10% 12%, #a4b69d1f, transparent 25rem), var(--cream);
}
:root:not([data-theme="dark"]) .calendar-feedback,
:root:not([data-theme="dark"]) .availability-message.checking { background: #f7f8f7; }
:root:not([data-theme="dark"]) .form-actions { background: var(--paper); }
:root:not([data-theme="dark"]) .hbr-event-inner { background: #fff; }
:root:not([data-theme="dark"]) .hbr-event-btn-outline:hover { background: #f1f4f1; }

/* Booking summary: friendly empty state + muted pending values */
.hbr-summary-hint { display: none; margin: 0 0 8px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.6; }
.booking-summary.hbr-summary-empty .hbr-summary-hint { display: block; }
.booking-summary.hbr-summary-empty .summary-list { display: none; }
.booking-summary .summary-list strong.is-pending { color: rgba(255, 255, 255, .5); font-weight: 600; }

/* Mobile sticky action bar: compact "Studio · 2 malam / 9 Okt – 11 Okt" */
.hbr-actions-summary { display: none; }
@media (max-width: 640px) {
  .form-actions { align-items: center; }
  .hbr-actions-summary:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin-right: auto;
  }
  .hbr-actions-summary strong { color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hbr-actions-summary span { color: var(--muted); font-size: 12px; white-space: nowrap; }
}

/* Booking form Teruskan/Kembali: same shape as the site's other buttons
   (14px corners, 46px, 14px/700 text); colours only in light mode, dark mode
   keeps its own overrides in hbr-darkmode.css. */
.primary-button,
.secondary-button { border-radius: 14px; height: 46px; font-size: 14px; font-weight: 700; }
:root:not([data-theme="dark"]) .primary-button { background: #214d3e; border-color: #214d3e; }
:root:not([data-theme="dark"]) .primary-button:hover:not(:disabled) { background: #1b3f33; }
:root:not([data-theme="dark"]) .secondary-button { border-color: rgba(36, 68, 56, .25); color: #214d3e; }
