@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: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.82);
  --paper: #090806;
  --card: rgba(18, 15, 10, 0.94);
  --accent: #c8a64d;
  --accent-strong: #f3d37a;
  --accent-soft: #ffffff;
  --accent-light: rgba(200, 166, 77, 0.14);
  --line: rgba(243, 211, 122, 0.18);
  --glow: rgba(243, 211, 122, 0.18);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 72px rgba(0, 0, 0, 0.42);
  --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:
    radial-gradient(circle at top, rgba(243, 211, 122, 0.12), transparent 32%),
    linear-gradient(180deg, #141008 0%, #090806 38%, #050403 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

body.home-page {
  background: #ffffff;
  color: #16120d;
}

body.home-page .hero {
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 15, 10, 0.08);
}

body.home-page .hero::before {
  background: none;
  opacity: 0;
}

body.home-page .hero-brand-mark {
  background: #ffffff;
  border: 1px solid rgba(200, 166, 77, 0.22);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.home-page .hero h1 {
  color: #16120d;
  text-shadow: none;
}

body.home-page .hero p {
  color: rgba(22, 18, 13, 0.72);
}

body.home-page .search-bar {
  background: #ffffff;
  border: 1px solid rgba(20, 15, 10, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.home-page .search-label {
  color: rgba(22, 18, 13, 0.68);
}

body.home-page .search-field input {
  color: #16120d;
}

body.home-page .search-divider {
  background: rgba(20, 15, 10, 0.1);
}

body.home-page .container {
  margin-top: 24px;
}

body.room-page {
  background: #ffffff;
  color: #16120d;
}

body.room-page .room-detail-title,
body.room-page .panel-title {
  color: #16120d;
}

body.room-page .room-detail-description,
body.room-page .section-label,
body.room-page .pricing-season,
body.room-page .panel-sub,
body.room-page .room-meta-item,
body.room-page label,
body.room-page .drawer-subtitle,
body.room-page .added-room-meta,
body.room-page .pricing-row,
body.room-page .gallery-placeholder {
  color: rgba(22, 18, 13, 0.72);
}

body.room-page .pricing-amount,
body.room-page .booking-total-row strong,
body.room-page .added-room-price,
body.room-page .extra-price {
  color: #16120d;
}

body.room-page .gallery-placeholder,
body.room-page .gallery-thumb,
body.room-page .pricing-table-row,
body.room-page .added-room-item,
body.room-page .extra-item {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.1);
}

body.room-page .room-detail-page {
  padding-top: 40px;
}

body.room-page .gallery-main-wrap {
  background: #f5f5f5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.room-page .panel-card {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.room-page select,
body.room-page input[type="text"],
body.room-page input[type="datetime-local"],
body.room-page input[type="email"],
body.room-page input[type="password"] {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.12);
  color: #16120d;
}

body.room-page .pricing-summary {
  background: rgba(200, 166, 77, 0.08);
}

body.room-page .panel-divider,
body.room-page .booking-total-row {
  border-color: rgba(20, 15, 10, 0.1);
  background: transparent;
}

body.bookings-page-light {
  background: #ffffff;
  color: #16120d;
}

body.bookings-page-light .bookings-section-title,
body.bookings-page-light .booking-ref,
body.bookings-page-light .booking-room-type,
body.bookings-page-light .booking-total,
body.bookings-page-light .booking-room-price {
  color: #16120d;
}

body.bookings-page-light .bookings-section-sub,
body.bookings-page-light .bookings-empty,
body.bookings-page-light .booking-date,
body.bookings-page-light .booking-room-number,
body.bookings-page-light .booking-card-meta,
body.bookings-page-light .booking-room-occ {
  color: rgba(22, 18, 13, 0.72);
}

body.bookings-page-light .bookings-empty,
body.bookings-page-light .booking-card,
body.bookings-page-light .booking-rooms-list {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.bookings-page-light .booking-card:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

body.bookings-page-light .cart-item {
  border-left-color: var(--accent);
}

body.bookings-page-light .bookings-empty a {
  color: #16120d;
}

body.bookings-page-light .booking-card-badges,
body.bookings-page-light .booking-card-actions {
  gap: 10px;
}

body.bookings-page-light .booking-badge {
  padding: 6px 14px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
}

body.bookings-page-light .badge-confirmed {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

body.bookings-page-light .badge-pending {
  background: #fff7e6;
  color: #9a6700;
  border-color: #f3d089;
}

body.bookings-page-light .badge-cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

body.profile-page-light {
  background: #ffffff;
  color: #16120d;
}

body.profile-page-light .profile-name,
body.profile-page-light .profile-card-title {
  color: #16120d;
}

body.profile-page-light .profile-email,
body.profile-page-light label {
  color: rgba(22, 18, 13, 0.72);
}

body.profile-page-light .profile-card {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.profile-page-light .profile-avatar {
  background: linear-gradient(135deg, #d0ac54, #f3d37a);
  color: #ffffff;
}

body.profile-page-light input[type="text"],
body.profile-page-light input[type="email"],
body.profile-page-light input[type="password"] {
  background: #ffffff;
  border-color: rgba(20, 15, 10, 0.12);
  color: #16120d;
}

body.profile-page-light #savePasswordBtn {
  background: #ffffff;
  color: #16120d;
  border-color: rgba(200, 166, 77, 0.8);
}

body.profile-page-light #savePasswordBtn:hover {
  background: rgba(200, 166, 77, 0.12);
  color: #16120d;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(6, 5, 4, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(200,166,77,0.18));
  padding: 6px;
  border: 1px solid rgba(243, 211, 122, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.16rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.topbar-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s, opacity 0.2s;
}

.topbar-link:visited {
  color: var(--accent-soft);
}

.topbar-link:hover {
  color: #ffffff;
  opacity: 1;
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(243, 211, 122, 0.28);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: rgba(243, 211, 122, 0.12);
  border-color: rgba(243, 211, 122, 0.52);
  color: var(--accent-strong);
}

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

.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 211, 122, 0.18), transparent 45%),
    linear-gradient(135deg, #120f09 0%, #090806 65%, #120d06 100%);
  padding: 56px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(243, 211, 122, 0.08), transparent),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4b15a' fill-opacity='0.06'%3E%3Cpath d='M40 0l8 24h24L52 40l8 24-20-14L20 64l8-24L8 24h24z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

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

.hero-brand-mark {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(200,166,77,0.18));
  border: 1px solid rgba(243, 211, 122, 0.24);
  box-shadow: var(--shadow);
}

.hero-brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

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

.search-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 11, 7, 0.92);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  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, #8e6a1f, var(--accent), var(--accent-strong));
  color: #140f07;
  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);
  border: 1px solid var(--line);
}

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

.room-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(20, 15, 10, 0.08);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

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

.room-img-wrap {
  position: relative;
  height: 220px;
  background: linear-gradient(160deg, rgba(243, 211, 122, 0.14), #f6f1df);
  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, #f3e2ae 0%, #2b251b 100%);
}

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

.room-img-placeholder span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  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;
  border: 1px solid transparent;
}

.badge-available { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.badge-unavailable { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.room-card-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.room-overlay-pill {
  background: rgba(20, 15, 10, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.room-overlay-pill-soft {
  background: rgba(243, 211, 122, 0.86);
  color: #1a140d;
  border-color: rgba(20, 15, 10, 0.08);
}

.room-body {
  padding: 20px 20px 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: 14px;
  margin-bottom: 12px;
}

.room-heading {
  min-width: 0;
}

.room-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 18, 13, 0.5);
  margin-bottom: 6px;
}

.room-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #16120d;
  line-height: 1.3;
}

.room-price-card {
  background: #faf7ef;
  border: 1px solid rgba(200, 166, 77, 0.22);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 150px;
  text-align: right;
  flex-shrink: 0;
}

.room-price { text-align: right; }
.price-from { font-size: 0.68rem; color: rgba(22, 18, 13, 0.58); display: block; text-transform: uppercase; letter-spacing: 0.08em; }
.price-amount { font-size: 1.2rem; font-weight: 800; color: #16120d; }
.price-night { font-size: 0.72rem; color: rgba(22, 18, 13, 0.62); margin-left: 2px; }
.price-na { font-size: 0.82rem; color: rgba(22, 18, 13, 0.62); font-style: italic; }
.price-note { display: block; margin-top: 4px; font-size: 0.72rem; color: rgba(22, 18, 13, 0.56); }

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

.room-meta-chip {
  font-size: 0.76rem;
  color: #3e3528;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f4ee;
  border: 1px solid rgba(20, 15, 10, 0.08);
}

.room-description {
  font-size: 0.9rem;
  color: rgba(22, 18, 13, 0.72);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
  max-height: 2.8em;
  word-break: break-word;
}

.room-description-muted {
  color: rgba(22, 18, 13, 0.58);
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.amenity-tag {
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8f1dc;
  color: #6f571d;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.amenity-more {
  background: #f3f3f3;
  color: rgba(22, 18, 13, 0.62);
}

.room-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.room-trust-item {
  font-size: 0.76rem;
  color: rgba(22, 18, 13, 0.68);
  font-weight: 600;
}

.room-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(20, 15, 10, 0.08); }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #8e6a1f, var(--accent), var(--accent-strong));
  color: #140f07;
  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-strong);
  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: #140f07; }

.btn-unavailable {
  background: #f5f5f5;
  color: #8f8767;
  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: -12px 0 48px rgba(0, 0, 0, 0.45);
  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: rgba(255, 255, 255, 0.06);
  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: rgba(243, 211, 122, 0.12); }

.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: rgba(255, 255, 255, 0.03);
  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: rgba(255, 255, 255, 0.03);
  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: rgba(185, 28, 28, 0.18);
  color: #fca5a5;
  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: rgba(185, 28, 28, 0.28); }

/* ── 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: rgba(255, 255, 255, 0.04); }
.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 ─────────────────────────────────────── */

.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: rgba(255, 255, 255, 0.04);
  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: rgba(255, 255, 255, 0.05);
  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: rgba(255, 255, 255, 0.03);
  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: rgba(185, 28, 28, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.24);
  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: 12px;
}

.btn-details {
  font-size: 0.84rem;
  color: #16120d;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 15, 10, 0.08);
  background: #ffffff;
  transition: color 0.15s;
}
.btn-details:hover { color: #16120d; background: #faf7ef; }

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

@media (max-width: 960px) {
  .topbar {
    padding: 12px 18px;
  }

  .topbar-right {
    gap: 12px;
  }

  .room-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .room-price-card {
    width: 100%;
    text-align: left;
  }

  .room-price {
    text-align: left;
  }

  .room-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-details,
  .btn-book,
  .btn-unavailable {
    width: 100%;
    text-align: center;
  }

  .booking-card-header,
  .booking-card-footer,
  .booking-room-line {
    align-items: flex-start;
  }

  .booking-room-price {
    margin-left: 0;
  }
}

/* ── 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: rgba(21, 128, 61, 0.18);
  color: #7df0a9;
  border: 1px solid rgba(125, 240, 169, 0.18);
}

.profile-msg-error {
  background: rgba(185, 28, 28, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.24);
}

/* ── 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: rgba(21, 128, 61, 0.18); color: #7df0a9; }
.badge-pending   { background: rgba(200, 166, 77, 0.18); color: var(--accent-strong); }
.badge-cancelled { background: rgba(185, 28, 28, 0.18); color: #fca5a5; }

.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: rgba(255, 255, 255, 0.03);
  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: var(--accent-soft);
  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: 1; color: var(--accent-strong); }
.cart-count {
  background: var(--accent-strong);
  color: #140f07;
  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:
    radial-gradient(circle at top, rgba(243, 211, 122, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

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

.login-card::before {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 211, 122, 0.16), transparent 70%);
  pointer-events: none;
}

.login-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 2px;
}

.login-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(200,166,77,0.18));
  border: 1px solid rgba(243, 211, 122, 0.22);
  padding: 6px;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login-brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.login-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

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

.auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(243, 211, 122, 0.12);
  border-radius: 16px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-tab {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  font-family: inherit;
}

.auth-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.auth-tab.active {
  background: linear-gradient(180deg, rgba(243, 211, 122, 0.22), rgba(200, 166, 77, 0.16));
  color: #f6d77b;
  border-color: rgba(243, 211, 122, 0.2);
  box-shadow: inset 0 0 0 1px rgba(243, 211, 122, 0.08);
  transform: translateY(-1px);
}

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

.auth-note {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

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

#loginBtn,
#registerBtn,
#forgotBtn,
#resetPasswordBtn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #8e6a1f, var(--accent), var(--accent-strong));
  color: #140f07;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#loginBtn:hover:not(:disabled),
#registerBtn:hover:not(:disabled),
#forgotBtn:hover:not(:disabled),
#resetPasswordBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

#loginBtn:disabled,
#registerBtn:disabled,
#forgotBtn:disabled,
#resetPasswordBtn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.auth-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  text-align: center;
}

.auth-link:hover {
  color: #ffffff;
}

.login-error {
  color: #fca5a5;
  font-size: 0.88rem;
  background: rgba(185, 28, 28, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.24);
  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 14px;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar-left,
  .topbar-right {
    gap: 10px;
  }
  .topbar-right {
    max-width: 58%;
    justify-content: flex-end;
  }
  .brand-copy { display: none; }
  .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
  .topbar-link,
  .topbar-name,
  .topbar-cart,
  .btn-ghost {
    font-size: 0.8rem;
  }
  .btn-ghost {
    padding: 6px 14px;
  }
  .hero { padding: 36px 16px 48px; }
  .hero-brand-mark { width: 78px; height: 78px; margin-bottom: 14px; }
  .hero-brand-logo { width: 56px; height: 56px; }
  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.08;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .search-bar {
    flex-direction: column;
    border-radius: 22px;
    padding: 14px;
    gap: 12px;
    align-items: stretch;
  }
  .search-field {
    text-align: left;
  }
  .search-field input {
    font-size: 0.92rem;
  }
  .search-divider { width: 100%; height: 1px; margin: 0; }
  .btn-search { border-radius: 12px; padding: 14px; width: 100%; }
  .container { padding: 0 12px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .loading-state {
    padding: 42px 18px;
  }
  .room-card {
    border-radius: 18px;
  }
  .room-img-wrap {
    height: 200px;
  }
  .room-body {
    padding: 16px;
  }
  .room-name {
    font-size: 1.18rem;
  }
  .room-meta-grid,
  .amenities-list,
  .room-trust-row {
    gap: 6px;
  }
  .room-meta-chip,
  .amenity-tag {
    font-size: 0.72rem;
  }
  .drawer { width: 100vw; }
  .drawer-grid { grid-template-columns: 1fr; }
  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { max-width: unset; }
  .login-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .login-brand-link { justify-content: flex-start; }
  .auth-tabs {
    gap: 4px;
    padding: 4px;
  }
  .auth-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  /* 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; }
  .panel-card,
  .profile-card,
  .booking-card,
  .bookings-empty {
    border-radius: 18px;
  }
  .profile-page,
  .bookings-page {
    padding: 24px 16px 56px;
    gap: 28px;
  }
  .profile-header {
    align-items: flex-start;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  .profile-name,
  .bookings-section-title {
    font-size: 1.28rem;
  }
  .booking-card {
    padding: 16px;
  }
  .bookings-section-header {
    align-items: stretch;
  }
  #confirmAllBtn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
  }

  .topbar-right {
    max-width: none;
    justify-content: space-between;
    align-items: center;
  }

  .topbar-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-card-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .room-overlay-pill {
    font-size: 0.7rem;
    padding: 5px 9px;
  }

  .room-header-row {
    gap: 10px;
  }

  .room-price-card {
    min-width: 0;
  }

  .profile-header {
    flex-direction: column;
  }

  .booking-card-meta {
    gap: 8px;
    flex-direction: column;
  }

  .booking-card-badges,
  .booking-card-actions {
    width: 100%;
  }

  .booking-card-footer {
    width: 100%;
  }
}
