@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --ink: #10131f;
  --ink-muted: #5c647b;
  --paper: #f7f3ed;
  --card: #ffffff;
  --accent: #1f6f8b;
  --accent-strong: #0b3c5d;
  --accent-soft: #b8d2da;
  --accent-light: #e8f4f8;
  --line: rgba(15, 23, 42, 0.1);
  --glow: rgba(31, 111, 139, 0.2);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.16);
  --green: #15803d;
  --red: #b91c1c;
  --radius: 16px;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

/* ── Topbar ───────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--accent-strong);
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-name {
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.topbar-name-link {
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-name-link:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  padding: 56px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
}

.hero p {
  color: var(--accent-soft);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ── Search bar ───────────────────────────────────────────── */

.search-bar {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-lg);
  gap: 0;
  max-width: 680px;
  width: 100%;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.search-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.search-field input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  padding: 0;
  width: 100%;
  font-family: inherit;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  margin: 0 16px;
  flex-shrink: 0;
}

.btn-search {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-search:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Main container ───────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: -28px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Room grid ────────────────────────────────────────────── */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-muted);
  font-size: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── Room card ────────────────────────────────────────────── */

.room-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--line);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.room-card.unavailable { opacity: 0.7; }

.room-img-wrap {
  position: relative;
  height: 220px;
  background: #e8e4de;
  overflow: hidden;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-img { transform: scale(1.04); }

.room-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, #dde8ed 0%, #c8d9e0 100%);
}

.room-img-placeholder::before {
  content: '🏨';
  font-size: 2.4rem;
  opacity: 0.5;
}

.room-img-placeholder span {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.availability-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-available { background: #dcfce7; color: #15803d; }
.badge-unavailable { background: #fee2e2; color: #b91c1c; }

.room-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.room-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.room-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent-strong);
  line-height: 1.3;
}

.room-price { text-align: right; flex-shrink: 0; }
.price-from { font-size: 0.7rem; color: var(--ink-muted); display: block; }
.price-amount { font-size: 1.05rem; font-weight: 700; color: var(--accent-strong); }
.price-night { font-size: 0.7rem; color: var(--ink-muted); }
.price-na { font-size: 0.8rem; color: var(--ink-muted); font-style: italic; }

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.room-meta-item {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.room-description {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  max-height: 2.5em;
  word-break: break-word;
}

.amenities-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
  max-height: 24px;
  margin-bottom: 12px;
}

.amenity-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.amenity-more {
  background: #f1f5f9;
  color: var(--ink-muted);
}

.room-card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-unavailable {
  background: #f1f5f9;
  color: #94a3b8;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: not-allowed;
  width: 100%;
}

.btn-book { width: 100%; text-align: center; }
.btn-block { width: 100%; text-align: center; }

/* ── Booking drawer ───────────────────────────────────────── */

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: var(--card);
  box-shadow: -8px 0 40px rgba(15,23,42,0.18);
  z-index: 500;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent-strong);
}

.drawer-subtitle {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.drawer-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.drawer-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 24px; }

.drawer-section { display: flex; flex-direction: column; gap: 14px; }

.drawer-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  font-weight: 500;
}

select, input[type="text"], input[type="datetime-local"], input[type="email"], input[type="password"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--ink);
  background: #fbfaf8;
  width: 100%;
  transition: border 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

/* ── Pricing summary ──────────────────────────────────────── */

.pricing-summary {
  background: var(--accent-light);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.pricing-row strong { color: var(--accent-strong); }

/* ── Added rooms ──────────────────────────────────────────── */

.added-rooms-list { display: flex; flex-direction: column; gap: 10px; }

.added-room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.added-room-info { flex: 1; font-size: 0.9rem; }
.added-room-info strong { display: block; color: var(--ink); }
.added-room-meta { font-size: 0.8rem; color: var(--ink-muted); }
.added-room-price { font-weight: 700; color: var(--accent-strong); font-size: 0.9rem; flex-shrink: 0; }

.btn-remove {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-remove:hover { background: #fecaca; }

/* ── Extras ───────────────────────────────────────────────── */

.extras-list { display: flex; flex-direction: column; gap: 8px; }

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  flex-direction: row;
}

.extra-item:hover { background: #f8fafc; }
.extra-item input[type="checkbox"] { width: auto; padding: 0; }
.extra-name { flex: 1; color: var(--ink); }
.extra-price { font-weight: 600; color: var(--accent-strong); }

/* ── Booking total & status ───────────────────────────────── */

.booking-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.booking-total-row strong { font-size: 1.2rem; color: var(--accent-strong); }

.booking-status {
  font-size: 0.88rem;
  margin-top: 8px;
  border-radius: 8px;
  padding: 0;
}

.booking-status.success { color: var(--green); }
.booking-status.error { color: var(--red); }

/* ── Room detail page ─────────────────────────────────────── */

.topbar-back {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-back:hover { color: #fff; }

.room-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Gallery ──────────────────────────────────────────────── */

.gallery {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-placeholder {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e4de;
  color: var(--ink-muted);
  font-size: 1rem;
  border-radius: var(--radius);
}

.gallery-main-wrap {
  position: relative;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.7); }
.gallery-arrow-left { left: 14px; }
.gallery-arrow-right { right: 14px; }

.gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #e8e4de;
  transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb:hover { border-color: var(--accent-soft); }

/* ── Detail body layout ───────────────────────────────────── */

.room-detail-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .room-detail-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .room-detail-panel { position: static; }
}

.room-detail-info { display: flex; flex-direction: column; gap: 24px; }

.room-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--accent-strong);
}

.room-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.room-detail-description {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* ── Pricing table ────────────────────────────────────────── */

.pricing-table { display: flex; flex-direction: column; gap: 8px; }

.pricing-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
}

.pricing-season { color: var(--ink-muted); text-transform: capitalize; }
.pricing-amount { font-weight: 700; color: var(--accent-strong); }

/* ── Booking panel ────────────────────────────────────────── */

.room-detail-panel { position: sticky; top: 80px; }

.panel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--accent-strong);
}

.panel-dates { display: flex; flex-direction: column; gap: 12px; }

#bookingForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.panel-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.unavailable-msg {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  text-align: center;
}

/* Card footer */
.room-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-details {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.15s;
}
.btn-details:hover { color: var(--accent-strong); }

.btn-book {
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* ── Profile page ─────────────────────────────────────────── */

.profile-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.profile-email {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

@media (max-width: 700px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-msg {
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 10px 14px;
}

.profile-msg-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.profile-msg-error {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}

/* ── Bookings page ────────────────────────────────────────── */

.bookings-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bookings-section { display: flex; flex-direction: column; gap: 20px; }

.bookings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bookings-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent-strong);
}

.bookings-section-sub {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.bookings-list { display: flex; flex-direction: column; gap: 16px; }

.bookings-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.bookings-empty a { color: var(--accent); text-decoration: none; font-weight: 600; }

.booking-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

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

.cart-item { border-left: 3px solid var(--accent); }

.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-card-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-ref {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.booking-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.booking-room-type {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-strong);
}

.booking-room-number {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-left: 8px;
}

.booking-card-badges, .booking-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-confirmed { background: #dcfce7; color: #15803d; }
.badge-pending   { background: #fef9c3; color: #854d0e; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }

.booking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.booking-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.booking-room-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.booking-room-occ { color: var(--ink-muted); }
.booking-room-price { margin-left: auto; font-weight: 700; color: var(--accent-strong); }

.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.booking-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.error-text { color: var(--red); }

/* Topbar cart link */
.topbar-cart {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.topbar-cart:hover { opacity: 0.8; }
.cart-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* ── Login page ───────────────────────────────────────────── */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
}

.login-card {
  background: var(--card);
  border-radius: 20px;
  padding: 36px 32px;
  width: min(100%, 400px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent-strong);
  text-align: center;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  color: var(--ink-muted);
  border: none;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 4px rgba(15,23,42,0.1);
}

.auth-panel { display: flex; flex-direction: column; gap: 16px; }

.login-fields { display: flex; flex-direction: column; gap: 12px; }

.login-error {
  color: var(--red);
  font-size: 0.88rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
}

/* ── Toast ────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease-out;
}

.toast.success { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.toast.error { background: linear-gradient(135deg, #b91c1c, #ef4444); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .hero { padding: 40px 16px 60px; }
  .search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
    align-items: stretch;
  }
  .search-divider { width: 100%; height: 1px; margin: 0; }
  .btn-search { border-radius: 12px; padding: 14px; width: 100%; }
  .container { padding: 0 16px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .drawer-grid { grid-template-columns: 1fr; }
  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { max-width: unset; }
  .login-card { padding: 28px 20px; }

  /* Detail page */
  .room-detail-page { padding: 20px 16px 60px; }
  .gallery-main-wrap { height: 260px; }
  .room-detail-body { grid-template-columns: 1fr; gap: 24px; }
  .room-detail-panel { position: static; }
}
