/* ============================================================
   Hotel Booking System Styles
   Bootstrap 5.3 + Custom
   ============================================================ */

:root {
  --brand-navy:          #1B3A5C;
  --brand-navy-dark:     #0d2240;
  --brand-blue:          #1565C0;
  --brand-blue-light:    #E3F2FD;
  --brand-cyan:          #0097A7;
  --text-navy:           #1B3A5C;
  /* RGB companions — used for rgba() calls; overridden by theme injection in head.ejs */
  --brand-primary-rgb:   21, 101, 192;
  --brand-navy-rgb:      27, 58, 92;
  --brand-navy-dark-rgb: 13, 34, 64;
  /* Hero image — overridden by uploaded image via head.ejs */
  --hero-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600&h=900&fit=crop&auto=format');
  --shadow-card:      0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover:     0 8px 28px rgba(0, 0, 0, 0.14);
  --radius-card:      12px;
}

/* ---- Global ---- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  color: #212529;
  background: #f4f6f9;
}

.text-navy { color: var(--brand-navy) !important; }
.bg-navy   { background-color: var(--brand-navy) !important; }
.ls-1      { letter-spacing: 0.05em; }
.letter-spacing-wide { letter-spacing: 0.12em; }

/* ---- Site Header ---- */
.site-header {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ---- Special Rates Toggle Button (header) ---- */
.rates-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  background: none;
  transition: opacity 0.18s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rates-toggle-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.rates-toggle-btn:active {
  transform: translateY(0);
}

/* ON state — green pill */
.rates-toggle-on {
  border-color: #5cb85c;
  color: #a3d9a3;
}

.rates-toggle-on .rates-toggle-state {
  background: #198754;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* OFF state — muted pill */
.rates-toggle-off {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.45);
}

.rates-toggle-off .rates-toggle-state {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hotel-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

/* ---- Hero Section ---- */
.hero-section {
  background-image: var(--hero-image, url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600&h=900&fit=crop&auto=format'));
  background-size: cover;
  background-position: center;
  padding: 80px 0 60px;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(
    150deg,
    rgba(var(--brand-navy-dark-rgb), 0.88) 0%,
    rgba(var(--brand-navy-rgb), 0.80) 50%,
    rgba(var(--brand-navy-dark-rgb), 0.70) 100%
  );*/
}

.badge-amenity-hero {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ---- Search Card ---- */
/* ============================================================
   HOTEL SEARCH BAR — Option B (Full-Width Segmented Bar)
   ============================================================ */

/* Hero headline above the card */
.hero-headline {
  color: #383838;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 6px;
  /*text-shadow: 0 2px 10px rgba(0,0,0,0.15);*/
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-subline {
  color: #383838; /*rgba(255,255,255,0.80);*/
  font-size: 1rem;
  margin-bottom: 0;
  /*text-shadow: 0 1px 5px rgba(0,0,0,0.15);*/
  font-weight: 400;
}

/* ── Card wrapper ─────────────────────────────────────────── */
.hsb-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.08);
  padding: 18px 18px 12px;
}

/* ── Segmented bar ────────────────────────────────────────── */
.hsb-bar {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e5e5ea;
  border-radius: 14px;
  background: #f8f8fa;
  overflow: hidden;
  min-height: 80px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hsb-bar:focus-within {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.10);
}

/* ── Segments ─────────────────────────────────────────────── */
.hsb-seg {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.hsb-seg:hover {
  background: rgba(var(--brand-primary-rgb), 0.04);
}
.hsb-seg-sm    { flex: 0 0 155px; }
.hsb-seg-rates { flex: 0 0 260px; }

/* Active highlights */
.hsb-bar.hsb-active-checkin  #hsbCheckinSeg,
.hsb-bar.hsb-active-checkout #hsbCheckoutSeg {
  background: rgba(var(--brand-primary-rgb), 0.06);
}
.hsb-bar.hsb-active-checkin  #hsbCheckinSeg  .hsb-lbl,
.hsb-bar.hsb-active-checkout #hsbCheckoutSeg .hsb-lbl {
  color: var(--brand-blue);
}

/* ── Labels ───────────────────────────────────────────────── */
.hsb-lbl {
  display: block;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
}

/* ── Value rows ───────────────────────────────────────────── */
.hsb-val {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hsb-ico {
  color: var(--brand-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Date two-line display ────────────────────────────────── */
.hsb-date-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.hsb-date-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsb-date-main.hsb-placeholder {
  font-size: 0.9rem;
  font-weight: 400;
  color: #aeaeb2;
}
.hsb-date-day {
  font-size: 0.70rem;
  font-weight: 500;
  color: #86868b;
  white-space: nowrap;
}

/* ── Hidden real inputs (flatpickr targets) ───────────────── */
.hsb-real-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  border: none;
  padding: 0;
}

/* ── Night badge + middle divider ─────────────────────────── */
.hsb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}
.hsb-vr {
  display: block;
  width: 1px;
  height: 32px;
  background: #d8d8de;
}
.hsb-night-pill {
  background: var(--brand-navy);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ── Static vertical dividers ─────────────────────────────── */
.hsb-vr-static {
  width: 1px;
  background: #e5e5ea;
  margin: 14px 0;
  flex-shrink: 0;
  align-self: stretch;
}

/* ── Segment selects (Rooms / Rates) ──────────────────────── */
.hsb-seg-select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1d1f;
  outline: none;
  cursor: pointer;
  padding: 0;
  padding-right: 22px;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hsb-seg-select:focus { outline: none; }
.hsb-sel-arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: #86868b;
  font-size: 0.7rem;
  pointer-events: none;
}

/* ── Search button (rightmost segment) ───────────────────── */
.hsb-search-seg {
  flex-shrink: 0;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 28px;
  background: linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  font-weight: 700;
  white-space: nowrap;
}
.hsb-search-seg:hover {
  opacity: 0.92;
  box-shadow: -6px 0 24px rgba(var(--brand-primary-rgb), 0.30);
}
.hsb-search-seg:active { transform: scale(0.98); }
.hsb-search-icon  { font-size: 1.25rem; }
.hsb-search-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

/* ── Promo code row (below bar) ───────────────────────────── */
.hsb-promo-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--brand-blue-light);
  border-radius: 10px;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
}
.hsb-promo-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1d1d1f;
  outline: none;
  padding: 0;
}
.hsb-promo-input::placeholder { color: #aeaeb2; font-weight: 400; }

/* ── Guest hint line ──────────────────────────────────────── */
.hsb-guest-hint {
  font-size: 0.72rem;
  color: #86868b;
  margin: 8px 0 0;
  padding-left: 2px;
}

/* ── Responsive: tablet ───────────────────────────────────── */
@media (max-width: 991px) {
  .hsb-bar { flex-wrap: wrap; min-height: unset; }
  .hsb-seg-sm, .hsb-seg-rates { flex: 1 1 45%; }
  #hsbCheckinSeg  { border-bottom: 1px solid #e5e5ea; }
  #hsbCheckoutSeg { border-bottom: 1px solid #e5e5ea; }
  .hsb-mid        { border-bottom: 1px solid #e5e5ea; }
  .hsb-seg-sm     { border-bottom: 1px solid #e5e5ea; }
  .hsb-seg-rates  { border-bottom: 1px solid #e5e5ea; }
  .hsb-vr-static  { display: none; }
  .hsb-search-seg {
    flex: 1 1 100%;
    border-radius: 0 0 12px 12px;
    flex-direction: row;
    gap: 10px;
    min-height: 54px;
  }
}

/* ── Responsive: mobile ───────────────────────────────────── */
@media (max-width: 575px) {
  .hsb-seg, .hsb-seg-sm, .hsb-seg-rates { flex: 1 1 100%; }
  .hsb-mid { display: none; }
  .hsb-search-seg { flex-direction: row; gap: 10px; min-height: 56px; }
}

/* ---- Discount Banner (Rooms page) ---- */
.discount-banner {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-blue) 100%);
  color: #fff;
  padding: 10px 0;
  border-bottom: 2px solid #f5c842;
}

/* ---- Deal Tag Pill (Room card) ---- */
.deal-tag-pill {
  display: inline-flex;
  align-items: center;
  background: #f5c842;
  color: #1a1a1a;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- Strikethrough original price ---- */
.price-original {
  color: #aeaeb2;
  font-size: 1rem;
  text-decoration: line-through;
  font-weight: 500;
}

/* ---- Savings line ---- */
.savings-text {
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Discount line in checkout price summary ---- */
.discount-summary-line {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: -8px;
  margin-right: -8px;
}

/* (Special Rates Panel — now integrated into .hsb-seg-rates above) */

/* ======================================================
   Flatpickr — Designed Calendar
   ====================================================== */
.flatpickr-calendar {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18) !important;
  border: 1px solid #e0e0e5 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Month header — navy background */
.flatpickr-months {
  background: var(--brand-navy) !important;
  padding: 10px 0 8px !important;
  border-radius: 0 !important;
}

.flatpickr-months .flatpickr-month {
  color: #fff !important;
  fill: #fff !important;
  height: 36px !important;
}

.flatpickr-current-month {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding-top: 6px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #fff !important;
  background: transparent !important;
  font-weight: 700 !important;
}

.flatpickr-current-month .numInputWrapper input {
  color: #fff !important;
}

.flatpickr-current-month .numInputWrapper span {
  border-color: rgba(255,255,255,0.3) !important;
}

.flatpickr-current-month .numInputWrapper span svg path {
  fill: rgba(255,255,255,0.8) !important;
}

/* Prev / Next arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
  fill: #fff !important;
  color: #fff !important;
  padding: 10px !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: #fff !important;
}

/* Weekday header row */
.flatpickr-weekdays {
  background: #f0f4f8 !important;
  border-bottom: 1px solid #e8ecf0 !important;
  padding: 4px 0 !important;
}

span.flatpickr-weekday {
  color: var(--brand-navy) !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

/* Day grid */
.flatpickr-innerContainer {
  padding: 8px !important;
}

.flatpickr-day {
  border-radius: 9px !important;
  font-size: 0.865rem !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  transition: background 0.15s, color 0.15s !important;
  line-height: 36px !important;
  height: 36px !important;
  /* max-width removed — it caused 8 cells/row instead of 7, misaligning dates with day headers */
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: var(--brand-blue-light) !important;
  border-color: transparent !important;
  color: var(--brand-navy) !important;
}

/* Today indicator */
.flatpickr-day.today {
  border: 2px solid var(--brand-blue) !important;
  color: var(--brand-blue) !important;
  font-weight: 700 !important;
}

.flatpickr-day.today:hover {
  background: var(--brand-blue) !important;
  color: #fff !important;
  border-color: var(--brand-blue) !important;
}

/* Selected days */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
  background: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
}

/* Disabled days */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #c8c8cc !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* ---- Buttons ---- */
.btn-book {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-book:hover, .btn-book:focus {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.35);
}

.btn-book:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.btn-outline-primary:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

/* ---- Amenities Strip ---- */
.amenities-strip {
  background: #fff;
}

.amenity-item {
  padding: 12px 8px;
  border-radius: 10px;
  transition: background 0.18s;
  cursor: default;
}

.amenity-item:hover {
  background: var(--brand-blue-light);
}

/* ---- Stay Summary Bar ---- */
.stay-summary-bar {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ---- Steps Bar ---- */
.steps-bar {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

.booking-steps {
  display: flex;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #adb5bd;
  font-size: 0.875rem;
  font-weight: 500;
}

.step-item.active {
  color: var(--brand-navy);
}

.step-item.completed {
  color: #198754;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e9ecef;
  color: #6c757d;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--brand-navy);
  color: #fff;
}

.step-item.completed .step-num {
  background: #198754;
  color: #fff;
}

.step-connector {
  height: 2px;
  width: 36px;
  background: #dee2e6;
  margin: 0 10px;
  flex-shrink: 0;
}

/* ---- Amenities Bar (rooms page) ---- */
.amenities-bar {
  background: #f0f7ff;
  border-bottom: 1px solid #dce8f5;
}

/* ---- Room Cards ---- */
.room-card {
  border-radius: var(--radius-card) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
}

.room-img-wrapper {
  overflow: hidden;
  position: relative;
}

/* Base room card image */
.room-card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: none; /* hidden by default — JS/carousel shows active */
}
.room-card-img.active {
  display: block;
}
/* Single image (no carousel) shows normally */
.room-img-wrapper[data-photos="1"] .room-card-img {
  display: block;
}

.room-card:hover .room-card-img.active {
  transform: scale(1.04);
}
.room-img-wrapper[data-photos="1"]:hover .room-card-img {
  transform: scale(1.04);
}

/* Carousel nav arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 5;
  padding: 0;
  font-size: 0.8rem;
}
.carousel-arrow-prev { left: 10px; }
.carousel-arrow-next { right: 10px; }
.room-img-wrapper:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(0,0,0,0.7); }

/* Carousel dots */
.carousel-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  pointer-events: all;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.room-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}
.room-img-overlay .carousel-dots { pointer-events: all; }

.badge-room-badge {
  background: #F9A825;
  color: #212529;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
}

/* ---- Feature Badges ---- */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
}

/* ---- Room Selection Progress (multi-room — full-width bar) ---- */
.slot-progress-sentinel {
  height: 0;
  pointer-events: none;
}

.room-selection-progress {
  background: #fff8e6;
  border-top: 1px solid #f5c842;
  border-bottom: 1px solid #f5c842;
  padding: 10px 0;
  position: sticky;
  top: var(--stay-bar-h, 44px);
  z-index: 1010;
  transition: box-shadow 0.2s ease;
}

/* Stuck state — stronger shadow to lift above content */
.room-selection-progress.is-stuck {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.room-selection-progress.is-stuck .slot-progress-startover {
  display: none !important;
}

.room-slot-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.room-slot-done {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #a3cfbb;
}

.room-slot-active {
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  border: 1px solid #90caf9;
}

.room-slot-pending {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

/* ---- Card Header Custom ---- */
.card-header-custom {
  background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-navy));
  color: #fff;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}

/* ---- Checkout: Price Summary Card ---- */
.price-summary-card {
  border-radius: var(--radius-card) !important;
}

/* ---- Room Extras Modal ---- */
.extras-addon-item {
  transition: background 0.15s;
}
.extras-addon-item:hover {
  background: #f8f9fa;
}

.qty-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customize-room-btn {
  font-size: 0.8rem;
  font-weight: 500;
}

.extras-badge-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

/* ---- Confirmation Page ---- */
.confirmation-header {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-blue) 100%);
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.booking-ref-pill {
  border-radius: 50px;
}

.booking-ref {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-navy);
}

/* ---- Info Boxes ---- */
.info-box {
  transition: box-shadow 0.2s;
}

.info-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%);
  margin-top: auto;
}

/* ---- Special Deals Promo Strip (Home Page) ---- */
.deals-promo-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%);
  border-top: 1px solid #fcd34d;
  border-bottom: 1px solid #fcd34d;
  padding: 20px 0;
}
.deals-promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.deals-promo-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
}
.deals-promo-note {
  font-size: 0.8rem;
  color: #6b7280;
}
.deals-promo-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}
.deal-promo-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1.5px solid #fde68a;
  box-shadow: 0 2px 12px rgba(245,158,11,0.12);
  flex: 0 1 220px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.deal-promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.deal-promo-pct {
  font-size: 1.8rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
  margin-top: 4px;
}
.deal-promo-pct span {
  font-size: 1rem;
  font-weight: 600;
}
.deal-promo-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}
.deal-promo-cond {
  font-size: 0.78rem;
  color: #475569;
}
.deal-promo-valid {
  font-size: 0.72rem;
  color: #6b7280;
}
.deal-promo-badge {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
  width: fit-content;
}
@media (max-width: 575px) {
  .deal-promo-card { max-width: 100%; }
  .deals-promo-header { flex-direction: column; align-items: flex-start; }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 50px 0 40px;
    min-height: auto;
  }

  .room-card-img {
    height: 190px;
  }

  .step-connector {
    width: 20px;
    margin: 0 5px;
  }

}

@media (max-width: 575.98px) {
  .hotel-name {
    font-size: 1rem;
  }

  .booking-ref {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
}


/* ============================================================
   PAYMENT INFORMATION SECTION
   ============================================================ */

.payment-section {
  border: 1.5px solid #e8effa;
  border-radius: 12px;
  padding: 20px;
  background: #fafcff;
}

.payment-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Card brand badges */
.payment-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #d0d7e3;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #4a5568;
  background: #fff;
  min-width: 54px;
  height: 34px;
}
.payment-card-badge:first-child { color: #1a1f71; border-color: #1a1f71; }   /* VISA  */
.payment-card-badge:nth-child(2){ color: #eb001b; border-color: #eb001b; }   /* MC    */
.payment-card-badge:nth-child(3){ color: #016fd0; border-color: #016fd0; }   /* AMEX  */
.payment-card-badge:nth-child(4){ color: #f76f20; border-color: #f76f20; }   /* DISC  */

/* Stripe card element host */
.stripe-card-element-wrapper {
  padding: 13px 14px;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stripe-card-element-wrapper.StripeElement--focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
  outline: none;
}
.stripe-card-element-wrapper.StripeElement--invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.stripe-error-message {
  color: #dc3545;
  font-size: 0.82rem;
  min-height: 18px;
}

/* Deposit notice */
.deposit-notice ,#policiesCheckWrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Trust row */
.payment-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 10px;
}

/* ---- Payment Gateway Selector ---- */
.gateway-selector {
  display: flex;
  gap: 10px;
}

.gateway-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.gateway-btn:hover {
  border-color: #adb5bd;
  color: #343a40;
  background: #f8f9fa;
}

/* Logo image inside gateway buttons */
.gateway-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease;
}

/* Dim logo when button is inactive */
.gateway-btn:not(.active) .gateway-logo-img {
  opacity: 0.55;
  filter: grayscale(30%);
}

/* Full opacity + slight scale on active/hover */
.gateway-btn.active .gateway-logo-img,
.gateway-btn:hover .gateway-logo-img {
  opacity: 1;
  filter: none;
}

/* Stripe active — purple brand */
.gateway-btn.stripe-btn.active {
  border-color: #635bff;
  color: #635bff;
  background: #f5f4ff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

/* Square active — dark/black brand */
.gateway-btn.square-btn.active {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #f5f5f5;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.10);
}

/* Clover active — green brand */
.gateway-btn.clover-btn.active {
  border-color: #1da462;
  color: #1da462;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(29, 164, 98, 0.12);
}

/* Square card container */
.square-card-container {
  padding: 0;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  height: 46px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Constrain the Square-injected iframe */
.square-card-container iframe {
  width: 100% !important;
  height: 46px !important;
  border: none !important;
  display: block;
}

.square-card-container:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

/* Clover individual field wrappers */
.clover-field-wrapper {
  padding: 0;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  height: 46px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Constrain the Clover-injected iframe */
.clover-field-wrapper iframe {
  width: 100% !important;
  height: 46px !important;
  border: none !important;
  display: block;
}

.clover-field-wrapper:focus-within {
  border-color: #1da462;
  box-shadow: 0 0 0 3px rgba(29, 164, 98, 0.12);
}

/* Responsive: stack gateway buttons on very small screens */
@media (max-width: 400px) {
  .gateway-selector {
    flex-direction: column;
  }
}

/* ── Admin Panel — Payment Gateway Option Cards ── */
.gw-option-card {
  display: block;
  padding: 12px 14px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.gw-option-card:hover {
  border-color: #adb5bd;
  background: #f8f9fa;
}

.gw-option-card.gw-active {
  border-color: #198754;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.gw-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.hsb-real-input {
		  position: absolute;
		  top: 100%;       /* positions calendar below the segment */
		  left: 0;
		  opacity: 0;
		  pointer-events: none;
		  width: 1px;      /* 1px instead of 0 so flatpickr can calculate position */
		  height: 1px;
		  border: none;
		  padding: 0;
	}
	
	
#policiesCheckWrapper{
	
}	
	
	
	
	
	.toastify{max-width:100% !important;}

.toastify.tostifysuccess,.toastify.tostifyerror{
	background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%);
	border-radius:5px;
}

.toastify.tostifysuccess .fas,.toastify.tostifyerror .fas{
	margin-right:15px;
}
.toast-close{margin-left:15px;}