/* ============================================================
   main.css — Bawsala (بوصلة) Home Page
   Minimalist luxury dark-mode redesign
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:        #003329;
  --bg-2:      #012a22;
  --bg-3:      #011f19;
  --line:      rgba(255, 255, 255, 0.10);
  --white:     #ffffff;
  --ivory:     #f3efe4;
  --muted:     rgba(243, 239, 228, 0.62);
  --accent:    #d9c994;
  --accent-2:  #eee1b8;
  --on-accent: #0b241d;
  --radius:    20px;
  --radius-lg: 28px;
  --trans:     0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font:      "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ── Shared eyebrow label ─────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 620px at 50% 10%, rgba(217, 201, 148, 0.16), transparent 70%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.hero-h1 {
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.32;
  max-width: 900px;
  margin-bottom: 26px;
  animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-p {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.9;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  animation: heroRise 1s 0.08s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 34px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(217, 201, 148, 0.22);
  transition: transform var(--trans), box-shadow var(--trans), filter var(--trans);
  animation: heroRise 1.1s 0.16s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(217, 201, 148, 0.34);
  filter: brightness(1.05);
  color: var(--on-accent);
}

.btn-cta i { font-size: 15px; }

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  animation: heroRise 1.15s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-trust span:not(:last-child)::after {
  content: '•';
  margin-inline-start: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 58px;
  animation: heroRise 1.2s 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero-stat-div {
  width: 1px;
  height: 34px;
  background: var(--line);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll i {
  font-size: 15px;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   CITY STEPPER (side navigation dots)
═══════════════════════════════════════════════════════════ */
.city-stepper {
  position: fixed;
  top: 50%;
  inset-inline-end: 26px;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.city-stepper.visible { opacity: 1; pointer-events: auto; }

.city-stepper::before {
  content: '';
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: -1;
}

.stepper-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 20, 16, 0.5);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stepper-dot:hover { border-color: var(--accent-2); color: var(--white); }

.stepper-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: scale(1.18);
  box-shadow: 0 6px 20px rgba(217, 201, 148, 0.4);
}

@media (max-width: 900px) {
  .city-stepper { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   CITIES — CINEMATIC SCROLL SECTION
═══════════════════════════════════════════════════════════ */
.cities-scroll {
  position: relative;
  background: var(--bg);
}

.cities-scroll-heading {
  text-align: center;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--white);
  padding: 100px 24px 50px;
}

.city-panel {
  position: relative;
  height: 100vh;
  min-height: 560px;
}

.city-sticky {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.city-panel.side-start .city-sticky { justify-content: flex-start; }
.city-panel.side-end   .city-sticky { justify-content: flex-end; }

.city-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
}

.city-scrim {
  position: absolute;
  inset: 0;
}

.city-panel.side-start .city-scrim {
  background: linear-gradient(to right,
    rgba(0, 20, 16, 0.95) 0%,
    rgba(0, 20, 16, 0.74) 40%,
    rgba(0, 20, 16, 0.16) 78%);
}

.city-panel.side-end .city-scrim {
  background: linear-gradient(to left,
    rgba(0, 20, 16, 0.95) 0%,
    rgba(0, 20, 16, 0.74) 40%,
    rgba(0, 20, 16, 0.16) 78%);
}

.city-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 6vw;
  padding: 46px 42px;
  border-radius: var(--radius-lg);
  background: rgba(0, 20, 16, 0.38);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.city-line {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.city-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.city-line-head { margin-bottom: 4px; }

.city-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.city-name {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.city-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}

.city-desc {
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  margin: 20px 0;
}

.city-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.city-fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 13px;
  border-radius: 20px;
}

.city-fact i { color: var(--accent); font-size: 12px; }

.city-list { margin: 14px 0; }

.city-list-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}

.city-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city-list li {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  padding-inline-start: 15px;
  position: relative;
}

.city-list li::before {
  content: '—';
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  opacity: 0.75;
}

.city-map-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), filter var(--trans);
}

.city-map-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(217, 201, 148, 0.32);
}

@media (max-width: 900px) {
  .city-text  { max-width: 460px; padding: 36px 30px; }
}

@media (max-width: 640px) {
  .city-panel { min-height: 640px; }
  .city-sticky,
  .city-panel.side-start .city-sticky,
  .city-panel.side-end   .city-sticky { justify-content: center; }
  .city-text { margin: 0 20px; max-width: none; padding: 30px 24px; }
  .city-name { font-size: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   DESCRIBE US IN A WORD
═══════════════════════════════════════════════════════════ */
.word-section {
  padding: 120px 24px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.word-heading {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  max-width: 620px;
  margin: 14px auto 10px;
  color: var(--white);
  line-height: 1.5;
}

.word-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 50px;
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
  max-width: 860px;
  margin: 0 auto;
}

.word-tag {
  font-weight: 800;
  color: var(--white);
  cursor: default;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), color 0.3s ease, filter 0.3s ease;
}

.word-tag.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--rot, 0deg));
}

.word-tag.visible:hover {
  color: var(--accent-2);
  filter: brightness(1.2);
  transform: translateY(-5px) scale(1.08) rotate(var(--rot, 0deg));
}

.wt-1 { font-size: clamp(30px, 4.4vw, 48px); color: var(--accent); }
.wt-2 { font-size: clamp(22px, 3vw, 32px); --rot: -2deg; }
.wt-3 { font-size: clamp(32px, 4.8vw, 52px); color: var(--accent-2); }
.wt-4 { font-size: clamp(20px, 2.6vw, 28px); --rot: 2deg; }
.wt-5 { font-size: clamp(22px, 3vw, 32px); }
.wt-6 { font-size: clamp(18px, 2.4vw, 26px); opacity: 0.9; }
.wt-7 { font-size: clamp(24px, 3.4vw, 36px); color: var(--accent); --rot: -1.5deg; }
.wt-8 { font-size: clamp(18px, 2.4vw, 26px); }
.wt-9 { font-size: clamp(26px, 3.8vw, 40px); color: var(--accent-2); --rot: 1.5deg; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  padding: 34px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
}

.footer-brand i { color: var(--accent); font-size: 20px; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--trans);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   CITY EXPLORER MODAL
═══════════════════════════════════════════════════════════ */
.ce-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 20px 20px;
  backdrop-filter: blur(8px);
  animation: ceFadeIn 0.22s ease;
}

@keyframes ceFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ce-container {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
  animation: ceSlideUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes ceSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ce-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ce-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  min-width: 170px;
  flex-shrink: 0;
}

.ce-title i { color: var(--accent); }

.ce-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1;
}

.ce-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(243, 239, 228, 0.65);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.ce-filter:hover {
  background: rgba(217, 201, 148, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.ce-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(217, 201, 148, 0.4);
}

.ce-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  color: rgba(243, 239, 228, 0.6);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ce-close:hover {
  background: rgba(255, 59, 48, 0.18);
  border-color: rgba(255, 59, 48, 0.45);
  color: #ff3b30;
}

.ce-body {
  display: grid;
  grid-template-columns: 1fr 310px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ce-map { width: 100%; height: 100%; min-height: 420px; }

.ce-sidebar {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-3);
}

.ce-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ce-list::-webkit-scrollbar { width: 4px; }
.ce-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.ce-place-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ce-place-card:hover {
  background: rgba(217, 201, 148, 0.08);
  border-color: rgba(217, 201, 148, 0.25);
  transform: translateX(3px);
}

.ce-place-card.highlighted {
  background: rgba(217, 201, 148, 0.14);
  border-color: var(--accent);
}

.cpc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.cpc-name  { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.3; flex: 1; }
.cpc-stars { font-size: 12px; font-weight: 800; color: #ffd700; white-space: nowrap; }

.cpc-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: 8px; color: #fff;
  display: inline-block; margin-bottom: 5px;
}

.cpc-cat.hotel      { background: rgba(108, 92, 231, 0.5); }
.cpc-cat.restaurant { background: rgba(225, 112, 85, 0.5); }
.cpc-cat.cafe       { background: rgba(201, 146, 42, 0.5); }
.cpc-cat.attraction { background: rgba(0, 184, 148, 0.4); }

.cpc-desc  { font-size: 11px; color: rgba(243, 239, 228, 0.42); line-height: 1.5; font-style: italic; }
.cpc-price { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 5px; }
.cpc-free  { color: #00b894; }

.ce-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-3);
  flex-shrink: 0;
}

.ce-count { font-size: 13px; color: var(--muted); }

@media (max-width: 768px) {
  .ce-overlay    { padding: 56px 0 0; }
  .ce-container  { border-radius: 20px 20px 0 0; max-height: calc(100vh - 56px); }
  .ce-body       { grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
  .ce-sidebar    { border-left: none; border-top: 1px solid var(--line); max-height: 240px; }
  .ce-map        { min-height: 260px; }
  .ce-footer     { flex-wrap: wrap; padding: 10px 14px; }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON
═══════════════════════════════════════════════════════════ */
.fab-plan {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(217, 201, 148, 0.45);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow var(--trans), filter var(--trans);
  text-decoration: none;
}

.fab-plan.fab-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-plan:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 40px rgba(217, 201, 148, 0.6);
  transform: translateY(-3px) scale(1.03);
  color: var(--on-accent);
}

.fab-plan i { font-size: 16px; }

@media (max-width: 560px) {
  .fab-plan {
    bottom: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .fab-label { display: none; }
  .fab-plan i { font-size: 20px; }
}

[dir="rtl"] .fab-plan { right: auto; left: 30px; }
@media (max-width: 560px) { [dir="rtl"] .fab-plan { right: auto; left: 18px; } }
