:root {
    --ink: #10232c;
    --ink-soft: #53646b;
    --primary: #0E3A4A;
    --primary-dark: #092a35;
    --accent: #D8C6B2;
    --gold: #C6A15B;
    --sand: #F4EFE8;
    --sea: #16677c;
    --green: #1f6b55;
    --medical: #0f6b7a;
    --muted: #667085;
    --white: #fff;
    --surface: #ffffff;
    --surface-soft: #f7f4ef;
    --border: rgba(16,35,44,.11);
    --shadow: 0 24px 70px rgba(14,58,74,.16);
    --shadow-soft: 0 14px 38px rgba(14,58,74,.11);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #fbf8f3 44%, #f4efe8 100%);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 38px rgba(16,35,44,.08); background: rgba(255,255,255,.94); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 16px;
    display: grid; place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--marker-color), var(--primary));
    box-shadow: 0 10px 28px rgba(14,58,74,.24);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-text small { color: var(--ink-soft); font-size: .74rem; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 13px; border-radius: 999px; font-weight: 750; font-size: .9rem; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); background: rgba(14,58,74,.07); }
.main-nav .nav-cta { background: var(--primary); color: white; box-shadow: 0 10px 24px rgba(14,58,74,.18); }
.main-nav .nav-cta:hover { color: white; background: var(--primary-dark); }
.nav-toggle { display: none; border: 0; background: var(--surface-soft); width: 44px; height: 44px; border-radius: 15px; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 8px; }

.hero {
    position: relative; min-height: 720px; display: grid; align-items: end;
    background-image: var(--hero-image), linear-gradient(145deg, #0E3A4A, #0c5668);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: white;
}
.hero::after {
    content:""; position: absolute; inset: auto 0 0 0; height: 55%;
    background: linear-gradient(0deg, rgba(8,28,35,.95) 0%, rgba(8,28,35,.72) 42%, transparent 100%);
    pointer-events: none;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(216,198,178,.22), transparent 34%), linear-gradient(90deg, rgba(8,28,35,.78), rgba(8,28,35,.25) 48%, rgba(8,28,35,.55)); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; padding: 150px 0 44px; align-items: end; }
.hero h1 { font-size: clamp(3rem, 8vw, 7.3rem); line-height: .88; letter-spacing: -.08em; margin: 0 0 22px; max-width: 800px; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255,255,255,.85); max-width: 610px; margin: 0 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(10px); margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 18px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--sea)); box-shadow: 0 16px 34px rgba(14,58,74,.26); }
.btn-light { color: var(--primary); background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(14,58,74,.12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.glass-card { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); backdrop-filter: blur(22px); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.weather-panel { padding: 22px; color: white; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head span { display: block; color: rgba(255,255,255,.72); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.panel-head strong { display: block; font-size: 1.35rem; letter-spacing: -.03em; }
.panel-head i { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.weather-day { min-height: 160px; border-radius: 22px; padding: 15px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); display: grid; align-content: space-between; }
.weather-day strong { font-size: .98rem; text-transform: capitalize; }
.weather-icon { font-size: 1.9rem; margin: 10px 0; }
.weather-temp { font-size: 1.55rem; font-weight: 900; letter-spacing: -.04em; }
.weather-meta { color: rgba(255,255,255,.76); font-size: .78rem; display: grid; gap: 4px; }
.weather-source { display: block; margin-top: 14px; color: rgba(255,255,255,.68); }
.weather-skeleton { height: 160px; border-radius: 22px; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.24), rgba(255,255,255,.12)); animation: pulse 1.25s infinite; }
@keyframes pulse { 0%,100%{opacity:.65} 50%{opacity:1} }

.section-title { margin-bottom: 20px; }
.section-title span { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .78rem; }
.section-title h2 { margin: 6px 0 0; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.05em; }
.section-title.compact { margin-bottom: 14px; }
.quick-section { transform: translateY(-28px); position: relative; z-index: 3; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.quick-card { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); border: 1px solid var(--border); font-weight: 850; text-align: center; }
.quick-card i { font-size: 1.35rem; color: var(--primary); width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-soft); }
.quick-card:hover { transform: translateY(-3px); transition: transform .2s ease; }
.content-section { padding: 58px 0; }
.content-section.muted { background: rgba(255,255,255,.48); border-block: 1px solid var(--border); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stack-list { display: grid; gap: 13px; }
.list-card { display: grid; grid-template-columns: 74px 1fr; gap: 15px; padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(14,58,74,.06); }
.list-card.soft { background: rgba(255,255,255,.72); }
.list-card h3 { margin: 4px 0 6px; letter-spacing: -.02em; }
.list-card p { margin: 0; color: var(--ink-soft); }
.date-pill { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; text-align: center; color: white; background: var(--primary); font-weight: 900; font-size: .84rem; }
.date-pill.event { background: linear-gradient(135deg, var(--gold), #d0ac67); }
.tag { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(14,58,74,.08); color: var(--primary); font-weight: 850; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--primary); font-weight: 900; }
.service-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid:not(.three) { grid-template-columns: repeat(2, 1fr); }
.service-card, .article-card { display: block; min-height: 210px; padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.service-card.highlight { background: linear-gradient(135deg, var(--primary), #155d70); color: white; }
.service-card i { font-size: 1.7rem; color: var(--gold); margin-bottom: 16px; }
.service-card.highlight i { color: var(--accent); }
.service-card h3, .service-card h2, .article-card h2 { margin: 0 0 10px; letter-spacing: -.03em; }
.service-card p, .article-card p { color: var(--ink-soft); margin: 0; }
.service-card.highlight p { color: rgba(255,255,255,.76); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: .86rem; margin-top: 18px; }

.page-hero { padding: 86px 0 52px; color: white; background: radial-gradient(circle at 10% 10%, rgba(216,198,178,.23), transparent 35%), linear-gradient(135deg, var(--primary), #0d5a6d); }
.page-hero.small h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.07em; margin: 0 0 14px; }
.page-hero.small p { max-width: 790px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.page-hero.accent { background: radial-gradient(circle at 80% 10%, rgba(216,198,178,.2), transparent 34%), linear-gradient(135deg, #2c3240, var(--primary)); }
.page-hero.green { background: radial-gradient(circle at 20% 10%, rgba(240,255,240,.2), transparent 35%), linear-gradient(135deg, #1f6b55, #0e3f38); }
.page-hero.medical { background: radial-gradient(circle at 80% 12%, rgba(255,255,255,.18), transparent 35%), linear-gradient(135deg, #0f6b7a, #0E3A4A); }

.map-shell { display: grid; grid-template-columns: 360px 1fr; gap: 18px; padding: 28px 0 70px; min-height: 680px; }
.map-sidebar { color: var(--ink); background: rgba(255,255,255,.78); border-color: var(--border); padding: 18px; box-shadow: var(--shadow-soft); max-height: 74vh; overflow: auto; position: sticky; top: 94px; }
.map-search label, .smart-form label, .waste-card label { display: grid; gap: 8px; font-weight: 850; font-size: .9rem; color: var(--ink); }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; background: rgba(255,255,255,.86); outline: 0; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: rgba(14,58,74,.42); box-shadow: 0 0 0 4px rgba(14,58,74,.08); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-chip { border: 1px solid var(--border); background: white; border-radius: 999px; padding: 9px 11px; cursor: pointer; font-weight: 800; color: var(--ink-soft); }
.filter-chip.is-active, .filter-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }
.map-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: white; min-height: 680px; }
.city-map { width: 100%; height: 100%; min-height: 680px; }
.map-results { display: grid; gap: 10px; }
.result-item { display: grid; gap: 5px; padding: 12px; border-radius: 18px; background: rgba(14,58,74,.06); cursor: pointer; border: 1px solid transparent; }
.result-item:hover { border-color: rgba(14,58,74,.18); background: rgba(14,58,74,.09); }
.result-item strong { font-size: .92rem; }
.result-item small { color: var(--ink-soft); }
.custom-marker {
    --marker-color: #0E3A4A; width: 34px; height: 34px; border-radius: 13px 13px 13px 4px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--marker-color, var(--primary)); color: white; border: 2px solid white; box-shadow: 0 8px 22px rgba(14,58,74,.24); }
.custom-marker i { transform: rotate(45deg); font-size: .9rem; }
.custom-marker.cat-fontane { --marker-color: #1b75bb; }
.custom-marker.cat-strutture-religiose { --marker-color: #7a5a2f; }
.custom-marker.cat-farmacie { --marker-color: #0f8f6f; }
.custom-marker.cat-panorama { --marker-color: #c07d28; }
.custom-marker.cat-cultura { --marker-color: #713f91; }
.custom-marker.cat-associazioni { --marker-color: #b5406b; }
.custom-marker.cat-parcheggi { --marker-color: #34495e; }
.custom-marker.cat-spiagge { --marker-color: #0f8fb3; }
.leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: var(--shadow-soft); }
.popup-title { font-weight: 900; color: var(--primary); font-size: 1rem; }
.popup-sub { color: var(--ink-soft); margin: 4px 0 8px; }

.form-layout, .waste-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) .75fr; gap: 24px; align-items: start; }
.smart-form, .waste-card { background: rgba(255,255,255,.82); border-color: var(--border); padding: 24px; color: var(--ink); }
.smart-form { display: grid; gap: 16px; }
.form-row.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label span { color: var(--ink-soft); font-weight: 650; }
.file-field { padding: 15px; border: 1px dashed rgba(14,58,74,.28); border-radius: 18px; background: rgba(255,255,255,.62); }
.file-field input { padding: 0; border: 0; border-radius: 0; background: transparent; }
.check-field { display: flex!important; grid-template-columns: 24px 1fr!important; gap: 10px!important; align-items: start; font-weight: 700!important; color: var(--ink-soft)!important; }
.check-field input { width: auto; margin-top: 5px; }
.form-feedback { min-height: 22px; font-weight: 850; }
.form-feedback.ok { color: #137a4c; }
.form-feedback.error { color: #a62b2b; }
.info-panel { padding: 24px; border-radius: 28px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.68)); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.info-panel h2 { margin-top: 0; letter-spacing: -.03em; }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.clean-list li { display: flex; gap: 10px; align-items: start; color: var(--ink-soft); }
.clean-list i { color: var(--primary); margin-top: 4px; }
.notice-card { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 18px; margin-bottom: 18px; background: #fff7e6; color: #6d4a12; border: 1px solid rgba(198,161,91,.25); font-weight: 750; }
.pharmacy-card.on-duty { border-color: rgba(15,143,111,.35); box-shadow: 0 16px 40px rgba(15,143,111,.12); }
.call-card strong { font-size: 2rem; color: var(--primary); letter-spacing: -.04em; }

.report-location-picker {
    display: grid;
    gap: 12px;
}
.location-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.location-toolbar strong,
.location-toolbar span {
    display: block;
}
.location-toolbar strong {
    color: var(--ink);
    font-weight: 900;
}
.location-toolbar span {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
    margin-top: 3px;
}
.report-map {
    width: 100%;
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.report-map .leaflet-control-attribution {
    font-size: 10px;
}

.today-waste { margin: 18px 0; padding: 20px; border-radius: 24px; background: linear-gradient(135deg, var(--green), #0d3f35); color: white; }
.tomorrow-waste { margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; background: rgba(31,107,85,.08); color: var(--ink); border: 1px solid rgba(31,107,85,.12); }
.today-waste span { display: block; opacity: .78; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.today-waste strong { display: block; font-size: 1.8rem; letter-spacing: -.04em; margin-top: 4px; }
.tomorrow-waste span { display: block; color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.tomorrow-waste strong { display: block; font-size: 1.15rem; margin-top: 4px; }
.waste-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.waste-badge { padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 850; }
.week-waste { display: grid; gap: 9px; }
.week-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(31,107,85,.07); }
.week-row strong { text-transform: capitalize; }
.week-row span { color: var(--ink-soft); text-align: right; }
.event-timeline { display: grid; gap: 16px; }
.timeline-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.timeline-card.with-image { grid-template-columns: 112px 180px 1fr; }
.timeline-thumb { width: 100%; height: 128px; object-fit: cover; border-radius: 20px; }
.date-block { min-height: 88px; border-radius: 22px; display: grid; place-items: center; align-content: center; background: var(--surface-soft); color: var(--primary); text-align: center; }
.date-block strong { font-size: 1.1rem; }
.prose { max-width: 820px; background: white; padding: 28px; border-radius: 28px; box-shadow: var(--shadow-soft); }
.public-filters { display: grid; grid-template-columns: 1fr minmax(160px, 240px) auto; gap: 10px; margin-bottom: 18px; }
.content-thumb { width: 100%; height: 170px; object-fit: cover; border-radius: 20px; margin-bottom: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-prose { max-width: none; }
.detail-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 22px; margin-bottom: 18px; }
.subsection-title { margin-top: 34px; }

.site-footer { padding: 42px 0 100px; color: rgba(255,255,255,.74); background: var(--primary-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 28px; }
.site-footer strong { color: white; }
.site-footer a, .site-footer span { display: block; margin-top: 8px; }
.footer-title { color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.bottom-nav { display: none; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; left: 16px; right: 16px; top: 82px; padding: 14px; border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); border: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; }
    .main-nav.is-open { display: flex; }
    .main-nav a { border-radius: 15px; }
    .hero { min-height: auto; }
    .hero-content { grid-template-columns: 1fr; padding: 115px 0 36px; }
    .weather-grid, .quick-grid, .service-grid, .card-grid, .split-grid, .form-layout, .waste-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
    .map-shell { grid-template-columns: 1fr; }
    .map-sidebar { position: static; max-height: none; order: 2; }
    .map-card, .city-map { min-height: 560px; }
}
@media (max-width: 680px) {
    body { padding-bottom: calc(74px + var(--safe-bottom)); }
    .container { width: min(100% - 24px, var(--container)); }
    .brand-text small { display: none; }
    .header-inner { min-height: 66px; }
    .hero h1 { font-size: clamp(3.5rem, 17vw, 5.6rem); }
    .hero-content { padding-top: 96px; }
    .weather-panel { padding: 16px; border-radius: 24px; }
    .weather-grid { grid-template-columns: 1fr; }
    .weather-day, .weather-skeleton { min-height: 116px; }
    .quick-section { transform: translateY(0); padding: 18px 0 0; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .split-grid, .service-grid, .card-grid, .card-grid:not(.three), .form-layout, .waste-layout, .footer-grid, .form-row.two { grid-template-columns: 1fr; }
    .content-section { padding: 38px 0; }
    .page-hero { padding: 58px 0 38px; }
    .map-card, .city-map { min-height: 500px; }
    .timeline-card, .timeline-card.with-image, .detail-layout, .public-filters { grid-template-columns: 1fr; }
    .bottom-nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: 0 18px 48px rgba(14,58,74,.18); }
    .bottom-nav a { display: grid; place-items: center; gap: 3px; min-height: 52px; border-radius: 18px; color: var(--ink-soft); font-size: .68rem; font-weight: 850; }
    .bottom-nav a i { font-size: 1.05rem; }
    .bottom-nav a.is-active { color: white; background: var(--primary); }
    .site-footer { padding-bottom: 126px; }
}


/* --------------------------------------------------------------------------
   Mobile app compact mode v1.1
   Obiettivo: home più densa, card più piccole, meteo e servizi subito visibili.
--------------------------------------------------------------------------- */
.home-quick-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.home-quick-grid .quick-card { min-height: 104px; }

@media (max-width: 680px) {
    :root {
        --shadow: 0 14px 42px rgba(14,58,74,.16);
        --shadow-soft: 0 8px 22px rgba(14,58,74,.10);
        --radius-xl: 22px;
        --radius-lg: 18px;
        --radius-md: 14px;
    }

    body { font-size: 14px; line-height: 1.42; }
    .container { width: min(100% - 18px, var(--container)); }

    .site-header { background: rgba(255,255,255,.92); }
    .header-inner { min-height: 54px; gap: 10px; }
    .brand { gap: 8px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
    .brand-text strong { font-size: .92rem; }
    .nav-toggle { width: 40px; height: 40px; border-radius: 14px; padding: 9px; }
    .main-nav { top: 62px; left: 10px; right: 10px; padding: 10px; border-radius: 20px; }
    .main-nav a { padding: 10px 12px; font-size: .84rem; }

    .hero {
        min-height: auto;
        align-items: start;
        background-position: center top;
    }
    .hero::after {
        height: 88%;
        background: linear-gradient(0deg, rgba(8,28,35,.98) 0%, rgba(8,28,35,.82) 50%, rgba(8,28,35,.30) 100%);
    }
    .hero-overlay {
        background: radial-gradient(circle at 16% 10%, rgba(216,198,178,.18), transparent 34%),
                    linear-gradient(180deg, rgba(8,28,35,.34), rgba(8,28,35,.78));
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0 10px;
        align-items: start;
    }
    .eyebrow {
        margin-bottom: 8px;
        padding: 5px 9px;
        font-size: .63rem;
        letter-spacing: .06em;
    }
    .hero h1 {
        font-size: clamp(2.25rem, 10.5vw, 3.2rem);
        line-height: .92;
        letter-spacing: -.07em;
        margin: 0 0 6px;
        max-width: 92%;
    }
    .hero p {
        font-size: .86rem;
        line-height: 1.28;
        max-width: 94%;
        margin: 0 0 10px;
        color: rgba(255,255,255,.82);
    }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn {
        min-height: 39px;
        padding: 8px 10px;
        font-size: .78rem;
        white-space: nowrap;
        border-radius: 16px;
    }
    .btn i { font-size: .88rem; }

    .weather-panel {
        padding: 11px;
        border-radius: 20px;
        margin-top: 4px;
        background: rgba(255,255,255,.13);
    }
    .panel-head { margin-bottom: 8px; gap: 8px; }
    .panel-head span { font-size: .62rem; letter-spacing: .07em; }
    .panel-head strong { font-size: .94rem; }
    .panel-head i { width: 34px; height: 34px; border-radius: 12px; font-size: .9rem; }
    .weather-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px; }
    .weather-day {
        min-height: 91px;
        padding: 8px;
        border-radius: 15px;
        align-content: start;
        gap: 5px;
    }
    .weather-day strong { font-size: .68rem; line-height: 1.1; }
    .weather-day span { font-size: .64rem; line-height: 1.1; }
    .weather-icon { font-size: 1rem; margin: 3px 0; }
    .weather-temp { font-size: .9rem; line-height: 1.05; margin-top: 2px; }
    .weather-meta { display: none; }
    .weather-source { display: none; }
    .weather-skeleton { height: 91px; border-radius: 15px; }

    .quick-section {
        transform: none;
        padding: 10px 0 0;
    }
    .section-title.compact {
        display: flex;
        justify-content: space-between;
        align-items: end;
        gap: 12px;
        margin-bottom: 8px;
    }
    .section-title.compact span { font-size: .62rem; letter-spacing: .08em; }
    .section-title.compact h2 { font-size: 1.05rem; margin: 0; }
    .quick-grid,
    .home-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 7px;
    }
    .quick-card {
        min-height: 67px;
        padding: 7px 4px;
        gap: 5px;
        border-radius: 16px;
        font-size: .68rem;
        line-height: 1.05;
        box-shadow: 0 6px 16px rgba(14,58,74,.08);
    }
    .quick-card i {
        width: 31px;
        height: 31px;
        border-radius: 11px;
        font-size: .92rem;
    }

    .content-section { padding: 22px 0; }
    .section-title { margin-bottom: 12px; }
    .section-title span { font-size: .68rem; letter-spacing: .09em; }
    .section-title h2 { font-size: 1.35rem; line-height: 1.05; }
    .stack-list { gap: 8px; }
    .list-card {
        grid-template-columns: 48px 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 17px;
    }
    .list-card h3 { font-size: .92rem; margin: 3px 0; line-height: 1.12; }
    .list-card p { font-size: .78rem; line-height: 1.25; }
    .date-pill {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: .68rem;
    }
    .tag { font-size: .58rem; padding: 4px 7px; letter-spacing: .06em; }
    .text-link { margin-top: 10px; font-size: .84rem; }

    .service-card, .article-card {
        min-height: auto;
        padding: 15px;
        border-radius: 19px;
    }
    .service-card i { font-size: 1.25rem; margin-bottom: 9px; }
    .service-card h3, .service-card h2, .article-card h2 { font-size: 1rem; margin-bottom: 5px; }
    .service-card p, .article-card p { font-size: .82rem; line-height: 1.32; }

    .page-hero { padding: 32px 0 24px; }
    .page-hero.small h1 { font-size: 2rem; letter-spacing: -.06em; margin-bottom: 8px; }
    .page-hero.small p { font-size: .88rem; line-height: 1.35; }

    .map-shell { padding: 12px 0 82px; gap: 10px; }
    .map-sidebar {
        order: 0;
        padding: 10px;
        border-radius: 18px;
        max-height: none;
    }
    .map-search label { font-size: .8rem; gap: 6px; }
    input, textarea, select { border-radius: 13px; padding: 10px 11px; font-size: .88rem; }
    .filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin: 10px -10px 10px;
        padding: 0 10px 4px;
        scrollbar-width: none;
    }
    .filter-group::-webkit-scrollbar { display: none; }
    .filter-chip {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: .76rem;
        white-space: nowrap;
    }
    .map-results {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .map-results::-webkit-scrollbar { display: none; }
    .result-item { min-width: 180px; padding: 9px; border-radius: 15px; }
    .result-item strong { font-size: .82rem; }
    .result-item small { font-size: .72rem; }
    .map-card, .city-map {
        min-height: 58svh;
        border-radius: 20px;
    }
    .custom-marker {
    --marker-color: #0E3A4A; width: 30px; height: 30px; border-radius: 11px 11px 11px 4px; }
    .custom-marker i { font-size: .78rem; }

    .smart-form, .waste-card, .info-panel, .prose {
        padding: 15px;
        border-radius: 20px;
    }
    .smart-form { gap: 11px; }
    .location-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .location-toolbar .btn {
        width: 100%;
    }
    .report-map {
        min-height: 310px;
        border-radius: 18px;
    }
    .notice-card { padding: 10px 12px; border-radius: 15px; font-size: .82rem; }
    .today-waste { margin: 10px 0; padding: 15px; border-radius: 19px; }
    .today-waste strong { font-size: 1.25rem; }
    .week-row { padding: 10px 11px; border-radius: 14px; font-size: .82rem; }
    .call-card strong { font-size: 1.45rem; }
    .timeline-card { gap: 10px; padding: 13px; border-radius: 20px; }
    .date-block { min-height: 58px; border-radius: 16px; }

    .bottom-nav {
        left: 8px;
        right: 8px;
        bottom: calc(8px + var(--safe-bottom));
        padding: 5px;
        border-radius: 21px;
    }
    .bottom-nav a {
        min-height: 49px;
        border-radius: 16px;
        font-size: .62rem;
    }
    .bottom-nav a i { font-size: .98rem; }
    .site-footer { padding: 28px 0 116px; font-size: .82rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 2.05rem; }
    .hero p { font-size: .8rem; }
    .btn { font-size: .72rem; padding-inline: 7px; }
    .quick-card { min-height: 62px; font-size: .62rem; }
    .quick-card i { width: 28px; height: 28px; font-size: .84rem; }
    .weather-day { padding: 7px 5px; }
    .weather-temp { font-size: .82rem; }
}


/* --------------------------------------------------------------------------
   Brand logo assets v1.2
   -------------------------------------------------------------------------- */
.brand-with-logo {
    min-width: 0;
}
.brand-logo {
    height: 54px;
    width: auto;
    max-width: 246px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(14,58,74,.13);
}
.site-header.is-scrolled .brand-logo {
    height: 50px;
}

@media (max-width: 680px) {
    .header-inner { min-height: 60px; }
    .brand-logo {
        height: 44px;
        max-width: 172px;
        border-radius: 13px;
        box-shadow: 0 8px 18px rgba(14,58,74,.12);
    }
    .site-header.is-scrolled .brand-logo { height: 42px; }
}


/* --------------------------------------------------------------------------
   Homepage citizen redesign v1.5
   -------------------------------------------------------------------------- */
.home-page {
    --home-bg: #f6f7f4;
    --home-line: rgba(18, 31, 37, .12);
    --home-terracotta: #a94f3d;
    --home-blue: #2364a3;
    --home-leaf: #2f7a5f;
    --home-amber: #b98728;
    background: linear-gradient(180deg, #f9faf8 0%, var(--home-bg) 58%, #eef3f1 100%);
}
.home-page .site-header {
    background: rgba(250, 251, 249, .9);
}
.home-page .hero {
    min-height: 720px;
    min-height: min(820px, 86svh);
    align-items: center;
    background-position: center 42%;
}
.home-page .hero::after {
    inset: 0;
    height: auto;
    background:
        linear-gradient(90deg, rgba(4, 22, 28, .91) 0%, rgba(4, 22, 28, .72) 40%, rgba(4, 22, 28, .34) 100%),
        linear-gradient(0deg, rgba(4, 22, 28, .72) 0%, rgba(4, 22, 28, .08) 50%, rgba(4, 22, 28, .2) 100%);
}
.home-page .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 22, 28, .22), rgba(4, 22, 28, .52));
}
.home-hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
    gap: 42px;
    align-items: center;
    padding: 122px 0 74px;
}
.home-page .hero h1,
.home-page .section-title h2,
.home-page .list-card h3,
.home-page .service-card h3,
.home-today-card strong,
.home-page .panel-head strong {
    letter-spacing: 0;
}
.home-page .hero h1 {
    max-width: 740px;
    margin: 0 0 18px;
    font-size: 5.8rem;
    line-height: .95;
    text-wrap: balance;
}
.home-page .hero p {
    max-width: 640px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.18rem;
    line-height: 1.55;
}
.home-eyebrow {
    border-radius: 8px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    letter-spacing: 0;
    text-transform: none;
}
.home-page .btn {
    border-radius: 8px;
    min-height: 50px;
    white-space: normal;
}
.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
}
.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.home-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
    font-size: .84rem;
}
.home-hero-tools {
    display: grid;
    gap: 12px;
    align-self: stretch;
    align-content: center;
}
.home-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.home-today-card {
    display: grid;
    align-content: space-between;
    gap: 9px;
    min-height: 146px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: white;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.home-today-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .34);
}
.home-today-card-primary {
    min-height: 168px;
    background: rgba(18, 91, 75, .75);
}
.home-today-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.home-today-card strong {
    display: block;
    color: white;
    font-size: 1.25rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.home-today-card-primary strong {
    font-size: 1.65rem;
}
.home-today-card small {
    color: rgba(255, 255, 255, .76);
    font-weight: 750;
    line-height: 1.35;
}
.home-weather-panel {
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}
.home-weather-panel .panel-head {
    margin-bottom: 14px;
}
.home-weather-panel .weather-day,
.home-weather-panel .weather-skeleton {
    border-radius: 8px;
}
.home-quick-section {
    transform: translateY(-34px);
    margin-bottom: -18px;
}
.home-page .section-title span {
    letter-spacing: 0;
    color: var(--home-terracotta);
}
.home-page .section-title h2 {
    font-size: 2.35rem;
    line-height: 1.08;
}
.home-quick-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}
.home-quick-grid .quick-card {
    min-height: 102px;
    padding: 14px 10px;
    border-radius: 8px;
    color: #162930;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(18, 31, 37, .08);
}
.home-quick-grid .quick-card i {
    border-radius: 8px;
    background: rgba(35, 100, 163, .1);
    color: var(--home-blue);
}
.home-quick-grid .quick-card:nth-child(2n) i {
    background: rgba(47, 122, 95, .11);
    color: var(--home-leaf);
}
.home-quick-grid .quick-card:nth-child(3n) i {
    background: rgba(169, 79, 61, .11);
    color: var(--home-terracotta);
}
.home-quick-grid .quick-card:nth-child(4n) i {
    background: rgba(185, 135, 40, .14);
    color: var(--home-amber);
}
.home-updates-section {
    padding-top: 42px;
}
.home-updates-section .split-grid {
    gap: 28px;
}
.home-page .list-card {
    border-radius: 8px;
    border-color: var(--home-line);
    box-shadow: 0 12px 30px rgba(18, 31, 37, .06);
}
.home-page .list-card h3 {
    line-height: 1.22;
}
.home-page .date-pill,
.home-page .tag {
    border-radius: 8px;
    letter-spacing: 0;
}
.home-page .tag {
    text-transform: none;
}
.home-services-section {
    background: #eef3f1;
}
.home-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-page .service-card {
    min-height: 226px;
    border-radius: 8px;
    border-color: var(--home-line);
    box-shadow: 0 12px 32px rgba(18, 31, 37, .07);
}
.home-page .service-card.highlight {
    background: linear-gradient(135deg, #124f43, #2364a3);
}
.home-page .service-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--home-terracotta);
    background: rgba(169, 79, 61, .1);
}
.home-page .service-card.highlight i {
    color: white;
    background: rgba(255, 255, 255, .16);
}

@media (max-width: 980px) {
    .home-page .hero {
        min-height: auto;
        align-items: end;
    }
    .home-hero-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 110px 0 40px;
    }
    .home-page .hero h1 {
        font-size: 4.2rem;
    }
    .home-hero-tools {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .home-weather-panel {
        grid-column: 1 / -1;
    }
    .home-quick-grid,
    .home-service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .home-page {
        background: #f7f8f5;
    }
    .home-page .hero {
        background-position: center top;
    }
    .home-page .hero::after {
        background:
            linear-gradient(180deg, rgba(4, 22, 28, .58) 0%, rgba(4, 22, 28, .86) 42%, rgba(4, 22, 28, .95) 100%);
    }
    .home-page .hero-overlay {
        background: rgba(4, 22, 28, .18);
    }
    .home-hero-content {
        gap: 12px;
        padding: 22px 0 18px;
    }
    .home-page .hero h1 {
        max-width: 100%;
        margin-bottom: 8px;
        font-size: 2.55rem;
        line-height: 1;
    }
    .home-page .hero p {
        max-width: 100%;
        margin-bottom: 12px;
        font-size: .92rem;
        line-height: 1.42;
    }
    .home-page .hero-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .home-page .hero-actions .btn:first-child {
        grid-column: 1 / -1;
    }
    .home-page .btn {
        min-height: 42px;
        padding: 9px 10px;
        font-size: .82rem;
    }
    .home-hero-meta {
        display: none;
    }
    .home-hero-tools {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .home-side-grid {
        gap: 8px;
    }
    .home-today-card,
    .home-today-card-primary {
        min-height: 96px;
        padding: 11px;
        box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
    }
    .home-today-card span {
        font-size: .62rem;
    }
    .home-today-card strong,
    .home-today-card-primary strong {
        font-size: .96rem;
        line-height: 1.12;
    }
    .home-today-card small {
        font-size: .69rem;
    }
    .home-weather-panel {
        padding: 11px;
    }
    .home-weather-panel .weather-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .home-quick-section {
        transform: none;
        margin-bottom: 0;
        padding-top: 12px;
    }
    .home-page .section-title.compact {
        align-items: start;
    }
    .home-page .section-title h2 {
        font-size: 1.35rem;
    }
    .home-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 7px;
    }
    .home-quick-grid .quick-card {
        min-height: 70px;
        padding: 7px 4px;
        border-radius: 8px;
        font-size: .68rem;
    }
    .home-quick-grid .quick-card i {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .home-updates-section {
        padding-top: 24px;
    }
    .home-page .list-card {
        border-radius: 8px;
    }
    .home-page .date-pill {
        border-radius: 8px;
    }
    .home-services-section {
        padding-top: 26px;
    }
    .home-service-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .home-page .service-card {
        min-height: auto;
        border-radius: 8px;
    }
}

@media (max-width: 380px) {
    .home-page .hero h1 {
        font-size: 2.2rem;
    }
    .home-page .hero-actions {
        grid-template-columns: 1fr;
    }
    .home-page .hero-actions .btn:first-child {
        grid-column: auto;
    }
    .home-side-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage tourism direction v1.6 */
.home-page .site-header {
    position: fixed;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}
.home-page .site-header.is-scrolled {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.home-page .hero {
    min-height: 88svh;
    align-items: end;
}
.home-page .hero::after {
    background:
        linear-gradient(90deg, rgba(5, 21, 27, .86) 0%, rgba(5, 21, 27, .54) 48%, rgba(5, 21, 27, .2) 100%),
        linear-gradient(0deg, rgba(5, 21, 27, .72) 0%, rgba(5, 21, 27, .12) 58%, rgba(5, 21, 27, .18) 100%);
}
.home-page .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 21, 27, .08), rgba(5, 21, 27, .5));
}
.home-hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: end;
    padding: 84px 0 70px;
}
.home-page .hero h1 {
    max-width: 820px;
    font-size: 5.35rem;
    line-height: 1.1;
}
.home-page .hero p {
    max-width: 650px;
    font-size: 1.16rem;
}
.home-page .hero-actions {
    max-width: 690px;
}
.home-page .home-weather-panel {
    align-self: end;
}
.home-weather-panel .weather-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-places-section {
    padding-top: 36px;
}
.home-place-grid {
    align-items: stretch;
}
.home-place-card {
    min-height: 230px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88)),
        var(--surface);
}
.home-place-card h2 {
    margin: 12px 0 10px;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0;
}
.home-place-card small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 850;
}
.home-services-section {
    margin-top: 16px;
}
.home-services-section .service-card p {
    font-weight: 650;
}

@media (max-width: 980px) {
    .home-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 86px 0 46px;
    }
    .home-page .hero h1 {
        font-size: 4rem;
    }
    .home-page .home-weather-panel {
        width: 100%;
    }
    .home-weather-panel .weather-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .home-page .site-header {
        transform: translateY(-115%);
    }
    .home-page .site-header.is-scrolled {
        transform: translateY(0);
    }
    .home-page .hero {
        min-height: 88svh;
    }
    .home-hero-content {
        padding: 24px 0 22px;
        gap: 12px;
    }
    .home-page .hero h1 {
        font-size: 2.7rem;
        line-height: 1.1;
    }
    .home-page .hero p {
        font-size: .94rem;
    }
    .home-page .hero-actions {
        grid-template-columns: 1fr 1fr;
    }
    .home-page .hero-actions .btn:first-child {
        grid-column: 1 / -1;
    }
    .home-page .home-weather-panel {
        padding: 12px;
    }
    .home-weather-panel .weather-grid {
        gap: 7px;
    }
    .home-place-card {
        min-height: auto;
    }
}

@media (max-width: 380px) {
    .home-page .hero {
        min-height: auto;
    }
    .home-page .hero h1 {
        font-size: 2.25rem;
    }
    .home-page .hero-actions {
        grid-template-columns: 1fr;
    }
    .home-page .hero-actions .btn:first-child {
        grid-column: auto;
    }
}


/* --------------------------------------------------------------------------
   Admin area v1.3
   -------------------------------------------------------------------------- */
.admin-body { background: #f4f7f9; color: var(--ink); padding-bottom: 30px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 18px; background: #0b2f3c; color: white; }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 50; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(14px, 3vw, 34px); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(14,58,74,.08); }
.admin-topbar strong, .admin-topbar small { display: block; }
.admin-topbar small { color: var(--muted); margin-top: 3px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-topbar-actions form { margin: 0; }
.admin-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--primary); }
.admin-sidebar .admin-brand { color: white; margin-bottom: 18px; }
.admin-brand img { height: 44px; width: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(14,58,74,.1); }
.admin-nav { display: grid; gap: 18px; }
.admin-nav-group { display: grid; gap: 6px; }
.admin-nav-group > span { color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 900; padding: 0 10px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-weight: 850; font-size: .9rem; color: rgba(255,255,255,.76); }
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,.12); color: white; }
.admin-nav a.danger { color: #b42318; }
.admin-main { width: min(1180px, calc(100% - 24px)); margin: 22px auto; }
.admin-hero, .admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-hero { padding: 24px; border-radius: 28px; background: linear-gradient(135deg, #083344, #0ea5e9); color: white; box-shadow: 0 20px 45px rgba(14,58,74,.18); }
.admin-hero h1, .admin-page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.admin-hero p, .admin-page-head p { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.admin-page-head p { color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.admin-stats article, .admin-panel, .admin-table-card, .admin-login-card { background: white; border: 1px solid rgba(14,58,74,.08); border-radius: 24px; box-shadow: 0 18px 40px rgba(14,58,74,.08); }
.admin-stats article { padding: 20px; }
.admin-stats strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1; }
.admin-stats span { color: var(--muted); font-weight: 800; font-size: .88rem; }
.admin-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-panel { padding: 20px; }
.admin-panel h2 { margin-top: 0; }
.admin-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.admin-checklist li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; }
.admin-checklist i.fa-check { color: #16a34a; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 0; border-radius: 999px; background: #edf3f6; color: var(--primary); font-weight: 900; cursor: pointer; text-decoration: none; }
.admin-btn.primary { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(14,58,74,.16); }
.admin-btn.small { min-height: 34px; padding: 7px 10px; font-size: .78rem; }
.admin-btn.danger, .admin-btn.small.danger { background: #fee4e2; color: #b42318; }
.admin-alert { padding: 13px 15px; border-radius: 18px; margin-bottom: 14px; font-weight: 800; background: #e0f2fe; color: #075985; border: 1px solid rgba(7,89,133,.12); }
.admin-alert.success { background: #dcfce7; color: #166534; }
.admin-alert.error { background: #fee4e2; color: #b42318; }
.admin-alert.warning { background: #fff7ed; color: #9a3412; }
.admin-login-card { width: min(460px, 100%); margin: 5vh auto; padding: 24px; text-align: center; }
.admin-login-card img { width: min(260px, 100%); border-radius: 18px; margin-bottom: 8px; }
.admin-form { display: grid; gap: 14px; }
.admin-form.compact { margin-top: 16px; text-align: left; }
.admin-form label { display: grid; gap: 7px; font-weight: 900; color: var(--primary); }
.admin-form input, .admin-form select, .admin-form textarea, .admin-filters input, .admin-filters select { width: 100%; border: 1px solid rgba(14,58,74,.15); border-radius: 16px; padding: 12px 13px; font: inherit; background: #fff; color: var(--ink); }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-line { align-content: center; grid-template-columns: auto 1fr !important; display: flex !important; flex-direction: row; align-items: center; gap: 10px !important; padding: 12px; border-radius: 16px; background: #f7fafc; }
.check-line input { width: auto; }
.admin-help { padding: 12px 14px; border-radius: 16px; background: #f7fafc; color: var(--muted); font-weight: 700; }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-table-card { overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid rgba(14,58,74,.08); text-align: left; vertical-align: middle; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fbfc; }
.admin-table td small { display: block; color: var(--muted); margin-top: 4px; }
.admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-actions form { margin: 0; }
.admin-color-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 3px rgba(14,58,74,.08); }
.pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 900; background: #eef2f7; color: var(--muted); }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.gold { background: #fff7d6; color: #8a5a00; }
.pill.muted { background: #f2f4f7; color: #667085; }
.admin-filters { display: grid; grid-template-columns: 1fr minmax(180px, 260px) auto; gap: 10px; margin-bottom: 14px; }
.admin-filters.single-action { grid-template-columns: minmax(220px, 360px) auto; justify-content: start; }
.admin-image-preview { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 18px; background: #f8fbfc; border: 1px solid rgba(14,58,74,.08); }
.admin-image-preview img { width: 150px; height: 96px; object-fit: cover; border-radius: 14px; }
@media (max-width: 760px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; height: auto; padding: 12px; }
    .admin-nav { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; }
    .admin-nav-group { display: flex; gap: 6px; flex: 0 0 auto; }
    .admin-nav-group > span { display: none; }
    .admin-nav a { white-space: nowrap; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .admin-hero, .admin-page-head { align-items: flex-start; flex-direction: column; }
    .admin-stats, .admin-grid.two, .form-grid.two, .admin-filters { grid-template-columns: 1fr; }
    .admin-table-card { overflow-x: auto; }
    .admin-table { min-width: 760px; }
}

.admin-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.admin-btn.light{background:rgba(255,255,255,.16);color:white;border:1px solid rgba(255,255,255,.25)}.admin-inline-form{display:grid;gap:8px;min-width:210px}.admin-inline-form select{width:100%;border:1px solid rgba(14,58,74,.15);border-radius:12px;padding:9px 10px;background:#fff}.check-line.mini{font-size:.8rem;color:var(--muted);font-weight:800;display:flex;align-items:center;gap:7px}
