/* ==========================================================================
   Sahara Car Rentals & Tours Customer Portal — Design System
   Tokens: terracotta (header/brand) #C1622D · terracotta-dark (hover) #9C4E24
           sand-tint #F4EDE1 · amber (signature accent) #C9992C · ink text #2E2018
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --navy:#C1622D;
  --navy-2:#9C4E24;
  --blue:#9C4E24;
  --blue-light:#F4EDE1;
  --ice:#FBEBE6;
  --amber:#C9992C;
  --amber-dark:#A97D1E;
  --green:#1FAA59;
  --green-bg:#E3F7EA;
  --red:#E24C4C;
  --red-bg:#FCEAEA;
  --ink:#2E2018;
  --slate:#6B5D4F;
  --slate-light:#9C8C7A;
  --line:#EFE3D6;
  --surface:#FBF6EE;
  --navy-tint:#F8DAD3;
  --white:#ffffff;

  --font-display:'Space Grotesk', 'Inter', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius-s:10px;
  --radius-m:16px;
  --radius-l:24px;
  --radius-full:999px;

  --shadow-s:0 2px 10px rgba(11,31,58,0.06);
  --shadow-m:0 10px 30px rgba(11,31,58,0.10);
  --shadow-l:0 20px 60px rgba(11,31,58,0.16);

  --container:1180px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
ul{list-style:none;margin:0;padding:0;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy);
  margin:0 0 .4em;
  line-height:1.12;
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.2rem,4.4vw,3.4rem); font-weight:700;}
h2{font-size:clamp(1.7rem,2.8vw,2.3rem); font-weight:700;}
h3{font-size:1.25rem; font-weight:600;}
p{margin:0 0 1em; color:var(--slate);}

.mono{font-family:var(--font-mono);}
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
/* Hero sits on a dark navy background — the base coral eyebrow color only
   gives ~3:1 contrast there (fails WCAG AA), so this context uses the
   signature amber instead, which measures ~7.7:1. The base class stays
   coral for every other (light-background) use of .eyebrow, where it
   already passes at ~5.4:1. */
.hero-v2-crumb .eyebrow{ color:#fff; margin-top:14px; margin-bottom:0; }
.eyebrow::before{
  content:"";
  width:18px;height:2px;
  background:var(--amber);
  border-radius:2px;
}

.wrap{max-width:var(--container); margin:0 inset; margin-inline:auto; padding:0 28px;}
section{padding:80px 0;}
@media (max-width:720px){ section{padding:56px 0;} }

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  padding:13px 24px; border-radius:var(--radius-full);
  border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:focus-visible{outline:2px solid var(--amber); outline-offset:2px;}
.btn-primary{background:var(--navy); color:#fff; box-shadow:var(--shadow-s);}
.btn-primary:hover{background:var(--blue); transform:translateY(-1px); box-shadow:var(--shadow-m);}
.btn-accent{background:var(--navy); color:#fff;}
.btn-accent:hover{background:var(--amber-dark); color:#fff; transform:translateY(-1px);}
.btn-ghost{background:transparent; color:var(--navy); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--blue); color:var(--blue);}

.doc-choice-cards{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width:560px){ .doc-choice-cards{grid-template-columns:1fr;} }
.doc-choice-card{
  position:relative;
  display:grid; grid-template-columns:20px 1fr; align-items:start; gap:12px; cursor:pointer;
  background:var(--surface); border:1.5px solid var(--line); border-radius:var(--radius-m);
  padding:14px 16px; transition:border-color .15s, background .15s;
}
.doc-choice-card:hover{border-color:var(--navy-tint);}
.doc-choice-card input[type="radio"]{position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1;}
.doc-choice-radio{
  display:block;
  width:20px; height:20px; margin-top:1px; border-radius:50%; box-sizing:border-box;
  border:2px solid var(--slate-light); position:relative; transition:border-color .15s;
}
.doc-choice-text{display:block; min-width:0;}
.doc-choice-card input:checked ~ .doc-choice-radio{border-color:var(--blue);}
.doc-choice-card input:checked ~ .doc-choice-radio::after{
  content:''; position:absolute; inset:3px; border-radius:50%; background:var(--blue);
}
.doc-choice-card:has(input:checked), .doc-choice-card.selected{border-color:var(--blue); background:#fff; box-shadow:0 2px 10px rgba(11,31,58,.06);}
.doc-choice-card.selected .doc-choice-radio{border-color:var(--blue);}
.doc-choice-card.selected .doc-choice-radio::after{content:''; position:absolute; inset:3px; border-radius:50%; background:var(--blue);}
.doc-choice-title{display:block; font-weight:700; color:var(--ink); font-size:.95rem;}
.doc-choice-sub{display:block; color:var(--slate-light); font-size:.85rem; margin-top:2px;}
.btn-outline-light{background:transparent; color:#fff; border-color:rgba(255,255,255,.4);}
.btn-outline-light:hover{background:rgba(255,255,255,.12); border-color:#fff;}
.btn-block{width:100%;}
.btn-sm{padding:9px 16px; font-size:.85rem;}
.btn[disabled]{opacity:.55; cursor:not-allowed; transform:none !important;}
.btn-danger{background:var(--red-bg); color:var(--red);}
.btn-danger:hover{background:var(--red); color:#fff;}

/* -------------------- Navbar -------------------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav .wrap{display:flex; align-items:center; justify-content:flex-start; min-height:76px;}
.nav-links{display:flex; align-items:center; gap:2px; margin-left:auto; flex-wrap:nowrap;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.2rem; color:var(--navy);}
.brand .mark{width:56px;height:56px;flex:none;}
.brand small{display:block; font-family:var(--font-body); font-weight:500; font-size:.62rem; letter-spacing:.06em; color:var(--slate-light); text-transform:uppercase; margin-top:-2px;}
.nav-links a{
  padding:8px 12px; border-radius:var(--radius-full); font-weight:600; font-size:.86rem; color:var(--ink);
  transition:background .15s ease, color .15s ease; white-space:nowrap;
}
.nav-links a:hover, .nav-links a.active{background:var(--navy); color:#fff;}
.btn-nav-active{background:var(--navy) !important; color:#fff !important; border-color:var(--navy) !important;}
.btn-vvip{
  display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:var(--radius-full);
  font-weight:600; font-size:.86rem; color:var(--ink); margin-right:10px;
  background:transparent; transition:background .15s ease, color .15s ease;
}
.btn-vvip:hover{background:var(--navy); color:#fff;}
.nav-actions{display:flex; align-items:center; gap:10px;}

/* "My bookings" and the profile link are injected into .nav-actions by
   auth.js reusing generic .btn classes — restyle them here so they match
   the plain-black-until-active look of the rest of the nav instead of
   their generic ghost/primary button appearance. */
.nav-actions a.btn-ghost{
  background:transparent; color:var(--ink); border:none; padding:8px 12px;
  border-radius:var(--radius-full); font-weight:600; font-size:.86rem;
}
.nav-actions a.btn-ghost:hover{background:var(--navy); color:#fff; border-color:transparent;}
.nav-profile-icon{
  display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:50%; color:var(--ink); background:transparent; flex:none;
  transition:background .15s ease, color .15s ease;
}
.nav-profile-icon:hover{background:var(--navy); color:#fff;}

/* Mobile nav is handled entirely by the sidebar drawer (.menu-btn/.sidebar)
   — .nav-links is the desktop horizontal nav only, simply hidden below the
   sidebar's breakpoint rather than becoming its own separate toggleable
   dropdown (that used to be a second, conflicting nav system). */
@media (max-width:920px){
  .nav-links{display:none;}
  .nav-actions .hide-mobile{display:none;}
}
@media (max-width:480px){
  .brand{gap:8px; font-size:clamp(1rem, 4.6vw, 1.18rem); white-space:nowrap;}
  .brand .mark{width:44px; height:44px;}
  .brand small{display:block; white-space:normal; font-size:.58rem;}
  .btn-vvip{display:none;}
  .sidebar{top:104px;}
}

/* -------------------- Route motif (signature element) -------------------- */
.route-divider{
  display:flex; align-items:center; gap:14px; margin:10px 0 30px;
}
.route-divider svg{flex:none;}
.route-divider .rd-line{flex:1; height:0; border-top:2px dashed var(--line);}

.waypoints{display:flex; gap:20px; position:relative;}
.waypoint{
  flex:1; position:relative; text-align:left; background:var(--navy);
  border-radius:22px; padding:26px 22px 24px; overflow:hidden;
  box-shadow:0 10px 30px rgba(11,31,58,.18);
}
.waypoint::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:5px; background:var(--amber);
}
.wp-badge-notch{
  position:absolute; top:0; right:0; width:52px; height:52px;
  background:var(--surface); border-radius:0 0 0 26px;
}
.waypoint .wp-pin{
  position:absolute; top:8px; right:10px; z-index:1;
  font-family:var(--font-mono); font-weight:700; font-size:1.05rem; color:var(--navy);
}
.wp-icon{font-size:1.7rem; margin-bottom:16px; display:block;}
.waypoint h3{color:#fff; margin-bottom:8px;}
.waypoint p{color:rgba(255,255,255,.85); font-size:.9rem; line-height:1.55;}
@media (max-width:760px){
  .waypoints{flex-direction:column; gap:18px;}
}

/* -------------------- Hero -------------------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 55%, #6B3B1A 100%);
  color:#fff; padding:48px 0 130px;
}
.hero-route{ position:absolute; inset:0; opacity:.5; pointer-events:none; }
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; position:relative;}
@media (max-width:960px){ .hero-grid{grid-template-columns:1fr;} }
.hero h1{color:#fff;}
.hero .lede{color:#ffffff; font-size:1.08rem; max-width:520px;}
.hero-stats{display:flex; gap:28px; margin-top:24px; flex-wrap:wrap;}
.hero-stats div b{display:block; font-family:var(--font-mono); font-size:1.5rem; color:#fff;}
.hero-stats div span{font-size:.78rem; color:#ffffff; text-transform:uppercase; letter-spacing:.06em;}
.hero-art{position:relative; height:300px;}

/* -------------------- Hero slideshow -------------------- */
.hero-slideshow{position:relative; width:100%; height:100%; border-radius:var(--radius-l); overflow:hidden;}
.hero-slide{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .7s ease; pointer-events:none;}
.hero-slide.active{opacity:1; pointer-events:auto;}
.hero-slide svg{width:100%; height:100%;}
.hero-slide-dots{position:absolute; left:50%; bottom:10px; transform:translateX(-50%); display:flex; gap:7px; z-index:3;}
.hero-slide-dot{width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.35); cursor:pointer; border:none; padding:0; transition:background .2s, transform .2s;}
.hero-slide-dot.active{background:#fff; transform:scale(1.25);}

/* -------------------- Search card -------------------- */
.search-card{
  background:#fff; border-radius:var(--radius-l); box-shadow:var(--shadow-l);
  padding:26px; margin-top:-96px; position:relative; z-index:5;
  border:1px solid var(--line);
}
.search-tabs{display:flex; gap:8px; margin-bottom:20px;}
.search-tab{
  padding:9px 18px; border-radius:var(--radius-full); font-weight:600; font-size:.85rem;
  border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--slate);
}
.search-tab.active{background:var(--navy); color:#fff; border-color:var(--navy);}
.search-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr .8fr; gap:14px;}
@media (max-width:900px){ .search-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .search-grid{grid-template-columns:1fr;} }

.field{display:flex; flex-direction:column; gap:6px; position:relative;}
.field label{font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--slate-light);}
.field input, .field select{
  border:1.5px solid var(--line); border-radius:var(--radius-s); padding:12px 14px; font-size:.94rem;
  font-family:var(--font-body); color:var(--ink); background:#fff; width:100%;
}
.field input:focus, .field select:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(193,98,45,.14);}
.field .hint-btn{
  position:absolute; right:8px; top:32px; background:var(--ice); border:none; border-radius:8px;
  padding:5px 9px; cursor:pointer; font-size:.72rem; font-weight:600; color:var(--blue);
}
.suggest-list{
  position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-s); box-shadow:var(--shadow-m); z-index:20; margin-top:6px; max-height:220px; overflow:auto;
}
.suggest-list li{padding:10px 14px; font-size:.87rem; cursor:pointer; border-bottom:1px solid var(--line); color:var(--ink);}
.suggest-list li:last-child{border:none;}
.suggest-list li:hover{background:var(--ice);}

.driver-toggle{display:flex; align-items:center; justify-content:space-between; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); flex-wrap:wrap; gap:14px;}
.switch{position:relative; width:46px; height:26px; flex:none;}
.switch input{opacity:0; width:0; height:0;}
.switch .track{position:absolute; inset:0; background:var(--line); border-radius:99px; transition:.2s; cursor:pointer;}
.switch .track::before{content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.3);}
.switch input:checked + .track{background:var(--blue);}
.switch input:checked + .track::before{transform:translateX(20px);}

/* -------------------- Cards / grids -------------------- */
.grid{display:grid; gap:22px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:920px){ .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-3,.grid-4,.grid-2{grid-template-columns:1fr;} }

/* Asymmetric two-column layouts (booking, profile, vehicle detail) — these
   used to set grid-template-columns as an inline style, which silently
   overrode the .grid-2 mobile collapse rule above (inline styles always
   beat external stylesheet rules, media queries included). That's why
   these three pages were staying two-column and cramped on real phones
   despite the mobile rule existing. Dedicated classes fix it properly. */
.booking-grid{grid-template-columns:1.4fr .9fr;}
.profile-grid{grid-template-columns:.8fr 1.2fr;}
.vehicle-detail-grid{grid-template-columns:1.3fr .9fr;}
.booking-grid>*,.profile-grid>*,.vehicle-detail-grid>*{min-width:0;}
@media (max-width:768px){
  .booking-grid,.profile-grid,.vehicle-detail-grid{grid-template-columns:1fr;}
}

.card{background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); padding:26px; transition:box-shadow .18s ease, transform .18s ease;}
.card:hover{box-shadow:var(--shadow-m); transform:translateY(-2px);}

.type-card{text-align:left; padding:22px;}
.type-card .ic{width:46px; height:46px; border-radius:12px; background:var(--ice); display:flex; align-items:center; justify-content:center; margin-bottom:14px;}
.type-card h3{margin-bottom:4px;}
.type-card p{margin:0; font-size:.88rem;}

/* -------------------- Vehicle card -------------------- */
.veh-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .18s ease, transform .18s ease;}
.veh-card:hover{box-shadow:var(--shadow-m); transform:translateY(-3px);}
.veh-media{position:relative; aspect-ratio:16/10; background:linear-gradient(135deg,var(--ice),#F3D9C4); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.veh-media img{width:100%; height:100%; object-fit:cover;}
.veh-badge{position:absolute; top:12px; left:12px; background:#fff; padding:4px 11px; border-radius:var(--radius-full); font-size:.72rem; font-weight:700; color:var(--navy); box-shadow:var(--shadow-s);}
.veh-card.veh-unavailable{opacity:.72;}
.veh-card.veh-unavailable .veh-media img{filter:grayscale(.6);}
.veh-unavail-overlay{position:absolute; inset:0; background:rgba(11,31,58,.6); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; font-size:.78rem; font-weight:700; line-height:1.5; padding:10px;}
.veh-alt{margin-top:10px; padding:9px 12px; background:var(--ice); border-radius:var(--radius-s); font-size:.78rem; color:var(--navy); cursor:pointer; transition:background .15s ease;}
.veh-alt:hover{background:#d8e6fd;}
.veh-alt b{color:var(--blue);}
.veh-fav{position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.9); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.veh-body{padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1;}
.veh-body h3{margin:0;}
.veh-branch{font-size:.78rem; font-weight:600; color:var(--blue); margin-bottom:6px;}
.veh-specs{display:flex; gap:14px; flex-wrap:wrap; font-size:.78rem; color:var(--slate);}

/* OPAL Standard badge — a real Oman road-safety standard (certified
   roll-over protection structure), not just decorative. Click-to-reveal
   tooltip instead of hover-only, so it works on mobile too. */
.opal-badge{
  position:relative; display:inline-flex; align-items:center; gap:5px;
  background:#e9f3ea; color:#1e7b34; font-size:.72rem; font-weight:700;
  padding:4px 9px; border-radius:999px; cursor:pointer; width:fit-content;
}
.opal-badge .info-dot{
  width:14px; height:14px; border-radius:50%; background:#1e7b34; color:#fff;
  font-size:.6rem; display:inline-flex; align-items:center; justify-content:center;
  font-style:italic; font-weight:800; flex:none;
}
.opal-tooltip{
  display:none; position:absolute; bottom:130%; left:0; width:230px;
  background:#1a1a1a; color:#fff; font-size:.72rem; font-weight:500;
  padding:10px 12px; border-radius:10px; line-height:1.45; z-index:20;
  box-shadow:0 8px 20px rgba(0,0,0,.25); cursor:auto; white-space:normal;
}
.opal-badge.show-tip .opal-tooltip{display:block;}
.veh-specs span{display:flex; align-items:center; gap:5px;}
.veh-foot{display:flex; align-items:flex-end; justify-content:space-between; margin-top:auto; padding-top:12px; border-top:1px solid var(--line);}
.veh-price b{font-family:var(--font-mono); font-size:1.3rem; color:var(--navy);}
.veh-price span{font-size:.74rem; color:var(--slate-light); display:block;}
.rating{display:flex; align-items:center; gap:5px; font-size:.82rem; color:var(--navy); font-weight:600;}

/* -------------------- Badges / pills -------------------- */
.badge{display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:var(--radius-full); font-size:.76rem; font-weight:700; letter-spacing:.02em;}
.badge-confirmed{background:var(--green-bg); color:var(--green);}
.badge-pending{background:#FFF3DE; color:var(--amber-dark);}
.badge-completed{background:var(--ice); color:var(--blue);}
.badge-cancelled{background:var(--red-bg); color:var(--red);}
.badge-picked_up{background:var(--blue-light); color:var(--navy-2);}

/* -------------------- Forms -------------------- */
.form-card{max-width:460px; margin:0 auto; background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:36px; box-shadow:var(--shadow-m);}
.form-wide{max-width:760px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} }
.details-form-row{grid-template-columns:1fr 1fr !important;}
@media (max-width:480px){
  .details-form-row{gap:10px;}
  .details-form-row input, .details-form-row select{font-size:.85rem; padding-left:10px; padding-right:6px;}
}
.form-group{margin-bottom:18px;}
.form-group label{display:block; font-size:.8rem; font-weight:600; color:var(--navy); margin-bottom:7px;}
.form-group input, .form-group select, .form-group textarea{
  width:100%; border:1.5px solid var(--line); border-radius:var(--radius-s); padding:12px 14px;
  font-size:.94rem; font-family:var(--font-body); color:var(--ink); background:#fff;
  box-sizing:border-box; text-overflow:ellipsis;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(193,98,45,.14);}
.form-note{font-size:.78rem; color:var(--slate-light); margin-top:6px;}
.checkline{display:flex; align-items:flex-start; gap:10px; font-size:.86rem; color:var(--slate); margin-bottom:12px;}
.checkline input{margin-top:3px;}
.divider-or{display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--slate-light); font-size:.78rem;}
.divider-or::before, .divider-or::after{content:""; flex:1; height:1px; background:var(--line);}

.alert{padding:12px 16px; border-radius:var(--radius-s); font-size:.86rem; margin-bottom:16px; display:none;}
.alert.show{display:block;}
.alert-error{background:var(--red-bg); color:var(--red);}
.alert-success{background:var(--green-bg); color:var(--green);}
.alert-info{background:var(--ice); color:var(--blue);}

/* -------------------- Footer -------------------- */
footer{background:var(--navy); color:#fff; padding:60px 0 26px;}
footer p{color:rgba(255,255,255,.82);}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.1);}
@media (max-width:760px){ .foot-grid{grid-template-columns:1fr 1fr;} }
.foot-grid h4{color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px;}
.foot-grid a{display:block; padding:5px 0; font-size:.9rem; color:rgba(255,255,255,.82);}
.foot-grid a:hover{color:#fff;}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:.8rem; color:rgba(255,255,255,.7); flex-wrap:wrap; gap:10px;}

/* -------------------- Misc utility -------------------- */
.flex{display:flex;}
.center{text-align:center;}
.muted{color:var(--slate-light);}
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.section-head{max-width:640px; margin-bottom:44px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.loader{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--blue);animation:spin .8s linear infinite;margin:30px auto;}
@keyframes spin{to{transform:rotate(360deg);}}
.empty-state{text-align:center; padding:60px 20px; color:var(--slate-light);}
.empty-state svg{margin-bottom:16px;}
.skeleton{background:linear-gradient(90deg,#eef2fa 25%,#f7f9fe 37%,#eef2fa 63%); background-size:400% 100%; animation:sk 1.4s ease infinite; border-radius:var(--radius-m);}
@keyframes sk{0%{background-position:100% 0;}100%{background-position:0 0;}}

.otp-boxes{display:flex; gap:10px; justify-content:center; margin:20px 0;}
.otp-boxes input{
  width:48px; height:56px; text-align:center; font-size:1.4rem; font-family:var(--font-mono); font-weight:600;
  border:1.5px solid var(--line); border-radius:var(--radius-s); color:var(--navy);
}
.otp-boxes input:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(193,98,45,.14);}

.page-hero{background:var(--ice); padding:52px 0 40px;}
.page-hero h1{margin-bottom:6px;}
.breadcrumb{font-size:.8rem; color:var(--slate); margin-bottom:14px;}
.breadcrumb a{color:var(--blue); font-weight:600;}

.filter-bar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:26px;}
.chip{padding:8px 16px; border-radius:var(--radius-full); border:1.5px solid var(--line); background:#fff; font-size:.84rem; font-weight:600; color:var(--slate); cursor:pointer; display:flex; align-items:center; gap:6px;}
.chip.active{background:var(--navy); color:#fff; border-color:var(--navy);}
.chip:hover{border-color:var(--blue);}

.summary-line{display:flex; justify-content:space-between; padding:9px 0; font-size:.9rem; color:var(--slate);}
.summary-line b{color:var(--navy);}
.summary-line.total{border-top:1.5px dashed var(--line); margin-top:8px; padding-top:14px; font-size:1.05rem;}
.summary-line.total b{color:var(--navy); font-family:var(--font-mono); font-size:1.25rem;}

.rate-option{border:1.5px solid var(--line); border-radius:var(--radius-m); padding:10px 8px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; cursor:pointer; text-align:left; min-width:0;}
.rate-option strong{font-size:.85rem;}
.rate-option .muted{font-size:.72rem !important;}
.rate-option .ro-total{font-family:var(--font-mono); font-weight:700; color:var(--navy); font-size:.85rem; margin-top:2px;}
.rate-option.selected{border-color:var(--navy); background:var(--navy-tint);}
#rateOptions,#rateTypeList{display:grid; grid-template-columns:repeat(3,1fr); gap:8px;}

.extra-row, .policy-row{display:flex; align-items:flex-start; gap:12px; padding:13px 0; border-bottom:1px solid var(--line);}
.extra-row:last-child, .policy-row:last-child{border-bottom:none;}

.stepper{display:flex; align-items:center; gap:8px; margin-bottom:36px; flex-wrap:wrap;}
.step-pill{display:flex; align-items:center; gap:8px; font-size:.82rem; font-weight:600; color:var(--slate-light);}
.step-pill .num{width:26px; height:26px; border-radius:50%; background:var(--line); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:.78rem;}
.step-pill.done .num{background:var(--green);}
.step-pill.active{color:var(--navy);}
.step-pill.active .num{background:var(--blue);}
.step-sep{flex:1; height:0; border-top:2px dashed var(--line); min-width:20px;}

.avatar{width:76px; height:76px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.6rem; font-weight:700;}

.booking-row{display:flex; gap:20px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-m); margin-bottom:16px; flex-wrap:wrap;}
.booking-row .thumb{width:96px; height:96px; border-radius:var(--radius-s); background:var(--ice); flex:none; display:flex; align-items:center; justify-content:center;}
.booking-row .info{flex:1; min-width:220px;}
.booking-row .actions{display:flex; gap:8px; flex-wrap:wrap; align-items:flex-start;}

[data-reveal]{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
[data-reveal].in{opacity:1; transform:none;}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1; transform:none; transition:none;}
  html{scroll-behavior:auto;}
}

/* -------------------- Static content pages (About / Privacy / Terms) -------------------- */
.static-page-content{font-size:.98rem; line-height:1.7; color:var(--slate);}
.static-page-content h1,.static-page-content h2,.static-page-content h3{margin-top:1.4em;}
.static-page-content p{margin-bottom:1em;}
.static-page-content ul,.static-page-content ol{margin:0 0 1em; padding-left:1.4em;}
.static-page-content li{margin-bottom:.4em;}
.static-page-content a{color:var(--blue); font-weight:600;}

/* -------------------- Nav dropdown menu (shared across every page) -------------------- */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,0.35); z-index: 200;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-overlay.open { display: block; opacity: 1; }
.sidebar {
  position: fixed; top: 76px; left: 0; right: 0; max-width: var(--container); margin: 0 auto;
  max-height: 0; background: #fff; z-index: 201; overflow: hidden;
  transition: max-height 0.3s ease; box-shadow: 0 20px 48px rgba(15,23,42,0.16);
  border-radius: 0 0 var(--radius-l) var(--radius-l); border: 1px solid var(--line); border-top: none;
}
.sidebar.open { max-height: 75vh; overflow-y: auto; padding: 26px 40px 32px; }
.sidebar .brand { display: none; } /* redundant — the nav bar above already shows it */
.sidebar .close-btn { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--navy); font-size: 1.3rem; cursor: pointer; line-height: 1; }

.sidebar .user-info {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); width: 100%;
}
.sidebar .user-info .avatar { width: 44px; height: 44px; border-radius: 50%; background: #9C4E24; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.sidebar .user-info .name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.sidebar .user-info .email { font-size: 0.82rem; color: var(--slate); width: 100%; }

.sidebar > a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; margin: 0 8px 8px 0;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.sidebar > a:hover { background: var(--ice); border-color: var(--blue); }
#sidebarLogout.open-link, .sidebar > a#sidebarLogout { color: var(--red); }

.sidebar .quick-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  width: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.sidebar .quick-links h4 {
  color: var(--slate-light); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 4px; font-weight: 700; width: 100%;
}
.sidebar .quick-links a {
  color: var(--slate); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-full); transition: background 0.15s, color 0.15s;
}
.sidebar .quick-links a:hover { background: var(--ice); color: var(--blue); }

.menu-btn { background: none; border: none; cursor: pointer; padding: 8px 4px 8px 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.menu-btn span { display: block; width: 26px; height: 3px; background: #9C4E24; border-radius: 2px; transition: all 0.2s; }
.menu-btn span:nth-child(2) { width: 20px; }
.menu-btn span:nth-child(3) { width: 16px; }
.menu-btn:hover span { opacity: 0.8; }
.nav .wrap .menu-btn-wrap { display: flex; align-items: center; gap: 12px; flex: 1; }

@media (max-width: 720px) {
  .sidebar { left: 8px; right: 8px; top: 72px; border-radius: var(--radius-l); border: 1px solid var(--line); }
  .sidebar.open { padding: 22px 20px 26px; }
}

/* -------------------- Place detail modal (Explore Oman) -------------------- */
.place-modal-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,0.6); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.place-modal-overlay.open { display: flex; }
.place-modal {
  background: #fff; border-radius: var(--radius-l); max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-l);
}
.place-modal-body { padding: 30px; }
.place-modal-close {
  position: absolute; top: 14px; right: 16px; background: var(--surface); border: none;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--navy);
}

/* Shared toast notification — usable on any page via showToast(msg, type) */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 999;
  padding: 13px 22px; border-radius: var(--radius-m); font-size: .9rem; font-weight: 700;
  color: #fff; box-shadow: var(--shadow-l); animation: toastIn .25s ease; max-width: 90vw; text-align: center;
}
.toast-error { background: #9C4E24; }
.toast-success { background: #1E8E5A; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
