/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #7c3aed;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --bg: #f0f4ff;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow: 0 4px 24px rgba(37,99,235,0.08);
  --shadow-lg: 0 8px 40px rgba(37,99,235,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);

  /* Status Colors */
  --status-excursion: #2563eb;
  --status-excursion-bg: #dbeafe;
  --status-busy: #dc2626;
  --status-busy-bg: #fee2e2;
  --status-holiday: #16a34a;
  --status-holiday-bg: #dcfce7;
  --status-personal: #d97706;
  --status-personal-bg: #fef3c7;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== APP LAYOUT ===== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.app-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #7c3aed 100%);
  color: #fff;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(37,99,235,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.header-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-title p {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* ===== MAIN CONTENT ===== */
.app-content {
  display: flex;
  flex: 1;
  gap: 0;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
  gap: 24px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mini Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-item {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Legend */
.legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.legend-item:hover { background: var(--border); }

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item.active { border-color: var(--primary); background: var(--primary-light); }

/* Upcoming Tours */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.upcoming-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-xs);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.upcoming-item:hover { 
  border-color: var(--primary); 
  background: var(--primary-light);
  transform: translateX(2px);
}

.upcoming-date-badge {
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.upcoming-date-badge .day-num {
  font-size: 1.1rem;
  line-height: 1;
}

.upcoming-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.upcoming-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-light);
  padding: 20px;
  font-size: 0.85rem;
}

.empty-state i { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* ===== CALENDAR MAIN ===== */
.calendar-main {
  flex: 1;
  min-width: 0;
}

.calendar-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Calendar Header Navigation */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.calendar-nav-title h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.calendar-nav-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-today {
  padding: 0 18px;
  width: auto;
  font-size: 0.83rem;
  font-weight: 600;
}

/* View Switcher */
.view-switcher {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.btn-view {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-view:not(.active):hover { background: var(--border); color: var(--text); }

/* ===== CALENDAR GRID ===== */
.calendar-grid-wrapper { padding: 20px 20px 24px; }

.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.weekday-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 4px;
}

.weekday-label.weekend { color: var(--danger); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Day Cell */
.day-cell {
  min-height: 100px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.day-cell:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  transform: translateY(-2px);
  z-index: 2;
}

.day-cell.other-month {
  background: #fafbfc;
  opacity: 0.5;
}

.day-cell.today {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.day-cell.today .day-num {
  background: var(--primary);
  color: #fff;
}

.day-cell.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.day-cell.weekend-cell { background: #fdf8ff; }

/* Day Number */
.day-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  margin-bottom: 4px;
  align-self: flex-end;
}

.day-cell.weekend-cell .day-num { color: var(--danger); }
.day-cell.other-month .day-num { color: var(--text-light); }

/* Booking Pills */
.day-bookings {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.booking-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: var(--transition);
  max-width: 100%;
}

.booking-pill:hover { filter: brightness(0.9); transform: scale(1.02); }

.booking-pill.excursion {
  background: var(--status-excursion-bg);
  color: var(--status-excursion);
  border: 1px solid rgba(37,99,235,0.2);
}

.booking-pill.busy {
  background: var(--status-busy-bg);
  color: var(--status-busy);
  border: 1px solid rgba(220,38,38,0.2);
}

.booking-pill.holiday {
  background: var(--status-holiday-bg);
  color: var(--status-holiday);
  border: 1px solid rgba(22,163,74,0.2);
}

.booking-pill.personal {
  background: var(--status-personal-bg);
  color: var(--status-personal);
  border: 1px solid rgba(217,119,6,0.2);
}

.booking-pill i { font-size: 0.65rem; flex-shrink: 0; }

.more-bookings {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2px;
  font-weight: 500;
}

/* Income badge on day */
.day-income {
  font-size: 0.65rem;
  color: var(--success);
  font-weight: 600;
  margin-top: auto;
  text-align: right;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(10px);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

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

/* Form Styles */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-group label .required { color: var(--danger); }

.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface2);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Status Selector */
.status-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.status-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.status-btn i { font-size: 1.1rem; }

.status-btn:hover { transform: translateY(-2px); }

.status-btn[data-status="excursion"].active {
  border-color: var(--status-excursion);
  background: var(--status-excursion-bg);
  color: var(--status-excursion);
}

.status-btn[data-status="busy"].active {
  border-color: var(--status-busy);
  background: var(--status-busy-bg);
  color: var(--status-busy);
}

.status-btn[data-status="holiday"].active {
  border-color: var(--status-holiday);
  background: var(--status-holiday-bg);
  color: var(--status-holiday);
}

.status-btn[data-status="personal"].active {
  border-color: var(--status-personal);
  background: var(--status-personal-bg);
  color: var(--status-personal);
}

/* Price Row */
.price-row {
  display: flex;
  gap: 8px;
}

.price-row .form-control:first-child { flex: 1; }
.price-row select { width: 90px; }

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.btn-danger {
  background: var(--status-busy-bg);
  color: var(--status-busy);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--border); color: var(--text); }

/* ===== DETAIL MODAL ===== */
.booking-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.booking-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.booking-detail-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.booking-detail-info p {
  font-size: 0.83rem;
  opacity: 0.7;
  margin-top: 2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px;
}

.detail-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.detail-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.detail-notes {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 14px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== INCOME SECTION IN SIDEBAR ===== */
.income-display {
  text-align: center;
  padding: 10px 0;
}

.income-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.03em;
}

.income-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-left: 4px solid var(--primary);
  min-width: 280px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  font-size: 0.88rem;
  font-weight: 500;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast span { color: var(--text); }

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(10px); }
}

/* ===== ADD BOOKING FAB ===== */
.fab {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(37,99,235,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  z-index: 50;
  letter-spacing: 0.02em;
}

.fab:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 10px 36px rgba(37,99,235,0.5);
}

/* ===== LIST VIEW ===== */
.list-view {
  padding: 20px;
}

.list-view-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.list-view-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  background: var(--primary-light);
}

.list-date-col {
  min-width: 60px;
  text-align: center;
}

.list-date-col .lv-day { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.list-date-col .lv-month { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

.list-status-badge {
  min-width: 90px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.list-info { flex: 1; }
.list-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.list-info p { font-size: 0.78rem; color: var(--text-muted); }

.list-price { font-size: 1rem; font-weight: 700; color: var(--success); white-space: nowrap; }

/* ===== EMPTY CALENDAR ===== */
.calendar-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.calendar-empty i { font-size: 3rem; color: var(--text-light); display: block; margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .sidebar { width: 260px; }
  .app-content { padding: 20px 16px; gap: 16px; }
}

@media (max-width: 900px) {
  .app-content { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 220px; }
  .day-cell { min-height: 76px; }
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .app-header { padding: 0 16px; height: 60px; }
  .header-title h1 { font-size: 1rem; }
  .app-content { padding: 12px; }
  .calendar-nav { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .calendar-grid-wrapper { padding: 10px 8px 16px; }
  .day-cell { min-height: 64px; padding: 5px; }
  .day-num { width: 22px; height: 22px; font-size: 0.73rem; }
  .booking-pill { font-size: 0.6rem; padding: 2px 5px; }
  .weekday-label { font-size: 0.65rem; }
  .status-selector { grid-template-columns: repeat(2, 1fr); }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
  .modal { border-radius: 16px; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 16px; }
  .modal-footer { padding: 12px 16px 16px; }
  .fab { bottom: 16px; padding: 12px 22px; font-size: 0.82rem; }
}

/* ===== LOADING ===== */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Conditional excursion fields */
.excursion-only { display: none; }
.show-excursion .excursion-only { display: block; }
.show-excursion .form-grid.excursion-only { display: grid; }
