:root {
    --bg: #f5f7fb;
    --bg-deep: #e9edf5;
    --panel: #ffffff;
    --panel-soft: #f7f9fc;
    --panel-dark: #263b72;
    --text: #21242a;
    --muted: #687180;
    --blue: #2f4d8f;
    --blue-soft: #e8eefb;
    --gold: #d2a73d;
    --gold-strong: #a77a21;
    --gold-soft: #f5e8bf;
    --green: #2eb45f;
    --line: rgba(38, 59, 114, 0.1);
    --line-strong: rgba(210, 167, 61, 0.34);
    --warning: #b25b33;
    --shadow-lg: 0 24px 54px rgba(49, 60, 88, 0.12);
    --shadow-md: 0 14px 34px rgba(49, 60, 88, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(210, 167, 61, 0.12), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: "Work Sans", sans-serif;
}

.shell {
    width: min(1500px, calc(100% - 32px));
    margin: 20px auto 40px;
    animation: page-enter 380ms ease-out both;
}

.site-header,
.service-banner,
.panel,
.stat-card,
.job-card,
.appointment-card,
.technician-row,
.alert-banner {
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    height: 58px;
    min-width: 0;
    flex: 0 0 auto;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 100%;
}

.hotline-box {
    display: grid;
    justify-items: center;
    gap: 0;
    min-width: 190px;
}

.hotline-label {
    color: #36415f;
    font-size: 10px;
    text-transform: uppercase;
}

.hotline-number {
    color: #111820;
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 600;
    text-decoration: none;
}

.hotline-meta {
    color: var(--gold-strong);
    font-size: 11px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ghost-button,
.action-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.ghost-button,
.secondary-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: #233048;
}

.light-ghost {
    border-color: var(--line);
    background: #ffffff;
    color: #243249;
}

.action-button {
    border: 1px solid rgba(46, 180, 95, 0.4);
    background: var(--green);
    color: #ffffff;
}

.ghost-button:hover,
.action-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.service-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 360px;
    gap: 18px;
    margin-bottom: 18px;
    padding: 28px 26px;
    background:
        linear-gradient(180deg, rgba(232, 238, 251, 0.9), rgba(255, 255, 255, 0.82)),
        var(--panel);
}

.service-copy {
    max-width: 860px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
.stat-value,
.pill,
.status-chip,
.job-id {
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    color: #111721;
    font-family: "Work Sans", sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 300;
    line-height: 1.06;
}

.subline,
.muted,
.map-note,
.empty-state {
    color: var(--muted);
}

.service-copy .subline {
    margin-top: 10px;
    max-width: 760px;
    font-size: 18px;
}

.service-points {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.service-points li {
    position: relative;
    padding-left: 34px;
    color: #121822;
    font-size: 17px;
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--gold);
}

.service-points li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 12px;
    height: 6px;
    border-left: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    transform: rotate(-45deg);
}

.service-panel {
    align-self: start;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f0cb5f 0%, #e9c34e 100%);
    color: #37415c;
}

.service-panel-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.service-panel-grid span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.service-panel-grid strong {
    color: #243249;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    line-height: 0.98;
}

.alert-banner {
    margin-bottom: 18px;
    padding: 18px 22px;
    background:
        linear-gradient(90deg, rgba(178, 91, 51, 0.12), rgba(255, 255, 255, 0.94)),
        var(--panel);
}

.alert-banner strong {
    display: block;
    margin-bottom: 6px;
    color: #8a4120;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.panel-kicker,
.stat-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stat-card {
    min-height: 118px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98)),
        var(--panel);
}

.stat-card.accent {
    background:
        linear-gradient(135deg, rgba(232, 238, 251, 1), rgba(245, 232, 191, 0.9)),
        var(--panel);
    color: var(--blue);
    border-color: rgba(210, 167, 61, 0.28);
}

.stat-value {
    color: var(--blue);
    font-size: 42px;
    line-height: 0.95;
    text-transform: uppercase;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 320px;
    gap: 16px;
}

.panel {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98)),
        var(--panel);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-header.compact {
    margin-top: 20px;
}

.panel-header h2 {
    color: #1f2740;
    font-size: 46px;
    line-height: 0.94;
    text-transform: uppercase;
}

.filters {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
}

.technician-list,
.appointment-list,
.job-list {
    display: grid;
    gap: 12px;
}

.technician-row,
.appointment-card,
.job-card {
    padding: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98)),
        var(--panel);
}

.pill,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9edca, var(--gold-soft));
    border: 1px solid rgba(210, 167, 61, 0.24);
    color: var(--gold-strong);
    font-size: 19px;
    text-transform: uppercase;
}

.map-frame {
    height: 360px;
    border: 1px solid rgba(210, 167, 61, 0.24);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
}

.job-id {
    color: var(--blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.job-card h3 {
    color: #1f2740;
    font-size: 34px;
    line-height: 0.98;
    text-transform: uppercase;
}

.job-detail,
.job-address {
    margin-bottom: 8px;
}

.job-address {
    color: var(--muted);
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.job-meta dt {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 3px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-meta dd {
    margin: 0;
    font-weight: 600;
}

.job-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.appointment-card strong,
.technician-row strong {
    display: block;
    margin-bottom: 6px;
    color: #1f2740;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px dashed rgba(210, 167, 61, 0.34);
}

.leaflet-control-zoom a {
    color: var(--panel-dark);
}

.hidden {
    display: none !important;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .service-banner {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .panel-header {
        flex-direction: column;
        align-items: start;
    }

    .site-header {
        padding: 10px 12px;
    }

    .hotline-box {
        justify-items: start;
        min-width: 0;
    }

    .brand-logo {
        height: 52px;
    }

    h1 {
        font-size: clamp(28px, 10vw, 40px);
    }

    .panel-header h2 {
        font-size: 38px;
    }

    .job-meta {
        grid-template-columns: 1fr;
    }
}
