/* 🐕 poop-o-meter 💩 — egyfájlos, kézzel írt CSS (nincs build lépés).
 *
 * Fájlnév: app.css (nem main.css). A main.css-t a 2026-09-25-i SW-cache
 * ragadás miatt neveztük át — a régi service worker cache-éből a plain
 * /static/css/main.css-t szolgálta ki. Az app.css új név, így cache-miss.
 *
 * A class-lefedettséget a tests/unit/ViewCssCoverageTest.php őrzi:
 * ha új class-t használsz egy view-ban, ide is fel kell venned.
 */

:root {
    /* Márka (zöld) — gombok, linkek, kiemelések */
    --color-brand: #1a7f37;
    --color-brand-dark: #14652c;
    --color-brand-soft: #e8f5e9;
    --color-focus: #1a7f37;

    /* Státusz — szemantikus jelentés, NEM márka */
    --color-green: #28a745;
    --color-yellow: #ffc107;
    --color-red: #dc3545;
    --color-unknown: #6c757d;

    --color-bg: #f8f9fa;
    --color-surface: #fff;
    --color-text: #212529;
    --color-muted: #666;
    --color-faint: #999;
    --color-border: #e9ecef;
    --color-border-strong: #ced4da;

    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    padding: max(1rem, env(safe-area-inset-top)) 2rem 1rem;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Piros ADMIN gomb a desktop-landing navjában — csak home-hálózatról
   (AdminIpGate) renderelődik, pontosan középre igazítva. Abszolút pozíció,
   mert a nav space-between; egy sima középső elem a szélső elemek
   szélességétől függően nem lenne valóban középen. */
.nav-admin {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-admin:hover {
    background: #b71c1c;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    display: block;
    flex: 0 0 auto;
}

.logo-text {
    white-space: nowrap;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--color-brand);
}

.nav-links a:hover {
    text-decoration: underline;
}

/* A bejelentkezett user profil-linkje kiemelve — a sima nav-linkből nem
   derül ki, hogy a Profilom oldalra visz. */
.nav-links a.nav-profile {
    font-weight: bold;
    color: var(--color-brand-dark);
    background: var(--color-brand-soft);
    border: 1px solid var(--color-brand);
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
}

.nav-links a.nav-profile:hover {
    background: var(--color-brand);
    color: #fff;
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    width: 100%;
}

footer {
    background: var(--color-surface);
    text-align: center;
    padding: 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

p + p {
    margin-top: 0.5rem;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-muted);
    font-size: 0.875rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: var(--color-border);
    padding: 0.125rem 0.35rem;
    border-radius: 4px;
}

a {
    color: var(--color-brand);
}

a:hover {
    color: var(--color-brand-dark);
}

section {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* A .container csak elrendezés — nem kártya, a benne lévő section-ök a kártyák */
main > .container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 800px;
}

/* --- Vissza-link a lapok alján --- */
/* A `* { margin: 0 }` reset miatt a lap alján lévő vissza-gomb felső margó
   nélkül a fölötte lévő kártyára tapadna; ez ad neki levegőt és középre teszi. */
.page-back {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Gombok --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-brand-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--color-unknown);
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: var(--color-green);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Hero / főoldal --- */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
}

.message {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--color-brand);
}

.location-section {
    text-align: center;
}

.location-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- GPS előtti placeholder (a lista rejtve) --- */
.stations-placeholder {
    text-align: center;
    color: var(--color-muted);
    background: var(--color-bg);
    border: 1px dashed var(--color-border-strong);
    box-shadow: none;
}

.stations-placeholder-icon {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stations-placeholder-text {
    max-width: 40ch;
    margin: 0 auto;
}

.stations-summary {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* --- GPS-állapot a státusz űrlapon --- */
.gps-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-unknown);
    background: var(--color-bg);
    margin: 1rem 0 0.5rem;
}

.gps-status.gps-idle {
    border-left-color: var(--color-unknown);
}

.gps-status.gps-waiting {
    border-left-color: var(--color-yellow);
    background: #fffde7;
}

.gps-status.gps-ok {
    border-left-color: var(--color-green);
    background: var(--color-brand-soft);
}

.gps-status.gps-error {
    border-left-color: var(--color-red);
    background: #ffebee;
}

.gps-accuracy {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

#locationStatus {
    margin-top: 1rem;
    color: var(--color-muted);
}

/* --- Űrlapok (auth, admin, minden) --- */.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.18);
}

.form-group input::placeholder {
    color: var(--color-faint);
}

/* Rejtett file input (a kameragomb nyitja) — fókuszálható marad, hogy a
   `required` natív validáció ne akadjon el. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.photo-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.photo-preview[hidden] {
    display: none;
}

.photo-preview-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border-strong);
    flex-shrink: 0;
}

.photo-preview-state {
    font-size: 0.9rem;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.config-form {
    max-width: 500px;
}

/* --- Auth oldalak --- */
.auth-page {
    max-width: 460px;
    margin: 0 auto;
}

/* Admin PIN-bevitel: a 6 jegy jól olvasható, középre igazítva. */
.pin-input {
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

/* Az admin plain layout fejléce (nincs PWA nav). */
.admin-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-logout {
    flex-shrink: 0;
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-card h1 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    text-align: center;
}

.auth-card form {
    margin-bottom: 1.25rem;
}

.auth-error {
    background: #ffebee;
    color: #b71c1c;
    border-left: 4px solid var(--color-red);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-success {
    background: var(--color-brand-soft);
    color: var(--color-brand-dark);
    border-left: 4px solid var(--color-brand);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-switch {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.auth-hint {
    color: var(--color-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Rejtett mező (honeypot) — a felhasználó nem látja, a bot kitölti. */
.hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Becenév-választó (anonim regisztráció) --- */
.nickname-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.nickname-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.nickname-option:hover {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
}

.nickname-option input {
    margin: 0;
}

.nickname-option input:checked + span {
    font-weight: 600;
    color: var(--color-brand-dark);
}

/* --- Captcha (Turnstile nélküli fallback) --- */
.captcha-question {
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
}

.cf-turnstile {
    display: flex;
    justify-content: flex-start;
    margin: 0.25rem 0 0.5rem;
}

/* --- Jelszó-reveal (anonim regisztráció után, egyszer) --- */
.auth-card--reveal {
    text-align: center;
}

.password-reveal {
    margin: 1.5rem 0;
}

.password-reveal__label {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.password-reveal__box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-brand-soft);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.password-reveal__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-brand-dark);
    user-select: all;
}

.btn-icon {
    padding: 0.3rem 0.5rem;
    line-height: 1;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    cursor: pointer;
}

.btn-icon:hover {
    border-color: var(--color-brand);
}

/* --- Profil --- */
.profile-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.profile-card p {
    margin-bottom: 0.5rem;
}

.profile-card .profile-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Státuszkártyák / állomások --- */
.stations-section h2,
.station-section h2 {
    margin-bottom: 1rem;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.station-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-left: 6px solid var(--color-border-strong);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.station-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.station-card.green { border-left-color: var(--color-green); }
.station-card.yellow { border-left-color: var(--color-yellow); }
.station-card.red { border-left-color: var(--color-red); }
.station-card.unknown { border-left-color: var(--color-unknown); }

.station-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.station-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.station-distance {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

.station-card-link {
    margin-top: 0.35rem;
    align-self: flex-start;
}

/* --- Státusz-pirula (kártyán és zsák-hero-n) --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--color-bg);
    color: var(--color-text);
}

.status-pill.green { background: var(--color-brand-soft); color: var(--color-brand-dark); }
.status-pill.yellow { background: #fff8e1; color: #8a6d00; }
.status-pill.red { background: #ffebee; color: #b71c1c; }
.status-pill.unknown { background: var(--color-bg); color: var(--color-muted); }

/* --- Zsák-részletek hero --- */
.station-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    border-left: 6px solid var(--color-border-strong);
    margin-bottom: 1.5rem;
}

.station-hero.green { border-left-color: var(--color-green); }
.station-hero.yellow { border-left-color: var(--color-yellow); }
.station-hero.red { border-left-color: var(--color-red); }
.station-hero.unknown { border-left-color: var(--color-unknown); }

.station-hero-main h1 {
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
}

.station-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.station-hero-id {
    color: var(--color-faint);
    font-size: 0.8rem;
}

.station-hero-settlement {
    color: var(--color-muted);
}

/* --- Zsák-szekció panelek --- */
.station-panel {
    margin-bottom: 1.5rem;
}

.station-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.report-panel {
    border-top: 4px solid var(--color-brand);
}

.history-panel {
    margin-bottom: 1.5rem;
}

.watch-panel {
    margin-bottom: 1.5rem;
}

.station-empty {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* --- Állapot-jelentés lépések --- */
.report-step {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.report-step:first-of-type {
    border-top: none;
    padding-top: 0;
}

.step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-brand-soft);
    color: var(--color-brand-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-label {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.step-hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

/* Gyűjtőpont-figyelés (fel-/leiratkozás) */
.watch-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.watch-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

.watch-hint:empty {
    display: none;
}

/* Legutóbbi frissítések — zsák-előzmény a részletes oldalon */
.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.history-item:first-child {
    border-top: none;
}

.history-when {
    color: var(--color-faint);
    white-space: nowrap;
}

.history-who {
    font-weight: 600;
}

.history-what {
    margin-left: auto;
    white-space: nowrap;
}

.history-transition {
    color: var(--color-faint);
}

.history-status-text {
    color: var(--color-text);
}

/* --- Státusz-feltöltő űrlap --- */
.status-form {
    margin: 0;
}

.status-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.status-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-surface);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.status-btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.status-btn-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.status-btn-label {
    font-weight: 600;
}

.status-btn:hover,
.status-btn.selected {
    border-color: var(--color-brand);
}

.status-btn.green:hover, .status-btn.green.selected {
    border-color: var(--color-green);
    background: var(--color-brand-soft);
}

.status-btn.yellow:hover, .status-btn.yellow.selected {
    border-color: var(--color-yellow);
    background: #fffde7;
}

.status-btn.red:hover, .status-btn.red.selected {
    border-color: var(--color-red);
    background: #ffebee;
}

/* --- Statisztika --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.stat-box {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-box.green { border-left: 4px solid var(--color-green); }
.stat-box.yellow { border-left: 4px solid var(--color-yellow); }
.stat-box.red { border-left: 4px solid var(--color-red); }
.stat-box.unknown { border-left: 4px solid var(--color-unknown); }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.stats-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.stats-table th,
.stats-table td,
.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.stats-table th,
.admin-table th {
    background: var(--color-bg);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--color-bg);
}

/* Állomások kezelése: az ID link, a Név kapja a szabad helyet */
.admin-stations-table .station-link {
    color: var(--color-brand);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admin-stations-table .station-link:hover {
    text-decoration: underline;
}

.admin-stations-table th:nth-child(1),
.admin-stations-table td:nth-child(1) {
    white-space: nowrap;
}

/* Státusz: csak a színes pötty (a szöveg title-tooltipben) */
.admin-stations-table .station-status-cell {
    white-space: nowrap;
    text-align: center;
    font-size: 1.15rem;
}

.admin-stations-table th:nth-child(3),
.admin-stations-table td:nth-child(3) {
    width: 100%;
}

.table-wrap {
    overflow-x: auto;
}

/* Statisztika — település-szűrő és lapozó */
.stats-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stats-filters label {
    font-weight: 600;
}

.stats-filters select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--border-radius);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.stats-filters select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.18);
}

.stats-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stats-page-info {
    color: var(--color-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Szekció-wrapperek — a kártya-megjelenést a bennük lévő section adja,
   ezek csak a szemantikus tagolást és az elrendezést jelölik. */
.admin-stats,
.admin-stations,
.admin-requests,
.admin-bugs,
.admin-recent,
.admin-empties,
.admin-config,
.stats-summary,
.stats-details {
    margin-bottom: 1.5rem;
}

/* --- Admin --- */
.admin-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.request-list {
    list-style: none;
}

.request-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Figyelt gyűjtőpont sorában a leiratkozás gomb */
.watch-remove {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* --- Gyűjtőpont-javaslatok --- */
.request-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.request-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.request-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* Javaslat-kártyán a név melletti település-címke */
.request-settlement {
    color: var(--color-muted);
    font-weight: normal;
    font-size: 0.85rem;
}

/* Zsák-kártyán a név alatti település */
.station-settlement {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.request-desc {
    margin-bottom: 0.5rem;
}

.request-coords {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

/* Beküldött javaslat-fotó: thumbnail + forgatás/eredeti gombok. */
.request-photo-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.request-photo {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--color-border-strong);
    display: block;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* --- Hiba / siker üzenetek --- */
.error-msg {
    color: var(--color-red);
    padding: 0.5rem;
    border-radius: 4px;
    background: #ffebee;
    margin: 0.5rem 0;
}

.success-msg {
    color: var(--color-brand-dark);
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--color-brand-soft);
    margin: 0.5rem 0;
}

/* --- Közösség --- */
.community-section {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

/* --- Desktop landing (csak mobilon app a /) --- */
.landing-page {
    max-width: 900px;
}

.landing-hero {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.landing-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.landing-lead {
    max-width: 60ch;
    margin: 0 auto 0.75rem;
    color: var(--color-text);
    font-size: 1.1rem;
}

.landing-note {
    color: var(--color-brand-dark);
    font-weight: 600;
}

.landing-qr-section {
    text-align: center;
}

.landing-about {
    text-align: left;
}

.landing-qr-card {
    display: inline-block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 0.5rem auto 1.5rem;
}

.landing-qr {
    width: 240px;
    max-width: 70vw;
    margin: 0 auto 0.75rem;
}

.landing-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.landing-qr-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.landing-qr-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--color-text);
    word-break: break-all;
    margin: 0;
}

.landing-steps {
    text-align: left;
    max-width: 60ch;
    margin: 0 auto;
    padding-left: 1.25rem;
}

.landing-steps li {
    margin-bottom: 0.75rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.landing-feature {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
}

.landing-feature-icon {
    display: block;
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.landing-cta {
    text-align: center;
}

.landing-cta-alt {
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.landing-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* --- PWA frissítés-sáv --- */
.update-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem;
    background: #fff8e1;
    border-left: 4px solid var(--color-yellow);
    border-radius: var(--border-radius);
}

.update-banner-text strong {
    display: block;
    margin-bottom: 0.15rem;
}

.update-banner-text p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.update-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- PWA telepítés-banner (app nézet) --- */
.install-banner {
    display: none;
    align-items: center;
    gap: 1rem;
    background: var(--color-brand-soft);
    border-left: 4px solid var(--color-brand);
}

.install-banner-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.install-banner-text p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-dismiss {
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 4px;
}

.install-dismiss:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.05);
}

/* --- Térkép (Leaflet/OSM) --- */
.map-section h2 {
    margin-bottom: 0.75rem;
}

.station-map {
    width: 100%;
    height: clamp(300px, 50vh, 520px);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    z-index: 1;
}

.map-attribution {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* OpenLayers popup a térképen (a saját betűtípusunkkal). */
.ol-popup {
    position: absolute;
    bottom: 12px;
    left: -50px;
    min-width: 200px;
    padding: 0.75rem 2rem 0.75rem 0.9rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    font-family: var(--font-stack);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ol-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--color-surface) transparent transparent;
}

.ol-popup-closer {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.ol-popup-closer:hover {
    color: var(--color-text);
    text-decoration: none;
}

/* --- Kuka ürítése --- */
.emptying-card,
.suggestion-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.emptying-picker h2 {
    margin-bottom: 0.75rem;
}

.empty-history {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.empty-history h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-history-list {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.empty-history-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.empty-history-item:last-child {
    border-bottom: none;
}

/* --- Reszponzív --- */
@media (max-width: 600px) {
    header {
        padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Mobilon a nav oszlopos: az abszolút középre igazítás összecsúszna a
       logóval, ezért a gomb visszakerül a normál folyamba, középre. */
    .nav-admin {
        position: static;
        transform: none;
        align-self: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .nav-links a {
        margin-left: 0;
    }

    main {
        padding: 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    section {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .landing-hero h1 {
        font-size: 1.75rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }

    .status-btn {
        flex: 1 1 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .install-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .install-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .update-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin: 0;
        border-radius: 0;
    }
}
