/* ==========================================================================
   Wain وين — Web stylesheet
   ========================================================================== */

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 16px rgba(139, 117, 0, 0.25);
}

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

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

body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "SF Arabic", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-en {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.brand-ar {
  font-size: 18px;
  font-weight: 900;
  color: var(--red);
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-soft);
  margin-top: 2px;
  display: block;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.icon-btn svg { width: 18px; height: 18px; color: var(--text-mute); }

/* ==========================================================================
   Hero (near-me CTA)
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  border-radius: 22px;
  padding: 22px;
  margin: 8px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30px;
  inset-inline-start: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.12);
  filter: blur(8px);
}
.hero:hover { transform: translateY(-2px); }
.hero-logo-box {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-text { position: relative; z-index: 1; flex: 1; }
.hero-title { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.15; }
.hero-sub { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-top: 4px; font-weight: 500; }

/* Radius selector (shown after geo) */
.radius-box {
  display: none;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.radius-box.active { display: block; }
.radius-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.radius-label { font-size: 12px; font-weight: 700; color: var(--text-mute); }
.radius-value { display: flex; align-items: baseline; gap: 4px; }
.radius-num { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.radius-unit { font-size: 12px; color: var(--text-soft); font-weight: 700; }
.radius-row { display: flex; gap: 6px; }
.radius-btn {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mute);
  transition: all 0.15s;
}
.radius-btn.active { background: var(--accent); color: #fff; }
.radius-cancel {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
  padding: 6px;
  width: 100%;
}

/* ==========================================================================
   Search + categories
   ========================================================================== */

.search-box {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.search-box svg { width: 18px; height: 18px; color: var(--text-soft); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.search-input::placeholder { color: var(--text-soft); }

.cats-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -20px 16px;
  padding-inline: 20px;
  scrollbar-width: none;
}
.cats-row::-webkit-scrollbar { display: none; }

.cat-btn {
  padding: 10px 18px;
  background: var(--card);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mute);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.2px;
  transition: all 0.15s;
}
.cat-btn.active { background: var(--accent); color: #fff; }

/* ==========================================================================
   Premier banner
   ========================================================================== */

.prem-banner {
  background: linear-gradient(135deg, #1A1300 0%, #3D2F00 100%);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.prem-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  filter: blur(8px);
}
.prem-banner:hover { transform: translateY(-2px); }
.prem-banner-text { flex: 1; position: relative; z-index: 1; }
.prem-banner-title { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -0.3px; margin-top: 8px; }
.prem-banner-sub { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; font-weight: 500; }
.prem-banner-arrow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.prem-banner-arrow svg { color: #D4AF37; transform: scaleX(-1); }

/* Premier tag */
.prem-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-gold);
}
.prem-tag.sm { padding: 3px 9px; font-size: 9px; }
.prem-tag svg { width: 11px; height: 11px; }
.prem-tag.sm svg { width: 9px; height: 9px; }

/* ==========================================================================
   Section heads
   ========================================================================== */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-title-row { display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.section-meta { font-size: 12px; color: var(--text-soft); font-weight: 700; }

/* ==========================================================================
   Cards grid
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

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

.card-prem {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
}
.card-rating {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.card-rating svg { width: 10px; height: 10px; fill: #FBBF24; color: #FBBF24; }

.card-dist {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: rgba(255, 59, 48, 0.95);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.card-body { padding: 14px; }
.card-name { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }
.card-cuisine { font-size: 11px; color: var(--text-soft); margin-top: 3px; margin-bottom: 10px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-area {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-area svg { width: 11px; height: 11px; }
.card-price {
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

/* Featured (large) card */
.feat-card {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  display: block;
}
.feat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.feat-card:hover .feat-card-img { transform: scale(1.04); }
.feat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.92) 100%);
}
.feat-card-top {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  inset-inline-end: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.feat-card-bottom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 1;
}
.feat-card-area {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.feat-card-area svg { width: 11px; height: 11px; }
.feat-card-name { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1.2px; line-height: 1.05; }
.feat-card-cuisine { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-top: 4px; margin-bottom: 16px; font-weight: 500; }
.feat-card-stats { display: flex; justify-content: space-between; align-items: center; }
.feat-card-rating-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 14px;
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.feat-card-rating-pill svg { width: 13px; height: 13px; fill: #FBBF24; color: #FBBF24; }
.feat-card-rating-pill .reviews { color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 11px; }
.feat-card-price-pill {
  background: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
}
.empty svg { width: 38px; height: 38px; margin-bottom: 14px; opacity: 0.6; }
.empty-title { font-size: 16px; font-weight: 700; }
.empty-sub { font-size: 13px; margin-top: 8px; }

/* ==========================================================================
   Place profile page
   ========================================================================== */

.place-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.place-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg));
}
.place-hero-actions {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  display: flex;
  justify-content: space-between;
}
.place-hero-prem {
  position: absolute;
  top: 80px;
  inset-inline-start: 24px;
}

.place-body { max-width: 720px; margin: 0 auto; padding: 0 20px 60px; }

.place-subhead { font-size: 12px; color: var(--text-soft); font-weight: 700; letter-spacing: 0.4px; margin-bottom: 8px; }
.place-name { font-size: 36px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.1; margin-bottom: 18px; }

.place-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  padding: 9px 16px;
  border-radius: 99px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.place-stars { display: flex; gap: 2px; }
.place-stars svg { width: 13px; height: 13px; }
.place-stars .filled { fill: #FBBF24; color: #FBBF24; }
.place-stars .empty-star { fill: var(--border); color: var(--border); }
.place-rating-num { font-size: 14px; font-weight: 900; }
.place-rating-rev { font-size: 11px; color: var(--text-soft); font-weight: 600; }

.place-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
  margin-bottom: 26px;
  font-weight: 500;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

.info-card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.info-icon svg { width: 18px; height: 18px; }
.info-label { font-size: 10px; font-weight: 700; color: var(--text-soft); letter-spacing: 0.3px; margin-bottom: 4px; }
.info-value { font-size: 13px; font-weight: 800; }

/* Contact CTAs */
.contact-block { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; gap: 10px; }
.contact-row > * { flex: 1; }

.btn {
  padding: 14px 20px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-soft { background: var(--surface); }
.btn-card { background: var(--card); box-shadow: var(--shadow-sm); }
.btn-soft:hover, .btn-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { transform: translateY(-1px); }

/* ==========================================================================
   Premier page
   ========================================================================== */

.prem-page-hero {
  background: linear-gradient(135deg, #1A1300 0%, #3D2F00 100%);
  padding: 32px 24px;
  border-radius: 22px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.prem-page-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  inset-inline-start: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  filter: blur(10px);
}
.prem-page-hero-tag { margin-bottom: 18px; position: relative; z-index: 1; }
.prem-page-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.prem-page-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.prem-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.prem-feat {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.prem-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.prem-feat-icon svg { width: 20px; height: 20px; color: #fff; }
.prem-feat-text { flex: 1; }
.prem-feat-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.prem-feat-desc { font-size: 12px; color: var(--text-soft); margin-top: 4px; line-height: 1.5; font-weight: 500; }

.prem-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.prem-plan {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 2px solid transparent;
}
.prem-plan.featured { border-color: var(--text); }
.prem-plan-save {
  position: absolute;
  top: -10px;
  inset-inline-end: 14px;
  background: var(--green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}
.prem-plan-label { font-size: 11px; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.prem-plan-price-row { display: flex; align-items: baseline; gap: 4px; }
.prem-plan-num { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; }
.prem-plan-unit { font-size: 11px; color: var(--text-soft); font-weight: 700; }

.prem-cta {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: transform 0.15s;
}
.prem-cta:hover { transform: translateY(-2px); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: 60px;
  padding: 32px 20px;
  background: #0A0A0A;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
}
.footer-brand { color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.footer-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ==========================================================================
   Mobile tweaks
   ========================================================================== */

@media (max-width: 600px) {
  .hero-title { font-size: 22px; }
  .feat-card { height: 360px; }
  .feat-card-name { font-size: 26px; }
  .place-name { font-size: 28px; }
  .place-hero { height: 320px; }
  .prem-page-title { font-size: 24px; }
}
