/* === ILZ150 Booking Portal — Mobile-First Design === */

:root {
  --sage: #8B9E7C;
  --sage-light: #A8B89A;
  --sage-dark: #6B7E5C;
  --sage-bg: #F4F7F2;
  --sage-bg-hover: #E8EDE5;
  --white: #FFFFFF;
  --warm-white: #FAFAF8;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 180ms ease;
  --page-px: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--warm-white);
  line-height: 1.6;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--gray-900); }
h1 { font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.375rem; line-height: 1.3; }
h3 { font-size: 1.0625rem; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.text-muted { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.5; }

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.brand-sub { font-size: 0.75rem; color: var(--gray-400); letter-spacing: 0.02em; margin-top: 1px; display: none; }
.brand-link { color: inherit; text-decoration: none; }
.brand-link:hover { color: var(--sage-dark); text-decoration: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-link:hover { color: var(--sage-dark); background: var(--sage-bg); text-decoration: none; }
.nav-user {
  font-size: 0.75rem;
  color: var(--gray-400);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }

.btn-sm { font-size: 0.8125rem; padding: 0.5rem 1rem; }
.btn-lg { font-size: 1.0625rem; padding: 0.875rem 2rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; margin-top: 1.25rem; }

.btn-primary {
  background: var(--sage);
  color: white;
  box-shadow: 0 2px 8px rgba(107,126,92,0.3);
}
.btn-primary:hover:not(:disabled) { background: var(--sage-dark); box-shadow: 0 4px 12px rgba(107,126,92,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover:not(:disabled) { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-bg); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); }

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.btn-danger:hover:not(:disabled) { background: #B91C1C; }

/* === Forms === */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); letter-spacing: 0.01em; }

input[type="email"],
input[type="text"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(139,158,124,0.12);
}

.input-lg { padding: 0.875rem 1rem; font-size: 1.0625rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.25rem 0;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--sage);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: slideUp 0.3s ease;
  text-align: center;
  max-width: 90vw;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 1rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.75rem var(--page-px) 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-lg { max-width: 600px; }
.modal h2 { margin-bottom: 0.75rem; }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-500);
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

.auth-hint { margin-top: 1.25rem; white-space: pre-wrap; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 2.5rem 0.5rem 2rem;
  background: linear-gradient(180deg, var(--sage-bg) 0%, var(--warm-white) 100%);
  margin: 0 calc(-1 * var(--page-px));
  padding-left: var(--page-px);
  padding-right: var(--page-px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero h1 {
  margin-bottom: 0.875rem;
  font-size: 1.875rem;
}
.hero p {
  max-width: 480px;
  margin: 0 auto 1.75rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.hero .btn-lg {
  width: 100%;
  max-width: 320px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.hero-feature-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hero-feature-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* === Progress Bar === */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.25rem 0;
  margin-bottom: 0.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.step.active { opacity: 1; }
.step.completed { opacity: 0.65; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.step.active .step-num { background: var(--sage); color: white; box-shadow: 0 2px 8px rgba(107,126,92,0.35); }
.step.completed .step-num { background: var(--sage-light); color: white; }

.step-label { font-size: 0.8125rem; font-weight: 500; color: var(--gray-600); display: none; }

.step-line {
  width: 32px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 0.625rem;
}

/* === Room Cards === */
.floor-group { margin-bottom: 2rem; }
.floor-group h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.room-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.room-card:hover {
  border-color: var(--sage-light);
  box-shadow: var(--shadow-md);
}

.room-card:active {
  transform: scale(0.99);
}

.room-card.selected {
  border-color: var(--sage);
  background: var(--sage-bg);
  box-shadow: 0 0 0 3px rgba(139,158,124,0.15);
}

.room-card-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.room-card-meta {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.room-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  margin-bottom: 0.75rem;
}

.room-card-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
  line-height: 1.5;
}

.room-card-tag {
  display: inline-block;
  background: var(--sage-bg);
  color: var(--sage-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-top: 0.625rem;
  letter-spacing: 0.02em;
}

/* === Date Picker Row === */
.date-picker-row {
  margin: 1.25rem 0;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-nav-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1.5px solid var(--sage);
  color: var(--sage-dark);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.date-nav-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.date-weekday {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: 0.02em;
}

.date-nav input[type="date"] {
  width: 100%;
  text-align: center;
}

/* === Slot Grid === */
.slots-container { margin: 0.75rem 0 1.5rem; }
.slots-hint { color: var(--gray-400); font-size: 0.9375rem; padding: 1rem 0; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
}

.slot-btn {
  padding: 0.625rem 0.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.slot-btn:hover:not(:disabled):not(.busy) {
  border-color: var(--sage);
  background: var(--sage-bg);
}

.slot-btn:active:not(:disabled):not(.busy) {
  transform: scale(0.96);
}

.slot-btn.busy {
  background: var(--gray-50);
  color: var(--gray-300);
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--gray-100);
}

.slot-btn.selected {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(107,126,92,0.3);
}

.slot-btn.in-range:not(.selected) {
  background: var(--sage-bg);
  border-color: var(--sage-light);
  color: var(--sage-dark);
}

.selected-slot-summary {
  background: var(--sage-bg);
  border: 1.5px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.9375rem;
}

/* === Date/Time Picker (reschedule) === */
.datetime-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.back-link {
  margin-bottom: 0.25rem;
  padding-left: 0;
  font-size: 0.875rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-header h2 { margin: 0; }

.step-actions {
  margin-top: 1.75rem;
  padding-bottom: 0.5rem;
}

.step-actions .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.availability-status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.availability-status.available { background: var(--success-light); color: var(--success); }
.availability-status.unavailable { background: var(--danger-light); color: var(--danger); }

/* === Summary Card === */
.summary-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.25rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.summary-row:last-child { border-bottom: none; }

.summary-label { color: var(--gray-500); font-size: 0.875rem; }
.summary-value { font-weight: 600; font-size: 0.9375rem; text-align: right; }

.summary-total { background: var(--sage-bg); }
.summary-total .summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sage-dark);
}

/* === Cart Badge === */
.cart-badge {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.cart-badge:hover { background: var(--sage-bg); }
.cart-badge-icon { font-size: 1.125rem; line-height: 1; }
.cart-badge-count {
  background: var(--sage);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* === Cart Item Row === */
.cart-item-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.cart-item-info strong { font-size: 0.9375rem; }
.cart-item-info .text-muted { font-size: 0.8125rem; }
.cart-item-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item-price { font-weight: 600; font-size: 0.9375rem; }
.cart-item-remove { font-size: 0.875rem; color: var(--gray-400); padding: 0.25rem 0.5rem; }
.cart-item-remove:hover { color: var(--danger); }

/* === Step Actions Row === */
.step-actions-row {
  display: flex;
  gap: 0.75rem;
}
.step-actions-row .btn { flex: 1; }

.terms-acceptance { margin: 1.5rem 0; }

/* === Bookings List === */
.bookings-section { padding: 1.5rem 0 2rem; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
}

.bookings-list { display: flex; flex-direction: column; gap: 0.75rem; }

.booking-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.booking-item:hover {
  border-color: var(--sage-light);
  box-shadow: var(--shadow);
}

.booking-item:active { transform: scale(0.99); }

.booking-item-info { flex: 1; min-width: 0; }
.booking-item-name { font-weight: 600; color: var(--gray-900); margin-bottom: 0.125rem; }
.booking-item-details { font-size: 0.8125rem; color: var(--gray-400); }

.booking-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.booking-status.confirmed { background: var(--success-light); color: var(--success); }
.booking-status.pending { background: var(--warning-light); color: var(--warning); }
.booking-status.cancelled { background: var(--danger-light); color: var(--danger); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}

/* === Detail Modal === */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.detail-actions .btn { width: 100%; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.detail-row:last-child { border-bottom: none; }

.cancel-section, .reschedule-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.cancel-section h3, .reschedule-section h3 { margin-bottom: 0.75rem; }
.cancel-section .btn-danger, .reschedule-section .btn-primary { margin-top: 0.75rem; width: 100%; }

/* === Footer === */
.site-footer {
  flex-shrink: 0;
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 2rem 0;
  font-size: 0.8125rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand strong { color: var(--white); font-family: var(--font-serif); font-size: 0.9375rem; }

.footer-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-contact a { color: var(--gray-400); font-size: 0.8125rem; }
.footer-contact a:hover { color: var(--white); }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--gray-400); }
.footer-links a:hover { color: var(--white); }

/* === Main === */
.main {
  flex: 1 0 auto;
  padding-bottom: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Don't let main stretch hero into empty space */
.hero:last-child {
  padding-bottom: 3rem;
}

.booking-step { padding: 0.5rem 0 1rem; }

/* ============================================
   TABLET+ (min-width 640px)
   ============================================ */
@media (min-width: 640px) {
  :root { --page-px: 2rem; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.5rem; }

  .header-inner { min-height: 64px; }
  .brand-name { font-size: 1.0625rem; }
  .brand-sub { display: block; }
  .nav-user { display: inline; }

  /* Toast — still full-width banner on tablet+ */
  .toast {
    border-radius: 0;
  }

  /* Modal — centered card */
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .modal {
    border-radius: var(--radius-xl);
    padding: 2rem;
  }

  /* Hero */
  .hero { padding: 4rem 2rem 3rem; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .hero h1 { font-size: 2.75rem; }
  .hero .btn-lg { width: auto; }
  .hero-features { max-width: 400px; margin-left: auto; margin-right: auto; }

  /* Step labels visible */
  .step-label { display: inline; }
  .step-line { width: 40px; }

  /* Room grid */
  .rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }

  /* Slot grid — more columns */
  .slot-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  /* Date picker not full width */
  .date-picker-row { max-width: 280px; }
  .date-picker-row input[type="date"] { width: auto; min-width: 240px; }

  /* Datetime picker row */
  .datetime-picker { flex-direction: row; }

  /* Step actions */
  .step-actions { display: flex; justify-content: flex-end; }
  .step-actions .btn { width: auto; min-width: 260px; }

  /* Detail actions horizontal */
  .detail-actions { flex-direction: row; flex-wrap: wrap; }
  .detail-actions .btn { width: auto; flex: 1; min-width: 140px; }

  /* Footer horizontal */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Bookings section */
  .bookings-section { padding: 2rem 0; }
}

/* ============================================
   DESKTOP (min-width 1024px)
   ============================================ */
@media (min-width: 1024px) {
  :root { --page-px: 2.5rem; }

  .header-nav { gap: 0.75rem; }

  .hero { padding: 5rem 1rem 4rem; }

  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }

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

/* Profile form */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--sage-light, #e8ede6);
  color: var(--sage-dark, #4a6741);
  letter-spacing: 0.01em;
}
.form-section-title:first-of-type { margin-top: 0.5rem; }

#profile-modal .modal {
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}
#profile-modal h2 {
  margin-bottom: 0.25rem;
}
#profile-modal .text-muted {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
#profile-form .form-group {
  margin-bottom: 0.875rem;
}
#profile-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--gray-600, #555);
}
#profile-form input[type="text"],
#profile-form input[type="tel"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  box-sizing: border-box;
  background: #fff;
}
#profile-form input:focus {
  outline: none;
  border-color: var(--sage, #7a9a6e);
  box-shadow: 0 0 0 2px rgba(122,154,110,0.15);
}
#profile-form .btn-full {
  margin-top: 1.5rem;
}
@media (max-width: 480px) {
  .form-row { flex-direction: column; gap: 0; }
  #profile-modal .modal { padding: 1.25rem; max-height: 90vh; }
}
