/* ============================================================
   DigiBoard TN - Main Stylesheet
   Theme: Green Emerald | Modern Clean
============================================================ */

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  --emerald-gradient-btn: linear-gradient(135deg, #047857 0%, #059669 100%);
  --dark: #0f172a;
  --dark-2: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 7px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; width: 100%;
  font-family: var(--font-body);
  background: #f8fafc;
  color: var(--dark);
  overflow-x: hidden;
}

/* Map page needs full-height overflow hidden - applied via .map-page class */
body.map-page {
  overflow: hidden;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}

.brand-icon { font-size: 22px; }

.brand-name {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-search { flex: 1; max-width: 260px; }

.district-select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.district-select:focus { border-color: var(--green-500); }

.nav-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px;
  background: var(--emerald-gradient-btn);
  color: white;
  border: none; border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(5,150,105,0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.92; transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(5,150,105,0.45);
}

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

.btn-primary.w-full { width: 100%; }

.btn-primary.lg {
  padding: 14px 32px; font-size: 16px;
  border-radius: var(--radius);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--green-50); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  background: transparent; border: none;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-ghost:hover { background: var(--green-50); color: var(--green-700); }

/* ============================================================
   MAP
============================================================ */
#map {
  position: fixed;
  top: 60px; left: 0; right: 0;
  bottom: 0;
  z-index: 1;
}

/* Custom Marker */
.board-marker {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.marker-inner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2; position: relative;
}

.marker-pulse {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70% { transform: scale(1); opacity: 0.1; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* Available = Green */
.marker-available .marker-inner { background: #10b981; border-color: #fff; }
.marker-available .marker-pulse { background: #10b981; }

/* Expiring = Orange */
.marker-expiring .marker-inner { background: #f59e0b; border-color: #fff; }
.marker-expiring .marker-pulse { background: #f59e0b; }

/* Booked = Red */
.marker-booked .marker-inner { background: #ef4444; border-color: #fff; }
.marker-booked .marker-pulse { background: #ef4444; }

/* ============================================================
   MAP LEGEND
============================================================ */
.map-legend {
  position: fixed; bottom: 24px; left: 16px;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
}

.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--dark);
}

.legend-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}

.legend-dot.green { background: #10b981; }
.legend-dot.orange { background: #f59e0b; }
.legend-dot.red { background: #ef4444; }

/* ============================================================
   MAP CONTROLS
============================================================ */
.map-controls {
  position: fixed; right: 16px; top: 80px;
  z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
}

.map-btn {
  width: 42px; height: 42px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.map-btn:hover {
  background: var(--green-50);
  border-color: var(--green-500);
  transform: scale(1.05);
}

/* ============================================================
   FILTER PANEL
============================================================ */
.filter-panel {
  position: fixed; right: 66px; top: 80px;
  z-index: 600;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.filter-panel.open { display: block; }

.filter-panel h3 {
  font-family: var(--font); font-weight: 700;
  margin-bottom: 16px; font-size: 16px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group label {
  display: block; font-size: 12px;
  font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.chip {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.chip.active, .chip input:checked + * { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); }

.chip input { display: none; }

.filter-select {
  width: 100%; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: var(--font-body);
  outline: none;
}

.filter-select:focus { border-color: var(--green-500); }

/* ============================================================
   BOARD POPUP MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.board-modal {
  background: white;
  border-radius: 16px;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #f1f5f9; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: #e2e8f0; }

/* Board Modal Content */
.board-hero {
  height: 200px; background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px 16px 0 0;
  position: relative; overflow: hidden;
}

.board-hero img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
}

.board-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}

.board-hero-title {
  color: white; font-family: var(--font);
  font-size: 20px; font-weight: 700;
}

.board-hero-location { color: rgba(255,255,255,0.8); font-size: 13px; }

.board-status-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}

.status-available { background: #dcfce7; color: #166534; }
.status-expiring  { background: #fef3c7; color: #92400e; }
.status-booked    { background: #fee2e2; color: #991b1b; }

.board-modal-body { padding: 20px; }

.board-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 20px;
}

.spec-item {
  background: #f8fafc; border-radius: 10px;
  padding: 12px; text-align: center;
}

.spec-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.spec-value { font-size: 15px; font-weight: 700; color: var(--dark); margin-top: 2px; }

/* Pricing Grid */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 20px;
}

.price-card {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 14px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  position: relative;
}

.price-card:hover, .price-card.selected {
  border-color: var(--green-500);
  background: var(--green-50);
}

.price-card.selected::after {
  content: '✓';
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px;
  background: var(--green-600); color: white;
  border-radius: 50%; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

.price-days { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-amount { font-size: 20px; font-weight: 800; color: var(--dark); }
.price-sub { font-size: 11px; color: var(--muted); }

/* Date Picker */
.date-picker-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}

.date-input-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 4px;
}

.date-input-group input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body);
  outline: none;
}

.date-input-group input:focus { border-color: var(--green-500); }

/* Ads Running Section */
.ads-section { margin-bottom: 20px; }
.ads-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.ad-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: #f8fafc;
  border-radius: 8px; margin-bottom: 6px;
}

.ad-thumb {
  width: 50px; height: 36px; background: #e2e8f0;
  border-radius: 4px; object-fit: cover; flex-shrink: 0;
}

.ad-info { flex: 1; min-width: 0; }
.ad-title { font-size: 13px; font-weight: 600; truncate: clip; }
.ad-dates { font-size: 11px; color: var(--muted); }

.ad-badge {
  font-size: 10px; padding: 3px 7px; border-radius: 4px;
  font-weight: 600; white-space: nowrap;
}

.ad-live   { background: #dcfce7; color: #166534; }
.ad-sched  { background: #dbeafe; color: #1e40af; }
.ad-ended  { background: #f1f5f9; color: var(--muted); }

/* Pre-book Available Dates */
.prebook-section { margin-bottom: 20px; }
.prebook-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.available-slots {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.slot-badge {
  padding: 5px 10px; border: 1.5px solid #e2e8f0;
  border-radius: 6px; font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}

.slot-badge.available { border-color: #10b981; color: #065f46; background: #f0fdf4; }
.slot-badge:hover { border-color: var(--green-600); }

/* Marketing Person */
.marketing-person {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--green-50);
  border: 1px solid var(--green-100); border-radius: 10px;
  margin-bottom: 16px;
}

.mp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emerald-gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px; flex-shrink: 0;
}

.mp-info { flex: 1; }
.mp-name { font-size: 14px; font-weight: 600; }
.mp-title { font-size: 12px; color: var(--muted); }

.mp-actions { display: flex; gap: 6px; }

.mp-btn {
  padding: 6px 10px; border-radius: var(--radius);
  border: 1px solid var(--green-500); background: white;
  color: var(--green-700); font-size: 12px; cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}

.mp-btn:hover { background: var(--green-50); }

/* ============================================================
   BOOKING CART
============================================================ */
.cart-sidebar {
  position: fixed; right: 0; top: 60px; bottom: 0;
  width: 360px; background: white;
  border-left: 1px solid var(--border);
  z-index: 800; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-header h3 { font-family: var(--font); font-weight: 700; font-size: 17px; }

.cart-count {
  background: var(--emerald-gradient-btn); color: white;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px;
}

.cart-close {
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--muted);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}

.cart-close:hover { background: #f1f5f9; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px; }

.cart-item {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 10px; position: relative;
  transition: box-shadow 0.15s;
}

.cart-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-dates { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cart-item-price { font-weight: 700; color: var(--green-700); font-size: 14px; }

.cart-item-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: #ef4444;
  cursor: pointer; font-size: 14px; line-height: 1;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}

.cart-item-remove:hover { background: #fee2e2; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total {
  display: flex; justify-content: space-between;
  font-size: 14px; margin-bottom: 6px;
}

.cart-total.grand {
  font-size: 16px; font-weight: 700;
  color: var(--dark); margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

.cart-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 700;
  background: var(--emerald-gradient-btn);
  color: white; border: none;
  padding: 12px 20px; border-radius: 28px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 20px rgba(5,150,105,0.4);
  transition: all 0.2s; font-family: var(--font);
}

.cart-float:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(5,150,105,0.5); }

/* ============================================================
   CATALOGUE MODAL
============================================================ */
.catalogue-modal {
  background: white; border-radius: 16px;
  width: 100%; max-width: 860px;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalIn 0.25s ease;
}

.catalogue-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.catalogue-header h2 { font-family: var(--font); font-weight: 700; font-size: 20px; }

.catalogue-header button {
  background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.catalogue-header button:hover { background: #f1f5f9; }

.catalogue-body { flex: 1; overflow-y: auto; padding: 24px; }

.catalogue-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}

.catalogue-table th {
  background: #f8fafc; padding: 10px 14px;
  text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); border-bottom: 2px solid var(--border);
}

.catalogue-table td {
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.catalogue-table tr:hover td { background: #f8fafc; }

.type-badge {
  display: inline-block; padding: 3px 9px;
  background: #e0f2fe; color: #0369a1;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ============================================================
   USER AVATAR & DROPDOWN
============================================================ */
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--emerald-gradient-btn);
  color: white; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute; top: 44px; right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; min-width: 160px;
  box-shadow: var(--shadow-lg); padding: 8px;
  display: none;
}

.user-dropdown.open { display: block; }

.user-dropdown a {
  display: block; padding: 8px 12px;
  color: var(--dark); text-decoration: none;
  font-size: 14px; border-radius: 6px;
  transition: background 0.15s;
}

.user-dropdown a:hover { background: var(--green-50); color: var(--green-700); }

/* ============================================================
   MOBILE MENU
============================================================ */
.menu-toggle {
  display: none;
  background: none; border: none; font-size: 22px;
  cursor: pointer; padding: 4px;
}

.mobile-menu {
  display: none; position: fixed; inset: 0;
  z-index: 900; background: rgba(15,23,42,0.7);
}

.mobile-menu.open { display: block; }

.mobile-menu-items {
  position: absolute; top: 60px; left: 0; right: 0;
  background: white; padding: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.mobile-menu-items a {
  display: block; padding: 12px 16px;
  color: var(--dark); text-decoration: none;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.mobile-menu-items a:hover { background: var(--green-50); }

/* ============================================================
   AUTH PAGES (login/register)
============================================================ */
.auth-page {
  min-height: 100vh; overflow: auto;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.auth-card {
  background: white; border-radius: 20px;
  width: 100%; max-width: 460px;
  padding: 40px; box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 28px; }

.auth-logo .brand-name { font-size: 26px; display: block; margin-bottom: 6px; }

.auth-logo p { color: var(--muted); font-size: 14px; }

.auth-title {
  font-family: var(--font); font-weight: 800;
  font-size: 24px; text-align: center;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}

.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s;
  background: #fafafa;
}

.form-control:focus { border-color: var(--green-500); background: white; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.form-error { font-size: 12px; color: #dc2626; margin-top: 4px; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

.auth-footer a { color: var(--green-600); text-decoration: none; font-weight: 600; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 13px;
}

.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ============================================================
   CHECKOUT PAGE
============================================================ */
.page-container {
  min-height: 100vh; overflow: auto;
  padding-top: 60px; background: #f8fafc;
}

.page-content { max-width: 960px; margin: 0 auto; padding: 32px 20px; }

.page-title {
  font-family: var(--font); font-weight: 800;
  font-size: 28px; margin-bottom: 8px;
}

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }

.checkout-card {
  background: white; border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
}

.checkout-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 8px;
}

.checkout-card-body { padding: 20px; }

/* ============================================================
   DASHBOARD / BOOKINGS PAGES
============================================================ */
.bookings-page { min-height: 100vh; overflow: auto; padding-top: 60px; background: #f8fafc; }

.booking-card {
  background: white; border-radius: 14px;
  border: 1px solid var(--border); padding: 20px;
  margin-bottom: 16px; transition: box-shadow 0.2s;
}

.booking-card:hover { box-shadow: var(--shadow); }

.booking-header {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 14px;
}

.booking-number { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.booking-title { font-family: var(--font); font-weight: 700; font-size: 17px; }

.booking-status {
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}

.bs-confirmed { background: #dbeafe; color: #1e40af; }
.bs-active    { background: #dcfce7; color: #166534; }
.bs-completed { background: #f1f5f9; color: var(--muted); }
.bs-cancelled { background: #fee2e2; color: #991b1b; }
.bs-pending   { background: #fef3c7; color: #92400e; }

/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */
#toastContainer {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  min-width: 280px; max-width: 90vw;
}

.toast {
  background: var(--dark); color: white;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 10px;
}

.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.warning { background: #92400e; }

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

/* ============================================================
   ALERTS
============================================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .nav-search { display: none; }
  .btn-ghost { display: none; }
  .btn-outline, .auth-link { display: none; }
  .menu-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }

  .map-legend { bottom: 80px; }
  .cart-float { bottom: 80px; }

  .cart-sidebar { width: 100%; top: 60px; }

  .board-specs { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .checkout-grid { grid-template-columns: 1fr; }

  .filter-panel { right: 58px; width: 240px; }

  .form-row { grid-template-columns: 1fr; }

  .auth-card { padding: 28px 24px; }

  .board-modal { max-height: 95vh; }
}

@media (max-width: 380px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .date-picker-row { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTALL PWA BANNER
============================================================ */
.pwa-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: white;
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.pwa-banner.show { transform: translateY(0); }

.pwa-banner-icon { font-size: 28px; }

.pwa-banner-text { flex: 1; }

.pwa-banner-text strong { display: block; font-size: 14px; font-weight: 700; }

.pwa-banner-text span { font-size: 12px; color: var(--muted); }

.pwa-banner-actions { display: flex; gap: 8px; }

.pwa-dismiss {
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 4px;
}

/* ============================================================
   LOADING SPINNER
============================================================ */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}

/* Satellite toggle button – wider to fit label */
#mapViewBtn {
  font-size: 20px;
}
#mapViewBtn.active {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-color: transparent;
}
