/* =============================================================================
   The İzmir guide (/<lang>/izmir/…). Builds on site.css: the same tokens,
   fonts, nav, buttons, FAQ and footer; this file adds the guide's own parts.
   Dense by design: a compact hero, cards beside a map that stays in view,
   rails instead of chip clouds. Logical properties throughout, so
   right-to-left languages mirror.
   ========================================================================== */

/* Category colours as one variable per element. */
.gc-cafe { --c: var(--cat-cafe); }
.gc-restaurant { --c: var(--cat-restaurant); }
.gc-bar { --c: var(--cat-bar); }
.gc-club { --c: var(--cat-club); }
.gc-historical { --c: var(--cat-historical); }
.gc-local_spot { --c: var(--cat-local_spot); }
.gc-shopping { --c: var(--cat-shopping); }

.guide { --gap: clamp(16px, 2vw, 24px); }
.guide .wrap { max-width: 1280px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.gh {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--nav-h) + 18px) 22px;
}
.gh .aurora { z-index: -1; opacity: .75; }
.gh::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 90px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.gh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px 40px; align-items: end; }
.gh-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.gh-copy { min-width: 0; }
.gh .kicker { margin-bottom: 10px; }
.gh h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.06;
  text-wrap: balance; overflow-wrap: anywhere;
}
:lang(fa) .gh h1, :lang(ar) .gh h1 { line-height: 1.35; }
.gh-intro { margin-top: 12px; max-width: 64ch; color: var(--ink-2); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }

/* Facts card: the numbers, what stands out, the date. */
.gh-facts {
  display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.gh-facts-title { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
:lang(fa) .gh-facts-title, :lang(ar) .gh-facts-title { letter-spacing: 0; font-size: .8rem; }
.gh-count { display: flex; align-items: baseline; gap: 8px; }
.gh-count b {
  font-family: var(--font-num); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gh-count span { color: var(--ink-2); font-size: .95rem; }
.gh-mix { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); }
[dir="rtl"] .gh-mix { transform: scaleX(-1); }
.gh-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-2); }
.gh-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gh-legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gh-legend b { font-family: var(--font-num); color: var(--ink); }
.gh-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.gh-quick li { display: grid; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.gh-quick b { font-family: var(--font-num); font-size: 1.15rem; line-height: 1.1; }
.gh-quick span { color: var(--ink-3); font-size: .72rem; line-height: 1.3; }
.gh-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.gh-stats li { display: grid; }
.gh-stats b {
  font-family: var(--font-num); font-weight: 700; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gh-stats span { color: var(--ink-3); font-size: .82rem; }
.gh-stats-row { margin-top: 18px; gap: 8px 32px; }
.gh-stats-row b { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }
.gh-traits { display: grid; gap: 8px; }
.gh-traits > span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
:lang(fa) .gh-traits > span, :lang(ar) .gh-traits > span { letter-spacing: 0; font-size: .82rem; }
.gh-traits ul { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-traits li {
  padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad-accent) border-box;
}
.gh-updated { color: var(--ink-3); font-size: .78rem; }
.gs .gh-updated { margin-top: 14px; text-align: center; }
.gh-art .g-map { box-shadow: var(--shadow); }

/* Breadcrumbs: small, quiet, one line that scrolls if it must. */
.crumbs { margin-bottom: 14px; font-size: .82rem; color: var(--ink-3); overflow-x: auto; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs ol { display: flex; align-items: center; white-space: nowrap; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.crumbs a { color: var(--ink-2); transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ── Rails: one scrolling line of chips ──────────────────────────────────── */
.rail { position: relative; margin-inline: -4px; }
.rail ul {
  display: flex; gap: 8px; padding: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
}
[dir="rtl"] .rail ul {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
}
.rail li { flex: none; scroll-snap-align: start; }
.rail a {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 7px 7px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .9rem;
  transition: border-color .2s, background-color .2s;
}
[dir="rtl"] .rail a { padding: 7px 14px 7px 7px; }
.rail a:hover { border-color: var(--teal); background: var(--surface-2); }
.rail small { color: var(--ink-3); font-size: .76rem; }
.rail b {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center; font-family: var(--font-num); font-size: .76rem;
  color: var(--ink-2); background: var(--surface-2);
}
.gh-rail { margin-top: 18px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.gs { position: relative; padding-block: clamp(18px, 2vw, 28px); }
.gs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.gs-head p { color: var(--ink-3); font-size: .86rem; }
.gs-title { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; }
.gs-topics .gs-title { margin-bottom: 14px; }

/* Topic tiles: icon, name, count; compact rows that wrap into columns. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-items: start; }
.topic-tile {
  --c: var(--teal);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-spring);
}
.tiles li:nth-child(4n+2) .topic-tile { --c: var(--amber); }
.tiles li:nth-child(4n+3) .topic-tile { --c: var(--orange); }
.tiles li:nth-child(4n+4) .topic-tile { --c: var(--leaf); }
.topic-tile:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: var(--surface-2); transform: translateY(-1px); }
.tile-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tile-icon svg { width: 20px; height: 20px; }
.tile-text { display: grid; min-width: 0; flex: 1; }
.tile-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: var(--track-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-count { color: var(--ink-3); font-size: .78rem; }
.tile-arrow { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
.topic-tile:hover .tile-arrow { color: var(--c); transform: translateX(3px); }
[dir="rtl"] .tile-arrow { transform: scaleX(-1); }
[dir="rtl"] .topic-tile:hover .tile-arrow { transform: scaleX(-1) translateX(3px); }

/* ── The list and its map ────────────────────────────────────────────────── */
.picks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 42%); gap: 28px; align-items: start; }
.picks-map { position: sticky; inset-block-start: calc(var(--nav-h) + 12px); }
.picks-map-box { height: calc(100vh - var(--nav-h) - 60px); height: calc(100dvh - var(--nav-h) - 60px); min-height: 420px; }
.picks-map-box .g-map { height: 100%; }
.picks-map-box .g-map > svg { height: 100%; }
.picks-map-note { margin-top: 8px; color: var(--ink-3); font-size: .78rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.gc {
  display: flex; overflow: hidden; border-radius: 16px; min-height: 124px;
  border: 1px solid var(--line); background: var(--surface);
  scroll-margin-top: calc(var(--nav-h) + 16px);
  transition: border-color .25s, background-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease-spring);
}
.gc:hover, .gc.is-hot { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 16px 40px -28px rgba(18, 194, 208, .7); }
.gc:target { border-color: var(--teal); }
.gc-media {
  position: relative; flex: 0 0 116px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--c, var(--teal)) 42%, transparent), transparent 62%),
    radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--c, var(--teal)) 22%, transparent), transparent 70%),
    var(--bg-3);
}
.gc-media::after { /* a fine dot grid over the art */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(color-mix(in srgb, var(--c, var(--teal)) 55%, transparent) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.gc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: 1; }
.gc:hover .gc-media img { transform: scale(1.05); }
.gc-art { width: 36px; height: 36px; color: var(--c, var(--teal)); position: relative; z-index: 1; }
.gc-rank {
  position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-start: 8px; min-width: 25px; height: 25px; padding-inline: 5px;
  display: grid; place-items: center; border-radius: 999px;
  font: 700 .76rem/1 var(--font-num); color: #04121F; background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.gc-rate {
  position: absolute; z-index: 2; inset-block-end: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px; font: 700 .78rem/1.4 var(--font-num); color: #fff; background: rgba(4, 12, 24, .62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gc-rate svg { width: 13px; height: 13px; color: var(--amber); }
.gc-body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 11px 13px; min-width: 0; }
.gc-body h3 { font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-body h3 a:hover { color: var(--accent-ink); }
.gc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .8rem; color: var(--ink-3); min-width: 0; }
.gc-cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.gc-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gc-tags li {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2);
}
.gc-tags svg { width: 12px; height: 12px; }
.gc-tag-rate { display: none !important; } /* the rating rides on the photo */
.gc-tag-rate svg { color: var(--amber); }
.gc-late svg { color: var(--blue); }
.gc-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.gc-open { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--accent-ink); }
.gc-open svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.gc-open:hover svg { transform: translateX(3px); }
[dir="rtl"] .gc-open svg { transform: scaleX(-1); }
[dir="rtl"] .gc-open:hover svg { transform: scaleX(-1) translateX(3px); }
.gc-dir {
  margin-inline-start: auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-2); border: 1px solid var(--line); transition: color .2s, border-color .2s, background-color .2s;
}
.gc-dir:hover { color: var(--ink); border-color: var(--teal); background: var(--surface-2); }
.gc-dir svg { width: 17px; height: 17px; }
.gc-dir span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gc-credit { font-size: .68rem; color: var(--ink-3); }
.gc-credit:hover { color: var(--ink-2); }

.more {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px 16px; border-radius: 16px;
  border: 1px dashed var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .92rem;
  transition: border-color .25s, color .25s, background-color .25s;
}
.more:hover { border-color: var(--teal); color: var(--ink); background: var(--surface); }
.more svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.more .more-arrow { margin-inline-start: auto; color: var(--accent-ink); }
[dir="rtl"] .more-arrow { transform: scaleX(-1); }

/* Tablet: the map becomes a band above the cards. */
@media (max-width: 1040px) {
  .picks { grid-template-columns: 1fr; gap: 16px; }
  .picks-map { position: static; order: -1; }
  .picks-map-box { height: 340px; min-height: 0; }
  .picks-map-note { display: none; }
}

/* ── Phone ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .guide .wrap { padding-inline: 16px; }
  .gh { padding-block: calc(var(--nav-h) + 6px) 14px; }
  .gh-grid, .gh-grid.has-map { grid-template-columns: 1fr; gap: 14px; }
  .gh h1 { font-size: clamp(1.65rem, 1.2rem + 3vw, 2.1rem); }
  .gh-intro { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .gh-facts { padding: 14px; gap: 10px; }
  .gh-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-stats b { font-size: 1.4rem; }
  .gh-art { order: 2; }
  .gh-rail { margin-top: 12px; }
  .gs { padding-block: 14px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .topic-tile { gap: 9px; padding: 8px 9px; }
  .tile-icon { width: 32px; height: 32px; border-radius: 9px; }
  .tile-icon svg { width: 17px; height: 17px; }
  .tile-name { font-size: .86rem; }
  .tile-arrow { display: none; }

  .picks-map-box { height: 230px; margin-inline: -16px; }
  .picks-map-box .g-map { border-radius: 0; border-inline: 0; }
  .cards { gap: 10px; }
  .gc { min-height: 112px; }
  .gc-media { flex-basis: 100px; }
  .gc-art { width: 30px; height: 30px; }
  .gc-body { padding: 10px 12px; gap: 4px; }
  .gc-body h3 { font-size: .95rem; }
  .gc-tags li:nth-child(n+3) { display: none; }
  .gc-dir { width: 30px; height: 30px; }
}

/* ── The map ─────────────────────────────────────────────────────────────── */
.g-map {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 70% 20%, var(--glow-c), transparent 70%),
    var(--bg-2);
}
.g-map > svg { display: block; width: 100%; height: auto; }
/* The live map lies over the drawing and fades in once its tiles are in;
   the drawing then leaves the tab order. (Two classes: MapLibre's own
   stylesheet, loaded later, makes its container position: relative.) */
.g-map > .g-map-live { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.g-map.is-live .g-map-live { opacity: 1; }
.g-map.is-live > svg { visibility: hidden; }
.g-map-live .maplibregl-canvas { outline: none; }
.g-map-grid { stroke: var(--line); stroke-width: 1; }
.g-map-dots .dot { fill: var(--c, var(--teal)); opacity: .5; }
.g-map-labels text {
  font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-anchor: middle;
  fill: var(--ink-3); paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; stroke-linejoin: round;
}
.g-map .pin { cursor: pointer; }
.g-map .pin circle, .g-map .pin text { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-spring); }
.g-map .pin-halo { fill: var(--bg-2); opacity: .9; }
.g-map .pin text { font: 700 11px/1 var(--font-num); text-anchor: middle; fill: #04121F; pointer-events: none; }
.g-map .pin:hover circle, .g-map .pin.is-hot circle, .g-map .pin:hover text, .g-map .pin.is-hot text { transform: scale(1.35); }
.g-map .pin.is-hot .pin-halo { fill: var(--teal); opacity: .35; }
.g-map .pin:focus-visible { outline: none; }
.g-map .pin:focus-visible .pin-halo { fill: var(--teal); opacity: .6; }
.g-pin-wrap { display: block; cursor: pointer; }
.g-pin {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 4px; border-radius: 999px;
  font: 700 11px/1 var(--font-num); color: #04121F;
  background: linear-gradient(135deg, #22C7D2, #63D8B5 55%, #F9B04E);
  box-shadow: 0 0 0 2.5px var(--bg-2), 0 4px 14px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.g-pin-wrap:hover .g-pin, .g-pin-wrap:focus-visible .g-pin, .g-pin-wrap.is-hot .g-pin {
  transform: scale(1.35); box-shadow: 0 0 0 3px var(--teal), 0 6px 18px rgba(18, 194, 208, .55);
}
.g-pin-wrap:focus-visible { outline: none; }
/* MapLibre's controls in the site's colours. */
.g-map .maplibregl-ctrl-group { background: var(--glass); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: none; backdrop-filter: blur(10px); }
.g-map .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
:root:not([data-theme="light"]) .g-map .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }
.g-map .maplibregl-ctrl.maplibregl-ctrl-attrib,
.g-map .maplibregl-ctrl-attrib.maplibregl-compact-show { background: var(--glass); color: var(--ink-3); font-size: 10px; }
.g-map .maplibregl-ctrl-attrib a { color: var(--ink-2) !important; }
:root:not([data-theme="light"]) .g-map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.g-map .maplibregl-cooperative-gesture-screen { font-family: var(--font-body); font-size: .95rem; }

/* ── More places: rails ──────────────────────────────────────────────────── */
.rails { display: grid; gap: 14px; }
.rail-block { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 4px 16px; }
.rail-title { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 760px) { .rail-block { grid-template-columns: minmax(0, 1fr); } }

/* ── Nearby: area cards with their mix of places ─────────────────────────── */
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.near-card {
  display: grid; gap: 10px; height: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, background-color .25s, transform .35s var(--ease-spring);
}
.near-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.near-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.near-name { display: grid; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: var(--track-head); min-width: 0; }
.near-name small { font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--ink-3); letter-spacing: 0; }
.near-top b {
  font-family: var(--font-num); font-size: 1.25rem; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.near-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 22px; }
.near-km { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.near-km svg { width: 13px; height: 13px; color: var(--accent-ink); }
.near-word { padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
.near-mix { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); }
[dir="rtl"] .near-mix { transform: scaleX(-1); }
.mix-cafe { fill: var(--cat-cafe); } .mix-restaurant { fill: var(--cat-restaurant); } .mix-bar { fill: var(--cat-bar); }
.mix-club { fill: var(--cat-club); } .mix-historical { fill: var(--cat-historical); } .mix-local_spot { fill: var(--cat-local_spot); }
.mix-shopping { fill: var(--cat-shopping); } .mix-rest { fill: var(--ink-3); opacity: .5; }
.near-go { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--accent-ink); }
.near-go svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.near-card:hover .near-go svg { transform: translateX(3px); }
[dir="rtl"] .near-go svg { transform: scaleX(-1); }
[dir="rtl"] .near-card:hover .near-go svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 640px) {
  .near { display: flex; overflow-x: auto; gap: 8px; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .near::-webkit-scrollbar { display: none; }
  .near li { flex: 0 0 auto; width: 170px; scroll-snap-align: start; }
}

/* ── Vibe fingerprint ────────────────────────────────────────────────────── */
.vibe {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 32px; align-items: center;
  padding: clamp(18px, 2.4vw, 32px); border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 50%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%),
    var(--surface);
}
.vibe-head .kicker { margin-bottom: 8px; }
.vibe-head > p:not(.kicker) { margin-top: 8px; color: var(--ink-3); font-size: .88rem; max-width: 48ch; }
.vibe-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.vibe-insights li {
  position: relative; display: grid; align-content: start; gap: 4px; padding: 12px 14px; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.vibe-insights li::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 3px; background: var(--grad-line); }
.ins-word { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: var(--track-head); }
.ins-top {
  font-family: var(--font-num); font-size: 1.05rem; line-height: 1.2;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ins-note { color: var(--ink-3); font-size: .74rem; line-height: 1.35; }
.ins-top + .ins-note { display: none; }
@media (max-width: 520px) { .vibe-insights { grid-template-columns: 1fr; } .vibe-insights li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; } .ins-note { grid-column: 1 / -1; } }
.vibe-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .8rem; color: var(--ink-2); }
.vibe-legend li { display: inline-flex; align-items: center; gap: 8px; }
.vibe-legend li::before { content: ""; width: 18px; height: 10px; border-radius: 3px; }
.lg-shape::before { background: linear-gradient(90deg, #22C7D2, #63D8B5, #F9B04E); }
.lg-ref::before { border: 1.5px dashed var(--ink-2); height: 8px !important; }
.vibe-chart { margin: 0; }
.vibe-chart svg { display: block; width: 100%; height: auto; max-height: 420px; overflow: visible; }
/* Positions are computed left to right; text-anchor must mean the same in
   right-to-left pages. */
.vibe-chart svg, .g-map > svg { direction: ltr; }
.vibe-grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.vibe-grid polygon:last-child { stroke: var(--line-2); }
.vibe-grid line { stroke: var(--line); stroke-width: 1; }
.vibe-ref { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.vibe-shape { stroke-width: 2.5; stroke-linejoin: round; }
.vibe-dot { fill: var(--bg-2); stroke: #63D8B5; stroke-width: 2; }
.vibe-labels text { font: 600 12.5px/1 var(--font-body); fill: var(--ink-2); }
:lang(fa) .vibe-labels text, :lang(ar) .vibe-labels text { font-size: 13.5px; }
.js .vibe .vibe-shape { transform-origin: 50% 51%; transform-box: view-box; }
.js .vibe:not(.in) .vibe-shape { transform: scale(.2); opacity: 0; }
.js .vibe.in .vibe-shape { transition: transform 1.1s var(--ease-spring), opacity .6s var(--ease); }
@media (max-width: 860px) {
  .vibe { grid-template-columns: 1fr; }
  .vibe-chart { order: -1; max-width: 460px; justify-self: center; width: 100%; }
}

/* ── Questions ───────────────────────────────────────────────────────────── */
.qa { max-width: 860px; margin-inline: auto; }
.qa .gs-title { text-align: center; margin-bottom: 16px; }
.qa-list { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.qa-item + .qa-item { border-top: 1px solid var(--line); }
.qa-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { background: var(--surface-2); }
.qa-n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 700 .78rem/1 var(--font-num); color: var(--accent-ink); background: var(--surface-2); border: 1px solid var(--line);
}
.qa-item[open] .qa-n { color: #04121F; background: var(--grad-accent); border-color: transparent; }
.qa-item h3 { flex: 1; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.qa-x { position: relative; flex: none; width: 16px; height: 16px; }
.qa-x::before, .qa-x::after { content: ""; position: absolute; inset: 7px 0 auto; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform .3s var(--ease); }
.qa-x::after { transform: rotate(90deg); }
.qa-item[open] .qa-x::after { transform: rotate(0); }
.qa-item p { padding: 0 20px 18px calc(20px + 28px + 14px); color: var(--ink-2); font-size: .94rem; line-height: 1.7; animation: faq-in .4s var(--ease); }
[dir="rtl"] .qa-item p { padding: 0 calc(20px + 28px + 14px) 18px 20px; }
@media (max-width: 640px) {
  .qa-item summary { padding: 14px; gap: 10px; }
  .qa-item h3 { font-size: .95rem; }
  .qa-item p, [dir="rtl"] .qa-item p { padding: 0 14px 16px; }
}

/* ── Call to action ──────────────────────────────────────────────────────── */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: clamp(20px, 2.5vw, 34px); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--glass);
}
.cta-band .aurora { z-index: -1; }
.cta-band .kicker { margin-bottom: 6px; }
.cta-band h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.15; }
.cta-band p:not(.kicker) { margin-top: 6px; color: var(--ink-2); font-size: .92rem; max-width: 56ch; }
.cta-band .btn { flex: none; }
[dir="rtl"] .cta-band .btn svg { transform: scaleX(-1); }
@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: stretch; text-align: start; }
  .cta-band .btn { justify-content: center; }
}

@media print {
  .nav, .picks-map, .footer, .aurora, .cta-band { display: none !important; }
  .picks { grid-template-columns: 1fr; }
}

/* ── Place pages ─────────────────────────────────────────────────────────── */
.ph { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 20px 40px; align-items: center; }
.ph-copy { min-width: 0; }
.ph-copy h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
.ph-copy h1 em { animation: none; }
.ph-copy .gh-traits { margin-top: 14px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ph-actions .btn { --h: 44px; }
.ph-actions .btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
[dir="rtl"] .ph-actions .btn-primary svg { transform: scaleX(-1); }
.ph-media {
  position: relative; margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--c, var(--teal)) 42%, transparent), transparent 62%),
    radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--c, var(--teal)) 22%, transparent), transparent 70%),
    var(--bg-3);
}
.ph-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-media .gc-art { width: 72px; height: 72px; }
.ph-rate {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font: 700 .95rem/1 var(--font-num); color: #fff; background: rgba(4, 12, 24, .66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ph-rate svg { width: 15px; height: 15px; color: var(--amber); }
.ph-rate small { font-weight: 500; opacity: .75; }
.ph-media figcaption { position: absolute; inset-block-end: 8px; inset-inline-end: 10px; font-size: .7rem; }
.ph-media figcaption a { color: #fff; opacity: .8; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
@media (max-width: 860px) {
  .ph { grid-template-columns: 1fr; }
  .ph-media { order: -1; aspect-ratio: 16 / 10; }
}

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: start; }
.about-card { padding: clamp(16px, 2vw, 22px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.about-card .gs-title { margin-bottom: 12px; }
.about-list { display: grid; gap: 0; margin: 0; }
.about-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.about-list > div:last-child { border-bottom: 0; }
.about-list dt { color: var(--ink-3); font-size: .86rem; }
.about-list dd { margin: 0; font-weight: 600; text-align: end; }
.about-list a { color: var(--accent-ink); }
.about-rate { display: inline-flex; align-items: center; gap: 5px; }
.about-rate svg { width: 15px; height: 15px; color: var(--amber); }
.about-rate span { color: var(--ink-3); font-weight: 500; font-size: .85rem; }
.about-feats { margin-top: 14px; }
.about-feats h3 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
:lang(fa) .about-feats h3, :lang(ar) .about-feats h3 { letter-spacing: 0; }
.about-feats ul { display: flex; flex-wrap: wrap; gap: 6px; }
.about-feats li { padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th { text-align: start; font-weight: 500; color: var(--ink-2); padding: 7px 0; }
.hours td { text-align: end; font-family: var(--font-num); padding: 7px 0; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.about-note { margin-top: 10px; color: var(--ink-3); font-size: .78rem; }


/* The page's own place on the maps. */
.g-map .pin-self-halo { fill: var(--teal); opacity: .25; }
.g-map .pin-self-body { fill: url(#g-pin); stroke: var(--bg-2); stroke-width: 3; }
.g-pin-self {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #22C7D2, #63D8B5 55%, #F9B04E);
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 9px color-mix(in srgb, var(--teal) 30%, transparent), 0 6px 18px rgba(0, 0, 0, .5);
}
.g-pin-self svg { width: 16px; height: 16px; color: #04121F; }

/* The YoliVibe team's description of a place */
.about-desc { margin: 0 0 18px; color: var(--ink-2); line-height: 1.65; white-space: pre-line; }
