/* ظاهر صفحه‌های عمومی FoodPin (پنل مدیر از style.css استفاده می‌کند) */

/* فونت: Inter برای لاتین، IBM Plex Sans Arabic برای عربی (هر دو داخل پروژه) */
@font-face { font-family: "FP Sans"; src: url("/static/fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "FP Sans"; src: url("/static/fonts/PlexArabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "FP Sans"; src: url("/static/fonts/PlexArabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "FP Sans"; src: url("/static/fonts/PlexArabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "FP Sans"; src: url("/static/fonts/PlexArabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --surface: #ffffff;
  --text: #16181d;
  --text-2: #4a4f59;
  --muted: #7a808b;
  --line: #e7e5e0;
  --line-2: #d8d5ce;
  --brand: #0d6e66;
  --brand-2: #0a5952;
  --brand-tint: #e6f2f0;
  --accent: #e8a33d;
  --open: #12805c;
  --closed: #c2412d;
  --wa: #1fa855;
  --waze: #33ccff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .16);
  --header: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315; --bg-soft: #181b1e; --surface: #1c1f23; --text: #eef0f2; --text-2: #c3c8cf; --muted: #8d949e;
    --line: #2a2e33; --line-2: #383d43; --brand: #3bb7a8; --brand-2: #5fc7ba; --brand-tint: #15302d; --accent: #f0b65c;
    --open: #4cc38a; --closed: #f07a66;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "FP Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 22px; height: 22px; }
.ic.fill { fill: currentColor; stroke: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- دکمه‌ها ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .88rem; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); background: var(--surface); }
.btn.quiet { background: transparent; color: var(--text); }
.btn.quiet:hover { background: var(--bg-soft); }
.btn.wa { background: var(--wa); }
.btn.waze { background: var(--waze); color: #08303b; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }

/* ---------- سربرگ ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { height: var(--header); display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .94rem; }
.nav a:hover, .nav a.on { background: var(--bg-soft); color: var(--text); }
.site-header .spacer { flex: 1; }
@media (max-width: 760px) { .nav, .site-header .add-txt { display: none; } .site-header .wrap { gap: 10px; } }

/* ---------- قهرمان صفحه‌ی اول ---------- */
.hero { padding: 56px 0 30px; background:
  radial-gradient(900px 340px at 85% -40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--bg); }
html[dir="rtl"] .hero { background:
  radial-gradient(900px 340px at 15% -40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--brand); background: var(--brand-tint);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { color: var(--text-2); font-size: 1.08rem; margin: 12px 0 26px; max-width: 620px; }
.searchbox { display: flex; align-items: center; gap: 6px; max-width: 780px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow); }
.searchbox .field { display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: 1; min-width: 0; color: var(--muted); }
.searchbox .field + .field { border-inline-start: 1px solid var(--line); flex: 0 0 210px; }
.searchbox input, .searchbox select { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); height: 44px; width: 100%; min-width: 0; padding: 0; appearance: none; cursor: pointer; }
.searchbox input { cursor: text; font-size: 1rem; }
.searchbox .btn { height: 46px; }
.stats { display: flex; gap: 22px; margin-top: 22px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.stats b { color: var(--text); font-weight: 700; }
@media (max-width: 760px) {
  .hero { padding: 30px 0 18px; }
  .searchbox { border-radius: var(--radius-lg); flex-wrap: wrap; padding: 8px; }
  .searchbox .field { flex: 1 1 100%; }
  .searchbox .field + .field { border-inline-start: 0; border-top: 1px solid var(--line); flex: 1 1 100%; }
  .searchbox .btn { flex: 1; }
}

/* ---------- مجموعه‌ها ---------- */
.section { padding: 26px 0 6px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.3rem; font-weight: 700; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.collection { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 16px; border-radius: var(--radius);
  color: #fff; text-decoration: none; overflow: hidden; scroll-snap-align: start; border: 0; font: inherit; text-align: start; cursor: pointer;
  transition: transform .15s, box-shadow .15s; }
.collection:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.collection .ic { width: 26px; height: 26px; stroke-width: 1.7; opacity: .95; }
.collection b { font-size: 1.02rem; font-weight: 700; display: block; }
.collection span { font-size: .84rem; opacity: .85; }
.collection::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.collection.on { outline: 3px solid var(--text); outline-offset: 2px; }

/* ---------- دسته‌ها و فیلترها ---------- */
.toolbar { position: sticky; top: var(--header); z-index: 900; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { color: var(--muted); font-size: .8rem; }
.chip.on .count { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.pill-select { position: relative; }
.pill-select select { appearance: none; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 500; padding: 0 34px 0 14px; cursor: pointer; }
html[dir="rtl"] .pill-select select { padding: 0 14px 0 34px; }
.pill-select::after { content: ""; position: absolute; top: 50%; inset-inline-end: 14px; width: 7px; height: 7px; border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toggle-chip { display: inline-flex; align-items: center; gap: 8px; }
.toggle-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--open); }
.divider-v { width: 1px; height: 24px; background: var(--line); flex: none; }
@media (max-width: 760px) {
  .toolbar { position: static; }
  .toolbar .wrap { flex-wrap: wrap; }
  .toolbar .chips { flex: 1 1 100%; order: 2; }
  .toolbar .divider-v { display: none; }
}

/* ---------- نتایج: فهرست + نقشه ---------- */
.results { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding-top: 22px; padding-bottom: 60px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.results-head h2 { font-size: 1.05rem; font-weight: 600; }
.map-col { position: sticky; top: calc(var(--header) + 72px); height: calc(100vh - var(--header) - 96px); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 10px); }
#map { width: 100%; height: 100%; background: var(--bg-soft); }
/* کاشی‌های OpenStreetMap کمی آرام‌تر؛ نقشه‌ی MapTiler (.mt) خودش ظاهر تمیز و حالت تاریک دارد */
.leaflet-container:not(.mt) .leaflet-tile-pane { filter: saturate(.7) contrast(.96) brightness(1.03); }
@media (prefers-color-scheme: dark) { .leaflet-container:not(.mt) .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.5) brightness(.9); } }
.map-fab { display: none; }
@media (max-width: 1000px) {
  .results { grid-template-columns: 1fr; }
  .map-col { display: none; position: fixed; inset: var(--header) 0 0 0; height: auto; top: var(--header); border-radius: 0; border: 0; z-index: 950; }
  .results.show-map .map-col { display: block; }
  .map-fab { display: inline-flex; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 960; box-shadow: var(--shadow-lg); background: var(--text); color: var(--bg); }
  .map-fab:hover { background: var(--text); }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 26px; } }

/* کارت مکان */
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.pcard .cover-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.pcard .cover-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .media img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--surface); color: var(--text); font-size: .78rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.tag.accent { background: var(--accent); color: #2b1a00; }
.dist { position: absolute; bottom: 12px; inset-inline-start: 12px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; background: rgba(17, 19, 21, .72); color: #fff; font-size: .76rem; font-weight: 600; backdrop-filter: blur(4px); }
.pcard .name { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 1.02rem; line-height: 1.3; }
.verified { color: var(--brand); display: inline-flex; }
.pcard .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .bottom { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.status { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.open { color: var(--open); }
.status.closed { color: var(--closed); }
.status.unknown { color: var(--muted); font-weight: 500; }
.price { color: var(--muted); font-size: .86rem; }
.navs { display: flex; gap: 6px; margin-inline-start: auto; position: relative; z-index: 2; }
.navs a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); transition: border-color .15s, color .15s, background .15s; }
.navs a:hover { border-color: var(--text); color: var(--text); }
.navs a.waze:hover { background: var(--waze); border-color: var(--waze); color: #08303b; }
.navs a.gm:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* تصویر جایگزین وقتی عکس نیست: حروف اول نام روی رنگ ملایمِ ثابتِ همان مکان */
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c1) 13%, var(--surface)), color-mix(in srgb, var(--c2) 24%, var(--surface))); }
.ph .mono { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--c1); opacity: .9; }
.ph .kind { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--c1);
  font-size: .78rem; font-weight: 600; opacity: .85; }
.ph .kind .ic { width: 16px; height: 16px; }
.ph::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; inset-inline-end: -22%; top: -30%; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c1) 14%, transparent); box-shadow: 0 0 0 26px color-mix(in srgb, var(--c1) 5%, transparent); }
@media (prefers-color-scheme: dark) { .ph .mono, .ph .kind { color: color-mix(in srgb, var(--c2) 70%, white); } }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty .ic { width: 36px; height: 36px; margin: 0 auto 10px; }
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* نشانگرهای نقشه */
.pin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand);
  border: 2px solid var(--brand); box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .15s; }
.pin .ic { width: 16px; height: 16px; stroke-width: 2.1; }
.pin.cafe { color: #8a5a2b; border-color: #8a5a2b; }
.pin.hl { background: var(--brand); color: #fff; transform: scale(1.25); }
.pin.cafe.hl { background: #8a5a2b; }
.pin.near { background: var(--accent); border-color: #fff; color: #2b1a00; transform: scale(1.2); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(37, 99, 235, .22); }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.pop { display: block; text-decoration: none; color: var(--text); }
.pop .pimg { height: 110px; position: relative; background: var(--bg-soft); }
.pop .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pop .ph .mono { font-size: 2rem; }
.pop .pbody { padding: 10px 12px 12px; }
.pop .pname { font-weight: 650; font-size: .98rem; }
.pop .psub { color: var(--muted); font-size: .84rem; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); top: 6px; right: 6px; }
html[dir="rtl"] .leaflet-container a.leaflet-popup-close-button { right: auto; left: 6px; }

/* ---------- صفحه‌ی مکان ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; padding-top: 20px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.place-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 12px 0 18px; flex-wrap: wrap; }
.place-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.place-head .alt { color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.place-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--text-2); font-size: .95rem; align-items: center; }
.place-head .meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.badge-v { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: 4px 10px; border-radius: 999px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(52vh, 460px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery > * { position: relative; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: filter .2s; }
.gallery img:hover { filter: brightness(.92); }
.gallery > :first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery.n2 > :first-child, .gallery.n1 > :first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 > :nth-child(4) { grid-column: span 2; }
.gallery .more { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; }
.gallery .ph .mono { font-size: 4.2rem; }
.gallery.n1.noimg { height: 240px; }
@media (max-width: 760px) { .gallery.n1.noimg { height: 180px; } }
@media (max-width: 760px) {
  .gallery, .gallery.n2, .gallery.n3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 280px; border-radius: var(--radius); gap: 6px; scrollbar-width: none; }
  .gallery > * { flex: 0 0 88%; scroll-snap-align: center; border-radius: var(--radius); }
  .gallery.n1 > * { flex-basis: 100%; }
  .gallery .more { display: none; }
}
.place-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding: 30px 0 50px; }
@media (max-width: 960px) { .place-body { grid-template-columns: 1fr; gap: 24px; } }
.block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.block h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.block p { margin: 0; color: var(--text-2); white-space: pre-line; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; }
.features div { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.minimap { height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.side { position: sticky; top: calc(var(--header) + 20px); align-self: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); background: var(--surface); }
.panel + .panel { margin-top: 16px; }
.panel .now { font-size: 1.02rem; margin-bottom: 14px; }
.panel .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel .actions .full { grid-column: 1 / -1; }
.contact { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.contact a, .contact button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px; text-decoration: none; color: var(--text); border: 0; background: none;
  font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); text-align: start; }
.contact > :last-child { border-bottom: 0; }
.contact a:hover, .contact button:hover { color: var(--brand); }
.contact .ic { color: var(--muted); }
.contact .v { margin-inline-start: auto; color: var(--muted); font-size: .88rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours td { padding: 7px 0; }
.hours td:last-child { text-align: end; color: var(--text-2); }
.hours tr.today td { font-weight: 700; color: var(--text); }
.hours tr.today td:first-child::after { content: " •"; color: var(--brand); }
.near-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.near-rail::-webkit-scrollbar { display: none; }
.suggest { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.suggest:hover { color: var(--text); }
dialog.lightbox { border: 0; padding: 0; background: #000; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: #000; }
dialog.lightbox img { width: 100%; height: 100%; object-fit: contain; }
dialog.lightbox .x { position: absolute; top: 16px; inset-inline-end: 16px; background: rgba(255,255,255,.15); color: #fff; }

/* ---------- فرم (پیشنهاد مکان) ---------- */
.narrow { max-width: 720px; margin: 0 auto; padding: 32px 24px 70px; }
.narrow h1 { font-size: 2rem; font-weight: 800; }
.narrow .intro { color: var(--text-2); margin: 8px 0 22px; }
.form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px 24px; box-shadow: var(--shadow); background: var(--surface); }
label.field { display: block; margin: 18px 0 7px; font-size: .9rem; font-weight: 600; }
input, textarea, select { font: inherit; }
.form input, .form textarea, .form select { width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.form textarea { min-height: 96px; resize: vertical; }
.segmented { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); height: 34px; padding: 0 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.pick-map { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 10px; }
.error { color: var(--closed); font-size: .9rem; min-height: 1.3em; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.thanks { text-align: center; padding: 50px 24px; }
.thanks .ic { width: 48px; height: 48px; color: var(--brand); margin: 0 auto 12px; }

/* ---------- پاورقی ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 30px; margin-top: 30px; color: var(--text-2); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 12px; font-size: .86rem; color: var(--text); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--text-2); }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 11px 20px;
  border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 2000; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
