:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --white: #ffffff;
    --muted: #5d6d7e;
    --surface: #f4f7f6;
    --panel: #f7f9fb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--surface);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #1f2f3f 0%, #2c3e50 35%, #3d5b78 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

header p {
    max-width: 760px;
    margin: 12px auto 0;
}

nav {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 5px 14px;
    font-weight: bold;
    font-size: 0.9rem;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px 40px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    color: var(--accent);
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3,
h4 {
    color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

th {
    background-color: var(--light);
}

#map-container {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 12px;
}

.map-controls {
    position: static;
    z-index: auto;
    background: var(--white);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 420px;
    margin-bottom: 22px;
}

.map-action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.map-action-btn {
    border: 1px solid #d0d9e2;
    background: #f8fafc;
    color: #28445f;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.map-action-btn:hover {
    background: #eef3f8;
}

.leaflet-control-layers {
    z-index: 1001;
}

.timeline {
    border-left: 3px solid var(--accent);
    margin-left: 20px;
    padding-left: 30px;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.1rem;
}

.timeline-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.route-anchor {
    margin: 0 0 14px;
    color: #415466;
    font-size: 0.95rem;
}

.route-track {
    list-style: none;
    margin: 0;
    padding: 4px 0 0 0;
    border-left: 2px solid #d5dde5;
}

.route-track li {
    position: relative;
    margin: 0 0 14px 0;
    padding: 0 0 0 18px;
}

.route-track li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d5dde5;
}

.fr-sign {
    display: inline-block;
    position: relative;
    background: #ffffff;
    border: 3px solid #c62828;
    border-radius: 4px;
    padding: 4px 10px;
    font-weight: 700;
    color: #111;
    margin-right: 8px;
    line-height: 1.15;
}

.fr-sign::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 4px;
    height: 10px;
    background: #9aa6b2;
    border-radius: 2px;
}

.mountain-tag,
.poi-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-right: 8px;
}

.mountain-tag {
    background: #eef4fb;
    color: #1f4f86;
}

.poi-tag {
    background: #eef8f1;
    color: #226846;
}

.route-note {
    color: #4e5f70;
    font-size: 0.94rem;
}

.section-lead {
    margin: 0 0 18px;
    color: var(--muted);
}

.info-grid,
.focus-grid,
.link-grid,
.landscape-grid,
.packing-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.info-panel,
.focus-card,
.link-card,
.landscape-card,
.packing-card,
.budget-box {
    background: linear-gradient(180deg, #ffffff 0%, var(--panel) 100%);
    border: 1px solid #e7ebef;
    border-radius: 12px;
    padding: 18px;
}

.info-panel h4,
.focus-card h4,
.link-card h4,
.landscape-card h4,
.packing-card h4,
.budget-box h4 {
    margin: 0 0 12px;
}

.info-panel ul,
.focus-card ul,
.landscape-card ul,
.budget-box ul {
    margin: 0;
    padding-left: 18px;
}

.info-panel li,
.focus-card li,
.landscape-card li,
.budget-box li {
    margin-bottom: 8px;
}

.status-badge,
.route-chip,
.prep-badge,
.scenery-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 600;
}

.status-badge {
    background: #eef6ff;
    color: #245b91;
    margin-bottom: 12px;
}

.route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.route-chip,
.prep-badge {
    background: #fff3e8;
    color: #a95408;
}

.scenery-tag {
    background: #edf7f1;
    color: #216746;
    margin-bottom: 12px;
}

.focus-card strong,
.landscape-card strong {
    color: var(--primary);
}

.focus-card.warning {
    background: linear-gradient(180deg, #fffaf4 0%, #fff4e8 100%);
}

.focus-card.success {
    background: linear-gradient(180deg, #f6fbf8 0%, #eef8f1 100%);
}

.focus-card.neutral {
    background: linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
}

.link-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.12);
}

.link-card p,
.landscape-card p,
.packing-meta,
.muted-note,
.page-kicker {
    color: #6b7b8c;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.kpi-card {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 16px;
}

.kpi-card span {
    display: block;
    font-size: 0.84rem;
    opacity: 0.82;
}

.kpi-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
}

.budget-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.budget-table td:last-child,
.budget-table th:last-child {
    text-align: right;
}

.budget-total {
    font-weight: 700;
    color: var(--accent);
}

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

.checklist li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.packing-meta {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
}

.packing-tip,
.decision-banner {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: #fff8f2;
    border-radius: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
}

.subpage-header {
    padding-bottom: 52px;
}

.subpage-header .prep-badge {
    margin-bottom: 14px;
}

.page-section-title {
    margin-top: 26px;
}

@media (max-width: 768px) {
    #map-container {
        height: 350px;
    }

    .budget-layout {
        grid-template-columns: 1fr;
    }

    header {
        padding: 48px 18px;
    }

    nav a {
        margin: 5px 10px;
    }
}