/* ==========================================================================
   Šunų aikštelės — komponentai ir išdėstymas.
   Spalvos, spinduliai, šešėliai ir judesys — TIK tokenai iš tokens.css.
   ========================================================================== */

/* --- Bazė ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: 400 15px/24px var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

img {
  max-width: 100%;
  background: var(--line); /* fonas kol kraunasi — be šuolių */
}

a {
  color: var(--pine-700);
}

button {
  font: inherit;
  color: inherit;
}

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

.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Mygtukai ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-s);
  font: 500 15px/1 var(--font-ui);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.btn-primary {
  background: var(--pine-700);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--pine-600);
}

.btn-primary:active {
  background: var(--pine-800);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-faint);
}

.btn-ghost {
  color: var(--pine-700);
  padding: 0 var(--sp-2);
}

.btn-ghost:hover {
  color: var(--pine-600);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--pine-100);
}

/* --- Antraštė ------------------------------------------------------------- */

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: 0 var(--sp-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-s);
  background: var(--pine-100);
  color: var(--pine-700);
}

.logo-word {
  font: 600 20px/24px var(--font-display);
  white-space: nowrap;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 420px;
  height: 40px;
  padding: 0 var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease);
}

.search-field .icon {
  color: var(--ink-faint);
}

.search-field:focus-within {
  border-color: var(--pine-600);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: 400 15px/24px var(--font-ui);
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--ink-faint);
}

.search-field input:focus {
  outline: none;
}

.suggest-link {
  margin-left: auto;
  white-space: nowrap;
}

/* --- Pagrindinis išdėstymas (desktop) ------------------------------------- */

.app-main {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.sidebar {
  flex: none;
  width: 400px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.sheet-grab {
  display: none;
}

.filter-bar {
  flex: none;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

/* --- Filtrų žetonai ------------------------------------------------------- */

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip-face {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink-soft);
  font: 500 13px/20px var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.chip:hover .chip-face,
button.chip-face:hover {
  border-color: var(--ink-faint);
}

.chip input:checked + .chip-face {
  background: var(--pine-100);
  color: var(--pine-700);
  border-color: var(--pine-600);
}

.chip input:focus-visible + .chip-face {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.chip-count {
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--sp-1);
  border-radius: var(--r-full);
  background: var(--pine-700);
  color: var(--surface);
  font: 600 11px/16px var(--font-ui);
  text-align: center;
}

.chip-count.is-visible {
  display: inline-block;
}

/* „Daugiau filtrų" popover */

.filter-more {
  position: relative;
}

.filter-popover {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  z-index: 1150;
  width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              visibility 0s linear var(--t-med);
}

.filter-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.filter-popover-title {
  font: 600 16px/24px var(--font-ui);
  margin-bottom: var(--sp-2);
}

.check-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
  border-radius: var(--r-s);
}

.check-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-face {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-s);
  color: var(--ink-soft);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.check-row input:checked + .check-face {
  background: var(--pine-100);
  color: var(--pine-700);
}

.check-row input:focus-visible + .check-face {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

/* --- Sąrašas -------------------------------------------------------------- */

.list-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.count-line {
  padding: var(--sp-3) var(--sp-4) var(--sp-1);
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-soft);
}

.park-cards {
  list-style: none;
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.park-card {
  position: relative;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-fast) var(--ease);
}

.park-card:hover {
  box-shadow: var(--shadow-2);
}

.park-card.is-flash {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.park-card-thumb {
  flex: none;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-s);
}

.park-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.park-card-title {
  font: 600 16px/24px var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.park-card-link {
  color: var(--ink);
  text-decoration: none;
}

/* Ištempta nuoroda — visa kortelė paspaudžiama */
.park-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.park-card-meta {
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.park-card-tags {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
}

.park-card-chars {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--ink-faint);
}

.char-more {
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-faint);
}

/* --- Ženkleliai ----------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font: 600 11px/16px var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-dog-park {
  background: var(--type-dog-park-bg);
  color: var(--type-dog-park);
}

.badge-walking {
  background: var(--type-walking-bg);
  color: var(--type-walking);
}

.badge-agility {
  background: var(--type-agility-bg);
  color: var(--type-agility);
}

.badge-verified {
  background: var(--pine-100);
  color: var(--ok);
}

/* --- Tuščia būsena -------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  max-width: 40ch;
  margin: var(--sp-7) auto;
  padding: 0 var(--sp-4);
  text-align: center;
  color: var(--ink-soft);
}

.empty-state .icon {
  color: var(--ink-faint);
}

/* --- Skeletas ir progreso juosta ------------------------------------------ */

.skeleton {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: var(--sp-4);
  background: var(--paper);
}

.skeleton.htmx-request {
  display: block;
}

.skeleton-card {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}

.skeleton-block {
  display: block;
  background: var(--line);
  border-radius: var(--r-s);
  animation: skeleton-pulse 1.2s var(--ease) infinite;
}

.skeleton-thumb {
  flex: none;
  width: 96px;
  height: 72px;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

.skeleton-line {
  height: 12px;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.progress-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1300;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.progress-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--pine-700);
  animation: progress-slide 1s var(--ease) infinite;
}

.progress-bar.htmx-request {
  opacity: 1;
}

@keyframes progress-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(360%); }
}

/* --- Žemėlapis ------------------------------------------------------------ */

.map-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

#map {
  position: absolute;
  inset: 0;
}

.leaflet-container {
  background: var(--paper);
  font-family: var(--font-ui);
}

/* Prigesintos OSM plytelės — tik plytelių sluoksniui (DESIGN §8) */
.leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.95) brightness(1.03);
}

/* Valdikliai — surface / r-s / shadow-1 vietoje standartinio Leaflet stiliaus */
.leaflet-touch .leaflet-bar,
.leaflet-bar {
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.leaflet-bar a,
.leaflet-touch .leaflet-bar a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.leaflet-bar a:last-child {
  border-bottom: 0;
}

.leaflet-bar a:hover {
  background: var(--pine-100);
  color: var(--pine-700);
}

.leaflet-control-attribution {
  background: var(--surface);
  color: var(--ink-faint);
  font: 400 11px/16px var(--font-ui);
}

.leaflet-control-attribution a {
  color: var(--ink-soft);
}

.locate-btn {
  position: absolute;
  right: 10px;
  bottom: 104px;
  z-index: 900;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--pine-700);
}

/* Žymekliai */
.park-pin svg {
  display: block;
  /* drop-shadow tokenų šešėlio pagrindo spalva (--ink, 24 36 32) */
  filter: drop-shadow(0 2px 3px rgb(24 36 32 / 0.30));
}

.leaflet-marker-icon:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

/* Spiečiai — pine-700 85 %, baltas skaičius, plonas baltas žiedas */
.park-cluster {
  background: none;
  border: 0;
}

.park-cluster .cluster-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--r-full);
  border: 2px solid var(--surface);
  background: rgb(30 77 58 / 0.85); /* atsarginis --pine-700 @ 85 % */
  background: color-mix(in srgb, var(--pine-700) 85%, transparent);
  color: var(--surface);
  font: 600 13px/1 var(--font-ui);
  box-shadow: var(--shadow-1);
}

/* Popup — mini kortelė */
.park-popup .leaflet-popup-content-wrapper {
  padding: 0;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-3);
}

.park-popup .leaflet-popup-content {
  margin: 0;
  font: 400 15px/24px var(--font-ui);
}

.park-popup .leaflet-popup-tip {
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.park-popup .leaflet-popup-close-button {
  color: var(--ink-faint);
}

.popup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  width: 240px;
  padding: var(--sp-3);
}

.popup-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-s);
}

.popup-title {
  font: 600 16px/24px var(--font-ui);
  color: var(--ink);
}

.popup-more {
  height: 36px;
}

/* --- Detalės skydelis ------------------------------------------------------ */

.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: 440px;
  max-width: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateX(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--t-med) var(--ease),
              opacity var(--t-med) var(--ease),
              visibility 0s linear var(--t-med);
}

.detail-panel.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.detail {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-back,
.detail-close {
  position: absolute;
  top: var(--sp-3);
  z-index: 3;
  box-shadow: var(--shadow-2);
}

.detail-back {
  left: var(--sp-3);
  display: none;
}

.detail-close {
  right: var(--sp-3);
}

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Galerija */
.detail-gallery {
  position: relative;
}

.gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-strip img {
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-3);
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.gallery-dot.is-active {
  opacity: 1;
  transform: scale(1.25);
}

/* Turinys */
.detail-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.detail-title {
  font: 600 34px/40px var(--font-display);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.detail-location {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: flex-start;
}

.detail-place {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-soft);
}

.detail-place .icon {
  color: var(--ink-faint);
}

.detail-hint {
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-faint);
}

.detail-directions {
  height: 36px;
  padding: 0;
}

.detail-description {
  max-width: 65ch;
}

.detail-section h2 {
  font: 600 22px/28px var(--font-display);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

/* Pramogos */
.amenity-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.amenity-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-soft);
  text-align: center;
}

.amenity-tile .icon {
  color: var(--pine-700);
}

/* Savybės */
.char-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2) var(--sp-4);
}

.char-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 32px;
}

.char-name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.char-name .icon {
  color: var(--ink-faint);
}

.char-value {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font: 500 13px/20px var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
}

.char-yes {
  color: var(--ok);
}

.char-no {
  color: var(--absent);
}

/* Meta poraštė */
.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font: 400 13px/20px var(--font-ui);
  color: var(--ink-faint);
}

.detail-meta a {
  color: var(--ink-soft);
}

.detail-report {
  height: 36px;
  padding: 0;
  font-size: 13px;
}

.detail-report.btn-ghost,
a.detail-report {
  color: var(--pine-700);
}

/* --- 404 ------------------------------------------------------------------- */

.page-404 {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.page-404-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Planšetė (640–1023 px) ------------------------------------------------ */

@media (max-width: 1023px) and (min-width: 640px) {
  .sidebar {
    width: 340px;
  }

  .detail-panel {
    width: min(440px, 80vw);
  }
}

/* --- Mobilus (<640 px) ------------------------------------------------------ */

@media (max-width: 639px) {
  /* Antraštė virsta plūduriuojančia paieškos juosta virš žemėlapio */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1085;
    height: auto;
    padding: var(--sp-3);
    gap: var(--sp-2);
    background: none;
    border-bottom: 0;
    pointer-events: none;
  }

  .site-header > * {
    pointer-events: auto;
  }

  .site-header-plain {
    position: static;
    pointer-events: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4);
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-2);
    background: var(--surface);
  }

  .site-header:not(.site-header-plain) .logo-word,
  .suggest-link {
    display: none;
  }

  .search-field {
    max-width: none;
    height: 44px;
    border: 0;
    box-shadow: var(--shadow-2);
  }

  .app-main {
    display: block;
  }

  .map-wrap {
    position: fixed;
    inset: 0;
  }

  /* Mobiliajame mastelį keičia gestai; atribucija pakeliama virš lapo */
  .leaflet-control-zoom {
    display: none;
  }

  .map-wrap .leaflet-bottom.leaflet-right {
    bottom: 104px;
  }

  .locate-btn {
    position: fixed;
    right: var(--sp-3);
    bottom: 156px;
    z-index: 1080;
    width: 44px;
    height: 44px;
  }

  /* Filtrų žetonai plūduriuoja po paieška */
  .sidebar .filter-bar {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 1084;
    padding: 0 var(--sp-3) var(--sp-2);
    border-bottom: 0;
    background: none;
    pointer-events: none;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--sp-1);
    pointer-events: auto;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip-face {
    height: 40px;
    box-shadow: var(--shadow-2);
    border: 0;
  }

  .filter-popover {
    position: fixed;
    top: 120px;
    left: var(--sp-3);
    right: var(--sp-3);
    width: auto;
    max-height: 50vh;
  }

  .check-row {
    min-height: 44px;
  }

  /* Šoninė juosta — apatinis lapas */
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: 104px;
    z-index: 1086;
    border-right: 0;
    border-radius: var(--r-l) var(--r-l) 0 0;
    background: var(--surface);
    box-shadow: var(--shadow-3);
    overflow: hidden;
    transition: height var(--t-med) var(--ease);
  }

  .sidebar.is-expanded {
    height: calc(100dvh - 88px);
  }

  .sheet-grab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: var(--sp-3) 0 var(--sp-2);
    border: 0;
    background: none;
    cursor: pointer;
  }

  .sheet-grab-bar {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: var(--r-full);
    background: var(--line);
  }

  .count-line {
    padding-top: 0;
  }

  /* Detalė — pilno ekrano lapas */
  .detail-panel {
    position: fixed;
    inset: 0;
    width: auto;
    z-index: 1200;
    transform: translateY(24px);
  }

  .detail-back {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .detail-close {
    display: none;
  }

  .detail-title {
    font: 600 26px/32px var(--font-display);
  }

  .detail-body {
    padding: var(--sp-4);
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .char-list {
    grid-template-columns: 1fr;
  }

  .progress-bar {
    top: 0;
  }

  .park-card-link::after {
    /* 44 px lietimo taikiniai — kortelė ir taip visa paspaudžiama */
    min-height: 44px;
  }
}

/* --- Sumažintas judesys ----------------------------------------------------- */

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

  html {
    scroll-behavior: auto;
  }

  .gallery-strip {
    scroll-behavior: auto;
  }
}
