/**
 * Savana Rengganis - UI Components CSS
 * Uniform App Layout (2-Column Grid S1-S55, Centered Sticky Bar, Drawer & Modals)
 */

/* 55 Kavling Grid - Uniform 2 Columns */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Kavling Card Base */
.site-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
  user-select: none;
}

/* Card State: AVAILABLE (HIJAU) */
.site-card.available {
  border-color: var(--color-available-border);
  background: #ffffff;
}

.site-card.available:hover {
  border-color: var(--color-available);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.18);
}

.site-card.available .site-status-badge {
  background: var(--color-available-bg);
  color: var(--color-available);
  border: 1px solid var(--color-available-border);
}

/* Card State: OCCUPIED (MERAH/ABU) */
.site-card.occupied {
  border-color: var(--color-occupied-border);
  background: var(--color-occupied-bg);
  cursor: not-allowed;
  opacity: 0.85;
}

.site-card.occupied .site-status-badge {
  background: #fee2e2;
  color: var(--color-occupied-dark);
  border: 1px solid var(--color-occupied-border);
}

/* Card State: MAINTENANCE */
.site-card.maintenance {
  border-color: var(--color-maintenance-border);
  background: var(--color-maintenance-bg);
  cursor: not-allowed;
  opacity: 0.7;
}

.site-card.maintenance .site-status-badge {
  background: #e5e7eb;
  color: var(--color-maintenance);
  border: 1px solid var(--border-light);
}

/* Card State: SELECTED */
.site-card.selected {
  border-color: var(--primary-forest);
  background: #f0fdf4;
  box-shadow: 0 0 0 2.5px rgba(27, 67, 50, 0.25), var(--shadow-md);
  transform: translateY(-2px);
}

.site-card.selected .site-status-badge {
  background: var(--primary-forest);
  color: #ffffff;
  border-color: var(--primary-forest);
}

/* Card Header */
.site-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.site-code-badge {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-code-badge svg {
  color: var(--accent-gold);
}

.site-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Card Body */
.site-zone-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-meta-items {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Card Pricing */
.site-card-footer {
  border-top: 1px dashed var(--border-light);
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.site-price-val {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-forest);
}

.site-price-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: normal;
}

.site-select-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

/* Single Sticky Bottom Booking Summary Bar (Fixed to Viewport Bottom) */
.sticky-booking-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 100%;
  max-width: var(--app-max-width);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #bbf7d0;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12);
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 12px)) 1.25rem;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  pointer-events: none;
  visibility: hidden;
}

.sticky-booking-bar.active {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.sticky-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sticky-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sticky-bar-sites,
.sticky-sites-list {
  font-weight: 800;
  color: #0f2b1d;
  font-size: 0.98rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar-price,
.sticky-total-price {
  font-weight: 800;
  color: #047857;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-proceed-booking {
  background: #0f2b1d;
  color: #ffffff;
  border: none;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(15, 43, 29, 0.25);
  transition: var(--transition-smooth);
  box-sizing: border-box;
  touch-action: manipulation;
  white-space: nowrap;
}

.btn-proceed-booking:hover:not(:disabled) {
  background: #1b4332;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 43, 29, 0.35);
}

.btn-proceed-booking:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-proceed-booking:disabled {
  background: #cbd5e1;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

/* Modals (Higher z-index than sticky booking bar) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 28, 21, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--text-main);
  background: var(--bg-sand);
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-sand);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Customer Booking Form Elements */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1f2937;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #9ca3af;
  font-size: 0.88rem;
}

.form-input:focus {
  border-color: #1b4332;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
  background-color: #ffffff;
}

textarea.form-input {
  resize: vertical;
  min-height: 68px;
  line-height: 1.4;
}

/* Kavling Detail Modal Specifics */
.kavling-preview-box {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kavling-preview-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kavling-preview-zone {
  font-size: 0.8rem;
  color: #a7f3d0;
}

.facility-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

.facility-check {
  color: var(--primary-emerald);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.facility-item svg {
  color: var(--primary-emerald);
  flex-shrink: 0;
}

/* Price Calculation Box */
.price-breakdown-card {
  background: var(--bg-sand);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  margin-top: 1rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.breakdown-row.total-row {
  border-top: 1px dashed var(--border-light);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-forest);
}

/* Voucher / Success Modal */
.voucher-receipt {
  border: 2px dashed var(--primary-emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #f8fafc;
  text-align: center;
  position: relative;
}

.voucher-code-badge {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--primary-forest);
  color: #ffffff;
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  margin: 0.65rem 0;
}

/* Buttons */
.btn-primary {
  background: var(--primary-forest);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--primary-sage);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--bg-sand);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: #1eb956;
}

/* Button: Lihat Peta Kavling */
.btn-view-map {
  background: #ffffff;
  color: var(--primary-forest);
  border: 1.5px solid var(--color-available-border);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  width: 100%;
  box-shadow: var(--shadow-sm);
  margin-top: 0.35rem;
}

.btn-view-map:hover {
  background: var(--color-available-bg);
  border-color: var(--primary-emerald);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Map Modal Styling */
.map-modal-card {
  max-width: 680px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-modal-header {
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal-body {
  padding: 0;
  background: #0d281e;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.map-container-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(85vh - 120px);
  padding: 0.5rem;
  text-align: center;
}

.map-image-wrapper {
  display: inline-block;
  transition: width 0.2s ease-out;
}

.map-interactive-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: calc(85vh - 130px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: width 0.2s ease-out;
}

@media (max-width: 640px) {
  .map-modal-card {
    width: 96%;
    max-height: 94vh;
  }
  .map-interactive-img {
    max-height: calc(86vh - 130px);
  }
}

.map-controls-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(13, 40, 30, 0.95);
  color: #e2e8f0;
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
}

.map-zoom-buttons {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.btn-zoom {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-zoom:hover {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
}


/* Toasts */
.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 440px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toast {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-left: 4px solid var(--primary-emerald);
  animation: fadeIn 0.25s ease;
}

.toast.error {
  border-left-color: var(--color-occupied);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   ⛺ Multi-Step Tent Add-on Modal (V6 & V13 Options)
   ========================================================= */
.tent-step-view {
  animation: fadeIn 0.2s ease;
}

.tent-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.tent-option-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  gap: 0.4rem;
}

.tent-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.tent-option-card:hover {
  border-color: var(--primary-emerald);
  background: #f8fafc;
  transform: translateY(-1px);
}

.tent-option-card.active, .tent-option-card:active {
  border-color: var(--primary-forest);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.15);
}

.tent-option-card.tent-option-no-tent {
  border-color: #cbd5e1;
  background: #fdfefe;
}

.tent-option-card.tent-option-no-tent:hover {
  border-color: var(--primary-forest);
  background: #f0fdf4;
}

.tent-card-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.tent-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.tent-option-card.active .tent-card-radio, .tent-card-radio.selected {
  border-color: var(--primary-forest);
  background: var(--primary-forest);
}

.tent-option-card.active .tent-card-radio::after, .tent-card-radio.selected::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.tent-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.tent-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.tent-card-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.tent-card-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.1;
}

.tent-card-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* 3-Column Compact Tent Facilities */
.tent-facilities-block {
  margin-top: 0.1rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(27, 67, 50, 0.15);
  width: 100%;
}

.tent-facilities-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.tent-facilities-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.18rem 0.35rem;
  width: 100%;
}

.tent-facility-col {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.tent-facility-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: var(--text-main);
  line-height: 1.25;
}

.tent-fac-check {
  color: var(--primary-emerald);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   Mobile Compact 2-Column Kavling Cards (S1–S55)
   - Height reduced by ~25-30%
   - Reduced padding & tighter internal spacing
   - 2-Column grid with compact vertical gap
   - Retains all card metadata & premium Savana aesthetic
   ========================================================= */
@media (max-width: 640px) {
  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .site-card {
    padding: 0.55rem 0.55rem 0.45rem;
    border-radius: 10px;
    border-width: 1.2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .site-card-header {
    margin-bottom: 0.2rem;
  }

  .site-code-badge {
    font-size: 0.95rem;
    font-weight: 800;
    gap: 0.25rem;
  }

  .site-code-badge svg {
    width: 15px;
    height: 15px;
  }

  .site-status-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
  }

  .site-zone-name {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
    line-height: 1.15;
  }

  .site-meta-items {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    line-height: 1;
    gap: 0.35rem;
  }

  .site-meta-item svg {
    width: 11px;
    height: 11px;
  }

  .site-card-footer {
    padding-top: 0.35rem;
    margin-top: 0.05rem;
    border-top: 1px dashed var(--border-light);
    align-items: center;
  }

  .site-price-val {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .site-price-unit {
    font-size: 0.58rem;
    line-height: 1;
  }

  .site-select-indicator {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    white-space: nowrap;
  }

  .site-card.selected .site-select-indicator {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
  }
}

.btn-stepper {
  user-select: none;
  touch-action: manipulation;
}

.btn-stepper:hover {
  background: #e5e7eb !important;
  border-color: #9ca3af !important;
}

.btn-stepper:active {
  background: #d1d5db !important;
  transform: scale(0.95);
}

/* ==========================================================================
   PER-SITE TENT SELECTION STYLES (v4.2.0)
   ========================================================================== */
.site-tent-config-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
}

.site-tent-config-card:hover {
  border-color: #cbd5e1;
}

.site-tent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--border-light);
}

.site-tent-badge {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary-forest);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-tent-base-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.site-tent-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-tent-opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.site-tent-opt-item:hover {
  border-color: var(--primary-emerald);
  background: #ffffff;
}

.site-tent-opt-item.active {
  border-color: var(--primary-forest);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(27, 67, 50, 0.15);
}

.site-tent-opt-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-tent-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.site-tent-opt-item.active .site-tent-radio-dot {
  border-color: var(--primary-forest);
  background: var(--primary-forest);
}

.site-tent-opt-item.active .site-tent-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.site-tent-opt-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.site-tent-opt-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.site-tent-opt-price {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.site-tent-opt-item.active .site-tent-opt-price {
  color: var(--primary-forest);
}

.tent-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.2rem 0;
  color: var(--text-main);
}

.tent-breakdown-row span:first-child {
  color: var(--text-muted);
}

/* =========================================================
   👥 Per-Site Guest Capacity & Tier Selection (v4.3.0)
   ========================================================= */
.site-guest-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: var(--transition-smooth, all 0.2s);
}

.site-guest-card:hover {
  border-color: #cbd5e1;
}

.site-guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.site-guest-badge {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary-forest, #2d6a4f);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-guest-tent-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-main, #334155);
}

.site-guest-tent-tag.tent-v6 {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.site-guest-tent-tag.tent-v13 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.site-guest-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
}

.btn-guest-step {
  width: 38px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-light, #cbd5e1);
  background: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #334155);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-guest-step:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-guest-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.input-guest-val {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  height: 36px;
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: 6px;
  width: 100%;
  max-width: 100px;
  background: #ffffff;
  color: var(--text-main, #0f172a);
}

.v13-tier-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.v13-tier-pill {
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: 6px;
  padding: 0.35rem 0.25rem;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s;
}

.v13-tier-pill:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.v13-tier-pill.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 0 0 1px #2563eb;
}

.v13-tier-guests {
  font-size: 0.78rem;
  font-weight: 700;
}

.v13-tier-rate {
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
}

.v13-tier-pill.active .v13-tier-rate {
  color: #1d4ed8;
}

.site-guest-subtotal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
}

.site-guest-subtotal-val {
  font-weight: 700;
  color: var(--primary-forest, #2d6a4f);
  font-size: 0.82rem;
}


/* ==========================================================================
   v6.6.0 — Compact 4-Column Kavling Seat-Selection Grid
   ========================================================================== */

/* Override 2-col grid to 4-col */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

/* New compact card */
.site-card {
  background: #fff;
  border-radius: 12px;
  padding: 0 0 0.55rem;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  gap: 0.22rem;
  min-height: 0;
  overflow: hidden;
}

.site-card:active { transform: scale(0.96); }

/* ── Status dot (top-right) ───────────────────────────── */
.sc-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sc-dot-green { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
.sc-dot-red   { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }
.sc-dot-blue  { background: #1b4332; box-shadow: 0 0 0 2px rgba(27,67,50,0.2); }

/* ── Tent photo thumbnail ─────────────────────────────── */
.sc-tent-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  margin-bottom: 0.28rem;
  position: relative;
  background: #e2e8f0; /* placeholder while image loads */
}

.sc-tent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Occupied: desaturate + darken */
.sc-tent-img--occupied {
  filter: saturate(0.35) brightness(0.75);
}

/* Selected: slight green tint overlay via brightness boost */
.sc-tent-img--selected {
  filter: saturate(1.1) brightness(1.05);
}

/* ── Code label ──────────────────────────────────────── */
.sc-code {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

/* ── Status badge (compact, uppercase, pill) ─────────── */
.sc-status-badge {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 0.12rem 0.38rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

/* ── Available state ─────────────────────────────────── */
.site-card.available {
  border-color: #d1fae5;
  background: #fff;
}

.site-card.available:hover {
  border-color: #10b981;
  box-shadow: 0 4px 10px rgba(16,185,129,0.15);
  transform: translateY(-2px);
}

.site-card.available:hover .sc-tent-img {
  transform: scale(1.04);
}

.site-card.available .sc-status-badge {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ── Occupied state ──────────────────────────────────── */
.site-card.occupied {
  border-color: #fecaca;
  background: #fef9f9;
  cursor: pointer;
  opacity: 0.9;
}

.site-card.occupied:hover {
  border-color: #f87171;
  box-shadow: 0 4px 10px rgba(239,68,68,0.12);
  transform: translateY(-1px);
  opacity: 1;
}

.site-card.occupied .sc-status-badge {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Maintenance state ───────────────────────────────── */
.site-card.maintenance {
  border-color: #e5e7eb;
  background: #f9fafb;
  cursor: not-allowed;
  opacity: 0.65;
}



.site-card.maintenance .sc-status-badge {
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* ── Selected state ──────────────────────────────────── */
.site-card.selected {
  border-color: var(--primary-forest);
  background: #f0fdf4;
  box-shadow: 0 0 0 2.5px rgba(27,67,50,0.25), 0 3px 8px rgba(27,67,50,0.1);
  transform: translateY(-2px);
}



.site-card.selected .sc-status-badge {
  background: var(--primary-forest);
  color: #fff;
  border-color: var(--primary-forest);
}

/* ── Count row ───────────────────────────────────────── */
.kavling-count-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0 0.4rem;
  text-align: center;
}

.kavling-count-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-load-more {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: var(--primary-forest);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn-load-more:hover {
  background: #f0fdf4;
  border-color: var(--primary-emerald);
  box-shadow: 0 3px 8px rgba(16,185,129,0.12);
}

/* ── Bottom Action Bar ───────────────────────────────── */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 480px;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

/* Hide bottom action bar when sticky booking bar is shown (has kavling selected) */
#stickyBookingBar.active ~ .bottom-action-bar,
.sticky-booking-bar.active + .bottom-action-bar {
  display: none;
}

.bab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s;
  flex: 1;
  max-width: 120px;
}

.bab-btn:hover { background: #f0fdf4; }
.bab-btn:active { background: #dcfce7; }

.bab-icon {
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.bab-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Main container bottom padding to avoid overlap with action bar */
.main-container {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* Desktop: 6-col */
@media (min-width: 520px) {
  .sites-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
  }
}
