/* ============================================
   GRATUS HOTELS — Luxury Gold & Dark Theme
   ============================================ */

:root {
  --bg-0: #0a0a0a;
  --bg-1: #131313;
  --bg-2: #1a1a1a;
  --bg-3: #222;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --gold: #d4af37;
  --gold-2: #f4d160;
  --gold-3: #b8941f;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --danger: #c0392b;
  --success: #27ae60;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-gold: 0 6px 24px rgba(212, 175, 55, .25);
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Noto Naskh Arabic', 'Inter', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
}

/* Light theme overrides */
body.theme-light {
  --bg-0: #fafafa;
  --bg-1: #ffffff;
  --bg-2: #f3f3f3;
  --bg-3: #e9e9e9;
  --line: #e0e0e0;
  --text: #1a1a1a;
  --muted: #666666;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

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

html, body {
  font-family: var(--font-ar);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* Hide ugly scrollbar — Firefox + IE/Edge */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* ✦ LUXURY MULTI-LAYER BACKGROUND ✦ */
  background:
    /* Gold glow from top center */
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(212,175,55,.10) 0%, transparent 55%),
    /* Bottom right gold accent */
    radial-gradient(ellipse 50% 40% at 95% 95%, rgba(212,175,55,.06) 0%, transparent 50%),
    /* Top left subtle gold */
    radial-gradient(ellipse 50% 35% at 5% 25%, rgba(244,209,96,.04) 0%, transparent 50%),
    /* Mid screen subtle */
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(184,148,31,.03) 0%, transparent 60%),
    /* Bottom left dark vignette */
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(0,0,0,.4) 0%, transparent 50%),
    /* Subtle noise texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.69 0 0 0 0 0.22 0 0 0 0.012 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    /* Base gradient — darker top to even darker bottom */
    linear-gradient(180deg, #0e0a06 0%, #0a0908 50%, #08070a 100%);
  background-attachment: fixed;
}
/* Hide scrollbar for Chrome, Safari, Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}
/* Apply globally — no scrollbars anywhere */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[dir="ltr"] { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============ TOPBAR — Pure Black Matte ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #000000;
  border-bottom: 1px solid rgba(212,175,55,.20);
  box-shadow: 0 4px 20px rgba(0,0,0,.7);
}
/* Subtle gold accent line under topbar */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
body.theme-light .topbar { background: #ffffff; }

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }

.top-actions { display: flex; align-items: center; gap: 12px; }

/* ============ MAIN ============ */
.main { padding-bottom: 100px; min-height: calc(100vh - 72px); }

.route { display: none; animation: fadeIn 1s ease; }
.route.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700;
  margin-bottom: 8px;
}
.section-head h2::after {
  content: ''; display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  margin: 14px auto 0; border-radius: 3px;
}
.section-head p { color: var(--muted); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 80vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(212,175,55,.18) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(212,175,55,.12) 0%, transparent 50%);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg-0) 100%); }
.hero-inner { position: relative; text-align: center; padding: 80px 20px; max-width: 1100px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 6px 18px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700; line-height: 1.15;
  background: linear-gradient(120deg, var(--text) 30%, var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }

/* ============ SEARCH BAR ============ */
.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-gold);
  max-width: 1000px; margin: 0 auto;
}
.search-field { padding: 12px 18px; border-left: 1px solid var(--line); }
body[dir="rtl"] .search-field { border-left: none; border-right: 1px solid var(--line); }
body[dir="rtl"] .search-field:first-child { border-right: none; }
body[dir="ltr"] .search-field:first-child { border-left: none; }
.search-field label { display: block; font-size: 11px; color: var(--gold); margin-bottom: 4px; letter-spacing: 1px; }
.search-field input, .search-field select {
  width: 100%; border: none; background: transparent;
  color: var(--text); font: inherit; outline: none;
}
.btn-search { margin: 4px; }

/* ============ GRID ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s;
}
.feature:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 28px; font-weight: 700;
}
.feature h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; color: var(--gold); }
.feature p { color: var(--muted); font-size: 14px; }

/* ============ FILTERS ============ */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.filters input, .filters select {
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  font: inherit;
  transition: border-color .2s;
}
.filters input:focus, .filters select:focus { border-color: var(--gold); }

.no-results { text-align: center; padding: 60px 0; color: var(--muted); }
