.travel-page {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.travel-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 34px 56px;
}

.travel-heading,
.travel-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.travel-heading {
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.travel-heading h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.travel-summary {
    margin: 0;
    color: #626c69;
    font: 400 0.9rem "Instrument Sans", Arial, sans-serif;
    white-space: nowrap;
}

.region-key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #53616b;
    font: 400 0.75rem "Instrument Sans", Arial, sans-serif;
}

.region-key::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid #2e624b;
    background: #38765b;
}

.travel-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
    gap: 26px;
}

#travel-map {
    width: 100%;
    height: 660px;
    border: 1px solid #d3dfe6;
    border-radius: 4px;
    background: #e5f1f8;
    touch-action: none;
}

.map-fallback {
    padding: 28px;
    color: var(--muted);
}

.boundary-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.travel-page .leaflet-container {
    font: 0.85rem "Instrument Sans", Arial, sans-serif;
}

/* The map container clips the view; individual SVGs can move beyond their old bounds. */
#travel-map .leaflet-world-land-pane > svg,
#travel-map .leaflet-province-boundaries-pane > svg,
#travel-map .leaflet-travel-regions-pane > svg {
    overflow: visible;
}

#travel-map.leaflet-grab,
#travel-map.leaflet-dragging,
#travel-map.leaflet-dragging .leaflet-grab {
    cursor: default;
}

/* SVG focus outlines use a bounding box; emphasize the actual boundary instead. */
#travel-map .leaflet-travel-regions-pane path:focus {
    outline: none;
}

#travel-map .leaflet-travel-regions-pane path:focus-visible {
    stroke: #193d2c;
    stroke-width: 2.5;
}

#travel-map .leaflet-popup-content {
    margin: 10px 14px;
    color: #344651;
}

#travel-map .leaflet-popup-content strong {
    display: block;
    font-size: 0.85rem;
}

#travel-map .leaflet-control-attribution {
    padding: 2px 5px;
    color: #59656d;
    background: rgb(255 255 255 / 88%);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

#travel-map .leaflet-control-attribution a {
    color: #435c6b;
}

#travel-map .leaflet-bar {
    border: 1px solid #cdd8df;
    box-shadow: 0 1px 4px rgb(32 58 65 / 10%);
    border-radius: 4px;
}

#travel-map .leaflet-bar a,
.map-overview {
    width: 34px;
    height: 34px;
    line-height: 34px;
    color: #43535d;
    background: #fff;
}

#travel-map .leaflet-bar a.leaflet-disabled {
    color: #aab5b0;
}

#travel-map .leaflet-bar a:hover,
.map-overview:hover {
    background: #f1f5f7;
}

.map-overview {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.map-overview img {
    width: 19px;
    height: 19px;
}

.map-overview:focus-visible,
.area-button:focus-visible {
    outline: 2px solid #38765b;
    outline-offset: 2px;
}

.travel-places {
    display: grid;
    gap: 20px;
}

.travel-places h2 {
    margin: 0 0 5px;
    color: #26343c;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.travel-places .area-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.area-entry {
    border-bottom: 1px solid #e7ece9;
}

.area-button {
    display: block;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #46525a;
    font: 400 0.8rem/1.4 "Instrument Sans", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.area-button:hover,
.area-button.is-highlighted,
.area-button[aria-current="true"] {
    color: #24543e;
    border-left-color: #38765b;
    background: #eef4f0;
}

.area-button[aria-current="true"] {
    font-weight: 600;
}

.area-button:disabled {
    color: var(--muted);
    cursor: default;
}

.city-button {
    padding-left: 20px;
}

@media (max-width: 880px) {
    .travel-explorer {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    #travel-map {
        height: 62vh;
        min-height: 440px;
        max-height: 660px;
    }

    .travel-places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .area-button {
        min-height: 44px;
    }
}

@media (max-width: 540px) {
    .travel-main {
        padding: 16px 18px 40px;
    }

    .travel-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .travel-heading h1 {
        font-size: 1.6rem;
    }

    .region-key {
        font-size: 0.68rem;
    }

    .travel-places {
        gap: 22px 16px;
    }
}

