@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400;1,700&family=Barlow:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d1117;
  --bg-2:        #111720;
  --bg-card:     #141b27;
  --bg-card-2:   #1a2233;
  --gold:        #f0a500;
  --gold-2:      #ffc133;
  --gold-dim:    #a07020;
  --gold-line:   rgba(240, 165, 0, 0.2);
  --gold-glow:   rgba(240, 165, 0, 0.08);
  --text:        #e8edf5;
  --text-muted:  #8a94a6;
  --text-dim:    #4a5568;
  --border:      rgba(255, 255, 255, 0.06);
  --border-gold: rgba(240, 165, 0, 0.25);
  --shadow:      rgba(0, 0, 0, 0.5);
  --shadow-gold: rgba(240, 165, 0, 0.15);
  --danger:      #e05252;
  --success:     #48bb78;
  --pending:     #f0a500;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 74px;
  background: #000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center; 
}
.logo img{
  width: auto;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }

.nav-user {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.btn-nav {
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: #0d1117;
  border: none;
  border-radius: 999px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--gold-2); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.3s;
}


/* ── MOBILE OVERLAY ── */
/* Mobile Overlay */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000; 
}
.mob-overlay.active {
  display: block;
}


/* ── MOBILE DRAWER — slides from TOP ── */
/* Change these two rules */
.mob-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #000;
  z-index: 1001; /* higher than nav's 1000 */
  display: flex;
  flex-direction: column;
  transform: translateY(-100%); /* ← was translateX(-100%) */
  transition: transform 0.3s ease;
}
.mob-drawer.active {
  transform: translateY(0); /* ← was translateX(0) */
}

.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}
.mob-header img {
  height: 55px;
  width: auto;
  max-width: calc(100% - 60px); 
  object-fit: contain;
  flex-shrink: 1;
}
.mob-close {
  background: #0d1b2a !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.mob-close:hover { background: var(--gold-glow); color: var(--gold); }

.mob-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;        /* ← takes up all available space, pushes footer down */
  overflow-y: auto;
}

.mob-drawer a,
.mob-drawer a:visited,
.mob-drawer a:link {
  color: #e8edf5;
  text-decoration: none;
}
.mob-drawer .mob-link {
  color: #e8edf5 !important;
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}
.mob-drawer .mob-link:hover { color: var(--gold); }

.mob-drawer .mob-login {
  color: #8a94a6;
}
.mob-drawer .mob-login:hover { color: #e8edf5; }

.mob-footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;  /* ← pins footer to bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-login {
  color: #cdd5e0;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-login:hover {
  color: #fff;
}

.mob-book {
  display: block;
  background: #f5a623;
  color: #1a1a1a;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.mob-book:hover {
  background: #e09610;
}
/* ── MESSAGES ── */
.messages {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 100%;
  max-width: 600px;
  padding: 0 1rem;
}
.alert {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  border: 1px solid;
  backdrop-filter: blur(12px);
}
.alert-success { background: rgba(72,187,120,0.12); border-color: rgba(72,187,120,0.3); color: #68d391; }
.alert-error   { background: rgba(224,82,82,0.12);  border-color: rgba(224,82,82,0.3);  color: #fc8181; }
.alert-warning { background: rgba(240,165,0,0.12);  border-color: rgba(240,165,0,0.3);  color: var(--gold); }
.alert-info    { background: var(--gold-glow); border-color: var(--gold-line); color: var(--gold); }

/* ── LAYOUT (inner pages) ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  flex: 1;
  width: 100%;
}

/* ── PAGE HEADER ── */
.page-header { text-align: center; margin-bottom: 4rem; padding-top: 2rem; }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-header h1 .gold { color: var(--gold); }
.section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── ROOMS GRID (inner pages) ── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
}
.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: var(--border-gold);
}

.room-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.room-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
  filter: brightness(0.85);
}
.room-card:hover .room-img img { transform: scale(1.08); }

.room-img--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.room-size-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(13,17,23,0.75);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.room-body { padding: 1.8rem; }
.room-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}
.room-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.room-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.room-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.room-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Barlow', sans-serif;
}
.room-arrow {
  width: 100px; height: 50px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.room-arrow:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: #0d1117;
  border: none;
  border-radius: 999px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(240,165,0,0.2);
}
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-full { width: 100%; margin-top: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: #0d1117; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224,82,82,0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ── DETAIL PAGE ── */
.detail-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: -8rem;
  margin-bottom: 4rem;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.98) 0%, rgba(13,17,23,0.3) 60%, transparent 100%);
}
.detail-hero-content { position: absolute; bottom: 3rem; left: 5rem; right: 5rem; }
.detail-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.detail-body { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start; }
.detail-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.9; font-weight: 300; margin-bottom: 2rem; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.meta-item { display: flex; flex-direction: column; gap: 0.4rem; }
.meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); font-weight: 600; }
.meta-value { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }

.booking-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-price { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-price .amount { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.sidebar-price .per-night { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }
.sidebar-note { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; font-weight: 300; }

/* ── FORMS ── */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 2.5rem; }
.form-header h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }

.booking-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(3) hue-rotate(5deg);
  cursor: pointer;
}
.field-error { font-size: 0.78rem; color: #fc8181; }
.form-footer { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--text-muted); }
.form-footer a { color: var(--gold); text-decoration: none; }

/* ── BOOKINGS ── */
.bookings-list { display: flex; flex-direction: column; gap: 1.2rem; }
.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.booking-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.booking-card.status-pending::before   { background: var(--pending); }
.booking-card.status-confirmed::before { background: var(--success); }
.booking-card.status-cancelled::before { background: var(--danger); }
.booking-card:hover { border-color: var(--border-gold); box-shadow: 0 8px 40px var(--shadow); }
.booking-card.status-cancelled { opacity: 0.55; }

.booking-info { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.booking-info h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.booking-dates, .booking-meta { display: flex; gap: 2rem; font-size: 0.84rem; color: var(--text-muted); }
.booking-dates strong, .booking-meta strong { color: var(--text); font-weight: 500; }
.booking-meta .price { color: var(--gold); font-weight: 600; }

.booking-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; flex-shrink: 0; }

.status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid;
}
.status-pending   { color: var(--gold);  border-color: rgba(240,165,0,0.3);  background: rgba(240,165,0,0.08); }
.status-confirmed { color: #68d391;      border-color: rgba(72,187,120,0.3); background: rgba(72,187,120,0.08); }
.status-cancelled { color: #fc8181;      border-color: rgba(224,82,82,0.3);  background: rgba(224,82,82,0.08); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.empty-state p { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 4rem 5rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 2rem;
}
.footer-brand-name {
  display: flex;
  align-items: center; 
}
.footer-brand-name img{
  width: auto;
  height: 70px;
  object-fit: contain;
}
.footer-brand-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; max-width: 240px; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; margin-bottom: 0.75rem; line-height: 1.5; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-links { display: flex; gap: 2rem; list-style: none; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
}
@media (max-width: 768px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-right .btn-nav, .nav-right .nav-login, .nav-right .nav-user { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .rooms-grid { grid-template-columns: 1fr; }
  .booking-card { flex-direction: column; align-items: flex-start; }
  .booking-actions { align-items: flex-start; flex-direction: row; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .detail-hero-content { left: 1.5rem; right: 1.5rem; }
}