/*
    Tripopedia: guides and places, in the look of TripGeo Voyage (150 TripGeo Pages Voyage.razor.css).

    Palette follows the client site's home page: #FF6700 accent, #1F2937 headings,
    #4a5568 body, #E5E7EB rules, soft shadows on rounded cards.
*/

.tp {
    max-width: 1080px;
    margin: 0 auto 3rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ---------------------------------------------------------------- hero */

.tp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 340px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1f2a44;
    background-size: cover;
    background-position: center;
}

.tp-hero-plain {
    background: linear-gradient(135deg, #1f2a44 0%, #2D7DD2 100%);
    min-height: 220px;
}

.tp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .1) 100%);
}

.tp-hero-body {
    position: relative;
    padding: 1.75rem;
    color: #fff;
}

    .tp-hero-body h1 {
        margin: .25rem 0 .4rem;
        font-size: 2.6rem;
        font-weight: 700;
        line-height: 1.1;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    }

.tp-hero-sub {
    margin: 0;
    max-width: 44rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.tp-crumbs {
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
}

    .tp-crumbs a {
        color: rgba(255, 255, 255, .9);
        text-decoration: none;
    }

        .tp-crumbs a:hover {
            color: #FF6700;
        }

    .tp-crumbs i {
        margin: 0 .45rem;
        font-size: .65rem;
        opacity: .7;
    }

/* ---------------------------------------------------------------- facts strip */

.tp-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.tp-fact {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
    font-size: .88rem;
    white-space: nowrap;
}

    .tp-fact i {
        color: #FF6700;
    }

.tp-fact-label {
    color: #9aa3b0;
}

.tp-fact-value {
    color: #1F2937;
    font-weight: 600;
}

.tp-fact-link {
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

    .tp-fact-link:hover {
        border-color: #FF6700;
        box-shadow: 0 3px 8px rgba(255, 103, 0, .18);
    }

/* the way to the full-page map, at the right-hand end of the row */
.tp-fact-map {
    margin-left: auto;
    border-color: #FF6700;
    background: #FF6700;
}

    .tp-fact-map i, .tp-fact-map .tp-fact-value {
        color: #fff;
    }

    .tp-fact-map:hover {
        background: #e85d00;
    }

/* ---------------------------------------------------------------- lead */

.tp-lead {
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #FF6700;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .tp-lead p {
        margin: 0 0 .8rem;
        font-size: 1.08rem;
        color: #374151;
    }

        .tp-lead p:last-child {
            margin-bottom: 0;
        }

/* ---------------------------------------------------------------- jump bar */

.tp-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.75rem;
}

    .tp-jump a {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .4rem .8rem;
        border: 1px solid #E5E7EB;
        border-radius: 999px;
        background: #fff;
        color: #4a5568;
        font-size: .85rem;
        text-decoration: none;
        transition: background .15s, color .15s, border-color .15s;
    }

        .tp-jump a i {
            color: #FF6700;
            transition: color .15s;
        }

        .tp-jump a:hover,
        .tp-jump a.tp-jump-on {
            background: #FF6700;
            border-color: #FF6700;
            color: #fff;
        }

            .tp-jump a:hover i,
            .tp-jump a.tp-jump-on i {
                color: #fff;
            }

.tp-jump-clear {
    color: #9aa3b0 !important;
}

/* ---------------------------------------------------------------- section cards */

.tp-sections {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tp-card {
    padding: 1.5rem 1.6rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    scroll-margin-top: 1rem;
}

    .tp-card h2 {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin: 0 0 1rem;
        font-size: 1.45rem;
        font-weight: 700;
        color: #1F2937;
    }

    .tp-card p {
        margin: 0 0 .85rem;
    }

        .tp-card p:last-child {
            margin-bottom: 0;
        }

.tp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff5ee;
    color: #FF6700;
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------- subsections */

.tp-sub {
    margin-top: 1.1rem;
    padding-left: 1rem;
    border-left: 3px solid #E5E7EB;
}

    .tp-sub h3 {
        margin: 0 0 .5rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #2D7DD2;
    }

    .tp-sub h4 {
        margin: .9rem 0 .4rem;
        font-size: .95rem;
        font-weight: 600;
        color: #1F2937;
    }

/* ---------------------------------------------------------------- tiles */

.tp-more-heading {
    margin: 2.25rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #E5E7EB;
    font-size: 1.5rem;
    color: #1F2937;
}

.tp-more-all {
    margin-left: .75rem;
    font-size: .9rem;
    font-weight: normal;
    color: #FF6700;
    text-decoration: none;
}

.tp-more {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.tp-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

    .tp-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    }

.tp-tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #eef1f5 center/cover no-repeat;
    color: #cfd6e0;
    font-size: 1.6rem;
}

.tp-tile-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .7rem .8rem .85rem;
}

.tp-tile-name {
    font-weight: 600;
    color: #1F2937;
}

.tp-tile-desc {
    font-size: .8rem;
    color: #9aa3b0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------------- licence + index + empty */

.tp-licence {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    font-size: .82rem;
    color: #9aa3b0;
}

    .tp-licence i {
        margin-right: .35rem;
    }

    .tp-licence a {
        color: #2D7DD2;
    }

.tp-index-head h1 {
    margin: 1.5rem 0 .5rem;
    font-size: 2rem;
    color: #1F2937;
}

    .tp-index-head h1 i {
        color: #FF6700;
        margin-right: .5rem;
    }

.tp-index-head p {
    margin-bottom: 1.5rem;
}

.tp-empty {
    padding: 4rem 1rem;
    text-align: center;
}

    .tp-empty i {
        font-size: 3rem;
        color: #cfd6e0;
    }

    .tp-empty h1 {
        margin: 1rem 0 .5rem;
        font-size: 1.6rem;
        color: #1F2937;
    }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 640px) {
    .tp-hero {
        min-height: 240px;
    }

        .tp-hero-body {
            padding: 1.1rem;
        }

            .tp-hero-body h1 {
                font-size: 1.9rem;
            }

    .tp-card {
        padding: 1.15rem 1.1rem;
    }
}

/* ---------------------------------------------------------------- everything below is new to Tripopedia */

.tp-hero-sub i {
    margin-right: .3rem;
}

.tp-map {
    width: 100%;
    height: 420px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #eef1f5;
}

.tp-map-small {
    height: 300px;
}

.tp-map-fill {
    flex: 1 1 auto;
    height: auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
}

.tp-map-note {
    margin: .5rem 0 0;
    font-size: .82rem;
    color: #6b7280;
}

.tp-sights .tp-more {
    margin-top: 1rem;
}

.tp-show-more {
    display: block;
    margin: 1rem auto 0;
    padding: .5rem 1.1rem;
    border: 1px solid #FF6700;
    border-radius: 999px;
    background: #fff;
    color: #c2410c;
    font-weight: 600;
}

    .tp-show-more:hover {
        background: #FF6700;
        color: #fff;
    }

.tp-tile-cat {
    font-size: .78rem;
    font-weight: 600;
}

.tp-source {
    margin-top: .6rem !important;
    font-size: .8rem !important;
    color: #6b7280 !important;
}

.tp-listing {
    margin-bottom: 1.1rem;
}

.tp-listing-facts {
    margin: 0 0 .4rem;
    padding: 0;
    list-style: none;
    font-size: .92rem;
}

    .tp-listing-facts i {
        width: 1.2rem;
        color: #FF6700;
    }

.tp-credit {
    margin: .3rem 0 0;
}

.tp-licence p {
    margin: 0 0 .3rem;
}

/* the pin popups are made in js/tripopedia/map.js */

.tp-pop {
    font-family: inherit;
    color: #4a5568;
}

    .tp-pop img {
        display: block;
        width: 100%;
        max-height: 120px;
        margin-bottom: .4rem;
        border-radius: 6px;
        object-fit: cover;
    }

    .tp-pop p {
        margin: .3rem 0 0;
        font-size: .8rem;
        line-height: 1.35;
    }

.tp-pop-title {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #1F2937;
    text-decoration: none;
}

a.tp-pop-title:hover {
    color: #FF6700;
}

.tp-pop-label {
    display: block;
    font-size: .74rem;
    color: #6b7280;
}

.tp-pop-chip {
    display: inline-block;
    margin-top: .15rem;
    padding: 0 .45rem;
    border: 1px solid var(--cat, #9aa3b0);
    border-radius: 999px;
    color: var(--cat, #6b7280);
    font-size: .7rem;
    font-weight: 600;
}

.tp-pop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    align-items: center;
    margin-top: .5rem;
    padding-top: .45rem;
    border-top: 1px solid #E5E7EB;
    font-size: .8rem;
}

.tp-pop-more {
    padding: .2rem .6rem;
    border-radius: 6px;
    background: #FF6700;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .tp-pop-more:hover,
    .tp-pop-more:focus-visible {
        background: #e25c00;
        color: #fff;
    }

.tp-pop-link {
    color: #1F2937;
}

button.tp-pop-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* a destination's card: green where a sight's is orange */
.tp-pop-dest .tp-pop-more {
    background: #047857;
}

    .tp-pop-dest .tp-pop-more:hover,
    .tp-pop-dest .tp-pop-more:focus-visible {
        background: #065f46;
    }

.tp-pop-hint {
    display: block;
    margin-top: .3rem;
    font-size: .7rem;
    color: #9aa3b0;
}

/* the hover card: no close button, and it never takes the pointer, so it can't flicker under the mouse */
/* the tooltip on hover: dark, small, always above the pin. A click opens the info window (.tp-pop) in its place */
.tp-hover-pop {
    pointer-events: none;
}

    .tp-hover-pop .maplibregl-popup-content {
        padding: .4rem .6rem;
        border-radius: 7px;
        background: #1F2937;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    }

    .tp-hover-pop .maplibregl-popup-tip {
        border-top-color: #1F2937;
    }

.tp-tip {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    color: #fff;
    font-size: .8rem;
    line-height: 1.3;
}

.tp-tip-name {
    font-size: .88rem;
}

/* the picture in a tooltip: a fixed box, so the tooltip doesn't jump as the picture arrives */
.tp-tip-img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 120px;
    margin-bottom: .3rem;
    border-radius: 4px;
    object-fit: cover;
    background: #374151;
}

.tp-tip-cat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #d1d5db;
}

    .tp-tip-cat::before {
        content: "";
        width: .55rem;
        height: .55rem;
        border-radius: 50%;
        background: var(--cat, #FF6700);
        box-shadow: 0 0 0 1.5px #fff;
    }

.tp-tip-among {
    color: #e5e7eb;
}

.tp-tip-hint {
    margin-top: .1rem;
    color: #ffb27a;
    font-size: .72rem;
}

.tp-pop-hover img {
    max-height: 96px;
}

/* ---------------------------------------------------------------- Explore */

.tp-explore {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.tp-panel {
    display: none;
    flex: 0 0 320px;
    width: 320px;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid #E5E7EB;
    background: #fff;
    color: #4a5568;
}

.panel-open .tp-panel {
    display: flex;
}

.tp-panel header {
    padding: .8rem 1rem .3rem;
}

    .tp-panel header h1 {
        margin: 0;
        font-size: 1.3rem;
        color: #1F2937;
    }

    .tp-panel header p {
        margin: 0;
        font-size: .85rem;
    }

.tp-panel footer {
    padding: .5rem 1rem;
    border-top: 1px solid #E5E7EB;
    font-size: .72rem;
    color: #6b7280;
}

.tp-search {
    position: relative;
    margin: .2rem 1rem .5rem;
}

    .tp-search i {
        position: absolute;
        top: 50%;
        left: .65rem;
        transform: translateY(-50%);
        color: #9aa3b0;
        font-size: .8rem;
    }

    .tp-search input {
        width: 100%;
        padding: .38rem .6rem .38rem 1.9rem;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        font-size: .88rem;
    }

        .tp-search input:focus {
            border-color: #FF6700;
            outline: 2px solid rgba(255, 103, 0, .2);
        }

.tp-results {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid #E5E7EB;
}

.tp-results-note,
.tp-more-hint {
    margin: 0;
    padding: .45rem 1rem;
    font-size: .78rem;
    color: #6b7280;
}

.tp-more-hint {
    border-bottom: 1px solid #E5E7EB;
    background: #fafbfc;
}

.tp-loading {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    margin-left: .4rem;
    border: 2px solid #E5E7EB;
    border-top-color: #FF6700;
    border-radius: 50%;
    vertical-align: -1px;
    animation: tp-spin .8s linear infinite;
}

@keyframes tp-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-loading {
        animation: none;
    }
}

.tp-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

    .tp-list li {
        display: flex;
        align-items: center;
        border-left: 3px solid transparent;
    }

        .tp-list li.selected {
            border-left-color: #FF6700;
            background: #fff5ee;
        }

    .tp-list button {
        display: flex;
        flex: 1 1 auto;
        gap: .6rem;
        align-items: center;
        min-width: 0;
        padding: .4rem 1rem;
        border: 0;
        background: none;
        text-align: left;
    }

        .tp-list button:hover,
        .tp-list button:focus-visible {
            background: #fff5ee;
        }

.tp-list-img {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    background: #eef1f5 center/cover no-repeat;
}

.tp-list-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tp-list-name {
    overflow: hidden;
    color: #1F2937;
    font-size: .88rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-list-cat {
    font-size: .72rem;
}

.tp-list-go {
    flex: 0 0 auto;
    padding: .4rem .8rem;
    color: #9aa3b0;
}

    .tp-list-go:hover,
    .tp-list-go:focus-visible {
        color: #FF6700;
    }

.tp-panel-toggle {
    position: absolute;
    z-index: 3;
    top: .6rem;
    left: .6rem;
    width: 34px;
    height: 34px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #1F2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.panel-open .tp-panel-toggle {
    left: calc(320px + .6rem);
}

/* Destinations | Sights, on the map beside the list's toggle: green for destinations, orange for sights, as their clusters are */
/* the map's tools, beside the list's toggle: Destinations | Sights, then the sights' category menu */
.tp-map-tools {
    position: absolute;
    z-index: 4;
    top: .6rem;
    left: calc(.6rem + 34px + .5rem);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-start;
    max-width: calc(100% - 7rem);
}

.panel-open .tp-map-tools {
    left: calc(320px + .6rem + 34px + .5rem);
    max-width: calc(100% - 320px - 7rem);
}

.tp-mode {
    display: flex;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

    .tp-mode button {
        height: 32px;
        padding: 0 .75rem;
        border: 0;
        background: #fff;
        color: #4a5568;
        font-size: .85rem;
        font-weight: 600;
        white-space: nowrap;
    }

        .tp-mode button + button {
            border-left: 1px solid #E5E7EB;
        }

        .tp-mode button:first-child.on {
            background: #047857;
            color: #fff;
        }

        .tp-mode button:last-child.on {
            background: #FF6700;
            color: #fff;
        }

        .tp-mode button:not(.on):hover {
            background: #f3f4f6;
        }

/* the category menu: a button saying what is shown, and a list that stays open while categories are ticked */
.tp-cats {
    position: relative;
}

.tp-cats-button {
    display: flex;
    gap: .45rem;
    align-items: center;
    height: 34px;
    padding: 0 .7rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #1F2937;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

    .tp-cats-button:hover {
        background: #f9fafb;
    }

    .tp-cats-button.filtered {
        border-color: #FF6700;
    }

    .tp-cats-button .fa-filter {
        color: #FF6700;
    }

.tp-cats-caret {
    font-size: .7rem;
    color: #6b7280;
}

[aria-expanded="true"] > .tp-cats-caret {
    transform: rotate(180deg);
}

.tp-cats-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--cat, #FF6700);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

/* a click anywhere else closes the menu */
.tp-cats-backdrop {
    position: fixed;
    z-index: 1;
    inset: 0;
}

.tp-cats-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + .35rem);
    left: 0;
    width: 260px;
    padding: .3rem 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.tp-cats-all,
.tp-cats-toggle {
    display: flex;
    flex: 1 1 auto;
    gap: .5rem;
    align-items: center;
    min-width: 0;
    padding: .4rem .75rem;
    border: 0;
    background: none;
    color: #374151;
    font-size: .85rem;
    text-align: left;
}

.tp-cats-all {
    width: 100%;
    font-weight: 600;
    border-bottom: 1px solid #F3F4F6;
}

.tp-cats-row {
    display: flex;
    align-items: center;
}

    .tp-cats-row:hover,
    .tp-cats-all:hover {
        background: #f9fafb;
    }

.tp-cats-tick {
    color: #9aa3b0;
}

.on > .tp-cats-tick,
.tp-cats-row.on .tp-cats-tick {
    color: #FF6700;
}

.tp-cats-row:not(.on) .tp-cats-name,
.tp-cats-row:not(.on) .tp-cats-icon {
    color: #9aa3b0;
}

.tp-cats-icon {
    width: 1rem;
    color: var(--cat);
    text-align: center;
}

.tp-cats-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Only": always there for a finger, quiet until the row is hovered for a mouse */
.tp-cats-only {
    flex: 0 0 auto;
    margin-right: .5rem;
    padding: .1rem .45rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: .72rem;
}

    .tp-cats-only:hover,
    .tp-cats-only:focus-visible {
        border-color: #FF6700;
        color: #FF6700;
    }

@media (hover: hover) and (pointer: fine) {
    .tp-cats-only {
        opacity: 0;
    }

    .tp-cats-row:hover .tp-cats-only,
    .tp-cats-only:focus-visible {
        opacity: 1;
    }
}

.tp-dest-icon {
    background: #ecfdf5;
    color: #047857;
    font-size: 1.1rem;
}

.tp-dest-kind {
    color: #047857;
}

/* ---------------------------------------------------------------- admin */

.tpa h1 {
    margin: 1.25rem 0 1rem;
    font-size: 1.9rem;
    color: #1F2937;
}

    .tpa h1 i {
        color: #FF6700;
    }

.tpa .tp-card {
    margin-bottom: 1.1rem;
}

    .tpa .tp-card h2 {
        font-size: 1.2rem;
    }

    .tpa .tp-card h3 {
        margin: 1rem 0 .5rem;
        font-size: 1rem;
        color: #1F2937;
    }

.tpa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tpa-log {
    max-height: 260px;
    margin: 0;
    padding: .7rem;
    overflow: auto;
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    font-size: .78rem;
}

.tpa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .6rem;
    margin: 0 0 1rem;
}

    .tpa-stats div {
        display: flex;
        flex-direction: column;
        padding: .55rem .7rem;
        border: 1px solid #E5E7EB;
        border-radius: 10px;
    }

    .tpa-stats strong {
        font-size: 1.4rem;
        color: #1F2937;
    }

    .tpa-stats span {
        font-size: .76rem;
    }

.tpa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.tpa-chip {
    padding: .12rem .55rem;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: .76rem;
}

.tpa-chip-bad {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.tpa-good {
    color: #16a34a;
}

.tpa-dim {
    color: #9aa3b0;
}

.tpa-bad {
    color: #b91c1c;
}

.tpa-why {
    font-size: .78rem;
    color: #6b7280;
}

.tpa-filter {
    max-width: 340px;
    margin-bottom: .6rem;
}

.tpa-scroll {
    max-height: 460px;
    overflow-y: auto;
}

/* a phone: the map stays the point of the page, with the list under it and the filters a row to swipe */
@media (max-width: 760px) {
    .tp-explore {
        flex-direction: column-reverse;
    }

    .tp-panel {
        display: flex;
        flex: 0 0 44%;
        width: auto;
        border-top: 1px solid #E5E7EB;
        border-right: 0;
    }

    .tp-map-fill {
        flex: 1 1 56%;
        min-height: 0;
    }

    .tp-panel-toggle {
        display: none;
    }

    .tp-map-tools,
    .panel-open .tp-map-tools {
        left: .6rem;
        max-width: calc(100% - 4rem);
    }

    .tp-panel header {
        display: flex;
        gap: .6rem;
        align-items: baseline;
        padding: .4rem .8rem .1rem;
    }

        .tp-panel header h1 {
            font-size: 1.05rem;
        }

    .tp-panel footer {
        display: none;
    }
}

/* ---------------------------------------------------------------- the Tripopedia home page: the world map, its flags, regions and countries */

.tp-world-regions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.tp-region {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #fff;
    color: #1F2937;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

    .tp-region i {
        color: #FF6700;
    }

    button.tp-region:hover, button.tp-region:focus-visible {
        border-color: #FF6700;
        box-shadow: 0 2px 6px rgba(255, 103, 0, .18);
    }

.tp-region-soon {
    color: #9aa3af;
    font-weight: 500;
    cursor: default;
}

    .tp-region-soon i {
        color: #cfd6e0;
    }

.tp-world-map {
    position: relative;
    margin-bottom: 2rem;
    scroll-margin-top: 80px;
}

.tp-map-world {
    height: 62vh;
    min-height: 380px;
    max-height: 680px;
}

/* the chosen country, over the map's top left corner */
.tp-chosen {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 300px;
    max-height: calc(100% - 24px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.tp-chosen-img {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.tp-chosen-body {
    padding: .8rem 1rem .6rem;
}

    .tp-chosen-body h2 {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin: 0 1.6rem .25rem 0;
        font-size: 1.25rem;
        color: #1F2937;
    }

        .tp-chosen-body h2 img {
            border-radius: 3px;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
        }

    .tp-chosen-body p {
        margin: 0 0 .6rem;
        font-size: .9rem;
    }

.tp-chosen-count {
    color: #FF6700;
    font-weight: 600;
}

.tp-chosen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    margin-bottom: .4rem;
}

    .tp-chosen-actions i {
        margin-right: .3rem;
    }

.tp-chosen .tp-credit {
    margin: .3rem 0 0;
    font-size: .72rem;
}

.tp-chosen-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1F2937;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
}

/* a country's flag on the map: a click zooms to it, and hovering shows its name and count */
.tp-flag {
    position: relative;
    display: block;
    width: 30px;
    height: 22.5px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #cfd6e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .12s;
}

    .tp-flag img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 2px;
        object-fit: cover;
    }

    .tp-flag:hover, .tp-flag:focus-visible {
        transform: scale(1.25);
        outline: none;
    }

.tp-flag-pin:hover, .tp-flag-pin:focus-within {
    z-index: 1000 !important;
}

.tp-flag-plain::before {
    content: "\f024";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    color: #4a5568;
}

.tp-flag-name {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) scale(.8);
    padding: .2rem .5rem;
    border-radius: 6px;
    background: #1F2937;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s;
}

    .tp-flag-name b {
        margin-left: .35rem;
        color: #ffb27a;
        font-weight: 600;
    }

.tp-flag:hover .tp-flag-name, .tp-flag:focus-visible .tp-flag-name {
    opacity: 1;
}

/* zoomed in, the clusters are the map: the flags step aside, and so does the chosen country's */
.tp-flags-off .tp-flag-pin, .tp-flag-pin.chosen {
    display: none;
}

.tp-world-loading {
    color: #6b7280;
}

.tp-world-continent h2 {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: 1.5rem 0 .75rem;
    font-size: 1.35rem;
    color: #1F2937;
}

    .tp-world-continent h2 span {
        font-size: .9rem;
        font-weight: 500;
        color: #6b7280;
    }

.tp-countries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-country {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    color: #1F2937;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

    .tp-country:hover, .tp-country:focus-visible {
        border-color: #FF6700;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
        transform: translateY(-1px);
    }

    .tp-country.chosen {
        border-color: #FF6700;
        background: #fff7f0;
    }

    .tp-country img {
        flex: none;
        border-radius: 3px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    }

.tp-country-noflag {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 3px;
    background: #eef1f5;
    color: #9aa3af;
}

.tp-country-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-country-count {
    flex: none;
    color: #6b7280;
    font-size: .85rem;
}

@media (max-width: 640px) {
    .tp-world {
        padding: 0 16px;
    }

    .tp-map-world {
        height: 55vh;
        min-height: 320px;
    }

    /* on a phone the chosen country sits under the map, not over it */
    .tp-chosen {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-height: none;
        margin-top: .75rem;
    }
}

/* ---------------------------------------------------------------- Explore: the chosen sight's profile in the sidebar (PlaceProfile.razor) */

.tp-profile {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid #E5E7EB;
}

.tp-profile-back {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .4rem;
    width: 100%;
    padding: .45rem 1rem;
    border: 0;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    color: #1F2937;
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
}

    .tp-profile-back:hover, .tp-profile-back:focus-visible {
        background: #fff5ee;
        color: #FF6700;
    }

.tp-profile-img {
    height: 170px;
    background: #eef1f5 center/cover no-repeat;
}

.tp-profile-body {
    padding: .75rem 1rem .25rem;
    font-size: .88rem;
}

    .tp-profile-body h2 {
        margin: 0 0 .2rem;
        font-size: 1.25rem;
        color: #1F2937;
    }

    .tp-profile-body .tp-pop-chip {
        margin: 0 0 .5rem;
    }

        .tp-profile-body .tp-pop-chip i {
            margin-right: .2rem;
        }

    .tp-profile-body p {
        margin: 0 0 .6rem;
    }

    .tp-profile-body .tp-source {
        font-size: .72rem;
        color: #6b7280;
    }

.tp-profile-where {
    color: #6b7280;
    font-size: .82rem;
}

    .tp-profile-where i {
        margin-right: .3rem;
        color: #FF6700;
    }

.tp-profile-facts {
    margin: 0 0 .7rem;
    padding: 0;
    list-style: none;
    font-size: .82rem;
}

    .tp-profile-facts li {
        display: flex;
        gap: .45rem;
        padding: .15rem 0;
    }

    .tp-profile-facts i {
        flex: none;
        width: 1rem;
        margin-top: .2rem;
        color: #6b7280;
        text-align: center;
    }

    .tp-profile-facts a {
        overflow-wrap: anywhere;
    }

.tp-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    align-items: center;
    margin: .2rem 0 .9rem;
    font-size: .85rem;
}

    .tp-profile-actions i {
        margin-right: .25rem;
    }

.tp-profile-listing {
    margin: 0 0 .8rem;
    padding: .6rem .75rem .2rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fafbfc;
}

    .tp-profile-listing h3 {
        margin: 0 0 .35rem;
        font-size: .9rem;
        color: #1F2937;
    }

        .tp-profile-listing h3 i {
            margin-right: .3rem;
            color: #FF6700;
        }

.tp-profile-nearby {
    margin: .4rem 1rem .3rem;
    font-size: .95rem;
    color: #1F2937;
}

/* inside the profile the list doesn't scroll on its own: the profile does */
.tp-profile-list {
    flex: none;
    overflow: visible;
}

.tp-profile-credits {
    padding: .5rem 1rem .8rem;
    font-size: .72rem;
    color: #6b7280;
}

    .tp-profile-credits p {
        margin: 0 0 .3rem;
    }

/* ---------------------------------------------------------------- travel advice (TravelAdvice.razor): each government's advice, in its own colours */

.tp-advice-back {
    margin: 1rem 0 0;
    font-size: .9rem;
}

    .tp-advice-back a {
        color: #2D7DD2;
        text-decoration: none;
    }

.tp-advice-head h1 {
    display: flex;
    align-items: center;
    gap: .75rem;
}

    .tp-advice-head h1 img {
        border-radius: 3px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    }

.tp-advice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tp-advice-notice {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border: 1px solid #f5d9a8;
    border-radius: 10px;
    background: #fff8ec;
    color: #5b4a2a;
    font-size: .9rem;
    line-height: 1.5;
}

    .tp-advice-notice i {
        margin-top: .2rem;
        color: #c27a00;
    }

    .tp-advice-notice p {
        margin: 0;
    }

.tp-advice-sources {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .85rem;
}

.tp-advice-source {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    color: #1F2937;
    text-align: left;
    cursor: pointer;
}

    .tp-advice-source img {
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    }

    .tp-advice-source span {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

    .tp-advice-source small {
        color: #6b7280;
    }

    .tp-advice-source.chosen {
        border-color: #FF6700;
        box-shadow: 0 0 0 2px rgba(255, 103, 0, .2);
    }

.tp-advice-map-wrap {
    margin-bottom: 1.25rem;
}

.tp-advice-map {
    height: 56vh;
    min-height: 340px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.tp-advice-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
}

    .tp-advice-legend li {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
    }

.tp-advice-swatch {
    display: inline-block;
    width: 18px;
    height: 13px;
    border-radius: 3px;
    background: var(--lvl);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

    .tp-advice-swatch.parts, .tp-advice-badge.parts::before {
        background: repeating-linear-gradient(135deg, var(--lvl) 0 3px, rgba(255, 255, 255, .7) 3px 6px);
    }

.tp-advice-pop .maplibregl-popup-content {
    padding: .5rem .7rem;
    font-size: .85rem;
    line-height: 1.35;
}

.tp-advice-tools {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    align-items: center;
    margin-bottom: .75rem;
}

.tp-advice-filter {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 240px;
    max-width: 360px;
    padding: .4rem .7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

    .tp-advice-filter i {
        color: #9aa3af;
    }

    .tp-advice-filter input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font: inherit;
    }

.tp-advice-sort {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

    .tp-advice-sort select {
        padding: .3rem .5rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font: inherit;
    }

.tp-advice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

    .tp-advice-table th, .tp-advice-table td {
        padding: .55rem .6rem;
        border-bottom: 1px solid #E5E7EB;
        text-align: left;
        vertical-align: top;
    }

    .tp-advice-table thead th {
        color: #1F2937;
        font-size: .85rem;
        white-space: nowrap;
    }

    .tp-advice-table tbody th a {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        color: #1F2937;
        font-weight: 600;
        text-decoration: none;
    }

        .tp-advice-table tbody th a:hover {
            text-decoration: underline;
        }

    .tp-advice-table img {
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
        vertical-align: -2px;
    }

.tp-advice-date {
    display: block;
    margin-top: .2rem;
    color: #6b7280;
}

.tp-advice-none {
    color: #6b7280;
}

.tp-advice-nomatch {
    margin: 1rem 0;
}

.tp-advice-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .15rem .55rem .15rem .4rem;
    border: 1px solid color-mix(in srgb, var(--lvl) 55%, white);
    border-radius: 6px;
    background: color-mix(in srgb, var(--lvl) 14%, white);
    color: #1F2937;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
}

    .tp-advice-badge::before {
        content: "";
        flex: 0 0 auto;
        width: 10px;
        height: 10px;
        border-radius: 2px;
        background: var(--lvl);
    }

    .tp-advice-badge i {
        color: color-mix(in srgb, var(--lvl) 80%, black);
    }

    .tp-advice-badge.large {
        padding: .35rem .8rem .35rem .6rem;
        font-size: 1rem;
    }

.tp-advice-higher {
    display: inline-block;
    margin: .25rem 0 0 .35rem;
    color: #9a3412;
    font-size: .78rem;
    font-weight: 600;
}

.tp-advice-card h2 img {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.tp-advice-entry + .tp-advice-entry {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E5E7EB;
}

.tp-advice-entry h3 {
    margin: 0 0 .5rem;
    color: #1F2937;
    font-size: 1.15rem;
}

.tp-advice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    color: #6b7280;
    font-size: .85rem;
}

.tp-advice-change {
    font-size: .92rem;
}

.tp-advice-risks {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 .85rem;
    padding: 0;
    list-style: none;
}

    .tp-advice-risks li {
        padding: .1rem .55rem;
        border-radius: 999px;
        background: #f3f4f6;
        color: #374151;
        font-size: .8rem;
    }

.tp-advice-text {
    max-height: 32rem;
    overflow: auto;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: #f9fafb;
    font-size: .93rem;
}

    .tp-advice-text h2, .tp-advice-text h3, .tp-advice-text h4 {
        margin: 1rem 0 .4rem;
        color: #1F2937;
        font-size: 1rem;
    }

        .tp-advice-text h2:first-child, .tp-advice-text h3:first-child {
            margin-top: 0;
        }

    .tp-advice-text a {
        color: #2D7DD2;
    }

.tp-advice-full a, .tp-advice-none a {
    color: #2D7DD2;
    font-weight: 600;
}

.tp-advice-stale {
    padding: .5rem .75rem;
    border-radius: 8px;
    background: #fef3c7;
    color: #78350f;
    font-size: .9rem;
}

.tp-advice-credits {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    color: #6b7280;
    font-size: .8rem;
}

    .tp-advice-credits p {
        margin: 0 0 .35rem;
    }

    .tp-advice-credits img {
        margin-right: .3rem;
        vertical-align: -2px;
    }

    .tp-advice-credits a {
        color: #2D7DD2;
    }

/* the Tripopedia home page's link to it */
.tp-world-advice {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #9a3412;
    font-weight: 600;
    text-decoration: none;
}

    .tp-world-advice:hover {
        text-decoration: underline;
    }

/* a phone: the table becomes one block per country, each source's level labelled */
@media (max-width: 640px) {
    .tp-advice-table thead {
        display: none;
    }

    .tp-advice-table, .tp-advice-table tbody, .tp-advice-table tr, .tp-advice-table th, .tp-advice-table td {
        display: block;
    }

    .tp-advice-table tr {
        padding: .5rem 0;
        border-bottom: 1px solid #E5E7EB;
    }

    .tp-advice-table th, .tp-advice-table td {
        padding: .2rem 0;
        border: 0;
    }

        .tp-advice-table td::before {
            content: attr(data-source) ": ";
            margin-right: .3rem;
            color: #6b7280;
            font-size: .8rem;
        }

    .tp-advice-map {
        height: 46vh;
    }
}
