/* ===================================================
   BOAT BOOKING SYSTEM v11 — Frontend CSS
   Full responsive: mobile / tablet / laptop / desktop
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bb-primary:   #af9556;
  --bb-accent:    #8c7440;
  --bb-success:   #27ae60;
  --bb-warning:   #f39c12;
  --bb-danger:    #e74c3c;
  --bb-text:      #1e2a38;
  --bb-muted:     #7a8a9a;
  --bb-border:    #e0e8f4;
  --bb-bg:        #f4f7fb;
  --bb-card:      #ffffff;
  --bb-shadow:    0 2px 20px rgba(175,149,86,.10);
  --bb-shadow-lg: 0 8px 40px rgba(175,149,86,.15);
  --bb-radius:    16px;
  --bb-radius-sm: 10px;
  --bb-radius-xs: 6px;
}

/* ── Reset ── */
.bb-booking-wrap,
.bb-booking-wrap * {
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ── Remixicon fix ── */
.bb-booking-wrap i[class^="ri-"],
.bb-booking-wrap i[class*=" ri-"] {
  font-family: 'remixicon' !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
}

/* ── Outer Wrapper ── */
.bb-booking-wrap {
  width: 100%;
  background: var(--bb-bg);
  color: var(--bb-text);
}

/* ── Inner Container ── */
.bb-booking-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.bb-booking-header { margin-bottom: 24px; }
.bb-booking-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--bb-primary);
  margin: 0 0 6px;
}
.bb-booking-subtitle {
  color: var(--bb-muted);
  margin: 0 0 20px;
  font-size: 14px;
}

/* ══════════════════════════════════════════
   DATE BAR
══════════════════════════════════════════ */
.bb-date-bar {
  display: flex;
  align-items: stretch;
  background: var(--bb-card);
  border: 2px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow);
  overflow: hidden;
}
.bb-date-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 16px 22px;
  border-right: 1px solid var(--bb-border);
  cursor: pointer;
  transition: background .15s;
  min-width: 0;
}
.bb-date-field:hover { background: #fdf8ec; }
.bb-date-field > i {
  font-size: 22px;
  color: var(--bb-primary);
  flex-shrink: 0;
}
.bb-date-field label {
  display: block;
  font-size: 10px;
  color: var(--bb-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.bb-date-input {
  border: none !important;
  outline: none !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--bb-text);
  cursor: pointer;
  background: transparent !important;
  width: 100%;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
}
.bb-date-divider {
  padding: 0 10px;
  color: var(--bb-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.bb-date-nights {
  background: var(--bb-primary);
  color: #fff;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Availability notice ── */
.bb-avail-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf8ec;
  border: 1px solid #e8d99a;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #7a6020;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   MAIN BODY — 2-column grid
══════════════════════════════════════════ */
.bb-booking-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

/* ══════════════════════════════════════════
   BOAT CARDS
══════════════════════════════════════════ */
.bb-boats-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.bb-boat-card {
  background: var(--bb-card);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.bb-boat-card:hover { box-shadow: var(--bb-shadow-lg); }
.bb-boat-card.bb-unavailable { opacity: .55; pointer-events: none; }

/* Image */
.bb-boat-img-wrap {
  position: relative;
  overflow: hidden;
  background: #e8eef5;
}
.bb-boat-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
  min-height: 200px;
}
.bb-boat-card:hover .bb-boat-main-img { transform: scale(1.05); }

.bb-img-count {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(10,20,40,.70);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.bb-badge-warn {
  position: absolute; top: 10px; left: 10px;
  background: #fff8e1; color: #7d5900;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid #ffd54f;
  display: flex; align-items: center; gap: 5px;
}
.bb-badge-unavail {
  position: absolute; top: 10px; left: 10px;
  background: #fee2e2; color: #991b1b;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.bb-avail-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.60);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; gap: 8px; font-size: 13px; font-weight: 700;
  backdrop-filter: blur(3px); z-index: 3;
}
.bb-avail-overlay i { font-size: 30px; }

/* Card info */
.bb-boat-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.bb-boat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.bb-boat-name {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  color: var(--bb-text);
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}
.bb-boat-price-wrap { text-align: right; flex-shrink: 0; }
.bb-boat-price {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  color: var(--bb-text);
  display: block;
}
.bb-per-night {
  font-size: 11px; color: var(--bb-primary);
  font-style: italic; font-weight: 600; display: block;
}

/* Availability pill */
.bb-avail-pill { margin-bottom: 2px; }
.bb-pill-avail {
  display: inline-flex; align-items: center; gap: 5px;
  background: #d4edda; color: #155724;
  border: 1px solid #b8dfc4; border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
}
.bb-pill-limited {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff3cd; color: #856404;
  border: 1px solid #ffd54f; border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
}
.bb-pill-unavail {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fca5a5; border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
}

/* Description */
.bb-boat-desc { font-size: 13px; color: var(--bb-muted); line-height: 1.7; }
.bb-boat-desc p { margin: 0 0 5px; }
.bb-see-more-btn {
  background: none; border: none; color: var(--bb-primary);
  cursor: pointer; font-size: 13px; padding: 0;
  font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  text-decoration: underline; text-underline-offset: 2px;
  font-family: 'Poppins', sans-serif !important;
}
.bb-see-more-btn:hover { color: var(--bb-accent); }

/* Amenities */
.bb-amenities-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-amenity-icon {
  width: 34px; height: 34px; border-radius: var(--bb-radius-xs);
  background: #edf2fd; color: var(--bb-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: help;
  transition: background .15s, color .15s;
  border: 1px solid #d8e6fb;
}
.bb-amenity-icon:hover { background: var(--bb-primary); color: #fff; }

/* ── Select Row (Unit + Meal) ── */
.bb-select-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1.5px solid var(--bb-border);
  flex-wrap: wrap;
}
.bb-select-room-wrap {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.bb-select-arrows {
  color: var(--bb-primary); font-size: 10px;
  display: flex; letter-spacing: -4px; margin-right: 2px;
}
.bb-select-room-wrap label,
.bb-meal-plan-wrap label {
  font-size: 11px; font-weight: 700; color: var(--bb-text);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .4px;
}
.bb-qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius-xs); overflow: hidden;
}
.bb-qty-btn {
  width: 32px; height: 32px; border: none;
  background: #f0f4f8; cursor: pointer; color: var(--bb-primary);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; font-size: 16px;
}
.bb-qty-btn:hover { background: var(--bb-primary); color: #fff; }
.bb-qty-val { min-width: 32px; text-align: center; font-weight: 700; font-size: 14px; padding: 0 4px; }

.bb-meal-plan-wrap {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 200px;
}
.bb-select-wrap { position: relative; flex: 1; min-width: 0; }
.bb-sel-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--bb-primary); font-size: 15px;
  pointer-events: none; z-index: 1;
}
.bb-meal-select {
  border: 1.5px solid var(--bb-border) !important;
  border-radius: var(--bb-radius-xs) !important;
  padding: 7px 28px 7px 32px !important;
  font-size: 13px; font-weight: 600;
  background: #fff !important; cursor: pointer;
  width: 100%; color: var(--bb-text);
  outline: none !important;
  font-family: 'Poppins', sans-serif !important;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c7440' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  box-shadow: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.bb-meal-select:focus { border-color: var(--bb-primary) !important; }

/* ── Room Detail Rows ── */
.bb-room-details {
  background: linear-gradient(135deg, #f8faff 0%, #edf3fd 100%);
  border: 1.5px solid #dce9fb;
  border-radius: var(--bb-radius-sm);
  padding: 16px; margin-top: 6px;
}
.bb-room-row-item {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr) auto;
  gap: 10px;
  align-items: end;
  background: #fff;
  border: 1px solid #e4edfb;
  border-radius: var(--bb-radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 8px rgba(175,149,86,.06);
}
.bb-room-row-item:last-child { margin-bottom: 0; }
.bb-rr-label {
  font-size: 12px; font-weight: 800; color: var(--bb-primary);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
  padding-bottom: 4px; grid-row: 1 / 3;
}
.bb-rr-field label {
  display: block; font-size: 9.5px; color: var(--bb-muted);
  margin-bottom: 4px; text-transform: uppercase;
  letter-spacing: .5px; font-weight: 600;
}
.bb-rr-select {
  width: 100%;
  border: 1.5px solid var(--bb-border) !important;
  border-radius: var(--bb-radius-xs) !important;
  padding: 7px 22px 7px 9px !important;
  font-size: 13px; font-weight: 600;
  background: #fff !important; color: var(--bb-text);
  font-family: 'Poppins', sans-serif !important;
  cursor: pointer; outline: none !important; box-shadow: none !important;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238c7440' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
}
.bb-rr-select:focus { border-color: var(--bb-primary) !important; }

/* Price display in room row */
.bb-rr-price {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px;
  min-width: 110px;
}
.bb-rr-base-price  { font-size: 11px; color: #888; white-space: nowrap; }
.bb-rr-meal-price  { font-size: 11px; color: #27ae60; font-weight: 600; white-space: nowrap; }
.bb-rr-total-price { font-size: 13px; font-weight: 700; color: var(--bb-primary); white-space: nowrap; }

.bb-book-now-row { margin-top: 14px; display: flex; justify-content: flex-end; }
.bb-book-now-btn {
  background: linear-gradient(135deg, #af9556 0%, #8c7440 100%);
  color: #fff; border: none;
  border-radius: var(--bb-radius-sm);
  padding: 12px 30px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: opacity .2s, transform .15s;
  font-family: 'Poppins', sans-serif !important;
  box-shadow: 0 4px 16px rgba(175,149,86,.3);
}
.bb-book-now-btn:hover { opacity: .9; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   SUMMARY PANEL (sticky right column)
══════════════════════════════════════════ */
.bb-summary-panel {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-primary) transparent;
}
.bb-summary-panel::-webkit-scrollbar { width: 4px; }
.bb-summary-panel::-webkit-scrollbar-thumb { background: var(--bb-primary); border-radius: 4px; }

.bb-summary-section {
  background: var(--bb-card);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
}
.bb-summary-head {
  background: linear-gradient(135deg, #af9556 0%, #8c7440 100%);
  color: #fff; padding: 14px 18px; margin: 0;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

/* Promo */
.bb-promo-row { display: flex; gap: 8px; padding: 14px; }
.bb-promo-row input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--bb-border) !important;
  border-radius: var(--bb-radius-xs) !important;
  padding: 9px 12px !important; font-size: 13px; font-weight: 600;
  outline: none !important; font-family: 'Poppins', sans-serif !important;
  text-transform: uppercase; color: var(--bb-text);
  background: #fff !important; box-shadow: none !important;
}
.bb-promo-row input:focus { border-color: var(--bb-primary) !important; }
.bb-promo-row button {
  background: linear-gradient(135deg, #af9556, #8c7440);
  color: #fff; border: none; border-radius: var(--bb-radius-xs);
  padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
  font-family: 'Poppins', sans-serif !important; flex-shrink: 0;
}
.bb-promo-msg {
  margin: 0 14px 12px; font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--bb-radius-xs);
}
.bb-promo-msg.success { background: #d4edda; color: #155724; border: 1px solid #b8dfc4; }
.bb-promo-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f0b8be; }

/* Check-in/out row in summary */
.bb-checkinout-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fdf8ec;
  border-bottom: 1.5px solid var(--bb-border);
  gap: 8px;
}
.bb-co-item { display: flex; flex-direction: column; min-width: 0; }
.bb-co-right { text-align: right; }
.bb-co-label {
  font-size: 9px; text-transform: uppercase; color: var(--bb-muted);
  letter-spacing: .7px; font-weight: 600; margin-bottom: 2px; white-space: nowrap;
}
.bb-co-item strong { font-size: 13px; color: var(--bb-text); font-weight: 800; }
.bb-nights-pill {
  background: var(--bb-primary); color: #fff; border-radius: 20px;
  padding: 4px 10px; font-size: 10px; font-weight: 700; white-space: nowrap;
  flex-shrink: 0;
}

/* Summary items */
.bb-sum-items { padding: 12px 16px; min-height: 50px; }
.bb-sum-empty { text-align: center; color: var(--bb-muted); padding: 18px 0; }
.bb-sum-empty i { font-size: 28px; display: block; margin-bottom: 6px; opacity: .4; }
.bb-sum-empty p { font-size: 12px; margin: 0; }
.bb-sum-boat-item {
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px dashed var(--bb-border);
}
.bb-sum-boat-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bb-sum-boat-name { font-weight: 800; font-size: 12px; color: var(--bb-text); margin-bottom: 2px; }
.bb-sum-mp-label  { font-size: 10px; color: var(--bb-muted); margin: 0 0 6px; }
.bb-sum-room-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 4px; font-size: 10.5px; color: var(--bb-muted);
  padding: 2px 0; align-items: center;
}
.bb-sr-label  { font-weight: 700; color: var(--bb-primary); font-size: 10px; }
.bb-sr-guests { font-size: 10px; color: var(--bb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-sr-price  { font-weight: 700; color: var(--bb-text); white-space: nowrap; font-size: 11px; }

/* Totals */
.bb-sum-totals { padding: 4px 16px 14px; border-top: 1.5px solid var(--bb-border); }
.bb-sum-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 12px; border-bottom: 1px solid #f0f4f8; font-weight: 500;
}
.bb-sum-row:last-child { border-bottom: none; }
.bb-discount-val { color: var(--bb-success); font-weight: 800; }
.bb-grand-row {
  background: linear-gradient(135deg, #af9556 0%, #8c7440 100%);
  color: #fff; border-radius: var(--bb-radius-xs);
  padding: 12px 14px !important; margin-top: 8px;
  font-weight: 700; font-size: 13px; border: none;
}
.bb-grand-val { color: #fff; font-size: 15px; font-weight: 900; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.bb-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.bb-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(10,20,50,.55); backdrop-filter: blur(4px);
}
.bb-modal-box {
  position: relative; background: #fff;
  border-radius: var(--bb-radius); width: 100%;
  max-width: 700px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: bbSlideUp .22s cubic-bezier(.22,1,.36,1);
}
.bb-detail-box { max-width: 800px; }
@keyframes bbSlideUp {
  from { opacity:0; transform: translateY(30px) scale(.98); }
  to   { opacity:1; transform: none; }
}
.bb-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1.5px solid var(--bb-border);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.bb-modal-header h3 {
  margin: 0; font-size: 16px; color: var(--bb-primary);
  display: flex; align-items: center; gap: 8px; font-weight: 800;
}
.bb-modal-close {
  background: #f0f4f8; border: 1.5px solid var(--bb-border);
  font-size: 18px; cursor: pointer; color: var(--bb-muted);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; font-family: 'remixicon' !important;
  flex-shrink: 0;
}
.bb-modal-close:hover { background: var(--bb-danger); color: #fff; }
.bb-modal-body  { padding: 0 24px 20px; }
.bb-modal-footer {
  padding: 14px 24px; border-top: 1.5px solid var(--bb-border);
  display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: #fff; flex-wrap: wrap;
}

/* Detail modal gallery */
.bb-detail-gallery {
  padding: 20px 0 16px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.bb-detail-main-img {
  flex: 0 0 340px; border-radius: var(--bb-radius-sm);
  overflow: hidden; max-width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.bb-detail-main-img img { width: 100%; height: 230px; object-fit: cover; display: block; }
.bb-detail-thumbs { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 80px; }
.bb-detail-thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-detail-thumb {
  width: 80px; height: 60px; border-radius: var(--bb-radius-xs);
  overflow: hidden; cursor: pointer;
  border: 2.5px solid transparent; transition: border-color .15s;
}
.bb-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-detail-thumb:hover, .bb-detail-thumb.active { border-color: var(--bb-primary); }
.bb-detail-desc { font-size: 13.5px; color: #555; line-height: 1.75; margin: 8px 0 20px; }
.bb-detail-facilities h4 {
  font-size: 15px; font-weight: 800; color: var(--bb-text);
  margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--bb-border);
}
.bb-facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bb-fac-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--bb-text); padding: 6px 4px; font-weight: 500;
}
.bb-fac-item i { color: var(--bb-success); font-size: 16px; flex-shrink: 0; }

/* Booking confirm modal */
.bb-modal-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.bb-modal-detail-table tr td { padding: 9px 8px; border-bottom: 1px solid #f0f4f8; }
.bb-modal-detail-table tr:last-child td { border-bottom: none; }
.bb-modal-detail-table td:first-child { color: var(--bb-muted); width: 42%; font-weight: 500; }
.bb-modal-detail-table td:last-child  { font-weight: 700; }
.bb-modal-section-head {
  font-weight: 800; color: var(--bb-primary); font-size: 12px;
  padding: 14px 0 6px; display: flex; align-items: center; gap: 7px;
  border-bottom: 1.5px solid var(--bb-border); margin-bottom: 2px;
}
.bb-modal-grand {
  background: linear-gradient(135deg, #af9556, #8c7440); color: #fff;
  border-radius: var(--bb-radius-xs); padding: 13px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 15px; margin-top: 10px;
}
.bb-modal-promo {
  background: #d4edda; color: #155724; border-radius: var(--bb-radius-xs);
  padding: 8px 12px; font-size: 12px; margin: 8px 0;
  display: flex; align-items: center; gap: 6px; font-weight: 600;
  border: 1px solid #b8dfc4;
}

/* Buttons */
.bb-btn-primary, .bb-btn-secondary {
  padding: 10px 20px; border-radius: var(--bb-radius-xs);
  font-size: 13px; font-weight: 700; cursor: pointer; border: none;
  display: flex; align-items: center; gap: 7px; transition: .15s;
  font-family: 'Poppins', sans-serif !important;
}
.bb-btn-primary {
  background: linear-gradient(135deg, #af9556, #8c7440);
  color: #fff; box-shadow: 0 4px 14px rgba(175,149,86,.3);
}
.bb-btn-primary:hover { opacity: .88; }
.bb-btn-secondary { background: var(--bb-bg); color: var(--bb-text); border: 1.5px solid var(--bb-border); }
.bb-btn-secondary:hover { background: var(--bb-border); }

/* Misc */
.bb-empty-boats { text-align: center; padding: 50px 20px; color: var(--bb-muted); }
.bb-empty-boats i { font-size: 48px; display: block; margin-bottom: 10px; opacity: .3; }
.bb-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1e2a38; color: #fff; padding: 12px 22px;
  border-radius: 30px; font-size: 13px; font-weight: 600;
  z-index: 9999999; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 30px rgba(0,0,0,.25); max-width: 90vw;
  white-space: normal; text-align: center;
  font-family: 'Poppins', sans-serif !important;
}
.bb-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: bbSpin .65s linear infinite;
  display: inline-block; flex-shrink: 0;
}
@keyframes bbSpin { to { transform: rotate(360deg); } }
.bb-spin-icon { animation: bbSpin .8s linear infinite; }

/* Boat grid shortcode */
.bb-boat-grid { display: grid; grid-template-columns: repeat(var(--bb-cols, 3), 1fr); gap: 20px; }
.bb-grid-card { background: #fff; border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); }
.bb-grid-card img { width: 100%; height: 185px; object-fit: cover; display: block; }
.bb-grid-card-body { padding: 16px; }
.bb-grid-card-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.bb-grid-price { font-size: 16px; font-weight: 800; color: var(--bb-primary); }
.bb-grid-price span { font-size: 12px; font-weight: 400; color: var(--bb-muted); }

/* Search bar widget */
.bb-search-bar-widget {
  display: flex; align-items: center; gap: 0; flex-wrap: nowrap;
  background: #fff; border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); overflow: hidden;
}
.bb-search-bar-widget .bb-date-field { border-right: 1px solid var(--bb-border); flex: 1; }
.bb-search-bar-widget .bb-date-divider { padding: 0 8px; }
.bb-search-btn {
  background: linear-gradient(135deg, #af9556, #8c7440);
  color: #fff; border: none; padding: 0 24px; height: 100%; min-height: 60px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-family: 'Poppins', sans-serif !important; white-space: nowrap;
  flex-shrink: 0;
}

/* Date booked state */
.bb-boat-card.bb-date-unavailable { opacity: .75; }
.bb-boat-card.bb-date-unavailable .bb-qty-plus {
  background: #e0e0e0 !important; color: #aaa !important; cursor: not-allowed !important;
}

/* Flatpickr input */
.bb-date-input, .flatpickr-input {
  cursor: pointer !important;
  pointer-events: auto !important;
}
.bb-date-field * { cursor: pointer; }

/* Flatpickr calendar gold theme */
.flatpickr-calendar {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.18) !important;
  border: 1px solid #e0d4b0 !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--bb-primary, #af9556) !important;
  border-color: var(--bb-primary, #af9556) !important;
}
.flatpickr-day.inRange { background: rgba(175,149,86,.15) !important; border-color: rgba(175,149,86,.15) !important; }
.flatpickr-day:hover   { background: rgba(175,149,86,.2) !important; }
.flatpickr-months .flatpickr-month { background: var(--bb-primary, #af9556) !important; color: #fff !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { color: #fff; background: transparent; }
.flatpickr-current-month input.cur-year { color: #fff; }
.flatpickr-weekdays { background: rgba(175,149,86,.08); }
span.flatpickr-weekday { color: var(--bb-primary, #af9556); font-weight: 600; }
.flatpickr-day.today  { border-color: var(--bb-primary, #af9556) !important; }

/* Thank you */
.bb-thankyou-section {
  background: #fff; border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius); padding: 24px; margin: 20px 0;
  box-shadow: var(--bb-shadow);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  1060px
══════════════════════════════════════════ */
@media (max-width: 1060px) {
  .bb-booking-body { grid-template-columns: 1fr 310px; gap: 20px; }
  .bb-boat-card   { grid-template-columns: 220px 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL LAPTOP  900px
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .bb-booking-body { grid-template-columns: 1fr 280px; gap: 16px; }
  .bb-boat-card   { grid-template-columns: 190px 1fr; }
  .bb-boat-info   { padding: 16px 18px; }
  .bb-room-row-item { grid-template-columns: auto repeat(3, 1fr) auto; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT  768px
   Summary moves below boats
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .bb-booking-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Summary goes BELOW boats on tablet */
  .bb-boats-list    { order: 1; }
  .bb-summary-panel {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
  }

  /* Boat card: stacks image top, info below */
  .bb-boat-card { grid-template-columns: 1fr; }
  .bb-boat-img-wrap { min-height: 220px; max-height: 260px; }
  .bb-boat-main-img { min-height: 220px; max-height: 260px; }

  /* Select row — wrap nicely */
  .bb-select-row { gap: 10px; }
  .bb-meal-plan-wrap { min-width: 160px; }

  /* Room row — 2x2 grid */
  .bb-room-row-item { grid-template-columns: 1fr 1fr; }
  .bb-rr-label { grid-column: 1 / -1; grid-row: auto; padding-bottom: 2px; }
  .bb-rr-price { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-start; }
  .bb-rr-base-price, .bb-rr-meal-price, .bb-rr-total-price { white-space: nowrap; }

  .bb-book-now-btn { width: 100%; justify-content: center; }

  /* Date bar */
  .bb-date-bar { flex-wrap: wrap; }
  .bb-date-field { min-width: calc(50% - 30px); flex: 1 1 40%; border-right: none; border-bottom: 1px solid var(--bb-border); }
  .bb-date-divider { display: none; }
  .bb-date-nights { width: 100%; justify-content: center; border-top: 1px solid var(--bb-border); padding: 10px 22px; }

  /* Search bar */
  .bb-search-bar-widget { flex-wrap: wrap; padding: 0; border-radius: var(--bb-radius-sm); }
  .bb-search-bar-widget .bb-date-field { flex: 1 1 40%; border-bottom: 1px solid var(--bb-border); border-right: none; }
  .bb-search-bar-widget .bb-date-divider { display: none; }
  .bb-search-btn { width: 100%; justify-content: center; min-height: 48px; }

  /* Modal */
  .bb-modal-box { max-width: 100%; border-radius: var(--bb-radius-sm); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .bb-booking-inner { padding: 14px 12px; }

  /* Date bar */
  .bb-date-field { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--bb-border); padding: 12px 16px; }
  .bb-date-input { font-size: 14px; }

  /* Boat card info */
  .bb-boat-img-wrap  { min-height: 180px; max-height: 210px; }
  .bb-boat-info      { padding: 14px; gap: 10px; }
  .bb-boat-header-row { flex-direction: column; gap: 6px; }
  .bb-boat-price-wrap { text-align: left; }

  /* Select row */
  .bb-select-row      { flex-direction: column; align-items: stretch; gap: 10px; }
  .bb-select-room-wrap { justify-content: space-between; }
  .bb-meal-plan-wrap  { min-width: auto; width: 100%; }
  .bb-select-wrap     { flex: 1; }

  /* Room rows */
  .bb-room-row-item { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }

  /* Summary panel — full width cards */
  .bb-summary-panel { gap: 12px; }
  .bb-checkinout-row { flex-wrap: wrap; gap: 6px; }
  .bb-co-item strong { font-size: 12px; }

  /* Modals */
  .bb-modal { padding: 8px; }
  .bb-modal-header { padding: 14px 16px; }
  .bb-modal-header h3 { font-size: 15px; }
  .bb-modal-body   { padding: 0 16px 16px; }
  .bb-modal-footer { padding: 12px 16px; flex-direction: column-reverse; }
  .bb-btn-primary, .bb-btn-secondary { width: 100%; justify-content: center; }

  /* Gallery in modal */
  .bb-detail-main-img  { flex: 0 0 100%; max-width: 100%; }
  .bb-detail-main-img img { height: 200px; }
  .bb-detail-thumbs    { flex-direction: row; flex-wrap: wrap; }
  .bb-detail-thumb     { width: 70px; height: 52px; }
  .bb-facilities-grid  { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* Boat grid */
  .bb-boat-grid { grid-template-columns: 1fr; }

  /* Summary totals */
  .bb-grand-row { padding: 11px 12px !important; }
  .bb-grand-val { font-size: 14px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — EXTRA SMALL  360px
══════════════════════════════════════════ */
@media (max-width: 360px) {
  .bb-booking-inner { padding: 10px 8px; }
  .bb-room-row-item { grid-template-columns: 1fr; }
  .bb-rr-price { flex-direction: column; align-items: flex-start; }
  .bb-facilities-grid { grid-template-columns: 1fr; }
  .bb-nights-pill { font-size: 9px; padding: 3px 8px; }
}
