:root {
  --green: #55a546;
  --green-600: #4a9a3c;
  --green-700: #3d8531;
  --green-soft: #eef8ea;
  --green-tint: #f6fbf4;
  --charcoal: #21302a;
  --charcoal-2: #2b3a34;
  --ink: #1f2a25;
  --muted: #7a857f;
  --line: #edf0ed;
  --line-2: #f2f5f2;
  --bg: #ffffff;
  --bg-soft: #fafcf9;
  --turq: #24b4ac;
  --amber: #f6b93b;
  --shadow: 0 8px 26px rgba(35,60,40,.06);
  --shadow-lg: 0 20px 50px rgba(35,60,40,.10);
  --radius: 20px;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: none;
  font-weight: 700; font-size: .95rem; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(87,185,71,.32); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-700); }
.btn-white { background: #fff; color: var(--charcoal); }
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-link { background: none; border: none; color: var(--muted); font-weight: 600; padding: 0; }
.btn-link:hover { color: var(--green-700); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-tile {
  width: 40px; height: 48px; border-radius: 12px; background: var(--green);
  display: grid; place-items: center; color: #fff;
}
.brand-mark-img { width: 26px; filter: brightness(0) invert(1); }
.brand-mark { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-en); font-weight: 800; letter-spacing: 1px; font-size: 1.15rem; }
.brand-text i { font-style: normal; font-family: var(--font-ar); color: var(--green-700); font-weight: 700; font-size: .85rem; }

.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.nav-links a { font-weight: 600; color: #33383a; padding: .4rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a.active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 3px;
  background: var(--green); border-radius: 3px;
}
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  width: 42px; height: 38px; font-weight: 800; font-family: var(--font-en); color: var(--charcoal);
}
.lang-toggle:hover { border-color: var(--green); color: var(--green-700); }
.user-chip { display: flex; align-items: center; gap: .6rem; background: var(--green-soft); padding: .4rem .9rem; border-radius: 999px; }
.user-chip span { font-weight: 700; color: var(--green-700); font-size: .9rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; }
.demo-pill { display: none; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; color: var(--green-700); background: var(--green-soft); border: 1px solid #d8ecd2; padding: .25rem .6rem; border-radius: 999px; font-family: var(--font-en); }
body.demo-mode .demo-pill { display: inline-flex; }

/* ---------- Hero (light) ---------- */
.hero {
  position: relative; overflow: hidden; background: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 420px at 92% 8%, var(--green-tint), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, #f2fbf7, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center; padding: 3.5rem 0 3rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--green-soft);
  border: 1px solid #d8ecd2; padding: .4rem 1rem; border-radius: 999px; color: var(--green-700);
  font-weight: 700; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero-badge b { color: var(--green-700); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.15; color: var(--ink); max-width: 15ch; }
.hero h1 .hl { color: var(--green); }
.hero p.sub { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 48ch; margin-top: 1rem; color: var(--muted); }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 1.8rem; font-weight: 800; display: block; color: var(--ink); }
.hero-stats .stat span { color: var(--muted); font-size: .88rem; }

.hero-media { position: relative; }
.hero-media .main-img {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
  border: 6px solid #fff;
}
.hero-media .main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .blob {
  position: absolute; inset-inline-end: -30px; top: -26px; width: 120px; height: 120px;
  background: var(--green-soft); border-radius: 30px; z-index: -1;
}
.hero-float {
  position: absolute; inset-inline-start: -22px; bottom: 28px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: .8rem 1rem; display: flex;
  align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem;
}
.hero-float .fi { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green-700); display: grid; place-items: center; font-size: 1.1rem; }
.hero-float small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }

/* ---------- Search bar ---------- */
.searchbar {
  position: relative; z-index: 3; margin-top: -.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .8rem; align-items: end;
}
.field label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.field select, .field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--green); }

/* ---------- Sections ---------- */
section.block { padding: 4rem 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.4rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: .5rem; }
.eyebrow { color: var(--green-700); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; }
.step .num { width: 54px; height: 54px; border-radius: 16px; background: var(--green-soft); color: var(--green-700); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Destination cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.dest-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); cursor: pointer; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.dest-card:hover img { transform: scale(1.08); }
.dest-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,20,15,.85), transparent 55%); }
.dest-card .info { position: absolute; inset-inline: 0; bottom: 0; padding: 1.1rem; color: #fff; z-index: 2; }
.dest-card .info h3 { font-size: 1.3rem; }
.dest-card .info span { font-size: .82rem; opacity: .85; }
.dest-card .region { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .4rem; }

/* ---------- Guides ---------- */
.guides-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 88px; }
.filters h4 { font-size: .95rem; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.2rem; }
.filter-group > label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: .4rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; font-weight: 600; color: #444; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.guides-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; gap: .6rem; }
.guides-head .count { color: var(--muted); font-weight: 600; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card .ph { position: relative; height: 180px; background: var(--green-soft); }
.guide-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .verified-badge { position: absolute; top: .7rem; inset-inline-start: .7rem; background: rgba(255,255,255,.95); color: var(--green-700); font-size: .74rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; display: flex; align-items: center; gap: .25rem; }
.guide-card .rating-badge { position: absolute; top: .7rem; inset-inline-end: .7rem; background: var(--charcoal); color: #fff; font-size: .8rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; }
.guide-card .body { padding: 1.1rem; }
.guide-card .name { font-size: 1.15rem; font-weight: 800; }
.guide-card .city { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .3rem; margin-top: .1rem; }
.guide-card .bio { color: #555; font-size: .88rem; margin: .6rem 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 8px; color: #555; }
.guide-card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; }
.price b { font-size: 1.2rem; color: var(--charcoal); }
.price small { color: var(--muted); }

/* ---------- Guide detail ---------- */
.detail { padding: 2.5rem 0; }
.detail-top { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
.detail-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 2rem; font-weight: 800; }
.detail .meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); margin: .6rem 0 1rem; }
.detail .meta .star { color: var(--amber); font-weight: 800; }
.detail-book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-top: 1.4rem; }
.detail-book .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.detail-block h3 { margin: 1.6rem 0 .6rem; font-size: 1.2rem; }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; }
.review .head { display: flex; justify-content: space-between; align-items: center; }
.review .who { font-weight: 700; }
.review .stars { color: var(--amber); }

/* ---------- Host page (light) ---------- */
.host-hero { background: linear-gradient(160deg, var(--green-tint), #fff); padding: 4rem 0 5rem; border-bottom: 1px solid var(--line); }
.host-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; max-width: 18ch; color: var(--ink); }
.host-hero p { color: var(--muted); margin-top: .8rem; max-width: 50ch; }
.host-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.4rem; }
.host-benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.host-benefit .ic { font-size: 1.8rem; }
.host-benefit h3 { color: var(--green-700); margin: .5rem 0 .3rem; }
.host-benefit p { color: var(--muted); font-size: .92rem; }
.host-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2rem; max-width: 720px; margin: -2rem auto 0; position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .85rem; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; font-family: inherit; font-size: .95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-field .hint { font-size: .78rem; color: var(--muted); }
.form-error { background: #fdecec; color: #c0392b; border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; font-weight: 600; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,20,15,.55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal { background: #fff; border-radius: 22px; width: min(440px, 100%); box-shadow: var(--shadow-lg); overflow: hidden; max-height: 92vh; overflow-y: auto; }
.modal-head { background: var(--green); color: #fff; padding: 1.4rem 1.6rem; display: flex; align-items: center; gap: .7rem; }
.modal-head .tile { width: 34px; height: 40px; background: rgba(255,255,255,.2); border-radius: 9px; display: grid; place-items: center; }
.modal-head .tile img { width: 20px; filter: brightness(0) invert(1); }
.modal-head h3 { font-size: 1.25rem; }
.modal-body { padding: 1.6rem; }
.modal-body .stack { display: flex; flex-direction: column; gap: .9rem; }
.modal-foot { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.modal-close { margin-inline-start: auto; background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 1.1rem; }
.privacy-note { display: flex; gap: .5rem; align-items: flex-start; background: var(--green-soft); border-radius: 12px; padding: .7rem .9rem; font-size: .82rem; color: var(--green-700); font-weight: 600; }
.dev-note { background: #fff7e6; border: 1px dashed var(--amber); border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; text-align: center; }
.dev-note b { font-size: 1.3rem; letter-spacing: 4px; color: var(--charcoal); }
.role-toggle { display: flex; gap: .5rem; }
.role-toggle .role-opt { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem; text-align: center; font-weight: 700; font-size: .9rem; }
.role-toggle .role-opt.active { border-color: var(--green); background: var(--green-soft); color: var(--green-700); }

/* rating input */
.star-input { display: flex; gap: .3rem; direction: ltr; font-size: 1.8rem; }
.star-input span { cursor: pointer; color: #d5d8d5; }
.star-input span.on { color: var(--amber); }

/* ---------- Footer (light) ---------- */
.footer { background: var(--bg-soft); color: var(--ink); padding: 3rem 0 1.5rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-mark { display: block; width: 40px; height: 50px; background: var(--green); -webkit-mask: url("/assets/logo-mark.svg") center/contain no-repeat; mask: url("/assets/logo-mark.svg") center/contain no-repeat; }
.footer-brand strong { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.footer-cols h4 { color: var(--green-700); margin-bottom: .7rem; font-size: .95rem; }
.footer-cols a, .footer-cols span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.footer-cols a:hover { color: var(--green-700); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .85rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; inset-inline: 0; bottom: 1.4rem; margin-inline: auto; width: fit-content; max-width: 90%; background: var(--charcoal); color: #fff; padding: .9rem 1.4rem; border-radius: 12px; z-index: 200; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.toast.err { background: #c0392b; }
.toast.ok { background: var(--green-600); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Misc ---------- */
.loading { text-align: center; padding: 4rem; color: var(--muted); }
.empty { text-align: center; padding: 3rem; color: var(--muted); }
.about-page { max-width: 720px; margin: 0 auto; padding: 3rem 0; }
.about-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.about-page p { color: #444; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; inset-inline: 0; background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2,1fr); }
  .guide-grid { grid-template-columns: repeat(2,1fr); }
  .guides-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-top { grid-template-columns: 1fr; }
  .host-benefits { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
}
@media (max-width: 560px) {
  .searchbar { grid-template-columns: 1fr; }
  .dest-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .detail-book .row { grid-template-columns: 1fr; }
}
