/* =========================================================
   İZMİR RESTORANLARI — Tasarım Sistemi (v4, marka logosuyla uyumlu)
   Palet doğrudan yüklenen logodan örneklendi:
   - Lacivert (#0B2C54)  — logo yazı rengi, başlıklar, koyu zeminler
   - Canlı turuncu (#EF6C1A) — logonun pin/tabak ikonundaki koyu ton, ana CTA
   - Amber/altın (#F9971C) — pin ikonundaki açık ton, puan rozetleri
   Hap biçimli butonlar, rozet kartlar ve yuvarlak kategori ikonları korunuyor.
   Tipografi: Montserrat (kalın ağırlıklar).
   ========================================================= */

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

:root {
  --ink: #0B2C54;            /* logodaki lacivert yazı rengi */
  --ink-soft: #55697D;       /* lacivert tonlu gri gövde metni */
  --ink-faint: #92A2B2;
  --paper: #F5F8FB;          /* logonun beyaz tabağıyla uyumlu, hafif mavi soğuk beyaz */
  --paper-deep: #E9EFF5;
  --surface: #FFFFFF;
  --teal-deep: #0B2C54;      /* koyu marka/footer/sidebar zemini = logo lacivert */
  --teal-mid: #1E4E82;       /* orta lacivert-mavi, ikincil vurgu */
  --teal-pale: #E7EEF6;
  --coral: #EF6C1A;          /* logo pin ikonundaki koyu turuncu — ana CTA */
  --coral-dark: #D4590F;
  --coral-pale: #FDEAE0;
  --olive: #1E8E5A;          /* durum/başarı yeşili (lacivert+turuncu ile uyumlu, soğutulmuş ton) */
  --olive-pale: #E3F5EC;
  --gold: #F9971C;           /* logo pin ikonundaki açık amber — puan rozetleri */
  --gold-dark: #D67A0A;
  --gold-pale: #FFF3E0;
  --line: #E1E8EF;
  --line-soft: #ECF1F6;
  --shadow-xs: 0 2px 6px rgba(11, 44, 84, 0.07);
  --shadow-sm: 0 4px 14px rgba(11, 44, 84, 0.09);
  --shadow-md: 0 14px 30px rgba(11, 44, 84, 0.13);
  --shadow-lg: 0 26px 56px rgba(11, 44, 84, 0.22);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 26px;
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'Montserrat', -apple-system, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 2px;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 800;
}

/* ---------- Buttons (Poco: iri, hap biçimli, kalın CTA) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: none;
  font-weight: 700; font-size: 14px; font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; letter-spacing: 0.04em; text-transform: uppercase;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(239,108,26,0.4); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; box-shadow: 0 12px 30px rgba(239,108,26,0.5); transform: translateY(-1px); }
.btn-dark { background: var(--teal-deep); color: #fff; }
.btn-dark:hover { background: #061B33; }
.btn-outline { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--coral); background: var(--coral-pale); color: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--ink); padding: 10px 14px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn-ghost:hover { background: var(--teal-pale); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 999px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,248,251, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.brand img.logo { height: 46px; width: auto; display: block; }
.brand .logo-badge { background: #fff; border-radius: 10px; padding: 5px 9px; display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.brand .logo-badge img.logo { height: 38px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 999px; background: var(--coral);
  color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(239,108,26,0.4);
}
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 15px; border-radius: 999px; font-size: 13.8px; font-weight: 700; color: var(--ink-soft);
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--coral-pale); color: var(--coral-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--line); color: var(--ink); position: relative;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--coral-pale); border-color: var(--coral); color: var(--coral-dark); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* ---------- Hero (bold red/cream, playful blobs) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--teal-deep); color: #fff;
  padding: 70px 0 96px;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,108,26,0.45) 0%, rgba(239,108,26,0) 70%); z-index: 1;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,38,0.55) 0%, rgba(6,20,38,0.88) 78%, var(--teal-deep) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.hero-inner { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.24); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; font-weight: 700;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(249,151,28,0.3); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; max-width: 780px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 { }
.hero p.lead { max-width: 560px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,0.8); margin-top: 16px; font-weight: 500; }

.search-card {
  margin-top: 34px; background: var(--surface); border-radius: 999px; padding: 8px;
  box-shadow: var(--shadow-lg); display: flex; gap: 6px; max-width: 700px; border: 1px solid rgba(255,255,255,0.6);
  position: relative; min-width: 0;
}
.search-card input[type="text"] {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 14.5px; padding: 14px 20px; color: var(--ink); background: transparent; font-weight: 600;
}
.search-card input::placeholder { color: var(--ink-faint); }
.search-card .btn { border-radius: 999px; }

/* ---------- Canlı arama önerileri (autocomplete) ----------
   Not: JS tarafında <body>'ye eklenip position:fixed ile konumlandırılır
   (bir üst elemanın overflow:hidden özelliği tarafından kesilmemesi için —
   ör. hero bölümünün dekoratif efekti overflow:hidden gerektiriyor). */
.search-suggestions {
  position: fixed; background: var(--surface);
  border-radius: var(--radius-m); box-shadow: var(--shadow-lg); border: 1.5px solid var(--line-soft);
  z-index: 9999; display: none; text-align: left;
  max-height: 360px; overflow-y: auto; overscroll-behavior: contain;
}
.search-suggestions.open { display: block; }
.search-suggestions .sugg-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); transition: background .12s;
}
.search-suggestions .sugg-item:last-child { border-bottom: none; }
.search-suggestions .sugg-item:hover, .search-suggestions .sugg-item.active { background: var(--coral-pale); }
.search-suggestions .sugg-item img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.search-suggestions .sugg-item .sugg-name { font-size: 13.8px; font-weight: 700; color: var(--ink); }
.search-suggestions .sugg-item .sugg-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-weight: 500; }
.search-suggestions .sugg-empty { padding: 16px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; max-width: 680px; }
.chip {
  font-size: 12.8px; font-weight: 700; padding: 9px 17px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.92);
  transition: background .15s, border-color .15s;
}
.chip:hover, .chip.active { background: var(--coral); border-color: var(--coral); color: #fff; }

.wave-divider { display: none; }

/* ---------- Kampanya banner ---------- */
.campaign-strip { background: var(--gold-pale); border-bottom: 1px solid var(--line-soft); padding: 14px 0; overflow: hidden; }
.campaign-strip .container { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.campaign-strip .container::-webkit-scrollbar { display: none; }
.campaign-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: 999px; padding: 8px 18px 8px 8px; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.campaign-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.campaign-card .badge { background: var(--coral); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.campaign-card .text { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.campaign-card .text span { font-weight: 500; color: var(--ink-soft); margin-left: 4px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 2.8vw, 36px); }
.section-head p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; max-width: 520px; font-weight: 500; }

/* ---------- Category grid (Poco: yuvarlak ikon rozetleri) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m);
  padding: 30px 16px; text-align: center; transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92px;
}
.cat-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); border-color: var(--coral); }
.cat-card .cat-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; z-index: 0; }
.cat-card.has-image { background: var(--ink); border-color: var(--ink); }
.cat-card.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,30,0.15), rgba(11,26,30,0.55)); z-index: 0; }
.cat-card span { position: relative; z-index: 1; font-size: 15px; font-weight: 800; color: var(--ink); }
.cat-card.has-image span { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.cat-card .cat-count { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); margin-top: 5px; font-family: var(--font-mono); }
.cat-card.has-image .cat-count { color: rgba(255,255,255,0.8); }

/* ---------- Restaurant card (Poco ürün kartı esintili) ---------- */
.rest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rest-card {
  background: var(--surface); border-radius: var(--radius-m); overflow: hidden; position: relative;
  box-shadow: var(--shadow-xs); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 2px solid var(--line-soft);
}
.rest-card-link { position: absolute; inset: 0; z-index: 2; }
.rest-cta { cursor: pointer; }
.rest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--coral); }
.rest-photo-wrap { position: relative; }
.rest-photo { width: 100%; height: 208px; object-fit: cover; display: block; cursor: zoom-in; }
.rest-stamp {
  position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 5px;
  background: var(--gold); color: var(--ink); padding: 7px 12px 7px 9px;
  border-radius: 999px; box-shadow: var(--shadow-sm); font-family: var(--font-mono);
}
.rest-stamp::before { content: "★"; color: #fff; font-size: 12px; }
.rest-stamp b { font-size: 13.5px; font-weight: 800; line-height: 1; }
.rest-stamp span { display: none; }
.rest-status {
  position: absolute; top: 12px; left: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
  padding: 7px 14px 7px 12px; border-radius: 0 999px 999px 0; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}
.rest-status.open { background: var(--olive); color: #fff; }
.rest-status.closed { background: var(--ink); color: #fff; }
.rest-body { padding: 20px; }
.rest-perforation { border-top: 2px dashed var(--line); margin: 14px 0; }
.rest-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); font-weight: 800; }
.rest-name { font-size: 18px; margin-top: 7px; font-weight: 800; }
.rest-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; margin-top: 7px; font-weight: 600; }
.rest-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.rest-foot { display: flex; align-items: center; justify-content: space-between; }
.rest-price { font-family: var(--font-mono); font-weight: 800; color: var(--coral-dark); letter-spacing: 0.5px; font-size: 14px; }
.rest-reviews { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.rest-cta { margin-top: 16px; }
.rest-cta.btn-outline { border-radius: 999px; }

@media (max-width: 1080px) { .rest-grid { grid-template-columns: repeat(2, 1fr); } .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) { .rest-grid { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 360px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Map section ---------- */
.map-shell {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-md); border: 2px solid var(--line-soft);
  position: relative; z-index: 1; isolation: isolate;
}
.map-list { background: var(--surface); max-height: 560px; overflow-y: auto; }
.map-list-item { display: flex; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .15s; }
.map-list-item:hover, .map-list-item.active { background: var(--coral-pale); }
.map-list-item img { width: 64px; height: 64px; border-radius: var(--radius-s); object-fit: cover; flex-shrink: 0; }
.map-list-item h4 { font-size: 14px; margin: 0 0 4px; font-weight: 800; }
.map-list-item .rest-meta { font-size: 12px; margin-top: 2px; }
#map, #map-detail, #map-overview, #admin-map { height: 560px; width: 100%; background: var(--paper-deep); position: relative; z-index: 1; isolation: isolate; }
.map-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.map-filter-bar select {
  padding: 10px 14px; border-radius: var(--radius-s); border: 2px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink);
}
@media (max-width: 900px) { .map-shell { grid-template-columns: 1fr; } .map-list { max-height: 320px; } #map, #map-detail, #map-overview { height: 340px; } }

/* ---------- Footer ---------- */
footer { background: var(--teal-deep); color: rgba(255,255,255,0.68); padding: 60px 0 26px; margin-top: 40px; position: relative; overflow: hidden; }
footer::before { content: ""; position: absolute; top: -100px; left: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(239,108,26,0.24) 0%, rgba(239,108,26,0) 70%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
footer h4 { color: #fff; font-size: 13.5px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer p { font-size: 13.8px; line-height: 1.7; max-width: 320px; }
footer ul li { margin-bottom: 10px; font-size: 13.8px; }
footer ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 44px; padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Breadcrumb / page header ---------- */
.page-header { background: var(--surface); border-bottom: 2px solid var(--line-soft); padding: 32px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; font-weight: 600; }
.breadcrumb a:hover { color: var(--coral); }
.page-header h1 { font-size: 28px; }

/* ---------- Search / filter layout ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: flex-start; }
.search-layout > div { min-width: 0; }
.filter-panel { background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); padding: 22px; position: sticky; top: 96px; }
.filter-panel h3 { font-size: 14.5px; margin-bottom: 4px; }
.filter-group { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border-bottom: none; }
.filter-group summary { font-weight: 700; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary svg { width: 15px; height: 15px; transition: transform .2s; color: var(--coral); }
.filter-group[open] summary svg { transform: rotate(180deg); }
.filter-options { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.3px; color: var(--ink-soft); cursor: pointer; font-weight: 600; }
.check-row input { accent-color: var(--coral); width: 15px; height: 15px; }
.check-row:hover { color: var(--ink); }
.price-row { display: flex; gap: 8px; }
.price-pill {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; border: 2px solid var(--line); font-family: var(--font-mono);
  font-weight: 800; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; transition: all .15s;
}
.price-pill.active, .price-pill:hover { border-color: var(--coral); color: #fff; background: var(--coral); }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.results-count b { color: var(--coral-dark); font-weight: 800; }
.view-toggle { display: flex; gap: 4px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px; }
.view-toggle button { background: transparent; border: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.view-toggle button.active { background: var(--ink); color: #fff; }
.sort-select { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tag { display: flex; align-items: center; gap: 6px; background: var(--coral-pale); color: var(--coral-dark); font-size: 12.3px; font-weight: 700; padding: 7px 10px 7px 13px; border-radius: 999px; }
.filter-tag button { background: none; border: none; color: var(--coral-dark); display: flex; }

.rest-grid.list-mode { grid-template-columns: 1fr; }
.rest-grid.list-mode .rest-card { display: grid; grid-template-columns: 260px 1fr; }
.rest-grid.list-mode .rest-photo { height: 100%; }
.mobile-filter-btn { display: none; flex-shrink: 0; width: 50px; align-items: center; justify-content: center; padding: 0; }
.mobile-filter-close-btn { display: none; background: var(--paper); border: none; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft); }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filter-panel {
    display: none; position: fixed; inset: 0; z-index: 300; border: none; border-radius: 0;
    padding: 20px 20px 90px; overflow-y: auto; box-shadow: none;
  }
  .filter-panel.mobile-open { display: block; }
  .rest-grid.list-mode .rest-card { grid-template-columns: 1fr; }
  .mobile-filter-btn { display: flex; }
  .mobile-filter-close-btn { display: flex; }
}

.empty-state { text-align: center; padding: 68px 20px; background: var(--surface); border-radius: var(--radius-m); border: 2px dashed var(--line); }
.empty-state svg { width: 42px; height: 42px; color: var(--coral); margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); font-size: 13.8px; margin-bottom: 18px; font-weight: 500; }

/* ---------- District cards ---------- */
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.district-card {
  position: relative; height: 196px; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease; border: 2px solid var(--line-soft);
}
.district-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.district-card img { width: 100%; height: 100%; object-fit: cover; }
.district-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,30,26,0) 30%, rgba(42,30,26,0.88) 100%); }
.district-card .content { position: absolute; left: 20px; bottom: 16px; right: 20px; z-index: 2; color: #fff; }
.district-card h3 { color: #fff; font-size: 19px; font-weight: 800; }
.district-card p { font-size: 12.3px; opacity: 0.82; margin-top: 4px; font-weight: 500; }
.district-card .count { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; background: var(--coral); color: #fff; border: none; padding: 5px 12px; border-radius: 999px; display: inline-block; margin-top: 9px; }
@media (max-width: 900px) { .district-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .district-grid { grid-template-columns: 1fr; } }

/* ---------- Detail page ---------- */
.gallery-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: var(--radius-l); overflow: hidden; margin-top: 28px; position: relative; z-index: 3; box-shadow: var(--shadow-md); border: 2px solid var(--line-soft); }
.gallery-hero .thumb-wrap { aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-hero img, .gallery-hero video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.gallery-side { display: contents; }
.gallery-side .thumb-wrap { position: relative; }
.gallery-side .thumb-wrap:last-child::after {
  content: "Tüm Fotoğraflar"; position: absolute; inset: 0; background: rgba(42,30,26,0.62); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; cursor: pointer; letter-spacing: 0.01em;
  pointer-events: none;
}
@media (max-width: 900px) { .gallery-hero { grid-template-columns: repeat(2, 1fr); } .gallery-hero .main-shot { grid-column: span 2; } }
@media (max-width: 560px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-hero .main-shot { grid-column: span 1; }
  /* Mobilde önce işletme bilgileri, sonra fotoğraflar gösterilir. */
  .detail-top-section { display: flex; flex-direction: column; }
  .detail-top-section .detail-head { order: 1; padding-top: 18px; }
  .detail-top-section .gallery-hero { order: 2; margin-top: 16px; }
}

.detail-head { padding-top: 28px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.detail-head h1 { font-size: clamp(24px, 3vw, 34px); }
.detail-rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.stars { color: var(--gold-dark); font-size: 15px; letter-spacing: 1px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.detail-layout { display: grid; grid-template-columns: 1fr 336px; gap: 40px; margin-top: 38px; align-items: flex-start; }
.detail-layout > div { min-width: 0; }
.info-card { background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); padding: 24px; position: sticky; top: 96px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.8px; font-weight: 600; }
.info-row:last-child { border-bottom: none; }
.info-row svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; margin-top: 1px; }
.info-row .label { color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); font-weight: 800; margin-bottom: 2px; }
.hours-table { width: 100%; font-size: 13.3px; }
.hours-table tr { border-bottom: 1px solid var(--line-soft); }
.hours-table td { padding: 7px 0; font-weight: 600; }
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink-soft); font-weight: 700; }
.hours-table tr.today td { color: var(--coral); font-weight: 800; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.feature-tags span { background: var(--olive-pale); color: var(--olive); font-size: 11.8px; font-weight: 800; padding: 7px 13px; border-radius: 999px; }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line-soft); margin-bottom: 28px; overflow-x: auto; }
.tab-btn { padding: 12px 4px; margin-right: 24px; background: none; border: none; font-weight: 800; font-size: 14px; color: var(--ink-faint); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-btn.active { color: var(--coral-dark); border-color: var(--coral); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.menu-cat { margin-bottom: 26px; }
.menu-cat h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 12px; font-weight: 800; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; font-weight: 600; }
.menu-item-text { flex: 1; min-width: 0; }
.menu-item-text-desc { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.menu-item .p { font-family: var(--font-mono); font-weight: 800; color: var(--coral-dark); flex-shrink: 0; }

.rating-summary { display: flex; gap: 30px; padding: 22px; background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); margin-bottom: 28px; align-items: center; flex-wrap: wrap; }
.rating-big { text-align: center; }
.rating-big .num { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--coral-dark); line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rbar-row { display: flex; align-items: center; gap: 10px; font-size: 12.3px; color: var(--ink-soft); font-weight: 700; }
.rbar-row .track { flex: 1; height: 7px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.rbar-row .fill { height: 100%; background: var(--gold); }

.review { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.review-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--coral-pale); color: var(--coral-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); }
.review-name { font-weight: 800; font-size: 14px; }
.review-date { font-size: 11.8px; color: var(--ink-faint); font-weight: 600; }
.review-text { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); font-weight: 500; }
.review-helpful { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.3px; color: var(--ink-faint); font-weight: 700; }

@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .info-card { position: static; } }

/* ---------- Owner / Admin shared shell ---------- */
.admin-shell { display: grid; grid-template-columns: 254px 1fr; min-height: 100vh; background: var(--paper); }
.admin-sidebar { background: var(--teal-deep); color: rgba(255,255,255,0.7); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { color: #fff; padding: 0 10px; margin-bottom: 28px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; font-size: 13.3px; font-weight: 700; margin-bottom: 2px; }
.admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: var(--coral); color: #fff; }
.admin-nav .nav-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); padding: 18px 14px 8px; font-weight: 800; }
.admin-main { padding: 0; min-width: 0; }
.admin-topbar { background: var(--surface); border-bottom: 2px solid var(--line-soft); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 19px; }
.admin-content { padding: 28px 32px 60px; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); padding: 18px; }
.stat-card .stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card .icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stat-card .icon svg { width: 16px; height: 16px; }
.stat-card .num { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-top: 14px; color: var(--ink); }
.stat-card .label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-weight: 600; }
.stat-card .delta { font-family: var(--font-mono); font-size: 11px; font-weight: 800; margin-top: 8px; display: inline-block; }
.delta.up { color: var(--olive); }
.delta.down { color: var(--coral-dark); }

.panel-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 22px; }
.panel { background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); padding: 22px; }
.panel h3 { font-size: 15px; margin-bottom: 4px; }
.panel .sub { font-size: 12.3px; color: var(--ink-faint); margin-bottom: 18px; font-weight: 600; }
.mini-table { width: 100%; font-size: 13.3px; border-collapse: collapse; }
.mini-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); font-weight: 800; letter-spacing: 0.04em; }
.mini-table td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.mini-table tr:last-child td { border-bottom: none; }

.data-table-wrap { background: var(--surface); border: 2px solid var(--line-soft); border-radius: var(--radius-m); overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 2px solid var(--line-soft); gap: 12px; flex-wrap: wrap; }
.table-search { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 10px 16px; min-width: 240px; border: 2px solid var(--line-soft); }
.table-search input { border: none; background: none; outline: none; font-size: 13.3px; width: 100%; font-weight: 600; }
.table-search svg { width: 16px; height: 16px; color: var(--ink-faint); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; padding: 12px 20px; background: var(--paper); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 800; }
.data-table td { padding: 14px 20px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-weight: 600; }
.data-table tr:hover td { background: var(--coral-pale); }
.row-rest { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.row-rest img { width: 42px; height: 42px; border-radius: var(--radius-s); object-fit: cover; }
.status-pill { font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; font-family: var(--font-mono); }
.status-pill.approved { background: var(--olive-pale); color: var(--olive); }
.status-pill.pending { background: var(--gold-pale); color: var(--gold-dark); }
.status-pill.rejected { background: var(--coral-pale); color: var(--coral-dark); }
.row-actions { display: flex; gap: 6px; }
.row-actions button, .row-actions a { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.row-actions button:hover, .row-actions a:hover { background: var(--coral-pale); color: var(--coral-dark); border-color: var(--coral); }
.row-actions button svg, .row-actions a svg { width: 14px; height: 14px; }
.row-actions .qr-row-btn {
  width: auto; height: auto; border-radius: 8px; display: inline-flex; align-items: center;
  gap: 7px; padding: 5px 12px; font-size: 11px; white-space: nowrap;
}
.table-pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 12.8px; color: var(--ink-soft); font-weight: 600; }
.pagi-btns { display: flex; gap: 6px; }
.pagi-btns button { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-size: 12.8px; font-weight: 700; }
.pagi-btns button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.8px; font-weight: 800; color: var(--ink); }
.field .hint { font-size: 11.3px; color: var(--ink-faint); font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  padding: 12px 15px; border-radius: var(--radius-s); border: 2px solid var(--line); background: var(--surface); font-size: 13.8px; color: var(--ink); outline: none; font-weight: 600; width: 100%;
}
.field input:focus:not([type="checkbox"]):not([type="radio"]), .field select:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-pale); }
.field textarea { resize: vertical; min-height: 90px; font-family: inherit; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(42,30,26,0.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--radius-m); max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 2px solid var(--line-soft); }
.modal-head h3 { font-size: 16px; }
.modal-close { width: 34px; height: 34px; border-radius: 999px; border: none; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 22px; }
.gallery-modal .modal-box { max-width: 900px; }
.gallery-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 20px; }
.gallery-modal-grid img, .gallery-modal-grid video { border-radius: var(--radius-s); height: 220px; object-fit: cover; width: 100%; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 14px 24px; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 1200;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; display: flex; align-items: center; gap: 8px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface);
    border-top: 2px solid var(--line-soft); z-index: 200; padding: 8px 6px 12px; justify-content: space-between;
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.3px; color: var(--ink-faint); font-weight: 700; padding: 6px 0; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--coral); }
  body { padding-bottom: 66px; }
  .nav-links, .nav-actions .icon-btn.hide-mobile { display: none; }
}

/* ---------- Generic utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.pill-static { font-size: 11.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px; background: var(--olive-pale); color: var(--olive); font-family: var(--font-mono); }

@media (max-width: 1080px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } .panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; z-index: 200; width: 260px;
    transform: translateX(-100%); transition: transform .22s ease;
    display: flex; flex-direction: column;
  }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .admin-sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(11,26,30,0.5); z-index: 190;
  }
  .admin-sidebar-backdrop.is-visible { display: block; }
  .admin-mobile-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-s); border: 1.5px solid var(--line-soft);
    background: var(--surface); color: var(--ink); margin-right: 10px; flex-shrink: 0; cursor: pointer;
  }
}
@media (min-width: 901px) {
  .admin-mobile-menu-btn { display: none; }
  .admin-sidebar-backdrop { display: none; }
}
@media (max-width: 640px) {
  .admin-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .admin-topbar h1 { font-size: 16px; }
  .admin-content { padding: 18px 16px 40px; }
  .discover-bulk-actions { width: 100%; }
  .discover-bulk-actions .btn { flex: 1; min-width: 140px; }
}
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Fotoğraf Lightbox (büyük görsel önizleme) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(11,26,30,0.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 30px;
  animation: lightboxFade .18s ease;
}
.lightbox-overlay.open { display: flex; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-m); box-shadow: 0 30px 80px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.3); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.3); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; z-index: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Fotoğraf galerisi grid küçük resimleri (daire) ---------- */
.gallery-thumb-circle {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; cursor: zoom-in;
  border: 3px solid var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
video.gallery-thumb-circle { cursor: default; }
.gallery-thumb-circle:hover { transform: scale(1.04); }

/* ---------- Profesyonel, Paylaşılabilir Menü Sayfası (menu.php) ---------- */
.menu-page-wrap { background: var(--paper); min-height: 60vh; padding: 40px 16px 60px; }
.menu-card {
  max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-l);
  box-shadow: var(--shadow-md); border: 1.5px solid var(--line-soft); padding: 44px 36px 36px;
}
.menu-brand-header { text-align: center; padding-bottom: 30px; margin-bottom: 8px; border-bottom: 2px dashed var(--line); position: relative; overflow: hidden; border-radius: 14px; }
.menu-brand-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.14; z-index: 0; }
.menu-brand-content { position: relative; z-index: 1; padding-top: 8px; }
.menu-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; border: 3px solid var(--paper); box-shadow: var(--shadow-sm); }
.menu-brand-name { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.menu-brand-meta { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral); font-weight: 700; }

.menu-section { margin-top: 34px; }
.menu-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 6px 2px 16px; margin-bottom: 4px; }
.menu-tab {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 0; width: 100%;
}
.menu-tab-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink-faint); transition: border-color .15s ease;
  animation: menuTileGlow 3.2s ease-in-out infinite;
}
@keyframes menuTileGlow {
  0%, 100% { box-shadow: 0 0 7px 0px rgba(239,108,26,0.22), 0 0 2px 0px rgba(239,108,26,0.18); }
  50% { box-shadow: 0 0 16px 3px rgba(239,108,26,0.4), 0 0 5px 1px rgba(249,151,28,0.3); }
}
.menu-tab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-tab-thumb svg { width: 30%; height: 30%; }
.menu-tab-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; line-height: 1.3; transition: color .15s ease;
}
.menu-tab:hover .menu-tab-thumb { border-color: var(--coral); }
.menu-section-title {
  text-align: center; font-family: var(--font-mono); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 20px;
  position: relative;
}
.menu-section-title span { background: var(--surface); padding: 0 16px; position: relative; z-index: 1; }
.menu-section-title::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }

.menu-items { display: flex; flex-direction: column; gap: 16px; }
.menu-item-row { display: flex; align-items: baseline; gap: 8px; }
.menu-item-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; align-self: center; cursor: zoom-in; border: 1px solid var(--line-soft); }
.menu-item-info { flex-shrink: 0; max-width: 68%; }
.menu-item-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.menu-item-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.menu-item-leader { flex: 1; border-bottom: 1.5px dotted var(--line); position: relative; top: -4px; min-width: 20px; }
.menu-item-price { flex-shrink: 0; font-family: var(--font-mono); font-size: 14.5px; font-weight: 800; color: var(--coral-dark); white-space: nowrap; }

.menu-footer {
  margin-top: 36px; padding-top: 22px; border-top: 2px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-soft);
}
.menu-footer div { display: flex; align-items: center; gap: 8px; }
.menu-footer a { color: var(--teal-mid); font-weight: 700; }
.menu-page-credit { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 20px; }

@media print {
  .navbar, .bottom-nav, footer, .menu-footer + .btn, .menu-page-credit { display: none !important; }
  .menu-page-wrap { padding: 0; background: #fff; }
  .menu-card { box-shadow: none; border: none; }
}
@media (max-width: 480px) {
  .menu-card { padding: 32px 20px 28px; }
  .menu-brand-name { font-size: 24px; }
}

/* ---------- "İşletme Keşfet" — Mobil Uyumluluk ---------- */
@media (max-width: 760px) {
  /* Arama formu: her alan tam genişlik, alt alta */
  .discover-search-form { flex-direction: column; align-items: stretch; }
  .discover-search-form .field { min-width: 0 !important; width: 100%; }
  .discover-search-form .btn { width: 100%; justify-content: center; }

  /* Sonuç tablosu: geleneksel tablo yerine kart görünümüne geçer */
  .discover-table thead { display: none; }
  .discover-table, .discover-table tbody, .discover-table tr, .discover-table td { display: block; width: 100%; }
  .discover-table { border: none; }
  .discover-table tr {
    margin-bottom: 14px; border: 1.5px solid var(--line-soft); border-radius: var(--radius-m);
    padding: 4px 14px; background: var(--surface);
  }
  .discover-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; border-top: 1px solid var(--line-soft); text-align: right;
  }
  .discover-table td:first-child { border-top: none; }
  .discover-table td::before {
    content: attr(data-label); font-family: var(--font-mono); font-weight: 800; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); text-align: left; flex-shrink: 0;
  }
  .discover-table td[data-label="İşletme"] { text-align: left; }
  .discover-table td[data-label="İşletme"]::before { display: none; }
  .discover-table td[data-label="İşletme"] > * { width: 100%; }
  .discover-table td.discover-actions-cell { flex-direction: column; align-items: stretch; }
  .discover-table td.discover-actions-cell::before { margin-bottom: 6px; }
  .discover-table td.discover-actions-cell > div { width: 100%; }
  .discover-table td.discover-actions-cell .btn { flex: 1; }
}

/* ---------- İşletme Paneli — "Restoranlarım" Tablosu — Mobil Uyumluluk ---------- */
@media (max-width: 760px) {
  .biz-restaurants-table thead { display: none; }
  .biz-restaurants-table, .biz-restaurants-table tbody, .biz-restaurants-table tr, .biz-restaurants-table td { display: block; width: 100%; }
  .biz-restaurants-table { border: none; }
  .biz-restaurants-table tr {
    margin-bottom: 14px; border: 1.5px solid var(--line-soft); border-radius: var(--radius-m);
    padding: 4px 14px; background: var(--surface);
  }
  .biz-restaurants-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; border-top: 1px solid var(--line-soft); text-align: right;
  }
  .biz-restaurants-table td:first-child { border-top: none; }
  .biz-restaurants-table td::before {
    content: attr(data-label); font-family: var(--font-mono); font-weight: 800; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); text-align: left; flex-shrink: 0;
  }
  .biz-restaurants-table td[data-label="Restoran"] { text-align: left; }
  .biz-restaurants-table td[data-label="Restoran"]::before { display: none; }
  .biz-restaurants-table td[data-label="Restoran"] > * { width: 100%; }
  .biz-restaurants-table td.biz-actions-cell { flex-direction: column; align-items: stretch; }
  .biz-restaurants-table td.biz-actions-cell::before { margin-bottom: 8px; }
  .biz-restaurants-table .row-actions { flex-wrap: wrap; justify-content: flex-start; }
  .biz-restaurants-table .row-actions .qr-row-btn { flex: 1; justify-content: center; min-width: 120px; }
}

/* ---------- Menü Yönetimi (İşletme Paneli) — Mobil Uyumluluk ---------- */
@media (max-width: 700px) {
  /* Başlık (kategori) düzenleme satırı: alt alta dizilir */
  .menu-cat-header { flex-direction: column; align-items: stretch; }
  .menu-cat-header-left { flex-direction: column; align-items: stretch; }
  .menu-cat-rename-form { flex-wrap: wrap; }
  .menu-cat-rename-form input[type="text"] { width: 100%; flex-basis: 100%; }
  .menu-cat-rename-form .btn { width: 100%; justify-content: center; }
  .menu-cat-header > form { width: 100%; }
  .menu-cat-header > form .btn { width: 100%; justify-content: center; }

  /* Ürün tablosu: kart görünümüne geçer */
  .menu-item-table thead { display: none; }
  .menu-item-table, .menu-item-table tbody, .menu-item-table tr, .menu-item-table td { display: block; width: 100%; }
  .menu-item-table { border: none; }
  .menu-item-table tr {
    margin-bottom: 14px; border: 1.5px solid var(--line-soft); border-radius: var(--radius-m);
    padding: 12px 14px; background: var(--surface);
  }
  .menu-item-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 0; border-top: 1px solid var(--line-soft); text-align: right; width: auto !important;
  }
  .menu-item-table td:first-child { border-top: none; justify-content: flex-start; }
  .menu-item-table td::before {
    content: attr(data-label); font-family: var(--font-mono); font-weight: 800; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); text-align: left; flex-shrink: 0;
  }
  .menu-item-table td[data-label="Görsel"]::before { display: none; }
  .menu-item-table td input[type="text"], .menu-item-table td input[type="number"] { text-align: right; }
  .menu-item-table td.menu-item-actions-cell { flex-wrap: wrap; }
  .menu-item-table td.menu-item-actions-cell > div { width: 100%; justify-content: flex-end; }

  /* Yeni ürün / yeni başlık ekleme formları: her alan tam genişlik */
  .menu-add-item-form, .menu-add-category-form { flex-direction: column; align-items: stretch; }
  .menu-add-item-form .field, .menu-add-category-form .field { width: 100% !important; min-width: 0 !important; }
  .menu-add-item-form .btn, .menu-add-category-form .btn { width: 100%; justify-content: center; }
}

/* ---------- Menü Onay Durumu Etiketleri ---------- */
.menu-approval-badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-s);
  font-size: 12.5px; font-weight: 700; margin-bottom: 14px;
}
.menu-approval-badge.pending { background: var(--gold-pale); color: var(--gold-dark); }
.menu-approval-badge.deleting { background: var(--coral-pale); color: var(--coral-dark); }
.menu-approval-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.menu-item-status-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; font-family: var(--font-mono);
}
.menu-item-status-tag.pending { background: var(--gold-pale); color: var(--gold-dark); }
.menu-item-status-tag.deleting { background: var(--coral-pale); color: var(--coral-dark); }
.menu-item-status-tag svg { width: 11px; height: 11px; }

@media (max-width: 480px) {
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .form-submit-row .btn { width: 100%; justify-content: center; }
}

.contact-layout > * { min-width: 0; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr !important; } }

@media (max-width: 480px) {
  .hours-row-grid { grid-template-columns: 1fr 1fr !important; row-gap: 6px; }
  .hours-row-grid > span { grid-column: 1 / -1; }
  .hours-row-grid > label.check-row { grid-column: 1 / -1; }
}

/* ---------- İşletme Paneli — Galeri fotoğrafı yükleme kutuları (3'lü) ---------- */
.gallery-upload-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-upload-box {
  position: relative; display: block; cursor: pointer; border: 2px dashed var(--line); border-radius: var(--radius-s);
  background: var(--paper); transition: border-color .15s ease, background .15s ease; overflow: hidden;
}
.gallery-upload-box:hover { border-color: var(--coral); background: var(--coral-pale); }
.gallery-upload-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gallery-upload-box-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 8px; min-height: 92px; color: var(--ink-soft); text-align: center;
}
.gallery-upload-box-inner span { font-size: 11.5px; font-weight: 700; }
.gallery-upload-box.has-file { border-style: solid; border-color: var(--olive); background: var(--olive-pale); }
.gallery-upload-box.has-file .gallery-upload-box-inner { color: var(--olive); }
@media (max-width: 480px) { .gallery-upload-row { grid-template-columns: repeat(3, 1fr); gap: 8px; } .gallery-upload-box-inner { padding: 12px 4px; min-height: 74px; } .gallery-upload-box-inner svg { width: 18px; height: 18px; } .gallery-upload-box-inner span { font-size: 10px; } }

/* ---------- Restoran değerlendirme yıldız seçici ---------- */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-picker-btn { background: none; border: none; cursor: pointer; padding: 2px; color: var(--line); transition: color .1s ease; line-height: 0; }
.star-picker-btn svg { fill: none; stroke: currentColor; }
.star-picker-btn.is-filled { color: var(--gold); }
.star-picker-btn.is-filled svg { fill: currentColor; }

/* ---------- Ücretsiz QR Menü — tanıtım sayfası ---------- */
.qr-hero { min-height: 480px; display: flex; align-items: center; }
.qr-benefits-section, .qr-steps-section, .qr-faq-section { padding: 64px 0; }
.qr-steps-section { background: var(--paper); }
.qr-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card { background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--radius-m); padding: 26px; }
.benefit-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-pale); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.benefit-card h3 { font-size: 16px; margin-bottom: 8px; }
.benefit-card p { color: var(--ink-soft); font-size: 13.8px; line-height: 1.55; }

.qr-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.qr-step-card { text-align: center; padding: 10px; }
.qr-step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  font-weight: 800; font-size: 18px; font-family: var(--font-mono);
}
.qr-step-card h3 { font-size: 15px; margin-bottom: 8px; }
.qr-step-card p { color: var(--ink-soft); font-size: 13.3px; line-height: 1.55; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--radius-s); padding: 16px 20px; }
.faq-question { cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; transition: transform .15s ease; color: var(--ink-faint); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { margin-top: 12px; color: var(--ink-soft); font-size: 13.8px; line-height: 1.6; }

.qr-final-cta { background: var(--ink); padding: 64px 0; }

@media (max-width: 900px) {
  .qr-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .qr-benefits-grid, .qr-steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Admin: restoran vitrin (öne çıkan) yıldız düğmesi ---------- */
.admin-feature-star { background: none; border: none; cursor: pointer; padding: 2px; color: var(--ink-faint); line-height: 0; }
.admin-feature-star svg { fill: none; stroke: currentColor; }
.admin-feature-star.is-featured { color: var(--gold); }
.admin-feature-star.is-featured svg { fill: currentColor; }
