/* ============================================================
   TAHWISSA v2 — Enhanced CSS with Animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --g-deep:   #1B4332;
  --g-main:   #2D6A4F;
  --g-mid:    #3A8A64;
  --g-light:  #52B788;
  --g-pale:   #D8F3DC;
  --g-mint:   #B7E4C7;
  --gold:     #C9A84C;
  --gold-lt:  #E9C98C;
  --gold-pale:#FDF5E0;
  --cream:    #FAFAF5;
  --white:    #FFFFFF;
  --dark:     #0F1C17;
  --text:     #1E2D26;
  --muted:    #6B7C74;
  --border:   #E0EBE4;
  --error:    #DC2626;
  --error-bg: #FEE2E2;

  --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --sh-sm: 0 2px 12px rgba(27,67,50,.07);
  --sh:    0 6px 28px rgba(27,67,50,.10);
  --sh-lg: 0 16px 56px rgba(27,67,50,.14);
  --trans: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
  --nav-h: 64px;
}

/* --- Reset --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--cream);color:var(--text);line-height:1.65;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:var(--font);cursor:pointer;border:none;background:none}
ul{list-style:none}
input,textarea,select{font-family:var(--font)}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(1.5); }
}

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

@keyframes sandDrift {
  0%   { transform: translateX(-100px) skewX(-5deg); opacity: 0; }
  20%  { opacity: 0.15; }
  80%  { opacity: 0.15; }
  100% { transform: translateX(calc(100vw + 100px)) skewX(-5deg); opacity: 0; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(201,168,76,.3); }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%       { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
  75%       { border-radius: 40% 50% 60% 30% / 70% 30% 50% 40%; }
}

/* ============================================================
   AUTH SCREENS
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 24px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--sh-lg);
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) both;
}

.splash-logo {
  width: 88px; height: 88px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.4rem;
  animation: float 4s ease-in-out infinite;
  position: relative;
}
.splash-logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-lt);
  animation: pulse-ring 2s ease-out infinite;
}
.splash-name {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--g-deep);
  margin-bottom: 6px;
  animation: fadeInUp .6s .2s both;
}
.splash-tagline {
  text-align: center;
  color: var(--g-main);
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp .6s .3s both;
}
.splash-btns { display: flex; flex-direction: column; gap: 12px; animation: fadeInUp .6s .4s both; }

.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 28px;
}

.auth-lang {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--g-main);
  cursor: pointer;
  box-shadow: var(--sh-sm);
}

/* Form inputs */
.form-group { margin-bottom: 14px; }
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), transform .2s;
  direction: inherit;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: var(--g-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
  transform: translateY(-1px);
}
.form-input.error { border-color: var(--error); }

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font);
  transition: var(--trans);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:active::after { background: rgba(255,255,255,.15); }

.btn-green {
  background: var(--g-main);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45,106,79,.30);
}
.btn-green:hover { background: var(--g-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,106,79,.40); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,168,76,.30);
}
.btn-gold:hover { background: #b8953f; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.40); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-pale); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  padding: 10px;
}
.btn-ghost:hover { color: var(--g-main); }
.btn-sm { padding: 10px 18px; font-size: .85rem; border-radius: var(--r-sm); }
.btn-inline { display: inline-flex; width: auto; padding: 10px 20px; }

/* Error message */
.error-box {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeInDown .3s both;
}

/* Terms */
.terms-wrap { margin: 16px 0; display: flex; gap: 10px; align-items: flex-start; }
.terms-wrap input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--g-main); }
.terms-text { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.terms-text strong { color: var(--text); font-weight: 700; }

.auth-link-row { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.auth-link-row a { color: var(--g-main); font-weight: 700; }

.type-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.type-card {
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.type-card:hover,.type-card.active-green { border-color: var(--g-light); background: rgba(183,228,199,.15); transform: translateY(-2px); }
.type-card.active-gold { border-color: var(--gold); background: var(--gold-pale); }
.type-icon { font-size: 2rem; }
.type-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.type-desc { font-size: .82rem; color: var(--muted); }

.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.activity-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 20px 12px;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.activity-card:hover { border-color: var(--g-light); background: rgba(183,228,199,.15); transform: translateY(-2px); }
.activity-card.selected { border-color: var(--g-main); background: rgba(183,228,199,.2); }
.activity-card .act-icon { font-size: 1.6rem; }
.activity-card .act-label { font-size: .82rem; font-weight: 700; color: var(--text); }

.map-container {
  border: 2px dashed var(--g-main);
  border-radius: var(--r);
  overflow: hidden;
  height: 200px;
  position: relative;
  margin-bottom: 14px;
  cursor: pointer;
}
.map-container #map,.map-container .map-inner { width: 100%; height: 100%; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--g-main);
  font-weight: 600;
  font-size: .9rem;
  gap: 8px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  margin-bottom: 14px;
  background: var(--cream);
}
.upload-zone:hover { border-color: var(--g-main); background: var(--g-pale); }
.upload-zone input { display: none; }
.upload-zone p { font-size: .88rem; color: var(--muted); }
.upload-preview { width: 80px; height: 60px; object-fit: cover; border-radius: var(--r-sm); margin: 0 auto 8px; }

.provider-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1.5px solid var(--gold-lt);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top:0; left:0; right:0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 20px;
  transition: var(--trans);
  animation: fadeInDown .6s both;
}
.nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--sh-sm);
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 900; color: var(--white);
  transition: color var(--trans);
  position: relative;
}
.nav.scrolled .nav-logo { color: var(--g-deep); }
.nav-logo span { color: var(--gold); }

/* Animated underline on logo */
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav-logo:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-links { display: none; gap: 28px; }
@media(min-width:768px){ .nav-links { display: flex; } }
.nav-links a {
  font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,.9); transition: color var(--trans);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: right;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover,.nav-links a.active { color: var(--gold); }
.nav.scrolled .nav-links a:hover,.nav.scrolled .nav-links a.active { color: var(--g-main); }
.nav.scrolled .nav-links a::after { background: var(--g-main); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-sw {
  display: flex; gap: 2px;
  background: rgba(255,255,255,.15); border-radius: 100px; padding: 3px;
  transition: var(--trans);
}
.nav.scrolled .lang-sw { background: var(--g-pale); }
.lang-sw a {
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.8);
  padding: 4px 8px; border-radius: 100px; transition: var(--trans);
}
.nav.scrolled .lang-sw a { color: var(--muted); }
.lang-sw a.active { background: var(--white); color: var(--g-main); }
.nav.scrolled .lang-sw a.active { background: var(--g-main); color: var(--white); }

.nav-auth-link {
  display: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .82rem; font-weight: 700;
  background: var(--gold);
  color: var(--white);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.nav-auth-link::before {
  content: '';
  position: absolute;
  top: 50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,.25);
  transform: translateY(-50%) skewX(-20deg);
  transition: left .5s ease;
}
.nav-auth-link:hover::before { left: 130%; }
.nav-auth-link:hover { background: #b8953f; transform: translateY(-1px); }
@media(min-width:640px){ .nav-auth-link { display: flex; } }

/* Hamburger */
.hamburger {
  width: 36px; height: 36px; display: flex;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 4px;
}
@media(min-width:768px){ .hamburger { display: none; } }
.hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--white); transition: var(--trans);
}
.nav.scrolled .hamburger span { background: var(--g-deep); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.5);
  display: none; align-items: flex-start; justify-content: flex-end;
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: flex; }
.mobile-menu-inner {
  background: var(--white);
  width: min(280px, 85vw);
  height: 100%;
  padding: 80px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  animation: fadeInRight .3s cubic-bezier(.4,0,.2,1) both;
}
.mobile-menu-inner a {
  padding: 14px 16px; border-radius: var(--r);
  font-size: .95rem; font-weight: 600; color: var(--text);
  transition: var(--trans);
}
.mobile-menu-inner a:hover { background: var(--g-pale); color: var(--g-main); transform: translateX(-4px); }
.mobile-lang { display: flex; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mobile-lang a {
  flex: 1; text-align: center; padding: 8px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); color: var(--muted);
  transition: var(--trans);
}
.mobile-lang a.active { border-color: var(--g-main); background: var(--g-pale); color: var(--g-main); }

/* ============================================================
   HERO — Enhanced
   ============================================================ */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--g-deep) 0%, var(--g-main) 55%, #3d9970 100%);
  background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
  position: relative; overflow: hidden;
  animation: gradientShift 12s ease infinite;
}

/* Animated sand particles */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}

/* Floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
}
.hero-blob-1 {
  width: 400px; height: 400px;
  background: var(--gold);
  top: -100px; right: -100px;
  animation: morphBlob 10s ease-in-out infinite;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--g-light);
  bottom: -50px; left: -80px;
  animation: morphBlob 14s ease-in-out infinite reverse;
}

/* Sand drift lines */
.hero-sand {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
  border-radius: 2px;
  pointer-events: none;
}
.hero-sand-1 { width: 200px; top: 30%; animation: sandDrift 8s linear infinite; animation-delay: 0s; }
.hero-sand-2 { width: 120px; top: 50%; animation: sandDrift 11s linear infinite; animation-delay: 2s; }
.hero-sand-3 { width: 160px; top: 70%; animation: sandDrift 9s linear infinite; animation-delay: 5s; }

/* Stars */
.hero-star {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  pointer-events: none;
}
.hero-star:nth-child(1)  { top:15%; left:10%; animation: starTwinkle 2.5s .0s ease-in-out infinite; }
.hero-star:nth-child(2)  { top:25%; left:80%; animation: starTwinkle 3.0s .5s ease-in-out infinite; }
.hero-star:nth-child(3)  { top:60%; left:20%; animation: starTwinkle 2.0s 1.0s ease-in-out infinite; }
.hero-star:nth-child(4)  { top:80%; left:70%; animation: starTwinkle 3.5s .3s ease-in-out infinite; }
.hero-star:nth-child(5)  { top:40%; left:90%; animation: starTwinkle 2.2s .8s ease-in-out infinite; }

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; padding: 6px 14px;
  font-size: .78rem; font-weight: 700; color: var(--white);
  margin-bottom: 24px;
  animation: fadeInDown .7s .2s both;
}

/* Pulsing dot on badge */
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold-lt);
  border-radius: 50%;
  animation: pulse-ring 1.5s ease-out infinite;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 900; color: var(--white); line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp .8s .3s both;
}

/* Shimmer effect on title */
.hero-title span.shimmer {
  background: linear-gradient(90deg, var(--white) 25%, var(--gold-lt) 50%, var(--white) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite 1.5s;
}

.hero-desc {
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,.85); max-width: 480px; margin: 0 auto 36px;
  animation: fadeInUp .8s .4s both;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp .8s .5s both;
}
.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--white);
  padding: 14px 28px; border-radius: 100px;
  font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  transition: var(--trans);
  position: relative; overflow: hidden;
  animation: borderGlow 3s ease-in-out infinite 2s;
}
.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .5s ease;
}
.hero-btn-primary:hover::before { left: 150%; }
.hero-btn-primary:hover { background: #b8953f; transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,.5); }

.hero-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.5); color: var(--white);
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; transition: var(--trans);
}
.hero-btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 48px; flex-wrap: wrap;
  animation: fadeInUp .8s .7s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 1.6rem; font-weight: 900; color: var(--white);
  animation: countUp .6s 1.2s both;
}
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.7); font-weight: 600; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 600;
  animation: fadeInUp .8s 1s both;
  cursor: pointer;
  z-index: 2;
}
.hero-scroll-wheel {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero-scroll-wheel::after {
  content: '';
  width: 4px; height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: float 1.5s ease-in-out infinite;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 20px; }
.section-sm { padding: 48px 20px; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g-main);
  background: var(--g-pale); padding: 6px 14px;
  border-radius: 100px; margin-bottom: 12px;
  transition: var(--trans);
}
.section-tag:hover { background: var(--g-mint); transform: translateX(4px); }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; line-height: 1.2; color: var(--dark);
  position: relative;
}
.section-desc { font-size: .95rem; color: var(--muted); margin-top: 10px; max-width: 540px; }

/* Decorative line under section title */
.section-title-underline {
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--g-light));
  border-radius: 2px;
  margin-top: 12px;
}

/* ============================================================
   PLACES GRID — Enhanced
   ============================================================ */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media(min-width:480px){ .places-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px){ .places-grid { grid-template-columns: repeat(3, 1fr); } }

.place-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  position: relative;
}
.place-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--gold), var(--g-light)) border-box;
  opacity: 0;
  transition: opacity .3s;
  z-index: 1;
  pointer-events: none;
}
.place-card:hover::before { opacity: 1; }
.place-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--sh-lg); }

.place-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--g-main), var(--g-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform .5s ease;
  position: relative;
}
.place-card:hover .place-img { transform: scale(1.05); }

/* Image overlay on hover */
.place-img-wrap { overflow: hidden; position: relative; height: 180px; }
.place-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.place-card:hover .place-img-wrap::after { opacity: 1; }

.place-body { padding: 16px; position: relative; z-index: 2; }
.place-cat {
  display: inline-block;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--g-main);
  background: var(--g-pale); border-radius: 100px;
  padding: 3px 10px; margin-bottom: 8px;
  transition: var(--trans);
}
.place-card:hover .place-cat { background: var(--g-mint); }
.place-name { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.place-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.place-map-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; color: var(--g-main);
  border: 1.5px solid var(--g-pale); border-radius: 100px;
  padding: 6px 14px; transition: var(--trans);
  position: relative; overflow: hidden;
}
.place-map-btn:hover {
  background: var(--g-main); color: var(--white);
  border-color: var(--g-main);
  transform: translateY(-1px);
}

.places-map-full {
  width: 100%; height: 420px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh); margin-top: 32px;
  transition: var(--trans);
}
.places-map-full:hover { box-shadow: var(--sh-lg); }

/* ============================================================
   ACTIVITIES GRID — Enhanced
   ============================================================ */
.acts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media(min-width:640px){ .acts-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:900px){ .acts-grid { grid-template-columns: repeat(4, 1fr); } }

.act-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}
.act-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.act-card:hover::before { transform: scaleX(1); }
.act-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sh);
  border-color: var(--g-pale);
}

.act-card-icon {
  font-size: 2rem; margin-bottom: 10px;
  display: inline-block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.act-card:hover .act-card-icon { transform: scale(1.2) rotate(-5deg); }

.act-card-type {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: var(--g-main); background: var(--g-pale);
  border-radius: 100px; padding: 3px 10px; margin-bottom: 8px; display: inline-block;
  transition: var(--trans);
}
.act-card:hover .act-card-type { background: var(--g-mint); }
.act-card-name { font-size: .9rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.act-card-addr { font-size: .78rem; color: var(--muted); }
.act-status-badge {
  display: inline-block; margin-top: 8px;
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 100px;
}
.badge-approved { background: var(--g-pale); color: var(--g-main); }
.badge-pending  { background: var(--gold-pale); color: #a07820; }
.badge-rejected { background: var(--error-bg); color: var(--error); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media(min-width:640px){ .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--g-main), var(--g-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  cursor: pointer; transition: var(--trans);
}
.gallery-item:hover { transform: scale(1.04); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; gap: 32px; margin-top: 32px; }
@media(min-width:768px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  transition: var(--trans);
  padding: 8px; border-radius: var(--r-sm);
}
.contact-info-item:hover { background: var(--g-pale); transform: translateX(4px); }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--g-pale); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: var(--trans);
}
.contact-info-item:hover .contact-icon { background: var(--g-mint); transform: scale(1.1); }
.contact-info-text strong { font-weight: 700; font-size: .88rem; color: var(--dark); display: block; }
.contact-info-text span { font-size: .85rem; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-submit {
  background: linear-gradient(135deg, var(--g-main), var(--g-mid));
  color: var(--white);
  padding: 14px; border-radius: var(--r);
  font-size: .95rem; font-weight: 800; font-family: var(--font);
  transition: var(--trans); cursor: pointer; border: none; width: 100%;
  position: relative; overflow: hidden;
}
.form-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.form-submit:hover::before { left: 150%; }
.form-submit:hover { background: linear-gradient(135deg, var(--g-deep), var(--g-main)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,.35); }
.form-success {
  display: none; background: var(--g-pale);
  border: 1.5px solid var(--g-mint); color: var(--g-deep);
  border-radius: var(--r); padding: 14px; text-align: center; font-weight: 700;
}
.form-success.show { display: block; animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1) both; }

/* ============================================================
   FOOTER — Enhanced
   ============================================================ */
.footer {
  background: var(--g-deep); color: rgba(255,255,255,.8);
  padding: 48px 20px 28px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-light), var(--gold), var(--g-light));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}
.footer-grid {
  display: grid; gap: 32px; max-width: var(--max-w); margin: 0 auto;
}
@media(min-width:640px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: .88rem; color: rgba(255,255,255,.7); transition: var(--trans);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: '→';
  font-size: .7rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--trans);
  display: inline-block;
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }
.footer-links a:hover { color: var(--gold); transform: translateX(8px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px; padding-top: 20px; max-width: var(--max-w); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.5);
}

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dash-wrap { min-height: 100vh; background: var(--cream); }
.dash-header {
  background: linear-gradient(135deg, var(--g-deep), var(--g-main));
  padding: 60px 20px 32px; text-align: center; color: var(--white);
}
.dash-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 12px;
  animation: float 4s ease-in-out infinite;
}
.dash-name { font-size: 1.3rem; font-weight: 800; }
.dash-role { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 4px; }
.dash-body { padding: 24px 20px; max-width: 640px; margin: 0 auto; }
.dash-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-sm); margin-bottom: 16px;
  transition: var(--trans);
}
.dash-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.dash-card-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }

/* ============================================================
   PENDING / STATUS
   ============================================================ */
.status-wrap {
  background: var(--gold-pale); border: 1.5px solid var(--gold-lt);
  border-radius: var(--r); padding: 20px; text-align: center; margin-bottom: 16px;
}
.status-icon { font-size: 2.5rem; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.status-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.status-desc { font-size: .85rem; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATIONS — Enhanced
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX( 32px); }
.reveal-scale { transform: scale(.9); }
.reveal-left.visible,.reveal-right.visible,.reveal-scale.visible { transform: none; }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}
.stagger-children.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger-children.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.15s; }
.stagger-children.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.25s; }
.stagger-children.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.35s; }
.stagger-children.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.45s; }
.stagger-children.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.55s; }
.stagger-children.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:.65s; }
.stagger-children.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:.75s; }

/* ============================================================
   CURSOR GLOW (desktop only)
   ============================================================ */
.cursor-glow {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  display: none;
}
@media(hover:hover){ .cursor-glow { display: block; } }

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
.page-overlay {
  position: fixed; inset: 0;
  background: var(--g-deep);
  z-index: 9998;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path .6s cubic-bezier(.77,0,.175,1);
}
.page-overlay.active { clip-path: circle(150% at 50% 50%); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--g-mid), var(--gold)); border-radius: 3px; }

/* Selection color */
::selection { background: var(--g-pale); color: var(--g-deep); }

/* Reduced motion */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   NEW FEATURES — Map Search, Ratings, Requests, Settings
   ============================================================ */

/* ── Settings button in nav ── */
.nav-settings-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--r-sm);
  transition: background .2s, transform .2s;
  line-height: 1;
  display: flex;
  align-items: center;
}
.nav-settings-btn:hover {
  background: var(--g-pale);
  transform: rotate(30deg);
}

/* ── Map Search ── */
.map-search-wrap {
  position: relative;
  margin-bottom: 12px;
  max-width: 420px;
}
.map-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: border-color .2s, box-shadow .2s;
}
.map-search-bar:focus-within {
  border-color: var(--g-main);
  box-shadow: 0 2px 20px rgba(82,183,136,.25);
}
.map-search-icon { font-size: 1rem; color: var(--muted); flex-shrink: 0; }
.map-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: .9rem;
  background: transparent;
  color: var(--dark);
  direction: rtl;
}
.map-search-input::placeholder { color: var(--muted); }
.map-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  padding: 0 2px;
  line-height: 1;
  transition: color .2s;
}
.map-search-clear:hover { color: var(--error); }
.map-search-results {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: 100%;
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 500;
}
.map-search-item {
  padding: 10px 16px;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  color: var(--dark);
}
.map-search-item:hover { background: var(--g-pale); }
.map-search-empty { color: var(--muted); cursor: default; }
.map-search-empty:hover { background: none; }

/* ── Stars rating display on cards ── */
.provider-rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.stars-row { display: flex; gap: 1px; }
.star { font-size: 1rem; transition: color .15s; }
.star-filled { color: #C9A84C; }
.star-empty  { color: #ddd; }
.rating-num  { font-size: .82rem; font-weight: 700; color: var(--dark); }
.rating-count{ font-size: .75rem; color: var(--muted); }

/* ── Provider action buttons ── */
.rate-btn, .req-service-btn {
  display: inline-block;
  margin-top: 10px;
  margin-inline-end: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  line-height: 1.2;
}
.rate-btn {
  background: var(--gold-light, #fef9ec);
  color: #a07020;
  border-color: #C9A84C;
}
.rate-btn:hover {
  background: #C9A84C;
  color: #fff;
}
.req-service-btn {
  background: var(--g-pale);
  color: var(--g-deep);
  border-color: var(--g-main);
}
.req-service-btn:hover {
  background: var(--g-main);
  color: #fff;
}
.req-service-btn-ghost {
  display: block;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Generic modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: translateY(24px) scale(.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  direction: rtl;
}
.modal-title { font-weight: 800; font-size: 1rem; font-family: var(--font); color: var(--dark); }
.modal-close  {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: background .2s;
}
.modal-close:hover { background: var(--border); }
.modal-body {
  padding: 20px;
  direction: rtl;
}

/* Stars input in modal */
.stars-input {
  display: flex;
  gap: 6px;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 4px;
  direction: ltr;
  justify-content: center;
}
.stars-input span { color: #ccc; transition: color .15s; user-select: none; }

.btn-modal-submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, var(--g-main), var(--g-deep));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-modal-submit:hover { opacity: .92; }
.btn-modal-submit:active { transform: scale(.98); }
.btn-modal-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Settings modal ── */
.settings-section { margin-bottom: 18px; }
.settings-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.settings-options { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-opt {
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--cream);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.settings-opt:hover, .settings-opt.active {
  background: var(--g-main);
  border-color: var(--g-main);
  color: #fff;
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--cream);
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  transition: background .2s;
}
.settings-link:hover { background: var(--g-pale); }
.settings-link-danger { color: var(--error); }
.settings-link-danger:hover { background: var(--error-bg, #fff0f0); }

/* ── Dark mode basic ── */
body.dark-mode {
  --cream: #1a1a2e;
  --text:  #e8e8e8;
  --dark:  #f0f0f0;
  --border: rgba(255,255,255,.12);
  --muted: #888;
  background: #121220;
}
body.dark-mode .nav { background: rgba(18,18,32,.95); }
body.dark-mode .modal-box { background: #1e1e30; }
body.dark-mode .map-search-bar { background: #1e1e30; border-color: rgba(255,255,255,.15); }
body.dark-mode .map-search-input { color: #f0f0f0; }
body.dark-mode .map-search-results { background: #1e1e30; border-color: rgba(255,255,255,.15); }
body.dark-mode .map-search-item { color: #e8e8e8; }

/* Responsive */
@media(max-width:480px) {
  .map-search-wrap { max-width: 100%; }
  .modal-box { max-width: 100%; border-radius: 16px 16px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

/* ============================================================
   UPGRADED MAP SEARCH DESIGN
   ============================================================ */

/* ── Map section wrapper ── */
.map-section-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
  background: #fff;
}

/* ── Search hero panel (above map) ── */
.map-search-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
  padding: 28px 28px 0;
  position: relative;
  overflow: visible;
}
.map-search-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.map-search-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}

/* ── Search input bar (new) ── */
.map-search-bar-new {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.97);
  border-radius: 50px;
  padding: 0 8px 0 20px;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2), 0 0 0 0 rgba(82,183,136,0);
  transition: box-shadow .25s;
  position: relative;
  z-index: 10;
}
.map-search-bar-new:focus-within {
  box-shadow: 0 4px 32px rgba(0,0,0,.25), 0 0 0 3px rgba(82,183,136,.45);
}
.map-search-svg-icon {
  width: 20px;
  height: 20px;
  color: #40916c;
  flex-shrink: 0;
}
.map-search-input-new {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 500;
  color: #1b4332;
  background: transparent;
  padding: 14px 0;
  direction: rtl;
  min-width: 0;
}
.map-search-input-new::placeholder {
  color: #aac4b5;
  font-weight: 400;
}
.map-search-clear-new {
  background: #f0f4f2;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
  padding: 0;
}
.map-search-clear-new svg {
  width: 14px;
  height: 14px;
  color: #40916c;
}
.map-search-clear-new:hover { background: #d4edda; }

/* ── Results dropdown ── */
.map-search-results-new {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 500;
  border: 1px solid rgba(0,0,0,.06);
}
.map-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  direction: rtl;
  font-family: var(--font);
  border-bottom: 1px solid #f3f5f4;
}
.map-result-item:last-child { border-bottom: none; }
.map-result-item:hover { background: #f0faf5; }
.map-result-icon { font-size: 1.2rem; flex-shrink: 0; }
.map-result-name { flex: 1; font-size: .9rem; font-weight: 600; color: #1b4332; }
.map-result-arrow { width: 16px; height: 16px; color: #aac4b5; flex-shrink: 0; }
.map-result-empty {
  padding: 18px 16px;
  text-align: center;
  color: #aac4b5;
  font-size: .88rem;
  font-family: var(--font);
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Category tag pills ── */
.map-search-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0 20px;
}
.map-tag {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  border-radius: 50px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.map-tag:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.map-tag.active {
  background: #fff;
  color: #1b4332;
  border-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* ── Map itself ── */
.places-map-full-new {
  width: 100%;
  height: 420px;
  display: block;
}

@media(max-width:640px) {
  .map-search-hero { padding: 20px 16px 0; }
  .places-map-full-new { height: 300px; }
  .map-search-tags { gap: 6px; }
  .map-tag { font-size: .72rem; padding: 5px 10px; }
}
