/* =============================================
   Hotel Booking Manager – Public Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

:root {
  --hbm-primary:   #1a1a2e;
  --hbm-gold:      #d4af37;
  --hbm-gold-lt:   #f0e0a0;
  --hbm-light:     #f5f0eb;
  --hbm-border:    #e0d8d0;
  --hbm-text:      #2c2c2c;
  --hbm-muted:     #888;
  --hbm-green:     #198754;
  --hbm-red:       #dc3545;
  --hbm-radius:    10px;
  --hbm-shadow:    0 4px 24px rgba(0,0,0,.10);
  --hbm-shadow-lg: 0 12px 48px rgba(0,0,0,.18);
}

/* ── Availability Filter Bar ─────────────────── */
.hbm-availability-filter {
  background: var(--hbm-primary);
  border-radius: var(--hbm-radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.hbm-filter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.hbm-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}
.hbm-filter-field label {
  color: var(--hbm-gold-lt);
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hbm-filter-field input,
.hbm-filter-field select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,175,55,.3);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.hbm-filter-field input:focus,
.hbm-filter-field select:focus {
  border-color: var(--hbm-gold);
}
.hbm-filter-field input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.hbm-filter-field select option { background: var(--hbm-primary); }

/* ── Buttons ──────────────────────────────────── */
.hbm-btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.hbm-btn-gold {
  background: var(--hbm-gold);
  color: var(--hbm-primary);
  padding: 11px 26px;
}
.hbm-btn-gold:hover { background: #c9a227; transform: translateY(-1px); }

.hbm-btn-book {
  background: var(--hbm-gold);
  color: var(--hbm-primary);
  padding: 10px 22px;
  font-size: 13px;
}
.hbm-btn-book:hover { background: #c9a227; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,175,55,.4); }

.hbm-btn-unavail {
  background: #e0d8d0;
  color: #aaa;
  padding: 10px 22px;
  font-size: 13px;
  cursor: not-allowed;
}
.hbm-btn-primary {
  background: var(--hbm-primary);
  color: var(--hbm-gold);
  padding: 12px 32px;
  font-size: 15px;
}
.hbm-btn-primary:hover { background: #16162a; transform: translateY(-1px); }
.hbm-btn-secondary {
  background: transparent;
  color: var(--hbm-muted);
  border: 1px solid var(--hbm-border);
  padding: 12px 24px;
  font-size: 14px;
}
.hbm-btn-secondary:hover { border-color: var(--hbm-primary); color: var(--hbm-primary); }
.hbm-btn-outline {
  background: transparent;
  border: 2px solid var(--hbm-gold);
  color: var(--hbm-gold);
  padding: 10px 24px;
}
.hbm-btn-outline:hover { background: var(--hbm-gold); color: var(--hbm-primary); }

/* ── Rooms Grid ───────────────────────────────── */
.hbm-rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .hbm-rooms-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .hbm-rooms-grid { grid-template-columns: 1fr; } }

/* ── Room Card ────────────────────────────────── */
.hbm-room-card {
  background: #fff;
  border-radius: var(--hbm-radius);
  overflow: hidden;
  box-shadow: var(--hbm-shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  border: 2px solid transparent;
}
.hbm-room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hbm-shadow-lg);
}
.hbm-room-card.hbm-unavail {
  opacity: .75;
  border-color: #f0d0d0;
}
.hbm-room-card.hbm-featured {
  border-color: var(--hbm-gold);
}
.hbm-featured-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--hbm-primary);
  color: var(--hbm-gold);
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .5px;
}
.hbm-room-img-wrap { position: relative; overflow: hidden; height: 200px; }
.hbm-room-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hbm-room-card:hover .hbm-room-img { transform: scale(1.06); }

.hbm-avail-tag {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.hbm-tag-avail   { background: rgba(25,135,84,.9);  color: #fff; }
.hbm-tag-unavail { background: rgba(220,53,69,.9);  color: #fff; }

.hbm-room-body { padding: 18px 20px 20px; }

.hbm-room-type {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hbm-gold);
  margin-bottom: 4px;
}
.hbm-room-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hbm-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}
.hbm-room-desc {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--hbm-muted);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hbm-room-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.hbm-room-specs span {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hbm-amenities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.hbm-amenity-tag {
  background: var(--hbm-light);
  border: 1px solid var(--hbm-border);
  color: #555;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.hbm-room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--hbm-border);
}
.hbm-price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hbm-primary);
}
.hbm-price-per {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--hbm-muted);
  margin-left: 3px;
}

/* ── Modal Overlay ────────────────────────────── */
.hbm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.7);
  z-index: 99990;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.hbm-modal-overlay.hbm-open { display: flex; }

.hbm-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--hbm-shadow-lg);
  position: relative;
  animation: hbmSlideUp .3s ease;
}
@keyframes hbmSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.hbm-modal-header {
  background: var(--hbm-primary);
  padding: 22px 28px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hbm-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--hbm-gold);
  margin: 0;
}
.hbm-modal-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #aaa;
  margin: 4px 0 0;
}
.hbm-modal-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hbm-modal-close:hover { background: rgba(255,255,255,.2); }

.hbm-modal-body { padding: 28px; }

/* ── Form Fields ──────────────────────────────── */
.hbm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.hbm-form-row.hbm-full { grid-template-columns: 1fr; }
@media (max-width: 520px) { .hbm-form-row { grid-template-columns: 1fr; } }

.hbm-form-group { display: flex; flex-direction: column; gap: 6px; }
.hbm-form-group label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #555;
}
.hbm-form-group input,
.hbm-form-group select,
.hbm-form-group textarea {
  border: 1.5px solid var(--hbm-border);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--hbm-text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.hbm-form-group input:focus,
.hbm-form-group select:focus,
.hbm-form-group textarea:focus {
  border-color: var(--hbm-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.hbm-form-group textarea { resize: vertical; min-height: 72px; }

/* ── Summary Box ──────────────────────────────── */
.hbm-summary-box {
  background: var(--hbm-light);
  border: 1px solid var(--hbm-border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.hbm-summary-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--hbm-primary);
  margin: 0 0 12px;
}
.hbm-summary-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--hbm-border);
}
.hbm-summary-row:last-child { border-bottom: none; }
.hbm-summary-row .slabel { color: var(--hbm-muted); }
.hbm-summary-row .svalue { font-weight: 700; color: var(--hbm-primary); }
.hbm-summary-row.hbm-total {
  font-size: 16px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--hbm-gold);
}
.hbm-summary-row.hbm-total .svalue { color: var(--hbm-gold); font-size: 18px; }

/* ── Payment section ─────────────────────────── */
.hbm-payment-methods {
  margin-bottom: 20px;
}
.hbm-payment-methods h4 {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  margin: 0 0 10px;
}
.hbm-payment-options { display: flex; gap: 10px; flex-wrap: wrap; }
.hbm-payment-opt {
  flex: 1; min-width: 120px;
  border: 2px solid var(--hbm-border);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.hbm-payment-opt input[type=radio] { accent-color: var(--hbm-gold); }
.hbm-payment-opt:has(input:checked) {
  border-color: var(--hbm-gold);
  background: #fffdf5;
}
.hbm-payment-opt .opt-icon { font-size: 20px; }

/* ── Form actions ────────────────────────────── */
.hbm-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hbm-form-actions .hbm-btn { flex: 1; }

/* ── Alert messages ──────────────────────────── */
.hbm-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
}
.hbm-alert-success { background: #d1e7dd; color: #0a4c2b; border-left: 4px solid var(--hbm-green); }
.hbm-alert-error   { background: #f8d7da; color: #842029; border-left: 4px solid var(--hbm-red); }
.hbm-alert-info    { background: #cff4fc; color: #055160; border-left: 4px solid #0dcaf0; }

/* ── Confirmation screen ─────────────────────── */
.hbm-confirmation {
  text-align: center;
  padding: 20px 10px;
}
.hbm-confirmation .hbm-check-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: hbmPop .5s ease;
}
@keyframes hbmPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.hbm-confirmation h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--hbm-primary);
  margin: 0 0 8px;
}
.hbm-confirmation p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--hbm-muted);
  margin: 0 0 20px;
}
.hbm-ref-badge {
  background: var(--hbm-primary);
  color: var(--hbm-gold);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 24px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

/* ── Spinner ──────────────────────────────────── */
.hbm-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hbmSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes hbmSpin { to { transform: rotate(360deg); } }

/* ── Standalone booking form ─────────────────── */
.hbm-standalone-form {
  background: #fff;
  border-radius: var(--hbm-radius);
  box-shadow: var(--hbm-shadow);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.hbm-standalone-form .hbm-sf-header {
  background: var(--hbm-primary);
  padding: 24px 28px;
  color: var(--hbm-gold);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}
.hbm-standalone-form .hbm-sf-body { padding: 28px; }

/* ── Single Room ──────────────────────────────── */
.hbm-single-room { max-width: 900px; margin: 0 auto; }
.hbm-single-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--hbm-radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.hbm-single-gallery img { width: 100%; height: 260px; object-fit: cover; display: block; }
.hbm-single-gallery-side { display: flex; flex-direction: column; gap: 10px; }
.hbm-single-gallery-side img { flex: 1; height: 125px; }
.hbm-sr-meta {
  display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.hbm-sr-meta span {
  font-family: 'Lato', sans-serif;
  font-size: 13px; color: #555;
  background: var(--hbm-light);
  border: 1px solid var(--hbm-border);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── No rooms ─────────────────────────────────── */
.hbm-no-rooms {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Lato', sans-serif;
  color: var(--hbm-muted);
  padding: 40px;
}

/* ── Availability status inline ──────────────── */
.hbm-avail-status {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 8px;
}
.hbm-avail-status.yes { background: #d1e7dd; color: var(--hbm-green); }
.hbm-avail-status.no  { background: #f8d7da; color: var(--hbm-red);   }

/* ── Section divider ─────────────────────────── */
.hbm-section-divider {
  border: none;
  border-top: 1px solid var(--hbm-border);
  margin: 20px 0;
}

/* =============================================
   Slot Selector UI
   ============================================= */

/* Section title inside modal */
.hbm-section-title {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--hbm-muted);
  margin-bottom: 12px;
}

/* Slot card grid */
.hbm-slot-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .hbm-slot-selector { grid-template-columns: 1fr; }
}

/* Individual slot option card */
.hbm-slot-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 2px solid var(--hbm-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  background: #fff;
  user-select: none;
  position: relative;
}
.hbm-slot-opt input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hbm-slot-opt:hover:not(.hbm-slot-disabled) {
  border-color: var(--hbm-gold);
  background: #fffdf5;
}
.hbm-slot-opt.hbm-slot-active {
  border-color: var(--hbm-gold);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.hbm-slot-opt.hbm-slot-disabled {
  opacity: .45;
  cursor: not-allowed;
  background: var(--hbm-light);
}

.hbm-slot-opt-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.hbm-slot-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hbm-slot-opt-name {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--hbm-primary);
}
.hbm-slot-opt-desc {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: var(--hbm-muted);
}
.hbm-slot-opt-price {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--hbm-gold);
  margin-top: 4px;
}

/* Active check mark */
.hbm-slot-opt.hbm-slot-active::after {
  content: '\2713';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hbm-gold);
}

/* Slot time pill shown below date picker for slot bookings */
.hbm-slot-time-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hbm-primary);
  color: var(--hbm-gold);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 10px;
  letter-spacing: .5px;
}

/* Room card slot prices (shown on grid card footer) */
.hbm-slot-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.hbm-slot-price-chip {
  background: var(--hbm-light);
  border: 1px solid var(--hbm-border);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hbm-slot-price-chip span.chip-price {
  color: var(--hbm-primary);
}
