/* ==========================================================================
   بهترین‌های پردیس — wayfinding for a city built in phases.
   Sign green + road white carry the identity; saffron marks what's "now".
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Lalezar";
  src: url("../fonts/lalezar.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --sign: #0B6B4F;        /* guide-sign green */
  --sign-deep: #08513C;
  --sign-tint: #E3EFEA;
  --ink: #15242B;
  --mute: #5B6B71;
  --line: #D8E0DD;
  --paper: #F4F6F5;
  --surface: #FFFFFF;
  --saffron: #E6A21B;     /* "open now", stars, the one warm note */
  --saffron-ink: #7A5100;
  --closed: #9AA5A9;

  --font: "Vazirmatn", Tahoma, sans-serif;
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;

  --r: 14px;
  --r-sm: 9px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(21, 36, 43, .06), 0 8px 24px -12px rgba(21, 36, 43, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sign); text-underline-offset: 3px; }
a:hover { color: var(--sign-deep); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; inset-inline-start: -9999px; }
.muted { color: var(--mute); }
.req { color: #B3261E; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .55em 1.2em;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sign); color: #fff; }
.btn-primary:hover { background: var(--sign-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--sign); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sign); color: var(--sign-deep); }
.btn-sun { background: var(--saffron); color: var(--ink); }
.btn-sun:hover { background: #F2B53A; color: var(--ink); }
.btn-sign { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-sign:hover { background: #fff; color: var(--sign-deep); }
.btn-sm { min-height: 36px; padding: .35em .9em; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--sign); color: #fff; border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff;
  font-family: var(--display); font-size: 1.35rem; line-height: 1;
  /* Lalezar's ink for «پ» sits ~.21em below its line box centre; bottom padding lifts it to the optical centre. */
  padding: 0 0 .42em;
}
.brand-name { font-family: var(--display); font-size: 1.35rem; line-height: 1; padding-top: 4px; }
.brand-light, .brand-light:hover { color: #fff; }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav .menu a, .nav-search {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav .menu a:hover, .nav-search:hover { background: var(--sign-tint); color: var(--sign-deep); }
.site-nav .current-menu-item > a { color: var(--sign); font-weight: 700; }
.nav-search { border: 1px solid var(--line); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .menu a, .nav-search { padding: 12px 8px; }
  .nav-search { border: 0; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
}

/* ---------- Hero: the guide sign ---------- */
.hero { padding: clamp(16px, 3vw, 36px) 0 clamp(28px, 5vw, 56px); }
.sign {
  position: relative;
  background: var(--sign);
  color: #fff;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 64px) clamp(24px, 4vw, 44px);
  /* the white retroreflective border of a highway guide sign */
  box-shadow: inset 0 0 0 7px var(--sign), inset 0 0 0 10px rgba(255, 255, 255, .92);
}
.sign-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; letter-spacing: 0; margin-bottom: 14px; color: rgba(255, 255, 255, .88);
}
.sign-kicker .icon { width: 1.1em; height: 1.1em; }
.sign-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 5.4rem); line-height: 1.12;
  margin: 0 0 18px; color: #fff;
}
.sign-lead { max-width: 40em; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255, 255, 255, .9); margin-bottom: 26px; }

.search {
  display: grid; grid-template-columns: 1fr minmax(140px, 190px) auto; gap: 8px;
  background: #fff; padding: 8px; border-radius: 14px; max-width: 820px;
}
.search-q { position: relative; display: block; }
.search-q .icon { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--mute); pointer-events: none; }
.search input[type="search"], .search select {
  width: 100%; min-height: 50px; border: 1px solid transparent; border-radius: 9px;
  background: var(--paper); color: var(--ink); padding: 0 14px;
}
.search input[type="search"] { padding-inline-start: 44px; }
.search input:focus, .search select:focus { outline: none; border-color: var(--sign); background: #fff; }
.search .btn { min-height: 50px; padding-inline: 1.6em; }
@media (max-width: 640px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search-q { grid-column: 1 / -1; }
}

.sign-phases { margin-top: clamp(26px, 4vw, 40px); padding-top: 22px; border-top: 2px dashed rgba(255, 255, 255, .35); }
.sign-phases-label { font-weight: 700; margin-bottom: 4px; color: rgba(255, 255, 255, .85); font-size: .92rem; }

/* ---------- The phase line (signature) ---------- */
.stop {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--sign-deep);
  border: 3px solid var(--sign);
  font-family: var(--display); font-size: 1.3rem; line-height: 1; padding-top: 3px;
}
.stop-sm { width: 22px; height: 22px; border-width: 2px; font-size: .78rem; padding-top: 2px; }
.stop-lg { width: 88px; height: 88px; font-size: 2.6rem; border-width: 5px; margin: 0 auto 18px; }

.phase-line { overflow-x: auto; scrollbar-width: thin; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-snap-type: x proximity; }
.phase-line ol { list-style: none; margin: 0; padding: 14px 0 6px; display: flex; min-width: max-content; position: relative; }
.phase-line ol::before { /* the track */
  content: ""; position: absolute; inset-inline: 22px; top: calc(14px + 20px); height: 4px; border-radius: 2px; background: currentColor; opacity: .35;
}
.phase-line li { position: relative; scroll-snap-align: start; }
.phase-line a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 84px; padding: 0 4px 6px; text-decoration: none; color: inherit; text-align: center;
}
.phase-line .stop { position: relative; transition: transform .18s ease, background-color .18s; }
.phase-line a:hover .stop { transform: scale(1.1); }
.phase-line .stop-name { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.phase-line .stop-count { font-size: .76rem; opacity: .75; white-space: nowrap; }
.phase-line .is-current .stop { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

.hero .phase-line { color: #fff; }
.hero .phase-line .stop { border-color: #fff; background: var(--sign-deep); color: #fff; }
.hero .phase-line a:hover .stop { background: #fff; color: var(--sign-deep); }

.page-head + .wrap > .phase-line { color: var(--sign); margin-bottom: 8px; }
.page-head + .wrap > .phase-line .stop-name { color: var(--ink); }

.phase-marker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
a:hover .phase-marker { color: var(--sign); }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section-tint { background: var(--sign-tint); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0; line-height: 1.2; }
.section-head p { margin: 0; color: var(--mute); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }

/* Categories */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-tile {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  height: 100%; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.cat-tile:hover { border-color: var(--sign); box-shadow: var(--shadow); color: var(--ink); }
.cat-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sign-tint); color: var(--sign); }
.cat-icon .icon { width: 26px; height: 26px; }
.cat-name { font-weight: 700; font-size: .95rem; line-height: 1.4; }
.cat-count { font-size: .8rem; color: var(--mute); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--sign-tint); }
.card-media:has(.cover-empty) { aspect-ratio: 16 / 6; } /* no photo: a short band, not a blank screen on mobile */
.card-media .cover-empty .icon { width: 44px; height: 44px; }
.card-media .cover { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sign); }
.cover-empty .icon { width: 56px; height: 56px; stroke-width: 1.3; opacity: .8; }
.ribbon {
  position: absolute; top: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--saffron); color: var(--ink); font-weight: 700; font-size: .78rem;
  padding: 3px 10px 3px 8px; border-radius: 99px;
}
.ribbon .icon { width: 1.1em; height: 1.1em; }
.ribbon-inline { position: static; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: .84rem; }
.card-meta a { text-decoration: none; }
.card-cat { color: var(--sign); font-weight: 700; }
.card-title { font-size: 1.08rem; margin: 0; line-height: 1.5; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card-meta a, .card-media { position: relative; z-index: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-size: .84rem; }

.rating { display: inline-flex; align-items: center; gap: 5px; }
.rating b { font-weight: 800; }
.rating-count { color: var(--mute); }
.rating.is-empty { color: var(--mute); }
.stars { display: inline-flex; gap: 1px; }
.stars .icon { width: 15px; height: 15px; stroke-width: 1.5; }
.stars .on { fill: var(--saffron); stroke: var(--saffron); }
.stars .off { fill: none; stroke: var(--closed); }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--sign); }
.status.is-open .dot { position: relative; box-shadow: 0 0 0 3px rgba(11, 107, 79, .18); }
/* Heartbeat: a ring that swells out of the dot and fades — "open right now". */
.status.is-open .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; animation: pb-pulse 1.8s cubic-bezier(.2, .6, .35, 1) infinite;
}
@keyframes pb-pulse {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}
.status.is-closed { color: var(--mute); }

/* ---------- Listing ---------- */
.page-head { padding: clamp(24px, 4vw, 44px) 0 18px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; margin-bottom: 6px; }
.page-sub { color: var(--mute); margin: 0; }
.term-desc { max-width: 46em; margin-top: 10px; color: var(--mute); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--sign); }

.filters {
  display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto auto;
  align-items: end; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; margin: 10px 0 24px;
}
.filters label { display: flex; flex-direction: column; gap: 3px; }
.f-label { font-size: .78rem; font-weight: 700; color: var(--mute); }
.filters input[type="search"], .filters select {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 0 12px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--sign); background: #fff; }
.f-q { position: relative; }
.f-q .icon { position: absolute; inset-inline-start: 12px; bottom: 12px; color: var(--mute); }
.f-q input[type="search"] { padding-inline-start: 40px; }
.filters .f-open { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.f-open input { width: 20px; height: 20px; accent-color: var(--sign); }
.filters .btn { min-height: 44px; }
.js .filters .f-submit { display: none; }
@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .f-q { grid-column: 1 / -1; }
}

.page-head + .wrap:not(.wrap-narrow) { padding-bottom: clamp(40px, 6vw, 64px); } /* listing body: breathing room above the footer */
.empty { text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 20px; }
.empty-title { font-weight: 800; font-size: 1.15rem; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

.pagination { margin: 32px 0 8px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--sign); border-color: var(--sign); color: #fff; }

/* ---------- Business page ---------- */
.biz-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(18px, 3vw, 32px) 0 clamp(20px, 3vw, 30px); }
.biz-title-row { display: flex; align-items: center; gap: 18px; }
.biz-logo { flex: none; width: 92px; height: 92px; border-radius: 18px; overflow: hidden; background: var(--sign-tint); border: 1px solid var(--line); }
.biz-logo .logo { width: 100%; height: 100%; object-fit: cover; }
.biz-logo .cover-empty .icon { width: 44px; height: 44px; }
.biz-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.2; margin: 4px 0 6px; }
.biz-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: .92rem; }
@media (max-width: 560px) { .biz-logo { width: 68px; height: 68px; border-radius: 14px; } }

.biz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 26px; padding-bottom: 48px; align-items: start; }
.biz-aside { position: sticky; top: 86px; }
@media (max-width: 900px) {
  .biz-layout { grid-template-columns: 1fr; }
  .biz-aside { position: static; order: -1; }
}

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); margin-bottom: 22px; scrollbar-width: thin;
}
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); scroll-snap-align: start; }
.gallery:has(img:only-child) { grid-auto-columns: 100%; }

.biz-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.biz-section > h2, .reviews-head h2 { font-size: 1.2rem; font-weight: 800; }
.prose { font-size: 1.02rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.biz-address { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.biz-address .icon { color: var(--sign); margin-top: 4px; }
.map { height: 320px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sign-tint); direction: ltr; z-index: 0; }
.routes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.routes > span { font-weight: 700; color: var(--mute); font-size: .9rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel-actions { display: grid; gap: 8px; margin-bottom: 14px; }
.panel-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: var(--sign-tint); color: var(--sign-deep); text-decoration: none; font-weight: 700; font-size: .88rem;
}
.panel-links a:hover { background: var(--sign); color: #fff; }
.hours { border-top: 1px solid var(--line); padding-top: 14px; }
.hours h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.hours h2 .icon { color: var(--sign); }
.hours table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours th, .hours td { padding: 6px 4px; text-align: start; border-bottom: 1px solid var(--paper); }
.hours th { font-weight: 600; white-space: nowrap; }
.hours td { color: var(--mute); }
.hours .is-today th, .hours .is-today td { color: var(--ink); font-weight: 800; background: #FDF4E1; }
.hours .is-today th { border-start-start-radius: 6px; border-end-start-radius: 6px; }
.hours .is-today td { border-start-end-radius: 6px; border-end-end-radius: 6px; }
.hours small { color: var(--saffron-ink); font-weight: 700; }
.panel-note { font-size: .82rem; color: var(--mute); margin: 14px 0 0; }

.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    position: sticky; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
}

/* Reviews */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.score { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.score b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; padding-top: 4px; }
.score .stars .icon { width: 18px; height: 18px; }
.score span { color: var(--mute); font-size: .9rem; }
.review-list { list-style: none; margin: 0 0 20px; padding: 0; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 4px; font-size: .9rem; }
.review-meta time { color: var(--mute); font-size: .82rem; }
.review-text p { margin: 0 0 .5em; }
.review.is-staff { background: var(--sign-tint); border-radius: var(--r-sm); padding: 12px 14px; border: 0; margin-top: 6px; }
.review.is-staff b { color: var(--sign-deep); }

.comment-respond { border-top: 1px solid var(--line); padding-top: 18px; }
.comment-reply-title { font-size: 1.05rem; font-weight: 800; }
.comment-form label, .pb-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form textarea,
.pb-form input[type="text"], .pb-form input[type="tel"], .pb-form select, .pb-form textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 10px 12px; font-weight: 400;
}
.comment-form textarea, .pb-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus, .pb-form input:focus, .pb-form select:focus, .pb-form textarea:focus { outline: none; border-color: var(--sign); background: #fff; }

.rate-field { border: 0; padding: 0; margin: 0 0 14px; }
.rate-field legend { font-weight: 700; font-size: .9rem; margin-bottom: 4px; padding: 0; }
/* DOM order 5→1; row-reverse in RTL shows 1 on the right, so `~` lights the stars below the hovered/checked one. */
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; padding: 2px; margin: 0; color: var(--closed); }
.rate label .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--saffron); }
.rate input:checked ~ label .icon, .rate label:hover .icon, .rate label:hover ~ label .icon { fill: var(--saffron); }
.rate input:focus-visible + label { outline: 3px solid var(--saffron); border-radius: 6px; }

/* ---------- Forms / pages ---------- */
.page-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 36px); margin-bottom: 48px; }
.pb-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.pb-form legend { font-family: var(--display); font-size: 1.4rem; padding: 0; margin-bottom: 8px; }
.pb-form > fieldset > label, .pb-form .row { margin-bottom: 14px; }
.pb-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-form .row label { margin: 0; }
@media (max-width: 560px) { .pb-form .row { grid-template-columns: 1fr; } }
.hint { color: var(--mute); font-size: .88rem; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 700; }
.notice-ok { background: var(--sign-tint); color: var(--sign-deep); }
.notice-err { background: #FBE9E7; color: #8C1D18; }

.owner-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 2px solid var(--sign); border-radius: var(--r); padding: clamp(20px, 4vw, 36px);
}
.owner-cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 4px; }
.owner-cta p { margin: 0; color: var(--mute); }

.not-found { text-align: center; }
.search-inline { grid-template-columns: 1fr auto; margin: 24px auto 16px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: 48px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-about p { margin: 14px 0 18px; max-width: 30em; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-sign { color: #fff; }
.site-footer .btn-sign:hover { background: #fff; color: var(--sign-deep); }
.footer-phases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px !important; }
.footer-phases a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); font-family: var(--display); padding-top: 3px; color: #fff;
}
.footer-phases a:hover { background: #fff; color: var(--ink); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- App (PWA) ---------- */
.install { background: var(--surface); border-bottom: 1px solid var(--line); }
.install[hidden] { display: none; }
.install-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.install-text { flex: 1; margin: 0; line-height: 1.6; font-size: .86rem; }
.install-text b { display: block; font-size: .95rem; }
.install-text span { color: var(--mute); }
.install-close { background: none; border: 0; padding: 6px; color: var(--mute); cursor: pointer; }
.install-close .icon { width: 20px; height: 20px; }

.saved h2 { font-size: 1.1rem; font-weight: 800; }
.saved-list { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 8px; }
.saved-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 700;
}
.saved-list a:hover { border-color: var(--sign); }
.not-found .stop-lg .icon { width: 40px; height: 40px; }

.tabbar { display: none; }
@media (display-mode: standalone) {
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px;
    font-size: .72rem; font-weight: 700; color: var(--mute); text-decoration: none;
  }
  .tabbar .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--sign); }
  .tabbar a[aria-current="page"] .icon { stroke-width: 2.3; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .action-bar { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .install { display: none; }
  /* The tab bar replaces the hamburger menu and the page footer in the app. */
  .nav-toggle, .site-footer { display: none; }
  .site-header { padding-top: env(safe-area-inset-top); }
}

/* Leaflet sits in an LTR box; keep its controls readable. */
.leaflet-container { font-family: var(--font); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
