@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --cream:      #FAF7F2;
  --navy:       #1E2D40;
  --terra:      #C4603A;
  --amber:      #E8923A;
  --sage:       #7B9E87;
  --warm-grey:  #EDE8E0;
  --white:      #FFFFFF;
  --text:       #2C2420;
  --text-muted: #7A6F68;

  --room1:      #E8923A;
  --room2:      #7B9E87;
  --both:       #C4603A;
  --pending-bg: #F5F0E8;
  --pending-border: #C8BFB4;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 8px rgba(30,45,64,0.07), 0 1px 2px rgba(30,45,64,0.04);
  --shadow-modal: 0 20px 60px rgba(30,45,64,0.18), 0 4px 16px rgba(30,45,64,0.08);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

/* ── Password Gate ───────────────────────────────────────── */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, 0.45);
}
.gate__card {
  position: relative;
  z-index: 1;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-modal);
  text-align: center;
}
.gate__logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}
.gate__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.gate__label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.gate__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s;
  margin-bottom: 1.25rem;
}
.gate__input:focus {
  outline: none;
  border-color: var(--terra);
}
.gate__btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}
.gate__btn:hover { background: #b05430; }
.gate__btn:active { transform: scale(0.98); }
.gate__error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #c0392b;
  display: none;
}
.gate__error.visible { display: block; }
.gate__divider {
  border: none;
  border-top: 1px solid var(--warm-grey);
  margin: 1.5rem 0;
}
.gate__link {
  font-size: 0.875rem;
  color: var(--terra);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}
.gate__link:hover { color: #b05430; }

/* ── Site Header ─────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--warm-grey);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.header__logo span {
  color: var(--terra);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.header__nav a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header__nav a:hover {
  color: var(--navy);
  background: var(--warm-grey);
}
.header__nav a.active {
  color: var(--terra);
  background: #f5ede8;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.header__owner-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.header__logout {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  border: none;
  background: none;
}
.header__logout:hover {
  color: var(--navy);
  background: var(--warm-grey);
}

/* Mobile menu */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.header__mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--warm-grey);
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.25rem;
}
.header__mobile-nav.open { display: flex; flex-direction: column; }
.header__mobile-nav a {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.header__mobile-nav a:hover, .header__mobile-nav a.active {
  color: var(--terra);
  background: #f5ede8;
}

/* ── Page Layout ─────────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.page--narrow {
  max-width: 720px;
}

/* ── Calendar ────────────────────────────────────────────── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.calendar-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calendar-nav__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-grey);
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.calendar-nav__btn:hover {
  background: var(--warm-grey);
  border-color: var(--navy);
}
.calendar-today-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--warm-grey);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.calendar-today-btn:hover {
  background: var(--warm-grey);
  color: var(--navy);
}

.calendar-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot--room1 { background: var(--room1); }
.legend-dot--room2 { background: var(--room2); }
.legend-dot--both  { background: var(--both); }
.legend-dot--pending { background: var(--pending-bg); border: 1.5px dashed var(--pending-border); }

.calendar-grid {
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy);
}
.calendar-days-header span {
  text-align: center;
  padding: 0.65rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-cell {
  min-height: 110px;
  border-right: 1px solid var(--warm-grey);
  border-bottom: 1px solid var(--warm-grey);
  padding: 0.4rem;
  position: relative;
  background: var(--white);
  transition: background 0.1s;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.other-month {
  background: #f9f6f1;
}
.cal-cell.other-month .cal-date { color: #C8BFB4; }
.cal-cell.today {
  background: #fff8f5;
}
.cal-cell.today .cal-date {
  background: var(--terra);
  color: var(--white);
}
.cal-date {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  flex-shrink: 0;
}
.cal-bookings {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Booking pills on calendar */
.cal-booking {
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.1s, transform 0.1s;
  position: relative;
  color: var(--white);
  line-height: 1.4;
}
.cal-booking:hover { opacity: 0.85; }
.cal-booking--room1   { background: var(--room1); }
.cal-booking--room2   { background: var(--room2); }
.cal-booking--both    { background: var(--both); }
.cal-booking--pending {
  background: var(--pending-bg);
  color: var(--text-muted);
  border: 1.5px dashed var(--pending-border);
}

/* Arrival/departure arc indicators */
.cal-booking--arrive {
  border-radius: 0 3px 3px 0;
  margin-left: 25%;
}
.cal-booking--depart {
  border-radius: 3px 0 0 3px;
  margin-right: 25%;
}
.cal-booking--arrive-depart {
  margin-left: 15%;
  margin-right: 15%;
}

/* Day type icon */
.cal-booking__icon {
  margin-right: 2px;
  font-style: normal;
}

/* ── New Booking Row ─────────────────────────────────────── */
.cal-new-booking-row {
  margin-bottom: 1.25rem;
}

/* ── Add Booking FAB (legacy — kept for mobile override below) ── */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(196,96,58,0.4);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  z-index: 50;
  display: none;
}
.fab:hover {
  background: #b05430;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(196,96,58,0.5);
}
.fab.visible { display: flex; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,45,64,0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: translateY(16px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.modal__title { font-size: 1.3rem; }
.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--warm-grey);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover { background: var(--navy); color: var(--white); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-label span {
  color: var(--terra);
  margin-left: 2px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
  display: none;
}
.form-error.visible { display: block; }

/* Room selector */
.room-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.room-option {
  position: relative;
}
.room-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.room-option__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  text-align: center;
}
.room-option__label:hover {
  border-color: var(--amber);
  color: var(--navy);
  background: #fff8f0;
}
.room-option input:checked + .room-option__label {
  border-color: currentColor;
  background: var(--cream);
  color: var(--navy);
}
.room-option:nth-child(1) input:checked + .room-option__label {
  border-color: var(--room1);
  background: #fff8f0;
  color: var(--room1);
}
.room-option:nth-child(2) input:checked + .room-option__label {
  border-color: var(--room2);
  background: #f0f7f3;
  color: var(--room2);
}
.room-option:nth-child(3) input:checked + .room-option__label {
  border-color: var(--both);
  background: #fdf0eb;
  color: var(--both);
}
.room-option__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.room-option:nth-child(1) .room-option__dot { background: var(--room1); }
.room-option:nth-child(2) .room-option__dot { background: var(--room2); }
.room-option:nth-child(3) .room-option__dot { background: var(--both); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(196,96,58,0.25);
}
.btn--primary:hover {
  background: #b05430;
  box-shadow: 0 4px 12px rgba(196,96,58,0.35);
}
.btn--secondary {
  background: var(--warm-grey);
  color: var(--navy);
}
.btn--secondary:hover { background: #ddd8d0; }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--warm-grey);
}
.btn--ghost:hover { background: var(--warm-grey); color: var(--navy); }
.btn--approve {
  background: var(--sage);
  color: var(--white);
}
.btn--approve:hover { background: #6a8d76; }
.btn--decline {
  background: var(--warm-grey);
  color: #9b4935;
  border: 1.5px solid #d4a89a;
}
.btn--decline:hover { background: #f5e5e1; }
.btn--full { width: 100%; }
.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Booking Detail Popup ────────────────────────────────── */
.booking-detail {
  padding: 0.25rem 0;
}
.booking-detail__room {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.booking-detail__room--room1 { background: #fff1e0; color: var(--room1); }
.booking-detail__room--room2 { background: #e8f5ee; color: var(--room2); }
.booking-detail__room--both  { background: #fdeee8; color: var(--both); }
.booking-detail__row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.booking-detail__icon { color: var(--text-muted); width: 20px; flex-shrink: 0; }
.booking-detail__label { color: var(--text-muted); font-size: 0.8rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--warm-grey);
}
.card + .card { margin-top: 1rem; }

/* ── Pending Bookings List ───────────────────────────────── */
.pending-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pending-card {
  background: var(--white);
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.pending-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.pending-card__body { flex: 1; min-width: 0; }
.pending-card__name { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.pending-card__meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.pending-card__room {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.35rem;
}
.pending-card__room--room1 { background: #fff1e0; color: var(--room1); }
.pending-card__room--room2 { background: #e8f5ee; color: var(--room2); }
.pending-card__room--both  { background: #fdeee8; color: var(--both); }
.pending-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Guest Info ──────────────────────────────────────────── */
.info-section { margin-bottom: 2.5rem; }
.info-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--warm-grey);
  font-family: var(--font-head);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--warm-grey);
}
.info-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.info-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.info-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-head);
}
.info-card__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--warm-grey);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  margin-bottom: 2rem;
}
.page-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.page-hero__title { margin-bottom: 0.5rem; }
.page-hero__subtitle { color: var(--text-muted); max-width: 560px; }

/* ── Status / Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--sage); }
.toast--error   { background: #c0392b; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--warm-grey);
  margin: 1.5rem 0;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state__text { font-size: 0.95rem; }

/* ── Loading ─────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--warm-grey);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Holiday label on main calendar ─────────────────────── */
.cal-holiday {
  font-size: 0.6rem;
  font-weight: 700;
  color: #1e5e3f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-cell.is-holiday { background: #d4eddd; }
.cal-cell.is-holiday.other-month { background: #cce8d5; }

.mini-cal__title--link {
  cursor: pointer;
  transition: color 0.15s;
}
.mini-cal__title--link:hover { color: var(--terra); text-decoration: underline; }

/* ── Side-by-side calendar layout ───────────────────────── */
.cal-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}
.cal-layout__main {
  flex: 1;
  min-width: 0;
}
.cal-layout__side {
  width: 340px;
  flex-shrink: 0;
}
.cal-layout__side-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cal-layout__side-title {
  font-size: 1.1rem;
  color: var(--navy);
  flex: 1;
  text-align: center;
  margin: 0;
}

@media (max-width: 1100px) {
  .cal-layout { flex-direction: column; }
  .cal-layout__side { width: 100%; }
}

/* ── 6-month mini calendars ──────────────────────────────── */
.mini-cals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.mini-cal {
  background: var(--white);
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.mini-cal__title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  text-align: center;
}
.mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.mini-cal__dow {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 2px 0 4px;
  letter-spacing: 0.04em;
}
.mini-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 4px;
  cursor: default;
  position: relative;
  transition: opacity 0.1s;
}
.mini-cal__day--other   { color: #C8BFB4; }
.mini-cal__day--today   { background: var(--terra); color: var(--white); font-weight: 700; border-radius: 50%; }
.mini-cal__day--holiday {
  background: #a8d5b8;
  color: #1e5e3f;
  font-weight: 700;
  border-radius: 4px;
}
.mini-cal__day--booked-room1 { background: #fff1e0; color: var(--room1); font-weight: 700; }
.mini-cal__day--booked-room2 { background: #e8f5ee; color: var(--room2); font-weight: 700; }
.mini-cal__day--booked-both  { background: #fdeee8; color: var(--both);  font-weight: 700; }
.mini-cal__day--booked-room1.mini-cal__day--today,
.mini-cal__day--booked-room2.mini-cal__day--today,
.mini-cal__day--booked-both.mini-cal__day--today  { border: 2px solid var(--terra); }

@media (max-width: 540px) {
  .mini-cals-grid { grid-template-columns: 1fr; }
}

/* ── 404 ─────────────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}
.error-page__code {
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: var(--warm-grey);
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__actions .header__logout { display: none; }
  .header__hamburger { display: flex; }

  .calendar-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cal-cell { min-height: 72px; padding: 0.3rem; }
  .cal-date { width: 22px; height: 22px; font-size: 0.72rem; }
  .cal-booking { font-size: 0.6rem; padding: 1px 3px; }

  .form-row { grid-template-columns: 1fr; }
  .room-selector { grid-template-columns: repeat(3, 1fr); }

  .pending-card { flex-direction: column; }
  .pending-card__actions { width: 100%; }
  .pending-card__actions .btn { flex: 1; }


  .page { padding: 1.5rem 1rem 4rem; }
  .modal { padding: 1.5rem; }

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

@media (max-width: 480px) {
  .calendar-days-header span {
    font-size: 0.65rem;
    padding: 0.5rem 0.1rem;
  }
  .cal-cell { min-height: 58px; padding: 0.2rem; }
  .cal-date { width: 20px; height: 20px; font-size: 0.68rem; }
  .cal-booking { display: none; }
  .cal-cell.has-booking::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terra);
    margin: 2px auto 0;
  }
}
