/* ─────────────────────────────────────────────────────────
   Wain — Editorial Discovery Guide
   Aesthetic: refined, premium, dark accents, Arabic-first
   ───────────────────────────────────────────────────────── */

:root {
  --bg: #FAFAFA;
  --bg-deep: #0A0A0A;
  --card: #FFFFFF;
  --border: #ECECEE;
  --border-mid: #D8D8DC;
  --text: #0A0A0A;
  --text-mute: #52525B;
  --text-soft: #A1A1AA;
  --surface: #F4F4F5;
  --red: #FF3B30;
  --red-deep: #B91C1C;
  --green: #10B981;
  --gold-1: #8B7500;
  --gold-2: #D4AF37;
  --paper: #F8F4EC;

  --font-display: "Fraunces", "Tajawal", Georgia, serif;
  --font-arabic: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.04), 0 0 1px rgba(10, 10, 10, 0.05);
  --shadow-2: 0 4px 16px rgba(10, 10, 10, 0.06), 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-3: 0 16px 40px rgba(10, 10, 10, 0.10), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-gold: 0 4px 24px rgba(139, 117, 0, 0.20);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

/* Subtle paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(at 22% 12%, rgba(255, 59, 48, 0.04) 0, transparent 38%),
    radial-gradient(at 78% 88%, rgba(212, 175, 55, 0.04) 0, transparent 42%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input { font: inherit; }

/* ─────────── Layout ─────────── */
.wrap { max-width: 1560px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 1100px) { .wrap { padding: 0 24px; } }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ─────────── Top Nav ─────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg-deep);
  display: grid; place-items: center;
  position: relative;
}
.brand-logo svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-name .ar { font-family: var(--font-arabic); color: var(--red); font-size: 17px; font-weight: 900; }
.brand-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: 0.18em;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-actions { display: flex; gap: 8px; }
.nav-btn {
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.16s, box-shadow 0.16s;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.nav-btn.gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white; border: none;
  box-shadow: var(--shadow-gold);
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  padding: 36px 0 32px;
}
.hero h1 + .find-me { margin-top: 22px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--text-soft);
}
.hero h1 {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 22px 0 36px;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .hero-sub { font-size: 14px; margin: 18px 0 24px; }
}

/* Search bar — primary CTA */
.search-bar {
  display: flex; gap: 10px;
  background: var(--card);
  padding: 8px;
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  max-width: 620px;
  border: 1px solid var(--border);
}
.search-input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
}
.search-input-wrap svg { flex-shrink: 0; color: var(--text-soft); }
.search-bar input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.search-bar input::placeholder { color: var(--text-soft); }
.search-bar button {
  background: var(--bg-deep);
  color: white;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.18s;
}
.search-bar button:hover { transform: translateY(-1px); }

/* Stats row */
.hero-stats {
  display: flex; gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-item .lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .hero-stats { gap: 22px; margin-top: 28px; padding-top: 20px; }
  .stat-item .num { font-size: 24px; }
  .stat-item .lbl { font-size: 10px; }
}

/* ─────────── Filters ─────────── */
.filters {
  position: sticky; top: 65px; z-index: 40;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-top: 16px;
}
.filters-inner {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
}
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-pill {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-mute);
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.cat-pill.active {
  background: var(--bg-deep);
  color: white;
  border-color: var(--bg-deep);
}
.near-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-right: auto;
  transition: all 0.18s;
}
.near-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.near-btn.on {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.near-btn.on::after {
  content: ""; width: 6px; height: 6px;
  background: white; border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.radius-control {
  display: none;
  align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
}
.radius-control.show { display: flex; }
.radius-control .lbl { font-size: 11px; font-weight: 800; color: var(--text-soft); padding: 0 10px; letter-spacing: 0.05em; }
.radius-control .opt {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mute);
}
.radius-control .opt.on { background: var(--bg-deep); color: white; }

/* ─────────── Section heading ─────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 56px 0 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  display: flex; align-items: center; gap: 14px;
}
.section-title h2 {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  color: var(--red);
  letter-spacing: -0.02em;
}
.section-meta {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─────────── Premier badge ─────────── */
.premier-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}
.premier-tag svg { width: 11px; height: 11px; }
.premier-tag.sm { padding: 3px 8px; font-size: 9.5px; }
.premier-tag.sm svg { width: 9px; height: 9px; }

/* ─────────── Cards grid ─────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.24s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.24s;
  display: block;
  position: relative;
  animation: cardIn 0.5s cubic-bezier(0.2, 0, 0.1, 1) backwards;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-img-wrap {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.1, 1);
}
.card:hover .card-img-wrap img { transform: scale(1.06); }

.card-prem-pos { position: absolute; top: 10px; right: 10px; }
.card-dist {
  position: absolute; top: 10px; left: 10px;
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
}
.card-rating {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(10, 10, 10, 0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.card-rating svg { width: 11px; height: 11px; color: #FBBF24; fill: #FBBF24; }

.card-body { padding: 14px 16px 16px; }
.card-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-cuisine {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-area {
  font-size: 11px; font-weight: 700; color: var(--text-mute);
  display: flex; align-items: center; gap: 4px;
}
.card-area svg { width: 11px; height: 11px; }
.card-price {
  font-size: 11px; font-weight: 800;
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--text);
}

/* ─────────── Featured (large) card ─────────── */
.feat {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: clamp(320px, 50vw, 460px);
  box-shadow: var(--shadow-2);
  display: block;
  margin-bottom: 16px;
  animation: cardIn 0.6s cubic-bezier(0.2, 0, 0.1, 1) backwards;
}
.feat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0, 0.1, 1);
}
.feat:hover img { transform: scale(1.04); }
.feat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 50%, transparent 75%);
}
.feat-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  z-index: 2;
}
@media (max-width: 640px) {
  .feat-content { padding: 20px; }
}
.feat-area {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: white;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feat h3 {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
}
.feat-cuisine {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 6px 0 18px;
  font-weight: 500;
}
.feat-stats {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.feat-rating {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 99px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.feat-rating svg { width: 14px; height: 14px; color: #FBBF24; fill: #FBBF24; }
.feat-rating .reviews { font-weight: 500; opacity: 0.7; font-size: 11px; }
.feat-price {
  background: white;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
}
.feat .premier-tag { position: absolute; top: 24px; right: 24px; z-index: 2; }

/* ─────────── Premier promo banner ─────────── */
.promo-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #1A1300 0%, #3D2F00 100%);
  color: white;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.18s;
}
.promo-banner:hover { transform: translateY(-2px); }
.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.promo-text { flex: 1; min-width: 0; }
.promo-text h3 {
  font-size: 18px; font-weight: 900;
  margin-bottom: 4px; letter-spacing: -0.02em;
}
.promo-text p { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.promo-cta {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
@media (max-width: 640px) {
  .promo-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .promo-text h3 { font-size: 16px; }
}

/* ─────────── Empty state ─────────── */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
}
.empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty h3 { font-size: 18px; color: var(--text-mute); margin-bottom: 8px; }
.empty p { font-size: 13px; }

/* ─────────── Footer ─────────── */
.footer {
  margin-top: 80px;
  padding: 56px 0 32px;
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: -100px; left: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,48,0.08) 0%, transparent 60%);
}
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 {
  font-size: 11px; font-weight: 800;
  color: var(--gold-2);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.footer-brand .brand-name { color: white; }
.footer-brand .brand-name .ar { color: var(--red); }
.footer-tag {
  font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6;
  max-width: 360px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 13px; transition: color 0.18s; }
.footer a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ─────────── PLACE PROFILE PAGE ─────────── */
.place-hero {
  position: relative;
  height: clamp(320px, 50vh, 540px);
  overflow: hidden;
  background: var(--surface);
}
.place-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(250,250,250,0.4) 28%, transparent 60%);
}
.place-back {
  position: absolute; top: 24px; right: 24px; z-index: 3;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  transition: transform 0.18s;
}
.place-back:hover { transform: translateY(-2px); }

.place-body { padding: 0 24px 80px; max-width: 920px; margin: -80px auto 0; position: relative; z-index: 2; }
.place-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .place-body { padding: 0 16px 40px; margin-top: -60px; }
  .place-card { padding: 24px; }
}
.place-eyebrow {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.place-name {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.place-rating-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 22px;
}
.stars { display: flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; color: #FBBF24; fill: #FBBF24; }
.stars svg.empty { color: var(--border-mid); fill: var(--border-mid); }
.place-rating-num { font-size: 16px; font-weight: 900; }
.place-rating-rev { font-size: 12px; color: var(--text-soft); font-weight: 600; }
.place-desc {
  font-size: 16px; line-height: 1.7; color: var(--text-mute);
  margin-bottom: 28px; max-width: 720px;
}

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 32px;
}
.info-card {
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius);
}
.info-card .icn {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: white;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.info-card .icn svg { width: 16px; height: 16px; }
.info-label {
  font-size: 10.5px; color: var(--text-soft);
  font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.info-value { font-size: 14px; font-weight: 800; }
.info-value.ltr { direction: ltr; text-align: right; }

.actions { display: flex; flex-direction: column; gap: 10px; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 800;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.action-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.action-btn svg { width: 17px; height: 17px; }
.action-primary {
  background: var(--bg-deep);
  color: white;
  box-shadow: var(--shadow-2);
}
.action-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-secondary {
  background: var(--surface);
  color: var(--text);
}
.action-instagram {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ─────────── PREMIER PAGE ─────────── */
.premier-hero {
  background: linear-gradient(135deg, #1A1300 0%, #2D2300 50%, #3D2F00 100%);
  color: white;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.premier-hero::before {
  content: "";
  position: absolute; top: -200px; left: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 60%);
}
.premier-hero h1 {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  max-width: 800px;
}
.premier-hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.premier-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.premier-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 56px 0;
}
.feature-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.feature-card .icn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-gold);
}
.feature-card .icn svg { width: 20px; height: 20px; color: white; }
.feature-card h4 {
  font-size: 15px; font-weight: 800; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 13px; color: var(--text-mute); line-height: 1.55; }

.contact-cta {
  background: var(--bg-deep);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute; bottom: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 60%);
}
.contact-cta h3 { font-size: 26px; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.contact-cta p { color: rgba(255,255,255,0.65); margin-bottom: 24px; font-size: 14px; }
.contact-cta .promo-cta { display: inline-flex; }

/* ─────────── Animation stagger ─────────── */
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.20s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(7) { animation-delay: 0.28s; }
.card:nth-child(8) { animation-delay: 0.32s; }
.card:nth-child(n+9) { animation-delay: 0.36s; }

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

/* ════════════════════════════════════════════════
   DYNAMIC ADDITIONS
   ════════════════════════════════════════════════ */

/* ─── Live counter strip ─── */
.live-strip {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.85);
  padding: 9px 0;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.live-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.live-strip strong { color: white; font-weight: 800; }
.live-strip .dot-sep { color: rgba(255,255,255,0.3); margin: 0 4px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: livepulse 2s infinite;
  flex-shrink: 0;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── Loading spinner ─── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px; min-height: 240px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Category pills with icons (transparent style) ─── */
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px 8px 14px;
  border-radius: 99px;
  font-size: 13px; font-weight: 700;
  background: transparent;
  border: 1.5px solid var(--border-mid);
  color: var(--text-mute);
  transition: all 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.cat-pill:hover { transform: translateY(-1px); border-color: var(--text-mute); color: var(--text); }
.cat-pill.active {
  background: var(--bg-deep);
  color: white;
  border-color: var(--bg-deep);
}
.cat-pill .cat-icon { display: inline-flex; }
.cat-pill .cat-icon svg { width: 15px; height: 15px; opacity: 0.85; }
.cat-pill.active .cat-icon svg { opacity: 1; }

/* ─── Filter toggles (open now, etc.) ─── */
.filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: transparent;
  border: 1.5px solid var(--border-mid);
  color: var(--text-mute);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-toggle:hover { transform: translateY(-1px); border-color: var(--text-mute); color: var(--text); }
.filter-toggle.on {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.open-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.filter-toggle.on .open-dot { background: white; box-shadow: 0 0 6px white; }

/* ─── Status badges on cards ─── */
.status-badge {
  position: absolute; bottom: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.status-badge.open {
  background: rgba(16, 185, 129, 0.95);
  color: white;
}
.status-badge.closed {
  background: rgba(10, 10, 10, 0.85);
  color: rgba(255, 255, 255, 0.85);
}
.feat .status-badge { top: 24px; right: 24px; bottom: auto; padding: 6px 14px; font-size: 12px; }

/* ─── Trending row ─── */
.trending-section { margin-top: 36px; }
.trend-pulse {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: livepulse 1.5s infinite;
  box-shadow: 0 0 12px var(--red);
}
.trending-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.trend-card {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.trend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.trend-card .rank {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 2;
}
.trend-card img {
  width: 80px; height: 80px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}
.trend-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.trend-name {
  font-size: 14.5px; font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trend-meta {
  font-size: 11px; color: var(--text-soft);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trend-stats {
  display: flex; gap: 10px;
  margin-top: 8px;
  font-size: 11px; font-weight: 800;
}
.trend-views { color: var(--red); }
.trend-rating {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--text-mute);
}
.trend-rating svg { color: #FBBF24; fill: #FBBF24; }

/* ─── Section helper ─── */
.section { margin-top: 56px; }
.section:first-of-type { margin-top: 36px; }

/* ─── Place profile additions ─── */
.place-views {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  margin-right: 4px;
}

/* ─── App root transitions ─── */
.app-root {
  animation: fadeUp 0.32s cubic-bezier(0.2, 0, 0.1, 1);
  min-height: 60vh;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile tweaks ─── */
@media (max-width: 640px) {
  .live-strip { font-size: 11px; padding: 8px 0; }
  .live-inner { gap: 6px; }
  .filters-inner { gap: 8px; }
  .cat-pill { padding: 7px 12px 7px 10px; font-size: 12px; }
  .trend-card img { width: 64px; height: 64px; }
  .trend-card .rank { font-size: 18px; }
}

/* ─── Wain وين — primary location CTA (replaces search bar) ─── */
.find-me {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a0e0d 55%, #2a100f 100%);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 18px 22px;
  font-family: var(--font-arabic);
  cursor: pointer;
  box-shadow:
    0 24px 60px -12px rgba(10, 10, 10, 0.45),
    0 8px 24px -6px rgba(255, 59, 48, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.28s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.find-me::before {
  /* Subtle radial glow accent on the right side */
  content: "";
  position: absolute;
  top: 50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 59, 48, 0.28) 0%, transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}
.find-me::after {
  /* Subtle shimmer sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  pointer-events: none;
  transition: background-position 0.9s ease-out;
}
.find-me:hover {
  transform: translateY(-3px);
  box-shadow:
    0 32px 72px -12px rgba(10, 10, 10, 0.55),
    0 10px 32px -6px rgba(255, 59, 48, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.find-me:hover::after { background-position: 0% 0; }
.find-me:active { transform: translateY(0); }
.find-me.on {
  background: linear-gradient(135deg, #052e25 0%, #064E3B 55%, #047857 100%);
  box-shadow:
    0 24px 60px -12px rgba(10, 10, 10, 0.45),
    0 8px 24px -6px rgba(16, 185, 129, 0.35);
}
.find-me.on::before {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.35) 0%, transparent 60%);
}
.find-me.err {
  background: linear-gradient(135deg, #450a0a 0%, #7F1D1D 60%, #991B1B 100%);
}

.find-me-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  /* Soft inner glow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(255, 59, 48, 0.2);
}
.find-me-icon::before {
  /* Pulsing halo around the icon — only when idle */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 59, 48, 0.5);
  animation: findMePulse 2.4s ease-out infinite;
  pointer-events: none;
}
.find-me.on .find-me-icon::before {
  border-color: rgba(16, 185, 129, 0.5);
}
.find-me.loading .find-me-icon::before,
.find-me.err .find-me-icon::before {
  animation: none;
  opacity: 0;
}
@keyframes findMePulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  60%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.find-me-icon svg {
  width: 26px; height: 26px;
  color: white;
  filter: drop-shadow(0 2px 6px rgba(255, 59, 48, 0.4));
  animation: findMeBreath 3s ease-in-out infinite;
}
.find-me.on .find-me-icon svg {
  color: #6EE7B7;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.4));
  animation: none;
}
.find-me.loading .find-me-icon svg,
.find-me.err .find-me-icon svg { animation: none; }
@keyframes findMeBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.find-me-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  position: relative; z-index: 1;
}
.find-me-title {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
}
.find-me-title em {
  font-family: var(--font-arabic);
  font-style: normal;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF3B30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 5px;
  font-weight: 900;
}
.find-me.on .find-me-title { font-size: 19px; }
.find-me.on .find-me-title em {
  background: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.find-me-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.find-me-arrow {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform 0.28s, background 0.28s;
}
.find-me-arrow svg { width: 18px; height: 18px; color: white; }
.find-me:hover .find-me-arrow {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-4px);
}

.spinner-sm {
  width: 24px; height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (max-width: 640px) {
  .find-me { padding: 14px 16px; gap: 13px; border-radius: 20px; }
  .find-me-icon { width: 50px; height: 50px; border-radius: 14px; }
  .find-me-icon svg { width: 22px; height: 22px; }
  .find-me-title { font-size: 20px; }
  .find-me.on .find-me-title { font-size: 17px; }
  .find-me-sub { font-size: 11.5px; }
  .find-me-arrow { width: 36px; height: 36px; border-radius: 12px; }
  .find-me-arrow svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .find-me-icon::before, .find-me-icon svg { animation: none !important; }
}
