/* ==========================================================
   Dreamline — Tropical Travel Style
   Sky blue + yellow + white. Inspired by Instagram travel posters.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&family=Pacifico&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --primary: #3da5d9;          /* sky blue */
  --primary-dark: #2a8cbe;
  --primary-deep: #1c6e9a;
  --primary-soft: #e8f4fb;
  --accent: #ffd54a;           /* warm yellow */
  --accent-dark: #f5c01e;
  --secondary: #0e2a47;        /* deep navy text */
  --text: #142b48;
  --text-muted: #5a6878;
  --line: #e2eaf0;
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --bg-blue: #5fb4dd;
  --success: #2db77c;
  --danger: #e84a4a;
  --shadow-sm: 0 2px 6px rgba(14,42,71,.06);
  --shadow-md: 0 6px 24px rgba(14,42,71,.10);
  --shadow-lg: 0 20px 60px rgba(14,42,71,.18);
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, sans-serif;
  --display-ar: 'Cairo', system-ui, sans-serif;
  --body-ar: 'Cairo', system-ui, sans-serif;
  --script: 'Pacifico', cursive;
  --radius: 14px;
}

[dir="rtl"] {
  --display: var(--display-ar);
  --body: var(--body-ar);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

.container { width: min(1240px, 92%); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-tight { padding: 2.5rem 0; }
.bg-soft { background: var(--bg-soft); }
.bg-blue { background: var(--primary); color: white; }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: white; }

.eyebrow {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: .75rem; font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 4px;
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 1rem;
}
.eyebrow.yellow { background: var(--accent); color: var(--secondary); }
.muted { color: var(--text-muted); }
.lede { font-size: 1.05rem; max-width: 640px; color: var(--text-muted); }
.script { font-family: var(--script); color: var(--accent-dark); font-weight: 400; letter-spacing: 0; }

/* ============== Top contact strip ============== */
.top-bar {
  background: var(--primary);
  color: white;
  padding: .85rem 0;
  font-size: .85rem;
  font-weight: 500;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.top-bar a { color: white; }
.top-bar a:hover { color: var(--accent); }
.top-bar .info { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.top-bar .info span { display: inline-flex; align-items: center; gap: .55rem; }
.top-bar .info .dot {
  width: 28px; height: 28px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
}
.top-bar .socials { display: flex; gap: .6rem; }
.top-bar .socials a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  transition: background .2s;
}
.top-bar .socials a:hover { background: var(--accent); color: var(--secondary); }

/* ============== Header / Nav ============== */
.site-header {
  background: white;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(14,42,71,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; gap: 1.5rem; }
.brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--secondary);
}
.brand-mark {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.brand-mark::before {
  content: ""; position: absolute;
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  top: 0; left: 0;
}
.brand-mark::after {
  content: ""; position: absolute;
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  bottom: 0; right: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text .sub { font-size: .68rem; font-weight: 600; color: var(--primary); letter-spacing: .2em; text-transform: uppercase; margin-top: .2rem; }

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--secondary); position: relative; padding: .25rem 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700; font-size: .9rem;
  border: 2px solid var(--secondary);
  background: transparent; color: var(--secondary);
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--secondary); color: white; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--secondary); box-shadow: 0 6px 18px rgba(255,213,74,.35); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--secondary); transform: translateY(-2px); }
.btn-blue { background: var(--primary); border-color: var(--primary); color: white; }
.btn-blue:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-light { background: white; border-color: white; color: var(--secondary); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--secondary); }
.btn-outline-light { background: transparent; border-color: white; color: white; }
.btn-outline-light:hover { background: white; color: var(--secondary); }
.btn-sm { padding: .4rem .9rem; font-size: .78rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn i { font-size: .9em; }

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(180deg, #5fb4dd 0%, #3da5d9 60%, #4eb0d8 100%);
  color: white;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 4rem 0 6rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1514282401047-d79a71a590e8?w=1800&q=80') center/cover;
  opacity: .35;
  mix-blend-mode: overlay;
}
.hero::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.95));
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text .pill-label {
  display: inline-block;
  background: white;
  color: var(--secondary);
  padding: .5rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: white;
  line-height: .95;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0,0,0,.15);
  margin-bottom: 1.2rem;
}
.hero-title .destination {
  display: block;
  font-size: 1.15em;
  letter-spacing: -0.05em;
}
.hero-text .lede { color: rgba(255,255,255,.92); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* Hero offer card */
.offer-card {
  background: white;
  color: var(--secondary);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 1.5rem;
  border: 2px dashed var(--secondary);
}
.offer-card .discount {
  font-weight: 800; font-size: 1.2rem;
  color: var(--secondary);
}
.offer-card .details {
  display: grid; grid-template-columns: auto auto;
  gap: .3rem 1.5rem;
  font-size: .9rem;
}
.offer-card .details strong { color: var(--primary); font-weight: 800; }

/* Circular collage */
.collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin-left: auto;
}
.collage-circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: var(--shadow-lg);
}
.collage-circle img { width: 100%; height: 100%; object-fit: cover; }
.collage-circle.c1 { width: 62%; height: 62%; top: 0; right: 0; z-index: 3; }
.collage-circle.c2 { width: 48%; height: 48%; bottom: 0; left: 0; z-index: 2; }
.collage-circle.c3 { width: 42%; height: 42%; bottom: 8%; left: 38%; z-index: 4; }

/* dashed flight path overlay */
.flight-path {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.flight-path svg { width: 100%; height: 100%; }

/* ============== Search Card ============== */
.search-wrap { margin-top: -4rem; position: relative; z-index: 10; }
.search-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
}
.search-tabs { display: flex; gap: .25rem; margin-bottom: 1.2rem; flex-wrap: wrap; border-bottom: 2px solid var(--bg-soft); }
.search-tab {
  padding: .7rem 1.4rem; border: none; background: none;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.search-tab.active { color: var(--primary); border-color: var(--primary); }
.search-pane { display: none; }
.search-pane.active { display: block; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto; gap: 1rem; align-items: end; }
.search-grid label {
  font-size: .72rem; font-weight: 700;
  color: var(--secondary);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .35rem; display: block;
}
.search-grid input, .search-grid select {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .92rem;
  background: white; color: var(--text);
}
.search-grid input:focus, .search-grid select:focus {
  outline: none; border-color: var(--primary);
}

/* ============== Section heads ============== */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { max-width: 700px; margin: 0 auto .8rem; }
.section-head .lede { margin: 0 auto; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.section-head-row .lede { margin: 0; }

/* ============== Cards ============== */
.grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Dashboard contexts: tighter gap for cards and grids */
.dash-main .grid { gap: .75rem; }
.dash-main .grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dash-main .grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.tour-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
  height: 100%;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tour-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.tour-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tour-card:hover .tour-card-img img { transform: scale(1.08); }
.tour-card-img .badge {
  position: absolute; top: 14px; left: 14px;
  padding: .35rem .85rem;
  background: var(--accent); color: var(--secondary);
  border-radius: 6px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.tour-card-img .heart {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: white; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted); cursor: pointer;
  transition: color .2s, transform .2s;
}
.tour-card-img .heart:hover { color: var(--primary); transform: scale(1.1); }
.tour-card-img .price-tag {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--primary); padding: .55rem 1rem;
  border-radius: 8px;
  font-weight: 800; color: white;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.tour-card-img .price-tag small { color: rgba(255,255,255,.85); font-weight: 500; font-size: .72em; }
.tour-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.tour-card-location {
  font-size: .82rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600;
}
.tour-card-location i { color: var(--primary); }
.tour-card-title {
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 700; line-height: 1.3;
  margin: 0;
}
.tour-card-title a { color: var(--secondary); }
.tour-card-title a:hover { color: var(--primary); }
.tour-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 0;
  border-top: 1px dashed var(--line);
  margin-top: auto;
  font-size: .82rem; color: var(--text-muted);
}
.tour-card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tour-card-meta i { color: var(--primary); }
.tour-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .8rem;
  border-top: 1px dashed var(--line);
}
.rating { display: inline-flex; align-items: center; gap: .25rem; color: var(--accent-dark); font-size: .85rem; }
.rating .num { color: var(--text); font-weight: 700; margin-left: .25rem; }

/* ============== Destination cards (circular tile) ============== */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.dest-card { text-align: center; cursor: pointer; transition: transform .3s; }
.dest-card:hover { transform: translateY(-6px); }
.dest-card .photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: var(--shadow-md);
  margin: 0 auto 1rem;
  max-width: 220px;
}
.dest-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.dest-card:hover .photo img { transform: scale(1.1); }
.dest-card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,42,71,.4));
}
.dest-card .label {
  position: absolute; bottom: 1rem; left: 0; right: 0;
  color: white; font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.dest-card h4 { color: var(--secondary); margin: 0; }
.dest-card .tours-count { font-size: .82rem; color: var(--primary); font-weight: 600; }

/* ============== Why Choose Us ============== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.feature-item { text-align: center; padding: 1rem; }
.feature-icon {
  width: 84px; height: 84px;
  margin: 0 auto 1.2rem;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2rem;
  position: relative;
  transition: all .3s;
}
.feature-icon::after {
  content: ""; position: absolute;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  top: -4px; right: -4px;
  opacity: 0; transform: scale(0); transition: all .3s;
}
.feature-item:hover .feature-icon {
  background: var(--primary); color: white;
}
.feature-item:hover .feature-icon::after { opacity: 1; transform: scale(1); }
.feature-item h4 { font-weight: 700; font-size: 1.1rem; color: var(--secondary); margin-bottom: .5rem; }
.feature-item p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ============== Stats ============== */
.stats-band {
  background: var(--primary);
  color: white;
  padding: 4rem 0;
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1800') center/cover;
  opacity: .15;
  mix-blend-mode: overlay;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; position: relative; }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3rem; line-height: 1;
  color: var(--accent);
  display: block; margin-bottom: .5rem;
}
.stat-lbl { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 600; }

/* ============== Forms ============== */
.form-row { display: grid; gap: 1rem; }
.form-row.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .82rem; font-weight: 700; color: var(--secondary); }
.form-control {
  padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .95rem;
  background: white; color: var(--text);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ============== Alerts ============== */
.alert { padding: .65rem .9rem; border-radius: 6px; margin-bottom: 1rem; font-size: .85rem; border-left: 3px solid; font-weight: 500; }
.alert-success { background: rgba(45,183,124,.08); color: #176a4a; border-color: var(--success); }
.alert-error { background: rgba(232,74,74,.06); color: #a02828; border-color: var(--danger); }
.alert-info { background: rgba(61,165,217,.08); color: var(--primary-deep); border-color: var(--primary); }

/* ============== Detail page ============== */
.detail-hero { aspect-ratio: 16/7; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--shadow-md); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.detail-side {
  background: white; border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky; top: 100px;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--accent);
}
.price-large { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--primary); letter-spacing: -0.02em; }
.price-large .from { font-family: var(--body); font-size: .82rem; color: var(--text-muted); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.price-large small { font-family: var(--body); font-size: .8rem; color: var(--text-muted); margin-left: .25rem; font-weight: 500; }

.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.amenity-list li { padding: .4rem 0; font-size: .92rem; display: flex; align-items: center; gap: .6rem; }
.amenity-list li i { color: var(--primary); font-size: .85rem; }

/* ============== Filters ============== */
.filter-bar {
  background: white; border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto;
  gap: 1rem; align-items: end;
  border-top: 4px solid var(--accent);
}

/* ============== Page banner ============== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1800') center/cover;
  opacity: .25; mix-blend-mode: overlay;
}
.page-banner > .container { position: relative; z-index: 2; }
.page-banner h1 { color: white; font-weight: 900; }
.page-banner .crumbs { font-size: .9rem; color: rgba(255,255,255,.9); font-weight: 500; }
.page-banner .crumbs a { color: var(--accent); }
.page-banner .crumbs i { margin: 0 .5rem; font-size: .7rem; opacity: .7; }

/* ============== Tags ============== */
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); }
.tag-yellow { background: rgba(255,213,74,.25); color: #87650b; }
.tag-success, .tag-green { background: rgba(45,183,124,.12); color: var(--success); }
.tag-red { background: rgba(232,74,74,.12); color: var(--danger); }
.tag-blue { background: rgba(61,165,217,.12); color: var(--primary-deep); }

.status-pill { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-pending { background: rgba(255,213,74,.25); color: #87650b; }
.status-confirmed { background: rgba(45,183,124,.13); color: #176a4a; }
.status-cancelled { background: rgba(232,74,74,.1); color: #a02828; }
.status-completed { background: rgba(14,42,71,.1); color: var(--secondary); }

/* ============== Gallery ============== */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery-item {
  grid-column: span 4; aspect-ratio: 4/5;
  overflow: hidden; border-radius: var(--radius);
  position: relative; cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 4/9; }
.gallery-item.wide { grid-column: span 6; aspect-ratio: 16/10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,42,71,.85));
  display: flex; align-items: end; padding: 1.2rem;
  color: white; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay h4 { font-size: 1.15rem; margin: 0; color: white; }
.gallery-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.gallery-tabs a {
  padding: .55rem 1.3rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  border: 2px solid var(--line); color: var(--text-muted);
}
.gallery-tabs a.active, .gallery-tabs a:hover { background: var(--accent); color: var(--secondary); border-color: var(--accent); }

/* ============== Auth ============== */
.auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-card {
    padding: 4rem 3rem;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 540px; margin: 0 auto; width: 100%;
}
.auth-side {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 3rem;
    overflow: hidden;
    min-height: 400px;
}
.auth-side::before {
    content: ""; position: absolute;
    inset-inline-end: -120px; bottom: -120px;
    width: 360px; height: 360px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .18;
    pointer-events: none;
}
.auth-side::after {
    content: ""; position: absolute;
    inset-inline-start: -80px; top: -80px;
    width: 240px; height: 240px;
    background: white;
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
}
.auth-side-inner {
    position: relative; z-index: 2;
    max-width: 460px;
    text-align: start;
}
.auth-side-icon {
    color: var(--accent);
    font-size: 3rem;
    transform: rotate(-12deg);
    margin-bottom: 1.2rem;
    display: inline-block;
}
.auth-side-brand {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255,255,255,.85);
    font-size: .85rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
}
.auth-card h2 { font-size: 2.4rem; line-height: 1.1; margin-bottom: .25rem; }
.auth-card .lede { font-size: 1rem; color: var(--text-muted); }
@media (max-width: 880px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { min-height: 240px; padding: 2.5rem 2rem; order: -1; }
    .auth-side-icon { font-size: 2rem; }
    .auth-side-inner h3 { font-size: 1.4rem !important; }
    .auth-card { padding: 2.5rem 1.5rem; }
}

/* ============== Dashboard ============== */
/* ============== Modern Dashboard (v2 — sky blue / teal style) ============== */
:root {
    --dash-orange: #3da5d9;
    --dash-orange-soft: #dcecf7;
    --dash-orange-deep: #2a8cbe;
    --dash-teal: #0a3245;
    --dash-purple: #b46cf2;
    --dash-purple-soft: #f3e6fc;
    --dash-blue-soft: #dde9f8;
    --dash-green-soft: #d8f1dd;
    --dash-yellow-soft: #fdf3c7;
    --dash-bg: #f7f8fb;
    --dash-line: #eef0f5;
    --dash-text: #1d2939;
    --dash-text-muted: #667085;
}

.dash-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
    width: 100%;
    background: var(--dash-bg);
}

/* Sidebar — white, light, with orange active pill */
.dash-side {
    background: white;
    color: var(--dash-text);
    padding: 1.25rem 1rem;
    width: 320px;
    max-width: 320px;
    box-sizing: border-box;
    overflow-x: hidden;
    border-right: 1px solid var(--dash-line);
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
}
[dir="rtl"] .dash-side { border-right: none; border-left: 1px solid var(--dash-line); }

.dash-side h3 {
    color: var(--dash-text);
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .25rem .25rem;
}
.dash-side h3 i {
    color: var(--dash-orange);
    font-size: 1.4rem;
}

.dash-side > p {
    /* the user-name caption: hide in v2 — moved to the header bar */
    display: none;
}

.dash-side a {
    display: flex; align-items: center; gap: .65rem;
    padding: .6rem .8rem; border-radius: 8px;
    font-size: .85rem; color: var(--dash-text-muted);
    margin-bottom: .15rem; font-weight: 600;
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s, color .15s;
}
.dash-side a i {
    font-size: .9rem; width: 18px; min-width: 18px;
    color: var(--dash-text-muted); flex-shrink: 0;
}
.dash-side a:hover {
    background: var(--dash-bg);
    color: var(--dash-text);
}
.dash-side a:hover i { color: var(--dash-text); }
.dash-side a.active {
    background: var(--dash-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(61,165,217,.35);
}
.dash-side a.active i { color: white; }

/* Collapsible sidebar group (e.g. Settings → sub-pages) */
.sidebar-group { margin-bottom: .15rem; }
.sidebar-group-toggle {
    display: flex; align-items: center; gap: .65rem;
    padding: .6rem .8rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600; color: var(--dash-text-muted);
    background: transparent; border: none; cursor: pointer;
    width: 100%; text-align: start; font-family: inherit;
    transition: background .12s, color .12s;
}
.sidebar-group-toggle:hover { background: var(--dash-bg); color: var(--dash-text); }
.sidebar-group-toggle.active {
    color: var(--dash-orange-deep);
    background: var(--dash-orange-soft);
}
.sidebar-group-toggle.active i:first-child { color: var(--dash-orange-deep); }
.sidebar-group-toggle i:first-child { font-size: .9rem; width: 18px; flex-shrink: 0; color: var(--dash-text-muted); }
.sidebar-group-toggle .chev { transition: transform .15s; color: var(--dash-text-muted); }
.sidebar-group-toggle .chev.rotated { transform: rotate(180deg); }

.sidebar-group-children {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
    padding-inline-start: .35rem;
    border-inline-start: 2px solid var(--dash-line);
    margin-inline-start: .5rem;
    margin-top: .15rem;
}
.sidebar-group.open .sidebar-group-children { max-height: 800px; }

.sidebar-sublink {
    display: flex; align-items: center; gap: .55rem;
    padding: .45rem .65rem; border-radius: 6px;
    font-size: .82rem; color: var(--dash-text-muted);
    text-decoration: none; font-weight: 500;
    margin-bottom: .1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .12s, color .12s;
}
.sidebar-sublink:hover { background: var(--dash-bg); color: var(--dash-text); text-decoration: none; }
.sidebar-sublink i { font-size: .75rem; width: 14px; min-width: 14px; color: var(--dash-text-muted); flex-shrink: 0; }
.sidebar-sublink:hover i { color: var(--dash-text); }
.sidebar-sublink.active {
    background: var(--dash-orange);
    color: white;
    font-weight: 600;
}
.sidebar-sublink.active i { color: white; }
[dir="rtl"] .sidebar-group-children {
    border-inline-start: none;
    border-inline-end: 2px solid var(--dash-line);
}

.dash-side hr {
    border: none;
    border-top: 1px solid var(--dash-line);
    margin: .8rem 0;
}

.dash-side form button {
    display: flex; align-items: center; gap: .65rem !important;
    padding: .6rem .8rem !important;
    border-radius: 8px !important;
    font-size: .85rem !important;
    color: var(--dash-text-muted) !important;
    margin: 0 !important;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: start;
}
.dash-side form button:hover { background: var(--dash-bg); color: var(--dash-text) !important; }
.dash-side form button i { color: var(--dash-text-muted) !important; width: 18px; min-width: 18px; font-size: .9rem !important; }

/* Header bar (page title left, notifications + avatar right) */
.dash-main {
    padding: 0;
    background: var(--dash-bg);
    min-width: 0;
    overflow-x: auto;
    color: var(--dash-text);
}
.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.75rem;
    background: white;
    border-bottom: 1px solid var(--dash-line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.dash-topbar .title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dash-text);
    letter-spacing: -0.02em;
    margin: 0;
}
.dash-topbar .right {
    display: flex; align-items: center; gap: 1rem;
}
.dash-topbar .bell {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--dash-bg);
    display: grid; place-items: center;
    color: var(--dash-text-muted);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.dash-topbar .bell:hover {
    background: var(--dash-orange-soft);
    color: var(--dash-orange-deep);
}
.dash-topbar .bell.has-unread {
    color: var(--dash-orange-deep);
    background: var(--dash-orange-soft);
}
.dash-topbar .bell-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e84a4a;
    color: white;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(232,74,74,.35);
    line-height: 1;
}
.dash-topbar .user {
    display: flex; align-items: center; gap: .65rem;
    padding: .35rem .85rem .35rem .35rem;
    border-radius: 999px;
    background: var(--dash-bg);
    cursor: pointer;
}
.dash-topbar .user .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dash-orange), var(--dash-orange-deep));
    color: white;
    display: grid; place-items: center;
    font-weight: 800; font-size: .85rem;
}
.dash-topbar .user .name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--dash-text);
}
.dash-topbar .user i.fa-chevron-down {
    color: var(--dash-text-muted);
    font-size: .7rem;
}

/* User dropdown menu */
.user-menu { position: relative; }
.user-menu .user {
    background: var(--dash-bg);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.user-menu .user:hover { background: var(--dash-orange-soft); }
.user-menu.open .user i.fa-chevron-down { transform: rotate(180deg); transition: transform .15s; }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14,42,71,.12), 0 0 0 1px var(--dash-line);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 50;
}
.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem .9rem;
    border-bottom: 1px solid var(--dash-line);
    margin-bottom: .35rem;
}
.user-menu-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dash-orange), var(--dash-orange-deep));
    color: white;
    display: grid; place-items: center;
    font-weight: 800; font-size: .95rem;
    flex-shrink: 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--dash-text);
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}
.user-menu-item:hover { background: var(--dash-bg); }
.user-menu-item i {
    width: 16px;
    color: var(--dash-text-muted);
    font-size: .85rem;
}
.user-menu-item:hover i { color: var(--dash-text); }

/* Content area inside dash-main */
.dash-content { padding: 1.5rem 1.75rem; }
.dash-content h1, .dash-main h1 { font-size: 1.4rem; margin-bottom: .25rem; letter-spacing: -0.02em; color: var(--dash-text); }
.dash-content h2, .dash-main h2 { font-size: 1.2rem; margin-bottom: .25rem; letter-spacing: -0.015em; color: var(--dash-text); }
.dash-content h3, .dash-main h3 { font-size: 1rem; margin: 1.25rem 0 .65rem; letter-spacing: -0.01em; font-weight: 700; color: var(--dash-text); }
.dash-content h4, .dash-main h4 { font-size: .9rem; color: var(--dash-text); }

.dash-main .eyebrow,
.dash-content .eyebrow {
    display: inline-block;
    background: var(--dash-orange-soft);
    color: var(--dash-orange-deep);
    padding: .2rem .6rem;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

/* Tab bar (My Dashboard / Dashboard Staff / E-Procurement style) */
.dash-tabs {
    display: flex;
    gap: 1.8rem;
    background: var(--dash-teal);
    padding: 1rem 1.75rem 0;
    margin-top: 0;
    border-radius: 0;
    overflow-x: auto;
}
.dash-tabs a {
    color: rgba(255,255,255,.55);
    font-weight: 700;
    font-size: .9rem;
    padding: .7rem 0 .9rem;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.dash-tabs a:hover { color: rgba(255,255,255,.8); }
.dash-tabs a.active {
    color: white;
    border-bottom-color: var(--dash-orange);
}

/* Dashboard banner — dark teal panel that the cards sit on top of */
.dash-banner {
    background: var(--dash-teal);
    padding: 1.1rem 1.75rem 5rem;
    position: relative;
    overflow: hidden;
}
.dash-banner::before {
    content: "";
    position: absolute;
    bottom: -120px;
    inset-inline-end: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(61,165,217,.4), transparent 65%);
    pointer-events: none;
}
.dash-banner h2 {
    color: white;
    margin: 0 0 .15rem;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Cards row — pulled up over the banner */
.dash-cards-wrap { padding: 0 1.75rem; margin-top: -3.5rem; position: relative; z-index: 2; }
.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-card {
    background: white;
    padding: 1.1rem 1.2rem 0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(14,42,71,.06), 0 0 0 1px var(--dash-line);
    border: none;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14,42,71,.1), 0 0 0 1px var(--dash-line);
}

/* card layout: number+label on left, icon chip on right */
.dash-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-card .num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dash-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: .15rem;
}
.dash-card .lbl {
    font-size: .8rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    text-transform: none;
    letter-spacing: 0;
}

/* Icon chip (top-right of each card) */
.dash-card-chip {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.dash-card-chip.orange { background: var(--dash-orange-soft); color: var(--dash-orange-deep); }
.dash-card-chip.blue   { background: var(--dash-blue-soft);   color: #2a5fa3; }
.dash-card-chip.purple { background: var(--dash-purple-soft); color: var(--dash-purple); }
.dash-card-chip.green  { background: var(--dash-green-soft);  color: #1a8141; }
.dash-card-chip.yellow { background: var(--dash-yellow-soft); color: #87650b; }

/* card footer "Lihat Detail →" link */
.dash-card-foot {
    border-top: 1px solid var(--dash-line);
    margin: 0 -1.2rem;
    padding: .65rem 1.2rem;
}
.dash-card-foot a {
    color: var(--dash-orange);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-card-foot a:hover { color: var(--dash-orange-deep); }

/* Section blocks */
.dash-block {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(14,42,71,.04), 0 0 0 1px var(--dash-line);
    margin-bottom: 1rem;
}
.dash-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.dash-block-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dash-text);
}
.dash-block-head .filter {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .8rem;
    border-radius: 6px;
    border: 1px solid var(--dash-line);
    background: white;
    font-size: .78rem;
    font-weight: 600;
    color: var(--dash-text);
    cursor: pointer;
}
/* When .filter is a <select>, hide the native arrow and add our own so it
   matches the chevron-down icon used on the static span filters. */
select.filter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-inline-end: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23676f80'%3E%3Cpath d='M6 8L0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 9px;
    font-family: inherit;
}
[dir="rtl"] select.filter {
    padding-inline-end: 1.6rem; padding-inline-start: .8rem;
    background-position: left .6rem center;
}
select.filter:focus {
    outline: none;
    border-color: var(--dash-orange, #3da5d9);
    box-shadow: 0 0 0 3px rgba(61, 165, 217, .15);
}

/* Bar chart */
.dash-chart {
    height: 260px;
    padding-top: .5rem;
}
.dash-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.dash-chart-axis line { stroke: var(--dash-line); stroke-width: 1; }
.dash-chart-axis text { fill: var(--dash-text-muted); font-size: 10px; font-family: inherit; }
.dash-chart-bar { transition: opacity .15s; }
.dash-chart-bar:hover { opacity: .85; }
.dash-chart-legend {
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    justify-content: center;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid var(--dash-line);
}
.dash-chart-legend span {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem;
    color: var(--dash-text-muted);
    font-weight: 600;
}
.dash-chart-legend span::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
}
.dash-chart-legend .lg-orange::before { background: var(--dash-orange); }
.dash-chart-legend .lg-green::before  { background: #2db77c; }
.dash-chart-legend .lg-purple::before { background: var(--dash-purple); }

/* Override default eyebrow position inside dash-main h2 etc */
.dash-content > div { background: transparent; }

/* Tables inside dashboard */
.dash-content .table-wrap,
.dash-main .table-wrap { box-shadow: 0 1px 2px rgba(14,42,71,.04), 0 0 0 1px var(--dash-line); }

@media (max-width: 880px) {
    .dash-shell { grid-template-columns: 1fr; }
    .dash-side {
        position: static;
        height: auto;
        width: 100%; max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--dash-line);
    }
    .dash-tabs { padding: 1rem 1rem 0; gap: 1rem; }
    .dash-banner, .dash-content { padding-left: 1rem; padding-right: 1rem; }
    .dash-cards-wrap { padding: 0 1rem; }
    .dash-topbar { padding: 1rem; }
}

/* ============== Tables ============== */
.table-wrap { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(14,42,71,.04), 0 0 0 1px rgba(14,42,71,.04); }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .85rem; text-align: left; font-size: .82rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg-soft); font-weight: 700; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--bg-soft); }
.table .actions { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ============== Newsletter Strip ============== */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,213,74,.25), transparent 70%);
}
.newsletter h2 { color: white; }
.newsletter-form {
  display: flex; gap: .5rem; max-width: 520px;
  margin-top: 1.5rem;
  background: white; border-radius: 999px; padding: .35rem;
}
.newsletter-form input {
  flex: 1; border: none; background: transparent;
  padding: .9rem 1.2rem; font-family: inherit; font-size: .95rem;
  outline: none;
}
.newsletter-form button {
  padding: .9rem 1.6rem;
  background: var(--accent); color: var(--secondary);
  border: none; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .2s;
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ============== Footer ============== */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.7); padding: 5rem 0 1.5rem; }
.site-footer h4 { color: white; font-weight: 800; font-size: 1.05rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .8rem; }
.site-footer h4::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 3px; background: var(--accent);
  border-radius: 3px;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .name { color: white; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.footer-brand .sub { color: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-top: .2rem; display:block; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .35rem 0; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; }
.footer-links a::before { content: "→"; color: var(--accent); transition: transform .2s; }
.footer-links a:hover::before { transform: translateX(4px); }
.footer-contact i { color: var(--accent); width: 20px; }
.footer-contact div { padding: .4rem 0; display: flex; gap: .6rem; align-items: start; font-size: .9rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  color: white; transition: all .2s;
}
.footer-socials a:hover { background: var(--accent); color: var(--secondary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; font-size: .85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ============== Pagination ============== */
.pagination { display: flex; gap: .35rem; justify-content: center; margin: 2.5rem 0; list-style: none; padding: 0; }
.pagination .page-link, .pagination a, .pagination span {
  padding: .55rem .95rem; border-radius: 8px;
  font-size: .9rem; font-weight: 700;
  border: 1.5px solid var(--line); background: white;
  color: var(--secondary);
  text-decoration: none; display: inline-block;
}
.pagination a:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.pagination .active span, .pagination .active .page-link { background: var(--accent); color: var(--secondary); border-color: var(--accent); }
.pagination .disabled span { opacity: .4; }

/* ============== Animations ============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .9s ease both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* ============== Mobile ============== */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--secondary); cursor: pointer; }

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 3rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .collage { max-width: 380px; margin: 0 auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { padding: 1rem; width: 100%; max-width: 100%; }
  .dash-side a { display: inline-flex; margin-right: .25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { grid-column: span 6; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 12; grid-row: auto; aspect-ratio: 4/3; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; gap: 0; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .mobile-toggle { display: block; }
  .top-bar .info { gap: 1rem; font-size: .78rem; }
  .top-bar .info span:nth-child(3) { display: none; }
  .top-bar .socials { display: none; }
}

/* ==========================================================
   RTL OVERRIDES (Arabic)
   ========================================================== */
[dir="rtl"] body { font-family: var(--body-ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: var(--display-ar);
  letter-spacing: 0;
  font-weight: 700;
}

/* Eyebrow line indicator: rtl flip not needed since it's a small badge now */

/* Footer h4 underline accent */
[dir="rtl"] .site-footer h4::after { right: 0; left: auto; }

/* Footer link arrows: → becomes ← in RTL */
[dir="rtl"] .footer-links a::before { content: "←"; }
[dir="rtl"] .footer-links a:hover::before { transform: translateX(-4px); }

/* Tour-card badges/heart/price-tag should mirror to feel natural in RTL */
[dir="rtl"] .tour-card-img .badge { left: auto; right: 14px; }
[dir="rtl"] .tour-card-img .heart { right: auto; left: 14px; }
[dir="rtl"] .tour-card-img .price-tag { right: auto; left: 14px; }

/* Brand mark layout: keep as-is (yellow + blue circles) - it's a logo, doesn't flip */
/* But active nav-link dot stays centered, ok */

/* Active nav indicator dot - already centered */

/* Hero collage - logical positions; keep visual symmetry */
[dir="rtl"] .collage-circle.c1 { right: auto; left: 0; }
[dir="rtl"] .collage-circle.c2 { left: auto; right: 0; }
[dir="rtl"] .collage-circle.c3 { left: auto; right: 38%; }
[dir="rtl"] .collage { margin-left: 0; margin-right: auto; }

/* Hero offer card - keep dashed border on both sides, no change needed */

/* Newsletter background bubble */
[dir="rtl"] .newsletter::before { right: auto; left: -100px; }

/* Hero background bubble */
[dir="rtl"] .hero::before { /* already covers full width */ }

/* Stats band background bubble */
[dir="rtl"] .stats-band::before { right: auto; left: -150px; }

/* Page banner crumb chevron flip */
[dir="rtl"] .page-banner .crumbs i.fa-chevron-right::before { content: "\f053"; /* fa-chevron-left */ }

/* Buttons with arrow icons */
[dir="rtl"] .btn .fa-arrow-right::before { content: "\f060"; /* fa-arrow-left */ }

/* Detail-side accent border - top stays, no change */

/* Dashboard sidebar slide-in arrow */
[dir="rtl"] .dash-side a .fa-arrow-left::before { content: "\f061"; /* fa-arrow-right */ }

/* Active nav-link in admin: padding mirror */
[dir="rtl"] .dash-side a { text-align: right; }

/* Top-bar info row - flex naturally reverses */
/* Top-bar dot icon stays the same */

/* Search card tab borders */
[dir="rtl"] .search-tab { border-bottom-color: transparent; }

/* Forms — ensure labels align right */
[dir="rtl"] .form-group label,
[dir="rtl"] .search-grid label,
[dir="rtl"] .field-label,
[dir="rtl"] .sub-label { text-align: right; }
[dir="rtl"] .form-control,
[dir="rtl"] .search-grid input,
[dir="rtl"] .search-grid select { text-align: right; }
[dir="rtl"] input[type="date"],
[dir="rtl"] input[type="number"] { text-align: left; direction: ltr; }
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

/* Newsletter form button */
[dir="rtl"] .newsletter-form { padding: .35rem; }
[dir="rtl"] .newsletter-form input { text-align: right; }

/* Detail page hero side accent: top border stays */

/* Tour-card meta with icons - flex flips naturally */

/* Pagination — chevrons flip */
[dir="rtl"] .pagination .fa-chevron-right::before { content: "\f053"; }
[dir="rtl"] .pagination .fa-chevron-left::before { content: "\f054"; }

/* Auth shell: image on right in LTR, but in RTL we put image on left */
[dir="rtl"] .auth-shell { direction: rtl; }

/* Dash side - sidebar position; in RTL it sits on the right */
/* RTL: grid columns auto-flip with direction, so no manual swap needed.
   The 250px sidebar (first child) appears on the right; 1fr main (second child) fills the rest. */
[dir="rtl"] .dash-side a { text-align: right; flex-direction: row; }
[dir="rtl"] .dash-side h3,
[dir="rtl"] .dash-side p { text-align: right; }

/* Dashboard cards: border accent stays at top, not affected by RTL */

/* Settings page is overridden inline */

/* Admin tables: align headers right in RTL */
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }

/* Status pills sit naturally */

/* Make Latin (numeric) inline content stay LTR within Arabic flow */
[dir="rtl"] .price-large,
[dir="rtl"] .stat-num,
[dir="rtl"] .dash-card .num,
[dir="rtl"] .top-bar .info span:has(i.fa-phone) {
  /* allow embedded English to render naturally */
  unicode-bidi: plaintext;
}

/* Language switcher in top-bar */
.lang-switcher { display: inline-flex; gap: .25rem; align-items: center; margin-inline-start: 1rem; }
.lang-switcher a {
  padding: .2rem .5rem; border-radius: 4px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .05em;
  background: rgba(255,255,255,.18);
  color: white;
  transition: background .2s;
  text-decoration: none;
}
.lang-switcher a:hover { background: var(--accent); color: var(--secondary); }
.lang-switcher a.active { background: var(--accent); color: var(--secondary); }

/* ==========================================================
   Brand logo (image-based)
   ========================================================== */
.brand-logo {
  height: 48px; width: auto; display: block;
  max-width: 220px;
}
.site-header .brand { padding: 0; gap: 0; }
.site-header .brand-logo { height: 46px; }
.brand-logo-footer { height: 50px; max-width: 240px; }
.footer-brand .brand-logo { margin-bottom: .25rem; }
@media (max-width: 768px) {
  .site-header .brand-logo { height: 38px; }
}
[dir="rtl"] .brand-logo { /* logos render LTR — keep their natural direction */ direction: ltr; }
