/* The available viewport—not a fixed minimum height—sets the globe's size. */
.travel-page { --travel-accent: #466e7a; --travel-nav-height: 64px; }
[data-theme="dark"] .travel-page { --travel-accent: #9bc5d0; }
.travel-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.travel-page [hidden] { display: none !important; }
.travel-page .nav { min-height: 64px; padding: 10px clamp(16px, 3vw, 48px); }
.travel-page .carousel-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: var(--travel-nav-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: visible;
}
.travel-page .carousel-hero {
    grid-column: 1 / -1;
    padding: clamp(8px, 2vh, 24px) 24px 0;
}
.travel-page .carousel-title { font-size: clamp(28px, 4.5vh, 44px); line-height: 1.12; margin: 0 0 8px; }
.travel-page .carousel-subtitle { font-size: clamp(14px, 1.8vh, 16px); line-height: 1.4; margin: 0; }
.travel-page .globe-tools { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
.travel-page .globe-tools :is(select, button) { min-height: 44px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--text-secondary); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.travel-page .globe-tools select { max-width: min(210px, 55vw); text-overflow: ellipsis; }
.travel-page .globe-tools :is(button, select):hover { color: var(--text-primary); }
/* Cross-city place search (travel-search.js) */
.travel-page .travel-search { position: relative; width: min(300px, 100%); margin: 2px auto 0; grid-column: 1 / -1; }
.travel-page .travel-search::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: var(--text-tertiary); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Keep the search results above the globe's city labels */
.travel-page .carousel-hero { position: relative; z-index: 30; }
.travel-page .travel-search input { width: 100%; min-height: 38px; padding: 7px 14px 7px 34px; font: inherit; font-size: 14px; color: var(--text-primary); background: transparent; border: 1px solid var(--border); border-radius: 100px; -webkit-appearance: none; appearance: none; }
.travel-page .travel-search input::placeholder { color: var(--text-tertiary); }
.travel-page .travel-search input:is(:hover, :focus) { outline: none; border-color: var(--text-tertiary); }
.travel-page .travel-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.travel-page .travel-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; text-align: left; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); max-height: min(60vh, 420px); overflow-y: auto; }
.travel-page .travel-search-results a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--text-primary); text-decoration: none; }
.travel-page .travel-search-results a:is(:hover, :focus-visible) { background: var(--bg-secondary); outline: none; }
.travel-page .travel-search-title { font-size: 14px; font-weight: 500; }
.travel-page .travel-search-meta { font-size: 12px; color: var(--text-tertiary); }
.travel-page .travel-search-empty { padding: 10px; font-size: 13px; color: var(--text-secondary); }
.travel-page .globe-container { grid-column: 1; grid-row: 2; width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; padding: 0; overflow: hidden; }
.travel-page #globe { position: absolute; inset: 0; }
.travel-page #globe canvas { display: block; }
/* Still image of the globe's opening view, shown until the live globe fades in.
   Sized like globe.js resizeGlobe(): diameter = min(width - 56px, height - 16px). */
.travel-page .globe-poster { position: absolute; inset: 0; container-type: size; pointer-events: none; transition: opacity 0.4s ease; }
.travel-page .globe-poster-image { position: absolute; top: 50%; left: 50%; width: min(100cqw - 56px, 100cqh - 16px); aspect-ratio: 1; transform: translate(-50%, -50%); background: url("images/globe/poster-wide-light.webp") center / contain no-repeat; }
[data-theme="dark"] .travel-page .globe-poster-image { background-image: url("images/globe/poster-wide-dark.webp"); }
@container (max-aspect-ratio: 11 / 10) {
    .travel-page .globe-poster-image { background-image: url("images/globe/poster-mid-light.webp"); }
    [data-theme="dark"] .travel-page .globe-poster-image { background-image: url("images/globe/poster-mid-dark.webp"); }
}
@container (max-aspect-ratio: 4 / 5) {
    .travel-page .globe-poster-image { background-image: url("images/globe/poster-tall-light.webp"); }
    [data-theme="dark"] .travel-page .globe-poster-image { background-image: url("images/globe/poster-tall-dark.webp"); }
}
.travel-page .globe-container.is-ready .globe-poster { opacity: 0; }
.travel-page .globe-container.is-loading .globe-loading { opacity: 0; }
.travel-page .globe-unavailable .globe-loading { opacity: 1; text-transform: none; letter-spacing: 0; color: var(--text-secondary); padding: 24px; text-align: center; }
.travel-page .carousel-page.has-selection { grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 370px); }
.travel-page .globe-marker { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text-primary); font: 500 14px/1.2 Inter, sans-serif; white-space: nowrap; cursor: pointer; pointer-events: auto; text-shadow: 0 1px 3px var(--bg-primary), 0 -1px 3px var(--bg-primary); }
.travel-page .globe-marker::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--travel-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--travel-accent) 12%, transparent); }
.travel-page .globe-marker:is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--bg-primary); }
.travel-page .globe-marker[aria-pressed="true"] { color: var(--travel-accent); text-decoration: underline; text-underline-offset: 4px; }
.travel-page .globe-marker.is-occluded { visibility: hidden !important; pointer-events: none !important; }
.travel-page .globe-city-panel {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: calc(100% - 20px);
    max-width: none;
    max-height: 100%;
    min-height: 0;
    margin: 0 20px 0 0;
    padding: 24px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--travel-accent) transparent;
    background: var(--bg-primary);
    backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.035);
    transition: none;
    z-index: 2;
}
.travel-page .globe-city-panel > * { flex-shrink: 0; }
.travel-page .globe-panel-close { position: sticky; align-self: flex-end; top: 0; margin: -16px -12px -28px 0; width: 44px; height: 44px; border: 0; background: var(--bg-primary); border-radius: 50%; color: var(--text-secondary); cursor: pointer; font: 400 24px/1 Inter, sans-serif; z-index: 3; }
.travel-page .globe-panel-close:hover { color: var(--text-primary); }
.travel-page .globe-panel-back { min-height: 32px; padding-right: 44px; border: 0; background: none; text-align: left; color: var(--text-secondary); font: inherit; font-size: 14px; cursor: pointer; }
.travel-page .globe-city-info { text-align: left; padding-right: 32px; }
.travel-page .globe-city-name { font-size: clamp(22px, 3vh, 28px); font-weight: 500; letter-spacing: -.035em; margin: 4px 0 8px; }
.travel-page .globe-city-country { color: var(--text-secondary); font-size: 14px; }
.travel-page .globe-city-count { color: var(--text-secondary); font-size: 14px; }
.travel-page .globe-city-photo { width: 100%; height: clamp(80px, 15vh, 150px); object-fit: cover; border-radius: 8px; margin-top: 12px; }
.travel-page .globe-city-description { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.travel-page .globe-scroll-cue { margin: 0; color: var(--travel-accent); font-size: 12px; }
.travel-page .globe-city-list { display: flex; flex-direction: column; max-height: none; min-width: 0; overflow: visible; margin: 0; gap: 0; }
.travel-page .globe-city-list-item { display: flex; align-items: center; justify-content: space-between; min-height: 48px; width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 8px 0; gap: 8px; font: inherit; font-size: 14px; text-align: left; color: var(--text-primary); text-decoration: none; box-shadow: none; }
.travel-page .globe-city-list-item:last-child { border-bottom: 0; }
.travel-page .globe-city-list-item:hover { background: var(--bg-secondary); }
.travel-page .globe-city-list-item .city-count { min-width: 0; font-size: 12px; }
.travel-page .globe-panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.travel-page :is(.globe-city-link, .globe-guide-link) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 400; color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.travel-page .globe-city-link { color: var(--travel-accent); font-weight: 500; }
.travel-page .globe-city-link:hover { transform: none; box-shadow: none; }
.travel-page .globe-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 24px; padding: 0 16px max(4px, env(safe-area-inset-bottom)); }
.travel-page .globe-hint { margin: 0; color: var(--text-secondary); font-size: 12px; letter-spacing: 0; }
.travel-page .globe-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-secondary); font-size: 14px; text-decoration: none; }
.travel-page .globe-footer a:hover { color: var(--text-primary); text-decoration: underline; }
.travel-page :is(button, select, a):focus-visible { outline: 2px solid var(--travel-accent); outline-offset: 3px; }

/* Switch navigation before its centered links collide with the logo. */
@media (max-width: 1000px) {
    .travel-page .hamburger { display: flex; }
    .travel-page .nav-links { display: none; top: 100%; left: 0; right: 0; flex-direction: column; align-items: center; gap: 20px; padding: 24px; background: var(--bg-primary); border-bottom: 1px solid var(--border); transform: none; max-height: calc(100dvh - var(--travel-nav-height)); overflow-y: auto; }
    .travel-page .nav-links.open { display: flex; }
}

/* Short desktop windows use a compact heading beside the controls. */
@media (min-width: 701px) and (max-height: 700px) {
    .travel-page .carousel-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; padding: 8px 32px; text-align: left; }
    .travel-page .carousel-title { font-size: 28px; text-align: left; margin-bottom: 4px; }
    .travel-page .carousel-subtitle { grid-column: 1; text-align: left; font-size: 14px; }
    .travel-page .globe-tools { grid-column: 2; grid-row: 1 / 3; margin: 0; }
}

/* On narrow screens the details share the height with the globe. */
@media (max-width: 700px) {
    .travel-page .carousel-page { grid-template-rows: auto minmax(120px, 1fr) auto auto; }
    .travel-page .carousel-page.has-selection { grid-template-columns: minmax(0, 1fr); }
    .travel-page .carousel-hero { padding: 4px 16px 0; }
    .travel-page .carousel-title { font-size: 28px; margin-bottom: 4px; }
    .travel-page .globe-tools { gap: 4px; margin-top: 2px; }
    .travel-page .globe-tools select, .travel-page .travel-search input { font-size: 16px; }
    .travel-page .globe-city-panel { grid-column: 1; grid-row: 3; width: calc(100% - 24px); max-height: 34dvh; margin: 0 12px; padding: 20px 16px; gap: 10px; }
    .travel-page .globe-city-name { font-size: 24px; }
    .travel-page .globe-city-description { font-size: 13px; }
    .travel-page .globe-footer { grid-row: 4; gap: 0 12px; padding-inline: 8px; }
    .travel-page .globe-footer a { font-size: 12px; }
}
/* Landscape phones retain a useful globe beside the details. */
@media (min-width: 560px) and (max-width: 700px) and (max-height: 500px) {
    .travel-page .carousel-page { grid-template-rows: auto minmax(120px, 1fr) auto; }
    .travel-page .carousel-page.has-selection { grid-template-columns: minmax(0, 1fr) 260px; }
    .travel-page .carousel-hero { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px; gap: 12px; }
    .travel-page .carousel-title { font-size: 24px; margin: 0; }
    .travel-page .carousel-subtitle { display: none; }
    .travel-page .globe-tools { margin: 0; }
    .travel-page .globe-city-panel { grid-column: 2; grid-row: 2; width: calc(100% - 12px); max-height: 100%; margin: 0 12px 0 0; }
    .travel-page .globe-footer { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .travel-page *, .travel-page *::before, .travel-page *::after { animation: none !important; transition: none !important; } }
/* Keep destinations and actions visible when the details area is shallow. */
@media (max-width: 700px), (max-height: 600px) {
    .travel-page .globe-city-panel:has(.globe-city-list:not([hidden])) .globe-city-description { display: none; }
    .travel-page .globe-panel-links { order: 1; }
    .travel-page .globe-city-description { order: 2; }
    .travel-page .globe-city-photo { order: 3; }
}

/* Every destination as plain links below the globe (crawlable; the globe and search are JS-only). */
.travel-page .travel-destinations { max-width: 1040px; margin: 0 auto; padding: 48px 24px 72px; border-top: 1px solid var(--border); }
.travel-page .travel-destinations h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 24px; color: var(--text-primary); }
.travel-page .travel-destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 32px; }
.travel-page .travel-destinations h3 { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 8px; }
.travel-page .travel-destinations ul { list-style: none; margin: 0; padding: 0; }
.travel-page .travel-destinations li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.travel-page .travel-destinations a { color: var(--text-primary); text-decoration: none; }
.travel-page .travel-destinations a:hover { text-decoration: underline; }
.travel-page .travel-destinations li span { color: var(--text-tertiary); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .travel-page .travel-destinations { padding: 36px 16px 56px; } .travel-page .travel-destinations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
