/*
NÉV: Mi épül itt? UI v2 – results.css
PROJEKT: NextSheet Építési Intelligence
TÍPUS: CSS
VERZIÓ: v0.88.0
UTOLSÓ FRISSÍTÉS: 2026-10-25
LEÍRÁS: UI v2 helyi integráció, meglévő adat- és útvonalszerződéssel.
FEJLESZTŐ: Balázs Bakos · NextSheet · https://www.nextsheet.hu
CHANGELOG: v0.88.0 - 2026-10-25 - Főoldal és találati felület bekötése.
*/
/* Mi épül itt? – UI v2 · találati oldal (lista + térkép) */
body.page-results { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Fejléc */
.results-header .wrap:first-child { gap: 8px; min-height: 64px; }
.results-header .brand { display: none; }
.results-search { flex: 1; min-width: 0; }
.results-search .search-field { position: relative; }
.radius-wrap select { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; font-size: 14px; font-weight: 500; }
.results-header .account-btn { display: none; }
.view-switch { padding-bottom: 10px; }
@media (min-width: 1024px) {
  .results-header .wrap:first-child { max-width: none; padding: 0 24px; gap: 20px; min-height: 72px; }
  .results-header .brand { display: flex; }
  .results-header .back-btn { display: none; }
  .results-search { max-width: 600px; }
  .results-header .account-btn { display: inline-flex; }
  .site-header .view-switch { display: none; }
}

/* Elrendezés */
.results-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.list-pane { display: flex; flex-direction: column; background: var(--bg-2); }
.map-pane { position: relative; background: var(--map-tone); }
body[data-view="list"] .map-pane { display: none; }
body[data-view="map"] .list-pane { display: none; }
body[data-view="map"] { height: 100vh; height: 100dvh; overflow: hidden; }
body[data-view="map"] .map-pane { flex: 1; min-height: 360px; }

@media (min-width: 1024px) {
  body.page-results { height: 100vh; height: 100dvh; overflow: hidden; }
  .results-layout { display: grid; grid-template-columns: minmax(380px, 470px) 1fr; }
  body[data-view] .list-pane, body[data-view] .map-pane { display: flex; }
  .list-pane { min-height: 0; border-right: 1px solid var(--line); background: var(--bg); }
  .map-pane { display: block !important; }
  .list-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
}

/* Lista fej */
.list-head { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.list-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.list-head h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; }
.list-head .meta { margin: 2px 0 0; font-size: 14px; }
.city-link { font-weight: 600; font-size: 14px; white-space: nowrap; }
.filters .chip { height: 36px; padding: 0 13px; }
.filters .dot { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; display: inline-block; }
.dot-build { background: var(--mk-build); }
.dot-prep { border: 2px solid var(--mk-prep); }
.dot-done { background: var(--mk-done); }
.chip[aria-pressed="true"] .dot-prep { border-color: currentColor; }
.select-chip { padding: 0 6px 0 12px; }
.select-chip select { border: 0; background: transparent; height: 34px; font-weight: 500; font-size: 14px; padding-right: 4px; max-width: 180px; }
.select-chip select option { color: #15171c; }
@media (min-width: 1024px) { .list-head { padding: 20px 20px 14px; } .filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* Lista törzs */
.list-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.cards .card { cursor: pointer; }
.cards .card:hover { border-color: var(--muted); }
.skeleton { min-height: 150px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.more-btn { width: 100%; height: 48px; }
.empty { padding: 24px 16px; border: 1px dashed var(--line); border-radius: var(--radius-l); color: var(--muted); text-align: center; background: var(--surface); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
@media (min-width: 1024px) {
  .list-body { padding: 10px 12px 16px; gap: 10px; }
  .cards { gap: 6px; }
  .cards .card { box-shadow: none; border-color: transparent; padding: 14px 16px; }
  .cards .card:hover { background: var(--bg-2); border-color: var(--line); }
  .cards .card.is-selected { background: var(--accent-soft); border: 1px solid var(--accent-line); }
  .cards .card-title { font-size: 17px; }
  .cards .card-foot { border-top: 0; padding-top: 0; }
}

/* Értesítő sáv */
.notify-bar { display: flex; align-items: center; gap: 12px; margin: 4px 16px 24px; padding: 14px 16px; border-radius: 16px; background: var(--inverse); border: 1px solid var(--inverse-line); color: var(--inverse-text); font-size: 14px; line-height: 1.4; }
.notify-bar span { flex: 1; }
@media (min-width: 1024px) { .notify-bar { margin: 0; border-radius: 0; border-width: 1px 0 0; background: var(--bg-2); color: var(--text); border-color: var(--line); padding: 14px 20px; } .notify-bar svg { color: var(--accent) !important; } }

/* Térkép */
.map-legend { position: absolute; left: 12px; top: 12px; z-index: 2; }
.locate-btn { position: absolute; right: 12px; top: 12px; z-index: 2; box-shadow: 0 2px 6px var(--shadow); }
@media (min-width: 1024px) { .map-legend { left: 20px; top: 20px; } .locate-btn { top: auto; right: 10px; bottom: 120px; } }
.maplibregl-ctrl-bottom-right { bottom: 28px; }

.map-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px var(--shadow-strong); display: flex; flex-direction: column; gap: 10px; }
.map-sheet[hidden] { display: none; }
.sheet-handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); }
.sheet-title { margin: 0; font: 700 21px/1.2 var(--font-display); padding-right: 36px; }
.sheet-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet-tiles div { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.sheet-tiles small { display: block; color: var(--muted); font-size: 12px; }
.sheet-tiles b { font-size: 14px; font-weight: 600; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn-primary { flex: 1; }
.sheet-actions .follow-btn { width: auto; padding: 0 16px; gap: 8px; font-weight: 600; display: inline-flex; align-items: center; height: 44px; }
@media (min-width: 1024px) {
  .map-sheet { left: auto; right: 20px; bottom: auto; top: 20px; width: 340px; border-radius: var(--radius-l); border: 1px solid var(--line); padding: 18px; box-shadow: 0 18px 44px var(--shadow-strong); }
  .sheet-handle { display: none; }
}
.select-chip[hidden] { display: none; }
.select-chip { position: relative; }
@media (min-width: 1024px) { .cards .card-title a::after { display: none; } .cards .card-title a:hover { text-decoration: underline; } }
