:root {
    --tol-bg: #f5f7f0;
    --tol-card-bg: #ffffff;
    --tol-green-dark: #1a3a1a;
    --tol-green-mid: #2d6b2d;
    --tol-green-light: #4a9e4a;
    --tol-green-pale: #e8f0e8;
    --tol-text: #2d3b2d;
    --tol-text-muted: #6b7b6b;
    --tol-accent-warm: #8b6914;
    --tol-accent-red: #9b2d2d;
    --tol-border: #d0ddd0;
}

/* --- Reset: override Genesis/Metro Pro --- */

body.tol-leaflet {
    margin: 0;
    padding: 0;
    background: var(--tol-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--tol-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.tol-leaflet * {
    box-sizing: border-box;
}

body.tol-leaflet .site-container,
body.tol-leaflet .site-header,
body.tol-leaflet .site-footer,
body.tol-leaflet .nav-primary,
body.tol-leaflet .nav-secondary,
body.tol-leaflet .sidebar,
body.tol-leaflet .breadcrumb,
body.tol-leaflet .footer-widgets,
body.tol-leaflet #genesis-responsive-slider,
body.tol-leaflet .site-inner {
    display: none !important;
}

/* --- Header --- */

.tol-header {
    background: var(--tol-green-dark);
    color: #f5f7f0;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}

.tol-logo {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tol-green-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.tol-logo:hover {
    color: #fff;
}

.tol-city-name {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.tol-tagline {
    font-size: 0.95rem;
    color: var(--tol-green-pale);
    font-style: italic;
    margin: 0;
    opacity: 0.85;
}

.tol-last-updated {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--tol-green-pale);
    letter-spacing: 0.02em;
}

/* --- Dashboard --- */

.tol-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --- Cards --- */

.tol-card {
    background: var(--tol-card-bg);
    border: 1px solid var(--tol-border);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.tol-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.875rem 1.25rem 0.625rem;
    border-bottom: 2px solid var(--tol-green-pale);
}

.tol-card-header h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tol-green-dark);
    margin: 0;
    line-height: 1.3;
}

.tol-updated {
    font-size: 0.7rem;
    color: var(--tol-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

.tol-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.tol-card-body p {
    margin: 0 0 0.5rem;
}

.tol-card-body p:last-child {
    margin-bottom: 0;
}

/* --- Stale indicator --- */

.tol-stale {
    opacity: 0.75;
}

.tol-stale-icon {
    font-size: 0.8rem;
}

/* --- AQI section --- */

.tol-aqi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.tol-aqi-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.tol-aqi-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.tol-aqi-good            { background: #d4edda; color: #155724; }
.tol-aqi-moderate         { background: #fff3cd; color: #856404; }
.tol-aqi-unhealthy-sg     { background: #ffe0b2; color: #7b3f00; }
.tol-aqi-unhealthy        { background: #f8d7da; color: #721c24; }
.tol-aqi-very-unhealthy   { background: #d6a1c4; color: #4a0032; }
.tol-aqi-hazardous        { background: #721c24; color: #fff; }

.tol-guidance {
    font-size: 0.9rem;
    color: var(--tol-text-muted);
    font-style: italic;
}

/* --- Weather section --- */

.tol-weather-current {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tol-temp {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tol-green-dark);
    line-height: 1;
}

.tol-condition {
    font-size: 1rem;
    color: var(--tol-text);
}

.tol-humidity {
    font-size: 0.85rem;
    color: var(--tol-text-muted);
}

.tol-season-note {
    font-size: 0.9rem;
    color: var(--tol-green-mid);
    font-weight: 500;
}

/* --- Forecast lists (shared: AQI + weather) --- */

.tol-forecast h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tol-text-muted);
    margin: 0.75rem 0 0.5rem;
}

.tol-forecast-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-forecast-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
    font-size: 0.9rem;
}

.tol-forecast-list li:last-child {
    border-bottom: none;
}

.tol-forecast-date {
    width: 5.5rem;
    flex-shrink: 0;
    color: var(--tol-text-muted);
    font-size: 0.85rem;
}

.tol-forecast-val {
    font-weight: 600;
    min-width: 3rem;
}

.tol-forecast-cat {
    color: var(--tol-text-muted);
    font-size: 0.85rem;
}

/* --- Exchange rate --- */

.tol-exchange-rate {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tol-rate-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tol-green-dark);
}

.tol-rate-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.tol-rate-up   { color: var(--tol-green-mid); }
.tol-rate-down { color: var(--tol-accent-red); }

.tol-trend-label {
    font-size: 0.8rem;
    color: var(--tol-text-muted);
}

/* --- Subheadings (shared) --- */

.tol-card-body h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tol-text-muted);
    margin: 0.75rem 0 0.5rem;
}

/* --- Airport --- */

.tol-airport-name {
    font-size: 1.05rem;
    margin-bottom: 0.5rem !important;
}

.tol-transport-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-transport-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-transport-item:last-child {
    border-bottom: none;
}

.tol-transport-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.tol-transport-cost {
    font-weight: 600;
    color: var(--tol-green-dark);
}

.tol-transport-time {
    font-size: 0.85rem;
    color: var(--tol-text-muted);
}

.tol-transport-item p {
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

.tol-tip {
    font-size: 0.85rem;
    color: var(--tol-green-mid);
    font-style: italic;
    border-left: 3px solid var(--tol-green-pale);
    padding-left: 0.75rem;
    margin-top: 0.75rem;
}

/* --- Deals --- */

.tol-deals-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-deals-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
    font-size: 0.9rem;
}

.tol-deals-list li:last-child {
    border-bottom: none;
}

.tol-deal-type {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--tol-text-muted);
    margin-left: 0.5rem;
}

/* --- Crime --- */

.tol-crime-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-crime-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-crime-item:last-child {
    border-bottom: none;
}

.tol-crime-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--tol-text-muted);
    margin-right: 0.5rem;
}

.tol-crime-item p {
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

.tol-crime-context {
    font-size: 0.9rem;
    color: var(--tol-text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* --- Buzz --- */

.tol-buzz-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-buzz-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-buzz-item:last-child {
    border-bottom: none;
}

.tol-buzz-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tol-buzz-platform {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: var(--tol-green-pale);
    color: var(--tol-green-mid);
    flex-shrink: 0;
}

.tol-buzz-item p {
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

.tol-buzz-engagement {
    font-size: 0.8rem;
    color: var(--tol-text-muted);
}

/* --- News --- */

.tol-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-news-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-news-item:last-child {
    border-bottom: none;
}

.tol-news-item p {
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

/* --- Economy --- */

.tol-employers ul {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
}

.tol-employers li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* --- Politics --- */

.tol-key-figures ul {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
}

.tol-key-figures li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.tol-hot-issues p {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-hot-issues p:last-child {
    border-bottom: none;
}

/* --- Transit --- */

.tol-disruption-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--tol-border);
}

.tol-disruption-item.tol-severity-high {
    border-left-color: var(--tol-accent-red);
    background: #fdf2f2;
}

.tol-disruption-item.tol-severity-medium {
    border-left-color: var(--tol-accent-warm);
    background: #fef9f0;
}

.tol-disruption-item p {
    font-size: 0.9rem;
}

/* --- Events --- */

.tol-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-event-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-event-item:last-child {
    border-bottom: none;
}

.tol-event-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--tol-text-muted);
    margin-right: 0.5rem;
    font-weight: 500;
}

.tol-event-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.tol-event-desc {
    font-size: 0.85rem;
    color: var(--tol-text-muted);
    margin: 0.2rem 0 0;
}

/* --- Scams --- */

.tol-scam-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-scam-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-scam-item:last-child {
    border-bottom: none;
}

.tol-scam-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tol-severity-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.tol-severity-badge.tol-severity-high {
    background: #f8d7da;
    color: var(--tol-accent-red);
}

.tol-severity-badge.tol-severity-medium {
    background: #fff3cd;
    color: var(--tol-accent-warm);
}

.tol-severity-badge.tol-severity-low {
    background: var(--tol-green-pale);
    color: var(--tol-green-mid);
}

.tol-scam-item p {
    font-size: 0.9rem;
}

/* --- Fares --- */

.tol-fares-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tol-fare-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
    font-size: 0.9rem;
}

.tol-fare-item:last-child {
    border-bottom: none;
}

.tol-fare-origin {
    flex: 1;
    font-weight: 500;
}

.tol-fare-price {
    font-weight: 700;
    color: var(--tol-green-dark);
}

.tol-fare-airline {
    font-size: 0.8rem;
    color: var(--tol-text-muted);
    min-width: 4rem;
}

.tol-fare-trend {
    font-weight: 600;
    font-size: 0.85rem;
}

.tol-fare-note {
    font-size: 0.8rem;
    color: var(--tol-text-muted);
    margin: 0 0 0.5rem;
    padding-left: 0.5rem;
}

.tol-fares-summary {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
}

/* --- Safety --- */

.tol-safety-level {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.tol-safety-exercise-normal-precautions {
    background: #d4edda;
    color: #155724;
}

.tol-safety-exercise-increased-caution {
    background: #fff3cd;
    color: #856404;
}

.tol-safety-reconsider-travel {
    background: #ffe0b2;
    color: #7b3f00;
}

.tol-safety-do-not-travel {
    background: #f8d7da;
    color: #721c24;
}

.tol-advisory-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--tol-green-pale);
}

.tol-advisory-item:last-child {
    border-bottom: none;
}

.tol-advisory-item p {
    font-size: 0.9rem;
}

/* --- Shared utility --- */

.tol-detail {
    font-size: 0.9rem;
}

.tol-source-note {
    font-size: 0.8rem;
    color: var(--tol-text-muted);
}

.tol-empty {
    font-size: 0.9rem;
    color: var(--tol-text-muted);
    font-style: italic;
}

.tol-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--tol-text-muted);
    font-size: 1.1rem;
}

.tol-no-renderer {
    font-size: 0.85rem;
    color: var(--tol-text-muted);
    font-style: italic;
}

/* --- Footer --- */

.tol-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--tol-text-muted);
    border-top: 1px solid var(--tol-border);
}

.tol-footer a {
    color: var(--tol-green-mid);
    text-decoration: none;
}

.tol-footer a:hover {
    text-decoration: underline;
}

.tol-legal {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .tol-header {
        padding: 2rem 1rem 1.75rem;
    }

    .tol-city-name {
        font-size: 2rem;
    }

    .tol-dashboard {
        padding: 1rem;
    }

    .tol-card-body {
        padding: 0.875rem 1rem 1rem;
    }

    .tol-weather-current {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tol-fare-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tol-exchange-rate {
        flex-direction: column;
        gap: 0.25rem;
    }
}
