:root {
    --ink: #14212e;
    --muted: #5c6c78;
    --line: #d7e1e7;
    --paper: #f6f8f7;
    --white: #ffffff;
    --pine: #0f4a3d;
    --fjord: #1f6f8b;
    --mist: #e7eef1;
    --sun: #d99b3d;
    --shadow: 0 22px 60px rgba(20, 33, 46, 0.14);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
}

a {
    color: inherit;
}

.hero {
    min-height: 88vh;
    display: grid;
    grid-template-rows: auto 1fr;
    background:
        linear-gradient(90deg, rgba(7, 20, 31, 0.78), rgba(7, 20, 31, 0.32) 54%, rgba(7, 20, 31, 0.12)),
        url("assets/norway-road-hero.png") center / cover no-repeat;
    color: var(--white);
}

.topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 750;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    align-self: center;
    padding-bottom: 8vh;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--sun);
}

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

h1 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(2.6rem, 7vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.05;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.intro {
    max-width: 620px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions,
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button,
.filter {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.button.primary,
.filter.active {
    background: var(--sun);
    color: #1d160b;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-panel {
    margin: -54px 0 76px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quick-panel div {
    padding: 22px;
    border-right: 1px solid var(--line);
}

.quick-panel div:last-child {
    border-right: 0;
}

.label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.quick-panel strong {
    font-size: 1.55rem;
}

.section {
    margin-bottom: 84px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.subtle {
    color: var(--muted);
    line-height: 1.65;
}

.route-grid,
.camera-grid,
.hotel-grid,
.plan-grid,
.ferry-grid,
.rest-grid,
.cost-grid,
.weather-grid,
.charge-grid,
.tesla-grid,
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.route-card,
.camera-card,
.hotel-card,
.plan-card,
.ferry-card,
.rest-card,
.cost-card,
.weather-card,
.charge-card,
.info-panel,
.strategy-card,
.checklist {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20, 33, 46, 0.08);
}

.route-card,
.camera-card,
.plan-card,
.ferry-card,
.rest-card,
.cost-card,
.weather-card,
.charge-card,
.info-panel,
.strategy-card {
    padding: 22px;
}

.hotel-card {
    overflow: hidden;
}

.route-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--pine);
    color: var(--white);
    font-weight: 900;
}

.plan-section {
    scroll-margin-top: 20px;
}

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

.plan-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.plan-card.priority {
    border-color: rgba(217, 155, 61, 0.55);
}

.plan-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.plan-facts div {
    padding: 10px;
    border-radius: 8px;
    background: #f3f6f7;
}

.plan-facts dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.plan-facts dd {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
    line-height: 1.35;
}

.plan-card a,
.weather-card a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--fjord);
    font-weight: 850;
    text-decoration: none;
}

.route-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.route-stats span {
    padding: 7px 9px;
    border-radius: 8px;
    background: #f3f6f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.route-card p,
.route-card li,
.camera-card p {
    color: var(--muted);
    line-height: 1.6;
}

.route-card ul {
    padding-left: 18px;
}

.route-card a,
.camera-card a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 8px;
    color: var(--fjord);
    font-weight: 850;
    text-decoration: none;
}

.camera-section {
    padding: 38px;
    margin-left: -38px;
    margin-right: -38px;
    background: var(--mist);
    border-radius: 8px;
}

.filters {
    margin-bottom: 18px;
}

.filter {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
}

.camera-card {
    display: grid;
    gap: 12px;
}

.camera-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tag {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf4f1;
    color: var(--pine);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.camera-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.camera-meta span {
    padding: 10px;
    border-radius: 8px;
    background: #f3f6f7;
    color: var(--muted);
    font-size: 13px;
}

.camera-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.hotel-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--mist);
}

.hotel-card-body {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.hotel-card-body p {
    color: var(--muted);
    line-height: 1.6;
}

.hotel-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.hotel-facts div {
    padding: 10px;
    border-radius: 8px;
    background: #f3f6f7;
}

.hotel-facts dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.hotel-facts dd {
    margin: 0;
    font-weight: 850;
}

.hotel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hotel-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--fjord);
    font-weight: 850;
    text-decoration: none;
}

.featured-hotel {
    border-color: rgba(15, 74, 61, 0.45);
}

.ferry-section {
    scroll-margin-top: 20px;
}

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

.ferry-card {
    display: grid;
    align-content: start;
    gap: 12px;
    border-color: rgba(47, 111, 143, 0.28);
}

.ferry-card p {
    color: var(--muted);
    line-height: 1.6;
}

.ferry-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.ferry-facts div {
    padding: 10px;
    border-radius: 8px;
    background: #f3f6f7;
}

.ferry-facts dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.ferry-facts dd {
    margin: 0;
    font-weight: 850;
}

.ferry-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ferry-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--fjord);
    font-weight: 850;
    text-decoration: none;
}

.ferry-total {
    background: var(--fjord);
}

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

.cost-card {
    display: grid;
    align-content: start;
    gap: 9px;
}

.cost-card strong {
    font-size: 1.8rem;
    line-height: 1.05;
}

.cost-card p,
.weather-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.cost-card.total {
    border-color: rgba(15, 74, 61, 0.45);
    background: #f4faf7;
}

.cost-summary {
    margin-top: 16px;
    padding: 18px 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background: var(--pine);
    color: var(--white);
}

.cost-summary span {
    color: rgba(255, 255, 255, 0.86);
}

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

.rest-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.rest-card p {
    color: var(--muted);
    line-height: 1.6;
}

.rest-card a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--fjord);
    font-weight: 850;
    text-decoration: none;
}

.weather-section {
    scroll-margin-top: 20px;
}

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

.weather-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.weather-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.weather-card.critical {
    border-color: rgba(217, 155, 61, 0.6);
}

.tesla-section {
    scroll-margin-top: 20px;
}

.charge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.charge-card {
    display: grid;
    align-content: start;
    gap: 9px;
}

.charge-card h3,
.strategy-card h3,
.info-panel h3 {
    margin-bottom: 4px;
}

.charge-card p,
.strategy-card p,
.info-panel p,
.detail-list dd,
.info-panel li {
    color: var(--muted);
    line-height: 1.55;
}

.charge-card strong {
    font-size: 0.92rem;
    line-height: 1.45;
}

.charge-card.priority {
    border-color: rgba(217, 155, 61, 0.55);
}

.charge-card.hotel-charge {
    border-color: rgba(15, 74, 61, 0.45);
    background: #f4faf7;
}

.tesla-grid {
    margin-bottom: 18px;
}

.detail-list {
    display: grid;
    gap: 13px;
    margin: 0;
}

.detail-list div {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list dt {
    margin-bottom: 4px;
    font-weight: 900;
}

.detail-list dd {
    margin: 0;
}

.geiranger-plan ul {
    margin: 0;
    padding-left: 18px;
}

.stage-table-wrapper {
    margin: 18px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(20, 33, 46, 0.08);
}

.stage-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.stage-table th,
.stage-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.stage-table th {
    background: var(--pine);
    color: var(--white);
    font-size: 13px;
}

.stage-table tbody tr:last-child td {
    border-bottom: 0;
}

.stage-table td {
    color: var(--muted);
}

.stage-table td:first-child {
    color: var(--ink);
    font-weight: 850;
}

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

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.checklist {
    padding: 12px;
}

.checklist h3 {
    margin: 14px 12px 4px;
    color: var(--pine);
    font-size: 0.95rem;
}

.checklist h3:first-child {
    margin-top: 6px;
}

.checklist label {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-weight: 750;
}

.checklist label:last-child {
    border-bottom: 0;
}

.checklist input {
    width: 18px;
    height: 18px;
    accent-color: var(--pine);
}

footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 44px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

footer p {
    margin: 6px 0 0;
}

.source-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.source-links a {
    color: var(--fjord);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 780px) {
    .hero {
        min-height: 78vh;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .quick-panel,
    .route-grid,
    .camera-grid,
    .hotel-grid,
    .plan-grid,
    .ferry-grid,
    .rest-grid,
    .cost-grid,
    .weather-grid,
    .charge-grid,
    .tesla-grid,
    .strategy-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        margin-top: -34px;
    }

    .quick-panel div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-panel div:last-child {
        border-bottom: 0;
    }

    .camera-section {
        padding: 24px 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

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

    .hotel-facts {
        grid-template-columns: 1fr;
    }

    .ferry-facts {
        grid-template-columns: 1fr;
    }

    .cost-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }

    .source-links {
        justify-content: flex-start;
    }
}
