/*
NÉV: Mi épül itt? UI v2 – home.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 · főoldal */
.page-home { display: flex; flex-direction: column; min-height: 100vh; }
.page-home main { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section { padding: 32px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-tight { padding: 8px 0 24px; }
@media (min-width: 900px) { .section { padding: 64px 0; } .stack { gap: 28px; } .section-tight { padding: 0 0 56px; } }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* Hero */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.hero-grid { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-eyebrow { color: var(--accent); margin: 0; }
.hero h1 { margin: 0; font-size: clamp(40px, 9vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.025em; }
.hero-lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: 520px; }
.hero-search { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin-top: 4px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hero-alt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nearby-btn { width: 100%; height: 48px; }
.hero-cities { margin-top: 4px; }
.chip-more { color: var(--accent); font-weight: 600; }
.hero-map { position: relative; height: 220px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--map-tone); box-shadow: 0 10px 30px var(--shadow); }
.hero-legend { position: absolute; left: 12px; top: 12px; z-index: 2; display: none; }
.hero-map-cta { position: absolute; left: 12px; bottom: 12px; z-index: 2; height: 42px; font-size: 14px; }
.hero-map .map-attrib { bottom: auto; top: 8px; right: 8px; font-size: 10px; }
@media (min-width: 768px) {
  .nearby-btn { width: auto; }
  .hero-lead { font-size: 19px; }
  .hero-search .search-field { height: 64px; padding-left: 20px; border-radius: 16px; }
  .hero-search .search-field .btn { height: 48px; padding: 0 22px; font-size: 16px; }
  .hero-cities { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1024px) {
  .hero-grid { flex-direction: row; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero-copy { flex: 1 1 0; gap: 22px; }
  .hero-map { flex: 1 1 0; height: 500px; border-radius: var(--radius-xl); }
  .hero-legend { display: flex; left: 16px; top: auto; bottom: 16px; }
  .hero-map-cta { left: auto; right: 16px; bottom: 16px; height: 48px; font-size: 15px; }
}

/* Hírfolyam */
.feed-tabs { width: 100%; }
@media (min-width: 768px) { .feed-tabs { width: auto; } .feed-tabs button { flex: 0 0 auto; } }
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feed-grid .card { padding: 20px; } }
.feed-grid .card-title { font-size: 18px; }
.feed-grid .card > .meta:last-child { margin-top: auto; }
.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-link { font-weight: 600; font-size: 15px; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-l); color: var(--muted); text-align: center; }

/* Kiemelt országos */
.flag-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.flag-grid::-webkit-scrollbar { display: none; }
.flag-card { flex: 0 0 78%; scroll-snap-align: start; gap: 12px; }
.flag-card .card-title { font-size: 18px; }
.facts { display: flex; gap: 24px; margin-top: auto; }
.facts span { display: flex; flex-direction: column; }
.facts b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.facts small { color: var(--muted); font-size: 13px; }
@media (min-width: 700px) { .flag-card { flex-basis: 46%; } }
@media (min-width: 1024px) {
  .flag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .flag-card { padding: 20px; }
  .facts b { font-size: 26px; }
}

/* Városok */
.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.city-grid a { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none; }
.city-grid a::after { content: "›"; color: var(--muted); font-size: 18px; }
.city-grid a:hover { border-color: var(--muted); }
@media (min-width: 700px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .city-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.topic-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* CTA-k */
.inverse-title { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
@media (min-width: 900px) { .inverse-title { font-size: 26px; } }
.submit-card { flex-direction: row; align-items: center; justify-content: space-between; }
.submit-card > span { display: flex; flex-direction: column; gap: 4px; }
.labs-title { margin: 0 0 12px; font: 600 13px/1.3 var(--font-body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.labs-row { display: flex; gap: 8px 20px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
