/* ==========================================================================
   APEX MOTO — «Sürücü xəritəsi» + app mode (PWA)
   ========================================================================== */

/* ---------- Pins ---------- */
.pin-wrap { background: none; border: 0; }
.pin { --c: var(--accent); position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 8px 18px -6px rgba(21,23,28,.55); transition: transform .2s var(--ease), box-shadow .2s; }
.pin b { transform: rotate(45deg); font-size: 18px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.pin.is-featured::after { content: '★'; position: absolute; top: -9px; right: -9px; transform: rotate(45deg); width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid #fff; }
.pin.is-sel { transform: rotate(-45deg) scale(1.28); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent), 0 12px 24px -8px rgba(21,23,28,.6); z-index: 2; }
.leaflet-marker-icon:hover .pin { transform: rotate(-45deg) scale(1.12); }
.me-wrap { background: none; border: 0; }
.me-dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: #2563EB; border: 4px solid #fff; box-shadow: 0 0 0 0 rgba(37,99,235,.5), 0 2px 8px rgba(0,0,0,.3); animation: mePulse 2s infinite; }
@keyframes mePulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.45), 0 2px 8px rgba(0,0,0,.3); } 70% { box-shadow: 0 0 0 18px rgba(37,99,235,0), 0 2px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0), 0 2px 8px rgba(0,0,0,.3); } }
.leaflet-container { font-family: var(--font-body); background: var(--map-bg); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; border-radius: 8px 0 0 0; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; color: var(--text) !important; }

/* ---------- Map page (mobile first: full-screen map + bottom sheet) ---------- */
body.is-map .site-footer { display: none; }
body.is-map main { display: flex; }
.pmap { position: relative; flex: 1; height: calc(100svh - var(--header-h) - var(--bottom-nav-h)); min-height: 420px; overflow: hidden; isolation: isolate; }
.pmap-map { position: absolute; inset: 0; z-index: 0; }
.pmap-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: 10px 12px 14px; display: grid; gap: 8px; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 97%, transparent) 55%, rgba(247,245,241,0)); pointer-events: none; }
.pmap-top > * { pointer-events: auto; }
.pmap-title { display: none; }
.pmap-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text-3); }
.pmap-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1rem var(--font-body); color: var(--text); }
.pmap-search:focus-within { border-color: var(--text); }
.pmap-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 4px; scroll-snap-type: x proximity; }
.pmap-chips::-webkit-scrollbar { display: none; }
.pchip { --c: var(--ink); flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); transition: .18s var(--ease); white-space: nowrap; }
.pchip:hover { color: var(--text); }
.pchip.active { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 8px 18px -10px var(--c); }
.pchip.is-empty:not(.active) { opacity: .55; }
.pmap-seg { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 600; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pmap-seg a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); white-space: nowrap; }
.pmap-seg a.active { background: var(--ink); color: var(--on-ink); }

.pmap-tools { position: absolute; z-index: 4; right: 12px; top: 168px; display: grid; gap: 8px; }
.pmap-tool { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); transition: transform .15s; }
.pmap-tool:active { transform: scale(.93); }
.pmap-tool.busy svg { animation: spin 1s linear infinite; color: var(--info); }
@keyframes spin { to { transform: rotate(360deg); } }
.pmap .leaflet-bottom.leaflet-right { bottom: 156px; }
.pmap .leaflet-control-zoom { display: none; }

.pmap-sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; top: 64px; background: var(--card); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px -16px rgba(21,23,28,.35); display: flex; flex-direction: column; transition: transform .38s cubic-bezier(.2,.8,.2,1); will-change: transform; touch-action: none; }
.sheet-handle { flex-shrink: 0; height: 26px; border: 0; background: none; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-handle span { width: 42px; height: 5px; border-radius: 9px; background: var(--border-2); }
.sheet-head { padding: 0 18px 10px; font-size: .95rem; color: var(--text-2); touch-action: none; }
.sheet-head b { color: var(--text); font-family: var(--font-head); font-size: 1.15rem; }
.sheet-sort { color: var(--text-3); font-size: .85rem; }
.pmap-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 8px; align-content: start; touch-action: pan-y; }
.pmap-sheet[data-state="full"] .pmap-list { touch-action: pan-y; }

.plist-item { --c: var(--accent); width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); text-align: left; transition: .18s var(--ease); color: inherit; }
.plist-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.plist-item.is-sel { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.plist-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, var(--surface)); display: grid; place-items: center; }
.plist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist-thumb picture { width: 100%; height: 100%; }
.plist-thumb i { font-style: normal; font-size: 28px; }
.plist-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.plist-body b { font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-body small { color: var(--text-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-body em { font-style: normal; color: var(--text-3); font-size: .78rem; }
.plist-meta { flex-shrink: 0; display: grid; justify-items: end; gap: 4px; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.plist-km { color: var(--info); }
.pmap-empty { text-align: center; padding: 26px 14px; }
.pmap-empty-ic { font-size: 44px; margin-bottom: 6px; }
.pmap-empty h3 { font-size: 1.1rem; }

.pmap-preview { --c: var(--accent); position: absolute; z-index: 8; left: 10px; right: 10px; bottom: 10px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; transform: translateY(calc(100% + 30px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pmap-preview.in { transform: none; }
.pv-close { position: absolute; top: -12px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font-size: 13px; box-shadow: var(--shadow); z-index: 2; }
.pv-main { display: flex; gap: 12px; align-items: stretch; }
.pv-img { flex-shrink: 0; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--c) 15%, var(--surface)); display: grid; place-items: center; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-img i { font-style: normal; font-size: 40px; }
.pv-body { min-width: 0; display: grid; align-content: center; gap: 2px; }
.pv-cat { font-size: .75rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .04em; }
.pv-body b { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.2; }
.pv-body small { color: var(--text-2); font-size: .82rem; }
.pv-desc { font-size: .82rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: 10px; }
.pv-btn { height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: .88rem; padding: 0 12px; }
.pv-google { background: #1A73E8; color: #fff; }
.pv-waze { background: #33CCFF; color: #06283D; }
.pv-more { background: var(--bg-2); color: var(--text); }

.pmap-fab { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); bottom: calc(158px); display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 14px 28px -10px var(--accent); white-space: nowrap; transition: transform .2s var(--ease); }
.pmap-fab span { font-size: 1.35rem; line-height: 1; }
.pmap-fab:active { transform: translateX(-50%) scale(.95); }
.pmap-fab-ghost { background: var(--dark); box-shadow: 0 14px 28px -12px rgba(21,23,28,.6); font-weight: 600; font-size: .9rem; }
.pmap-sheet[data-state="full"] ~ .pmap-fab, .pmap-preview.in ~ .pmap-fab { opacity: 0; pointer-events: none; }

@media (min-width: 1024px) {
  .pmap { display: grid; grid-template-columns: 420px 1fr; grid-template-rows: auto 1fr; height: calc(100vh - var(--header-h)); }
  .pmap-top { position: relative; grid-column: 1; grid-row: 1; background: var(--bg); padding: 22px 20px 12px; border-right: 1px solid var(--border); }
  .pmap-title { display: block; }
  .pmap-title h1 { font-size: 1.7rem; margin: 0; }
  .pmap-title p { margin: 2px 0 6px; color: var(--text-2); font-size: .92rem; }
  .pmap-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .pmap-search, .pchip { box-shadow: none; }
  .pmap-map { position: relative; grid-column: 2; grid-row: 1 / span 2; }
  .pmap-sheet { position: relative; grid-column: 1; grid-row: 2; top: auto; border-radius: 0; box-shadow: none; border-right: 1px solid var(--border); background: var(--bg); transform: none !important; min-height: 0; touch-action: auto; }
  .sheet-handle { display: none; }
  .sheet-head { padding: 4px 20px 10px; }
  .pmap-list { padding: 0 20px 100px; }
  .pmap-tools { top: 20px; right: 20px; }
  .pmap .leaflet-control-zoom { display: block; }
  .pmap .leaflet-bottom.leaflet-right { bottom: 0; }
  .pmap-preview { left: calc(420px + 20px); right: auto; bottom: 24px; width: 420px; }
  .pmap-fab { left: auto; right: 24px; bottom: 24px; transform: none; }
  .pmap-fab:active { transform: scale(.96); }
}

/* ---------- Place page ---------- */
.place { --c: var(--accent); }
body.is-place .site-header { position: sticky; }
.place-hero { position: relative; background: var(--bg-2); }
.place-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(62svh, 520px); }
.place-gallery::-webkit-scrollbar { display: none; }
.place-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.place-slide picture, .place-slide img { width: 100%; height: 100%; object-fit: cover; }
.place-dots { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.place-dots span { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.55); transition: .25s; }
.place-dots span.on { width: 20px; background: #fff; }
.place-count { position: absolute; right: 14px; bottom: 26px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.place-hero.no-photo { height: 210px; }
.place-emoji { height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c) 30%, var(--surface)), color-mix(in srgb, var(--c) 70%, #000) 140%); overflow: hidden; }
.place-emoji span { font-size: 92px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-4deg); } }
.place-hero-bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.round-btn { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(8px); flex-shrink: 0; }
.place-body { position: relative; margin-top: -20px; background: var(--bg); border-radius: 24px 24px 0 0; padding-top: 22px; padding-bottom: 40px; display: grid; gap: 28px; }
.place-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, #000); font-weight: 700; font-size: .82rem; border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.cat-pill-gold { --c: var(--gold); }
.place-title { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 6px; }
.place-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: .95rem; margin-bottom: 18px; }
.place-sub span { display: inline-flex; gap: 5px; align-items: center; }
.place-dist { color: var(--info); font-weight: 600; }
.go-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.go-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; font-weight: 700; transition: transform .15s; box-shadow: var(--shadow-sm); }
.go-btn:active { transform: scale(.97); }
.go-btn span { display: grid; line-height: 1.15; }
.go-btn small { font-weight: 500; font-size: .75rem; opacity: .8; }
.go-google { background: #1A73E8; color: #fff; }
.go-google svg path { fill: #fff; } .go-google svg circle { fill: #1A73E8; }
.go-waze { background: #33CCFF; color: #06283D; }
.go-waze svg path:first-child { fill: #fff; }
.react-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.react-bar form { display: contents; }
.react { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .9rem; color: var(--text); transition: .18s var(--ease); }
.react b { color: var(--text-2); font-weight: 700; }
.react:hover { border-color: var(--border-2); }
.react.on { background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.react.on b { color: var(--c); }
.react.pop .react-ic { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.6) rotate(-10deg); } 100% { transform: none; } }
.react-ic { display: inline-block; font-size: 1.05rem; }
.warn-box { padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-fg); margin-bottom: 18px; font-size: .95rem; }
.place-desc { font-size: 1.05rem; line-height: 1.7; }
.place-tags { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.place-tags li { padding: 7px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }
.place-author { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); margin-bottom: 14px; transition: .2s; }
.place-author:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.place-author > span { flex: 1; display: grid; line-height: 1.3; }
.place-author small { color: var(--text-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.place-author em { font-style: normal; color: var(--text-2); font-size: .85rem; }
.place-owner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.danger-text { color: var(--danger) !important; }
.place-minimap { padding: 0; overflow: hidden; }
.minimap { height: 220px; }
.minimap-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.nearby { margin-top: 18px; display: grid; gap: 8px; }
.nearby-title { font-size: 1.1rem; margin: 0 0 2px; }
@media (min-width: 900px) {
  .place-body { grid-template-columns: minmax(0, 1fr) 360px; margin-top: 0; border-radius: 0; padding-top: 32px; }
  .place-gallery { height: 480px; }
  .place-slide { flex-basis: 70%; }
  .place-slide:only-child { flex-basis: 100%; }
  .place-hero.no-photo { height: 260px; }
  .place-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}

/* ---------- Add / edit form ---------- */
body.is-place-form .site-footer { display: none; }
.pform-wrap { padding: 18px 0 calc(120px + var(--bottom-nav-h)); }
.pform-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pform-head h1 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 0; }
.pform-head p { margin: 0; font-size: .92rem; }
.pform { display: grid; gap: 16px; }
.pstep { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); position: relative; }
.pstep-h { display: flex; gap: 12px; margin-bottom: 14px; }
.pstep-h h2 { font-size: 1.15rem; margin: 2px 0 2px; }
.pstep-h p { margin: 0; color: var(--text-2); font-size: .88rem; line-height: 1.45; }
.pstep-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); animation: tileIn .3s var(--ease); }
@keyframes tileIn { from { transform: scale(.85); opacity: 0; } }
.photo-tile img, .photo-tile picture { width: 100%; height: 100%; object-fit: cover; }
.photo-tile input { position: absolute; opacity: 0; pointer-events: none; }
.photo-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; display: grid; place-items: center; cursor: pointer; }
.photo-tile.existing:has(input:checked) img { opacity: .25; filter: grayscale(1); }
.photo-tile.existing:has(input:checked)::after { content: 'Silinəcək'; position: absolute; inset: auto 0 8px; text-align: center; font-size: .75rem; font-weight: 700; color: var(--danger); }
.photo-cover { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--glass); font-size: .68rem; font-weight: 700; }
.photo-add { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--border-2); background: var(--card-2); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--text-2); font-size: .8rem; font-weight: 600; transition: .2s; }
.photo-add:hover { border-color: var(--accent); color: var(--accent); }
.photo-add-ic { font-size: 28px; }
.photo-add.busy .photo-add-ic { animation: spin 1s linear infinite; }
.photo-grid:not(:has(.photo-tile)) { grid-template-columns: 1fr; }
.photo-grid:not(:has(.photo-tile)) .photo-add { aspect-ratio: auto; height: 150px; font-size: .95rem; }
.picker { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.picker-map { height: 300px; }
.picker-pin { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); pointer-events: none; font-size: 38px; line-height: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); transition: transform .2s var(--ease); }
.picker-pin::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 12px; height: 5px; margin-left: -6px; border-radius: 50%; background: rgba(0,0,0,.3); }
.picker.moving .picker-pin { transform: translate(-50%, -125%); }
.picker-tools { position: absolute; z-index: 600; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.picker-tools .btn { box-shadow: var(--shadow); }
.picker-tools .btn-ghost { background: var(--surface); }
.picker-coords { position: absolute; z-index: 600; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--glass); font: 600 .75rem ui-monospace, monospace; color: var(--text-3); box-shadow: var(--shadow-sm); }
.picker-coords.ok { color: var(--ok); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-tile { --c: var(--accent); position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--card-2); text-align: center; cursor: pointer; transition: .18s var(--ease); }
.cat-tile input { position: absolute; opacity: 0; }
.cat-emoji { font-size: 28px; line-height: 1; transition: transform .25s var(--ease); }
.cat-name { font-size: .78rem; font-weight: 600; line-height: 1.2; color: var(--text-2); }
.cat-tile:hover { border-color: var(--border-2); }
.cat-tile:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.cat-tile:has(input:checked) .cat-emoji { transform: scale(1.22) rotate(-6deg); }
.cat-tile:has(input:checked) .cat-name { color: var(--text); }
.cat-tile:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 2px; }
.cat-tile.is-warn { border-style: dashed; }
.counter { justify-self: end; color: var(--text-3); font-size: .78rem; }
.tag-pick { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick legend { font-size: .875rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.tag-chip input { position: absolute; opacity: 0; }
.tag-chip span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-2); font-size: .85rem; cursor: pointer; transition: .15s; user-select: none; }
.tag-chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tag-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pform-submit { position: sticky; bottom: calc(var(--bottom-nav-h) + 10px); z-index: 20; padding-top: 6px; }
.pform-submit .btn { box-shadow: 0 14px 30px -12px var(--accent); }
.pform .field-error { margin-top: 8px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } .photo-grid { grid-template-columns: repeat(4, 1fr); } .picker-map { height: 380px; } }

/* ---------- Place cards (home, profile, account) ---------- */
.pcard-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); }
.pcard-row::-webkit-scrollbar { display: none; }
.pcard { --c: var(--accent); scroll-snap-align: start; position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-img { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 16%, var(--surface)); display: grid; place-items: center; overflow: hidden; }
.pcard-img picture, .pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img i { font-style: normal; font-size: 54px; }
.pcard-cat { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--glass); font-size: .74rem; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); box-shadow: var(--shadow-sm); }
.pcard-body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.pcard-body b { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-body small { color: var(--text-2); font-size: .82rem; display: flex; justify-content: space-between; gap: 8px; }
.pcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .pcard-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } .pcard-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Home: «Sürücü xəritəsi» section ---------- */
.home-map { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--dark); color: #fff; display: grid; box-shadow: var(--shadow-lg); }
.home-map-canvas { position: relative; height: 260px; }
.home-map-canvas .minimap { height: 100%; }
.home-map-canvas::after { content: ''; position: absolute; inset: 0; z-index: 400; pointer-events: none; background: linear-gradient(to bottom, transparent 55%, #15171C); }
.home-map-link { position: absolute; inset: 0; z-index: 450; }
.home-map-body { position: relative; z-index: 2; padding: 4px 22px 24px; }
.home-map-body .eyebrow { color: #FFB4BA; }
.home-map-body h2 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 6px 0 8px; }
.home-map-body p { color: rgba(255,255,255,.72); max-width: 520px; }
.home-map-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.home-map-cats a { display: inline-flex; gap: 5px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: #fff; transition: .2s; }
.home-map-cats a:hover { background: rgba(255,255,255,.2); }
.home-map-cats b { color: rgba(255,255,255,.6); font-weight: 600; }
.home-map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-map-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.home-map + .pcard-row, .home-map + .pcard-grid { margin-top: 18px; }
@media (min-width: 900px) {
  .home-map { grid-template-columns: 1fr 1.15fr; min-height: 420px; }
  .home-map-canvas { order: 2; height: auto; }
  .home-map-canvas::after { background: linear-gradient(to right, #15171C, transparent 30%); }
  .home-map-body { padding: 44px 40px; align-self: center; }
}

/* ---------- Profile / account blocks ---------- */
.explorer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 700; font-size: .8rem; }
.my-map-card { display: grid; gap: 12px; }
.my-map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.my-map-stats a { display: grid; justify-items: center; padding: 12px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); }
.my-map-stats b { font-family: var(--font-head); font-size: 1.4rem; }
.my-map-stats small { color: var(--text-2); font-size: .78rem; text-align: center; }

/* ---------- Install bar + app mode ---------- */
.install-bar { position: fixed; z-index: 120; left: 10px; right: 10px; bottom: calc(var(--bottom-nav-h) + 10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.install-bar.in { transform: none; }
.install-bar img { border-radius: 12px; flex-shrink: 0; }
.install-bar div { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.install-bar b { font-size: .95rem; }
.install-bar small { color: var(--text-2); font-size: .8rem; }
.install-x { border: 0; background: none; color: var(--text-3); width: 30px; height: 30px; flex-shrink: 0; }
.ios-share { display: inline-block; transform: rotate(-90deg); }
.is-app .site-header { padding-top: env(safe-area-inset-top); }
.is-app body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.is-app input, .is-app textarea, .is-app .prose, .is-app .place-desc { -webkit-user-select: text; user-select: text; }
.is-app .bottom-nav a:active .bn-ic { transform: scale(.9); }
.bottom-nav .bn-ic { transition: transform .15s; position: relative; }
@media (display-mode: standalone) { .install-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .pin, .pmap-sheet, .pmap-preview { transition: none; } .me-dot, .place-emoji span { animation: none; } }
.pmap-search input[type="search"] { -webkit-appearance: none; appearance: none; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.pmap-search input[type="search"]:focus { box-shadow: none; outline: 0; }
.pmap .pmap-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
.place-author .avatar { flex-shrink: 0; width: 48px !important; height: 48px !important; border-radius: 50%; }
.picker-tools [hidden] { display: none !important; }
.picker-coords { left: auto; right: 10px; }
@media (max-width: 899px) { .place-gallery { height: 46svh; } .place-hero.no-photo { height: 180px; } }

/* ==========================================================================
   v1.1.1 — mobile map layout, search, performance
   ========================================================================== */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sheet-head .pmap-seg { box-shadow: none; background: var(--bg-2); border-color: transparent; font-size: .76rem; }
.sheet-head .pmap-seg a { padding: 5px 10px; }
.geo-results { display: grid; gap: 6px; margin: 4px 12px 0; padding-bottom: 8px; }
.pmap-sheet .geo-results { flex-shrink: 0; margin: 0 10px 8px; max-height: 38vh; overflow-y: auto; padding: 4px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); }
.geo-head { font-size: .78rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 4px 2px; }
.geo-item { display: grid; gap: 1px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.geo-item:hover { border-color: var(--border-2); }
.geo-item b { font-weight: 600; font-size: .95rem; }
.geo-item small { color: var(--text-2); font-size: .8rem; }
.geo-search { display: grid; gap: 8px; margin-bottom: 10px; position: relative; }
.geo-search .pmap-search { box-shadow: none; height: 46px; }
.geo-search .geo-results { margin: 0; max-height: 320px; overflow-y: auto; padding: 4px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); }
.near-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.near-chips::-webkit-scrollbar { display: none; }
.near-chips .pchip { box-shadow: none; }
.near-chips .pchip.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pin.pin-osm { width: 22px; height: 22px; border-width: 2px; }
.pin.pin-osm b { font-size: 14px; color: #fff; }
input.auto-filled { background: var(--ok-bg) !important; transition: background 1.5s; }
.btn.busy { opacity: .7; }

@media (max-width: 1023px) {
  .pmap-top { padding: 8px 10px 12px; gap: 6px; }
  .pmap-search { height: 44px; }
  .pchip { height: 34px; padding: 0 12px; font-size: .82rem; }
  .pmap-tools { top: 106px; right: 10px; }
  .pmap-tool { width: 42px; height: 42px; border-radius: 13px; }
  .pmap-sheet { top: 58px; transform: translateY(calc(100% - 150px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .pmap-sheet[data-state="half"] { transform: translateY(45%); }
  .pmap-sheet[data-state="full"] { transform: translateY(0); }
  .pmap-fab { position: absolute; top: -62px; right: 12px; left: auto; bottom: auto; transform: none; height: 48px; padding: 0 18px; font-size: .95rem; }
  .pmap-fab:active { transform: scale(.95); }
  .pmap-sheet[data-state="full"] .pmap-fab, .pmap:has(.pmap-preview.in) .pmap-fab { opacity: 0; pointer-events: none; }
  .pmap .leaflet-bottom.leaflet-right { bottom: 150px; }
  .pmap .leaflet-control-attribution { font-size: 9px; }
  .sheet-head { padding: 0 14px 10px; }
  .pmap-list { padding: 0 10px 8px; }

  /* Performance on phones: blur effects are expensive while scrolling */
  .site-header, .bottom-nav, .hero-proof, .mobile-nav, .wallet, .round-btn, .place-count { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header { background: var(--bg); }
  .bottom-nav { background: var(--surface); }
  .seal-rot, .arch-card .sigil .ring { animation: none !important; }
}
@media (min-width: 1024px) {
  .pmap-sheet { will-change: auto; }
  .pmap-fab { position: fixed; z-index: 50; }
  .sheet-head { padding-right: 20px; }
}

.install-sheet { position: fixed; inset: 0; z-index: 330; display: grid; align-items: end; justify-items: center; background: rgba(12,13,16,.55); padding: 12px; animation: fadeIn .2s; }
.install-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 26px; padding: 24px 22px calc(18px + env(safe-area-inset-bottom)); text-align: center; animation: walletIn .35s var(--ease); }
.install-card img { margin: 0 auto 10px; border-radius: 16px; box-shadow: var(--shadow); }
.install-card h3 { font-size: 1.25rem; }
.install-card ol { text-align: left; margin: 10px 0 12px; padding-left: 22px; display: grid; gap: 8px; }
@media (min-width: 640px) { .install-sheet { align-items: center; } }
.pmap-search input[type="search"], .pmap-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: auto !important; min-height: 0 !important; outline: 0; }
/* Leaflet uses z-index 400–1000 internally — keep it inside its own box so it never covers the header / menus */
.picker, .minimap, .pmap-map, .home-map-canvas, .place-minimap { isolation: isolate; }
.picker { z-index: 0; }

/* ---------- v1.2: custom line icons ---------- */
.picon { display: inline-block; flex-shrink: 0; vertical-align: -0.18em; }
.pin b { display: grid; place-items: center; color: #fff; }
.pin b .picon { display: block; }
.pchip { --c: var(--ink); }
.pchip .picon { color: var(--c); }
.pchip.active .picon { color: #fff; }
.pchip[data-cat=""] .picon { display: none; }
.cat-emoji { color: var(--c); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.cat-tile:has(input:checked) .cat-emoji { background: var(--c); color: #fff; }
.pcard-img .pc-ic { color: var(--c); opacity: .9; }
.pcard-cat { display: inline-flex; align-items: center; gap: 5px; }
.pcard-cat .picon { color: var(--c); }
.plist-thumb i { display: grid; place-items: center; }
.plist-cat { display: inline-flex; vertical-align: -1px; }
.pv-cat { display: inline-flex; align-items: center; gap: 5px; }
.pv-img i { display: grid; place-items: center; }
.place-emoji span { color: #fff; display: grid; place-items: center; width: 140px; height: 140px; border-radius: 42px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); filter: none; }
.cat-pill { gap: 6px; }
.warn-box b { display: inline-flex; align-items: center; gap: 6px; }
.home-map-cats a .picon { color: color-mix(in srgb, var(--c) 55%, var(--surface)); }
.geo-help-ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }

.place-author > span.avatar { flex: 0 0 48px; width: 48px; height: 48px; }
.place-author > span:not(.avatar) { flex: 1; min-width: 0; }
.cat-tile:has(input:checked) .cat-emoji { transform: scale(1.08); }
.near-chips .pchip .picon { color: var(--text-2); }
.near-chips .pchip.active .picon { color: #fff; }

/* ---------- v1.3: generated cover art ---------- */
.place-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-hero.no-photo { height: min(46svh, 360px); }
@media (min-width: 900px) { .place-hero.no-photo { height: 380px; } }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-group-title { grid-column: 1 / -1; margin: 10px 0 2px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cat-group-title:first-child { margin-top: 0; }

/* ---------- v1.3.1: desktop map panel — compact, one-row category bar ---------- */
@media (min-width: 1024px) {
  .pmap-top { padding: 18px 20px 10px; gap: 10px; }
  .pmap-title h1 { font-size: 1.5rem; }
  .pmap-chips {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0 -20px; padding: 2px 20px 6px;
    scroll-behavior: smooth; cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 36px), transparent 100%);
  }
  .pmap-chips.dragging { cursor: grabbing; scroll-behavior: auto; }
  .pmap-chips.dragging .pchip { pointer-events: none; }
  .pchip { height: 34px; font-size: .83rem; }
  .chip-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2; color: var(--text); }
  .chip-nav[hidden] { display: none; }
  .chip-nav.prev { left: 0; } .chip-nav.next { right: 0; }
  .chips-wrap { position: relative; }
  /* «Yer əlavə et» — centred at the bottom of the map, away from the zoom buttons */
  .pmap-fab { position: absolute; z-index: 500; top: auto; right: auto; bottom: 24px; left: calc(420px + (100% - 420px) / 2); transform: translateX(-50%); }
  .pmap-fab:active { transform: translateX(-50%) scale(.96); }
  .pmap-sheet { position: static; }
  .pmap-sheet > .pmap-list, .pmap-sheet > .sheet-head, .pmap-sheet > .geo-results { position: relative; }
  .pmap .leaflet-bottom.leaflet-right { bottom: 8px; }
  .pmap-preview { bottom: 92px; }
}

/* ---------- v1.4: groups, ratings & reviews ---------- */
.pmap-groups { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none; justify-self: start; max-width: 100%; }
.pmap-groups::-webkit-scrollbar { display: none; }
.pgroup { flex-shrink: 0; border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pgroup.active { background: var(--ink); color: var(--on-ink); }
.pmap-chips { flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.pchip small { opacity: .55; font-weight: 600; margin-left: 2px; }
.pchip.active small { opacity: .8; }
.pchip[hidden] { display: none; }
@media (max-width: 1023px) { .pmap-groups { box-shadow: var(--shadow-sm); } .pgroup { padding: 6px 12px; } .pmap-tools { top: 148px; } }
@media (min-width: 1024px) {
  .pmap-chips { margin: 0 -20px 0 0 !important; padding: 2px 20px 4px 0 !important; }
  .pmap-groups { box-shadow: none; background: var(--bg-2); border-color: transparent; }
}

/* Read-only stars (supports fractions) */
.stars { --s: 16px; display: inline-block; width: calc(var(--s) * 5); height: var(--s); vertical-align: -0.15em;
  background: linear-gradient(90deg, #F59E0B var(--p), #DCD6CB var(--p));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: .9rem; color: var(--text-2); }
.rating-line b { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }
.rating-line:hover span { text-decoration: underline; }
.plist-rate, .pcard-rate { color: #B45309; font-weight: 700; }
.pv-rate { color: #B45309; }

/* Reviews */
.reviews { margin: 26px 0 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rv-head h2 { font-size: 1.3rem; margin: 0 0 14px; }
.rv-summary { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); margin-bottom: 14px; }
.rv-score { display: grid; justify-items: center; gap: 4px; min-width: 96px; }
.rv-score b { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.rv-score small { color: var(--text-3); font-size: .78rem; }
.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rv-bars li { display: grid; grid-template-columns: 12px 1fr 26px; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-2); }
.rv-bars i { height: 7px; border-radius: 9px; background: var(--bg-2); overflow: hidden; }
.rv-bars em { display: block; height: 100%; border-radius: 9px; background: #F59E0B; transition: width .6s var(--ease); }
.rv-bars small { text-align: right; }
.rv-form { display: grid; gap: 12px; margin-bottom: 8px; border-radius: 20px; }
.rv-form-title { margin: 0; font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; padding: 2px; line-height: 0; transition: transform .15s var(--ease); }
.star-input svg { width: 38px; height: 38px; fill: #E2DDD3; transition: fill .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { }
.star-input label:hover svg, .star-input label:hover ~ label svg, .star-input input:checked ~ label svg { fill: #F59E0B; }
.star-input input:checked + label { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 8px; }
.star-input .star-hint { order: -1; margin-left: 10px; font-size: .9rem; font-weight: 600; color: var(--text-3); }
.star-input .star-hint.on { color: #B45309; }
.star-input.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rv-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rv-actions small { flex: 1; min-width: 200px; font-size: .78rem; line-height: 1.4; }
.rv-del { margin: 0 0 12px; text-align: right; }
.rv-del .link-btn { background: none; border: 0; color: var(--text-3); font-size: .82rem; text-decoration: underline; }
.rv-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.rv-item { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.rv-item.is-pending { border-style: dashed; opacity: .85; }
.rv-item .avatar { flex-shrink: 0; width: 40px; height: 40px; }
.rv-guest { background: var(--bg-2) !important; color: var(--text-2) !important; }
.rv-body { flex: 1; min-width: 0; }
.rv-body p { margin: 6px 0 0; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; }
.rv-meta time { font-size: .78rem; margin-left: auto; }
.rv-badge { padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--ok-bg); color: var(--ok-fg); }
.rv-badge-guest { background: var(--bg-2); color: var(--text-3); }
.rv-note { color: var(--warn) !important; font-size: .82rem !important; }
.photo-contrib { margin: 0 0 6px; }
.photo-contrib-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 1.5px dashed var(--border-2); background: var(--card-2); cursor: pointer; transition: .2s; }
.photo-contrib-btn:hover { border-color: var(--accent); }
.photo-contrib-btn .pc-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.photo-contrib-btn span:last-child { display: grid; line-height: 1.3; }
.photo-contrib-btn small { color: var(--text-3); font-size: .78rem; }
.photo-contrib.busy { opacity: .6; pointer-events: none; }
@media (max-width: 480px) { .rv-summary { grid-template-columns: 1fr; gap: 12px; } .rv-score { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; } .star-input svg { width: 42px; height: 42px; } }

/* grid tracks must never grow to the width of the (nowrap) chip row */
.pmap-top { grid-template-columns: minmax(0, 1fr); }
.pmap-top > * { min-width: 0; }
.chips-wrap { min-width: 0; }
@media (min-width: 1024px) {
  .pmap-top { overflow: hidden; }
  .chips-wrap .pmap-chips { margin: 0 !important; padding: 2px 34px 6px 2px !important; }
  .chip-nav.prev { left: -4px; } .chip-nav.next { right: -4px; }
}
.minimap, .picker-map, .place-minimap, .home-map-canvas { overflow: hidden; contain: paint; }
html { overflow-x: clip; }
.rv-form .hp { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; }

/* ---------- v1.5: place contact ---------- */
.contact-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: -2px 0 12px; }
.contact-btn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-weight: 700; transition: .15s; }
.contact-btn:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.contact-btn:active { transform: scale(.98); }
.contact-btn .icon { color: var(--ok); flex-shrink: 0; }
.contact-btn span { display: grid; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.contact-btn small { font-weight: 500; font-size: .74rem; color: var(--text-3); }
.contact-wa .icon { color: #25D366; }
.pv-actions { grid-template-columns: 1fr 1fr auto auto; }
.pv-call { background: var(--ok-bg); padding: 0 14px; }
.phone-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.phone-row input[type=tel] { flex: 1 1 200px; }
.wa-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wa-toggle input { width: 20px; height: 20px; accent-color: #25D366; }

/* ---------- v1.6: saved places ---------- */
.saved-link { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; margin-right: -8px; border-radius: 999px; color: var(--text-2); background: var(--bg-2); font-size: .8rem; font-weight: 700; transition: .15s; }
.saved-link:hover { color: var(--text); }
.saved-link.active { background: var(--ink); color: var(--on-ink); }
.saved-link b:empty { display: none; }
.seg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; }
.seg-n:empty { display: none; }
.pmap-seg a.active .seg-n { background: var(--on-ink); color: var(--ink); }

/* ---------- v1.6: saved points («Nöqtələrim») ---------- */
.pin.is-pin { --c: #15171C; width: 34px; height: 34px; }
.pin.is-pin b .picon { width: 16px; height: 16px; }
.pin.is-drop { animation: pinDrop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pinDrop { from { transform: rotate(-45deg) translate(10px, -30px) scale(.6); opacity: 0; } }
.pmap-tool-pin { color: var(--accent); }
.plist-head { display: flex; align-items: center; gap: 6px; padding: 8px 4px 2px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.plist-head small { background: var(--bg-2); color: var(--text-2); border-radius: 999px; padding: 1px 8px; font-size: .72rem; letter-spacing: 0; }
.pin-thumb { background: var(--dark) !important; color: #fff; display: grid; place-items: center; }
.pin-thumb i { color: #fff; display: grid; place-items: center; }
.is-pinitem .plist-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-pinform { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.pv-pinform[hidden] { display: none; }
.pv-pinform input { height: 42px; border-radius: 12px; border: 1px solid var(--border); padding: 0 12px; font: inherit; font-size: .92rem; background: var(--card-2); min-width: 0; }
.pv-pinform input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--surface); }
.pv-keep { background: var(--dark); color: #fff; border: 0; display: inline-flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }
.pv-actions-pin { grid-template-columns: 1fr 1fr auto auto !important; }
.pv-actions .pv-save { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 0 12px; cursor: pointer; }
.pv-actions .pv-save.on { background: var(--dark); color: #fff; border-color: #15171C; }
.pv-actions:has(.pv-save) { grid-template-columns: 1fr 1fr auto auto auto; }
.pv-del { background: var(--danger-bg); color: var(--danger-fg); border: 0; padding: 0 12px; cursor: pointer; }
.pv-actions .pv-more { border: 0; cursor: pointer; }
.pv-addplace { display: block; margin-top: 8px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--accent); padding: 6px; }
@media (max-width: 380px) { .pv-actions .pv-btn { padding: 0 8px; font-size: .8rem; } }

.pmap-seg .seg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; vertical-align: 1px; position: static; }
.pmap-seg .seg-n:empty { display: none; }
.pmap-seg a.active .seg-n { background: var(--on-ink); color: var(--ink); }
.pmap-seg a { display: inline-flex; align-items: center; white-space: nowrap; }

/* ---------- v1.7: tidy photo gallery ---------- */
.place-hero { background: var(--bg); }
.place-slide { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.place-slide img, .place-slide picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-slide.is-art { flex: 0 0 100%; }
.place-slide.img-broken { display: none !important; }
.slide-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,13,16,.55); color: #fff; font-weight: 700; font-size: 1.1rem; backdrop-filter: blur(2px); }
.place-count { border: 0; cursor: pointer; }
.place-hero.no-photo { height: auto; }
.place-hero.no-photo .place-gallery { height: min(42svh, 340px); }
@media (max-width: 899px) {
  .place-slide.is-extra { display: block; }
  .slide-more { display: none; }
}
@media (min-width: 900px) {
  .place-hero.has-photos, .place-hero.no-photo { max-width: var(--container); margin: 18px auto 0; padding: 0 var(--gutter); }
  .place-gallery { display: grid !important; gap: 8px; height: 460px !important; overflow: hidden !important; border-radius: 26px; scroll-snap-type: none; }
  .place-slide { flex: none !important; height: auto; cursor: zoom-in; }
  .place-slide img { transition: transform .5s var(--ease), filter .3s; }
  .place-slide:hover img { transform: scale(1.035); filter: brightness(1.04); }
  .place-slide.is-extra { display: none !important; }
  .place-hero.n1 .place-gallery { grid-template-columns: 1fr; }
  .place-hero.n2 .place-gallery { grid-template-columns: 1fr 1fr; }
  .place-hero.n3 .place-gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .place-hero.n4 .place-gallery, .place-hero.n5 .place-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .place-hero.n3 .place-slide:first-child, .place-hero.n4 .place-slide:first-child, .place-hero.n5 .place-slide:first-child { grid-row: 1 / span 2; }
  .place-hero.n4 .place-slide:nth-child(2) { grid-column: 2 / span 2; }
  .place-hero.no-photo .place-gallery { grid-template-columns: 1fr; height: 340px !important; }
  .place-dots { display: none; }
  .place-hero-bar { top: 14px; left: calc(var(--gutter) + 14px); right: calc(var(--gutter) + 14px); }
  .place-count { right: calc(var(--gutter) + 16px); bottom: 16px; padding: 8px 14px; background: var(--glass); color: var(--text); box-shadow: var(--shadow); backdrop-filter: none; }
  .place-body { padding-top: 28px; }
}

.slide-more { background: rgba(12,13,16,.42); backdrop-filter: none; }

/* v1.8 — event meeting point map, route links */
.ev-minimap { width: 100%; height: 100%; min-height: 220px; }
.ev-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.go-route { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 18px; border: 1px dashed var(--border-2); background: var(--card); font-weight: 700; color: var(--text); text-decoration: none; }
.go-route small { font-weight: 500; color: var(--text-3); }
.go-route:hover { border-style: solid; }
.pv-actions:has(.pv-route) { display: flex; }
.pv-actions:has(.pv-route) .pv-google, .pv-actions:has(.pv-route) .pv-waze { flex: 1 1 0; min-width: 0; }
.pv-actions:has(.pv-route) .pv-more { flex-shrink: 0; }
.pv-route { flex-shrink: 0; width: 44px; padding: 0 !important; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pv-route:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---------- c43: APEX partnyorları xəritədə ---------- */
.pin.is-px { --c: #D4A017; width: 46px; height: 46px; border-color: #FFE08A; box-shadow: 0 0 0 5px rgba(212,160,23,.28), 0 10px 22px -6px rgba(140,100,0,.6); animation: pxGlow 2.4s ease-in-out infinite; }
.pin.is-px::before { content: '%'; position: absolute; top: -9px; right: -9px; transform: rotate(45deg); width: 20px; height: 20px; border-radius: 50%; background: #E52535; color: #fff; font: 800 11px/1 system-ui; display: grid; place-items: center; border: 2px solid #fff; }
.pin.is-dim { filter: grayscale(.9) opacity(.5); }
.leaflet-marker-icon:hover .pin.is-dim, .pin.is-dim.is-sel { filter: none; }
@keyframes pxGlow { 50% { box-shadow: 0 0 0 9px rgba(212,160,23,.12), 0 10px 22px -6px rgba(140,100,0,.6); } }
@media (prefers-reduced-motion: reduce) { .pin.is-px { animation: none; } }
.plist-px { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg,#F6C445,#D4A017); color: #3B2A00; font-size: .72em; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.pmap-pxlegend { display: inline-block; max-width: calc(100vw - 40px); background: rgba(21,23,28,.88); color: #fff !important; text-decoration: none; font-size: 12px; padding: 7px 11px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmap-pxlegend b { color: #F6C445; }
.pv-px { display: block; margin: 8px 0; padding: 9px 12px; border-radius: 12px; background: linear-gradient(135deg,#F6C445,#D4A017); color: #2A1E00 !important; font-weight: 700; font-size: 13px; text-decoration: none; }
/* Premium partnyor: daha böyük qızılı pin, tac */
.pin.is-px.is-pxp { width: 56px; height: 56px; border-width: 3px; box-shadow: 0 0 0 7px rgba(242,193,78,.35), 0 14px 28px -6px rgba(140,100,0,.7); }
.pin.is-px.is-pxp::before { content: '👑'; background: #1a1405; font-size: 12px; width: 24px; height: 24px; top: -11px; right: -11px; border-color: #F2C14E; }
.plist-px.plist-pxp { background: #1a1405; color: #F6C445; border: 1px solid #D4A017; }
.plist-px.plist-pxs { background: rgba(242,193,78,.18); color: #a87800; }
[data-theme="dark"] .plist-px.plist-pxs { color: #F6C445; }