/* Header + paieška vienas sticky blokas (kaip Airbnb) */
.home-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.home-chrome .topbar {
  position: static;
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px clamp(20px, 4vw, 48px) 4px;
}
.home-chrome .topbar .nav { justify-self: end; }
.home-search {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 4px 16px 16px;
  overflow: visible;
}
.home-search.search-wrap { padding-top: 4px; padding-bottom: 16px; }
.home-search .search-pill .search-field:nth-child(3) { border-right: 0; }
.search-suggest {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 6px);
  width: min(860px, calc(100% - 32px));
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border: 1px solid var(--line);
  z-index: 80;
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}
.search-suggest[hidden] { display: none !important; }
.home-search .when-cal[hidden],
.home-search .who-panel[hidden] { display: none !important; }
.search-suggest button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.search-suggest button:hover { background: var(--bg-soft); }
.search-suggest strong { font-size: 14px; }
.search-suggest span { font-size: 12px; color: var(--muted); }
.search-suggest .empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
.search-placeholder { font-size: 14px; color: var(--muted); }
.search-field[data-panel="who"],
.search-field[data-panel="when"] { cursor: pointer; }
.home-search .when-cal {
  left: 50%;
  right: auto;
  top: calc(100% - 6px);
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  z-index: 80;
}
.home-search .when-cal .cal-grid button {
  display: grid;
  width: 36px;
  padding: 0;
}
.search-field.on {
  background: var(--surface);
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
  border-radius: 32px;
  position: relative;
  z-index: 3;
}
.who-panel { max-height: none; padding: 14px 12px 16px; }
.who-panel .who-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.who-panel .who-row strong { display: block; font-size: 15px; }
.who-panel .who-row span { font-size: 12px; color: var(--muted); }
.who-step { display: flex; align-items: center; gap: 8px; }
.who-step button {
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 18px; line-height: 1;
  flex-direction: row;
}
.who-step button:hover { background: var(--bg-soft); }
.who-step button:disabled { opacity: 0.35; cursor: default; }
.who-step input {
  width: 36px; border: 0; background: transparent;
  text-align: center; font: inherit; font-size: 15px; font-weight: 600;
  outline: none;
}
.who-methods-h {
  margin: 14px 10px 8px;
  font-size: 15px;
  font-weight: 700;
}
.who-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 4px 4px;
}
.who-methods button {
  width: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
  padding: 10px 6px 8px;
}
.who-methods button .who-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.who-methods button .who-ico svg {
  width: 22px; height: 22px;
  stroke: #1a3d2b;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.who-methods button strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.who-methods button.on { background: #eef7f1; }
.who-methods button.on strong { color: #1b6b3a; }
@media (max-width: 720px) {
  .who-methods { grid-template-columns: repeat(2, 1fr); }
}
.home-chrome.is-compact .topbar { padding-bottom: 2px; }
.home-chrome.is-compact .home-search.search-wrap { padding-top: 0; padding-bottom: 10px; }
.home-chrome.is-compact .search-field { padding: 8px 16px; }
.home-chrome.is-compact .search-field label { font-size: 10px; }
.home-fav {
  margin-top: 18px;
}
.home-more-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 28px;
}
.home-map-block {
  margin-bottom: 40px;
}
.home-map-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.home-explore {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr;
  gap: 14px;
  align-items: stretch;
}
.home-explore-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.home-map-meta strong { color: var(--text); }
.home-pond-list {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  max-height: 280px;
}
.home-pond-item {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.home-pond-item:last-child { border-bottom: 0; }
.home-pond-item:hover { background: var(--bg-soft); }
.home-pond-item strong { display: block; font-size: 14px; }
.home-pond-item span { font-size: 12px; color: var(--muted); }
.home-pond-empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
}

.home-map-wrap {
  min-width: 0;
}
.home-map {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8f2ef;
  box-shadow: var(--shadow-soft);
}
.home-map .leaflet-container { width: 100%; height: 100%; }

.fe-user-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(59,130,246,.35), 0 2px 8px rgba(0,0,0,.2);
}
.fe-gps-btn {
  display: grid !important;
  place-items: center;
  width: 30px;
  height: 30px;
  line-height: 1 !important;
}
.fe-gps-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.fe-gps-btn.on {
  color: #1da851;
}

@media (max-width: 860px) {
  .home-explore { grid-template-columns: 1fr; }
  .home-map { height: 240px; }
  .home-pond-list { max-height: 180px; }
  .home-chrome .topbar { grid-template-columns: 1fr auto; }
  .home-chrome .nav-cats { display: none; }
}
