@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

#cc-directory {
& {
    color-scheme: light;
    --paper: #f8fbfa;
    --surface: #fff;
    --wash: #edf5f3;
    --tint: #e2f0ed;
    --border: #c5dad6;
    --ink: #263e3c;
    --heading: #103f43;
    --dark: #10383e;
    --muted: #496460;
    --link: #086575;
    --hover: #034b59;
    --sea-glass: #8ed4ce;
    --amber: #f4c95d;
    --amber-hover: #f8d77f;
    --icon-gold: #a1781f;
    font: 100% / 1.6 "Instrument Sans", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    scrollbar-color: var(--muted) var(--wash);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
::selection { color: var(--dark); background: var(--sea-glass); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--hover); }
button, input, select { font: inherit; }
button, input, select {
    min-height: 44px;
    border: 1px solid var(--muted);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--dark);
    background: var(--surface);
}
button { cursor: pointer; font-weight: 650; }
button:hover { background: var(--tint); }
button:disabled { opacity: .6; cursor: default; }
.primary { background: var(--amber); border-color: var(--dark); }
.primary:hover { background: var(--amber-hover); }
input { caret-color: var(--link); }
input::placeholder { color: var(--muted); }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { color: var(--heading); font-weight: 600; }
h1 { font-size: clamp(2.375rem, 4.4vw, 3.125rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2rem); line-height: 1.22; letter-spacing: -.025em; margin: 0 0 12px; }
h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.015em; margin: 0; }

.shell { width: min(100% - 48px, 1160px); margin-inline: auto; }
.skip { position: absolute; inset: 12px auto auto 12px; padding: 8px 16px; background: var(--surface); transform: translateY(-160%); z-index: 9999; }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); color: var(--muted); }
footer { background: var(--dark); color: var(--sea-glass); }
.site-header .shell, footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { color: var(--heading); text-decoration: none; font-weight: 700; font-size: 1.24rem; letter-spacing: -.03em; }
.brand:hover { color: var(--link); }
.brand span { color: var(--icon-gold); }
.directory-label, footer span { font-size: .9rem; }
footer a { color: var(--sea-glass); }
footer a:hover { color: var(--paper); }
.breadcrumb { margin-block: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin-inline-end: 10px; }
.intro { margin-block: 12px 16px; }
.intro p { max-width: 68ch; font-size: 1.0625rem; color: var(--muted); }
.country-flag { display: inline-block; width: 1.22em; height: .92em; object-fit: contain; vertical-align: -.1em; margin-inline-end: .38em; }

.map-panel { border: 1px solid var(--border); border-radius: 6px; background: var(--paper); }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; min-height: 38px; }
.map-status, .muted { color: var(--muted); font-size: .86rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#map-frame { position: relative; }
#map { height: clamp(168px, 27vh, 244px); width: 100%; background: var(--tint); color: var(--dark); }
#map-frame #map { border-radius: 5px 5px 0 0; }
.map-expand { position: absolute; z-index: 500; top: 8px; right: 8px; min-height: 44px; padding-inline: 10px; font-size: .85rem; font-weight: 650; }
#fit-map { border: 0; background: transparent; min-height: 38px; padding: 5px 4px; color: var(--link); white-space: nowrap; }
#fit-map:hover { color: var(--hover); background: var(--tint); }
#map-dialog { width: min(1120px, calc(100% - 24px)); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); }
#map-dialog::backdrop { background: rgb(16 56 62 / .75); }
#map-dialog #map { height: min(74vh, 710px); min-height: 240px; }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.dialog-bar h2 { margin: 0; }
.leaflet-tile-pane { filter: saturate(.42); }
.gym-marker { display: grid !important; place-items: center; border-radius: 50%; }
.gym-marker span { display: grid; place-items: center; width: 13px; height: 13px; border: 1px solid var(--heading); border-radius: 50%; background: var(--heading); color: var(--heading); }
.gym-marker.marker-cluster span { width: 29px; height: 29px; background: #dfebe8; font: 650 .75rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gym-marker.city-marker span { border-style: dashed; background: var(--surface); }
.gym-marker:hover span, .gym-marker:focus-visible span { border-color: var(--heading); background: var(--sea-glass); }
.leaflet-container .gym-marker:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.leaflet-container a { color: var(--link); text-decoration: none; }
.pin-results { margin: 4px 0 8px; padding-inline-start: 16px; max-height: 12rem; overflow-y: auto; }
.pin-results li { margin-block: 4px; }
.pin-results a { font-weight: 650; }

.places { margin-block: 24px; }
.places ul { list-style: none; }
.places a { font-weight: 650; padding-block: 8px; }
.places .opening-list { display: grid; gap: 0; }
.opening-list li { display: block; border-top: 1px solid var(--border); padding-block: 8px; }
.opening-list a { display: inline-block; }
.opening-list p { color: var(--muted); padding-bottom: 4px; }
.directory-search { display: flex; align-items: center; gap: 8px; margin-block: 0 12px; }
.directory-search label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.directory-search input { width: min(100%, 440px); min-width: 0; border-color: #71908a; }
.directory-layout { display: grid; grid-template-columns: minmax(174px, 192px) minmax(0, 1fr); align-items: start; gap: 24px; margin-block: 20px; }
.directory-sidebar, .directory-main { min-width: 0; }
.sidebar-section { border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; }
.sidebar-section > summary { cursor: pointer; color: var(--heading); font-weight: 650; min-height: 44px; padding: 9px 0; }
#active-filter-count { color: var(--muted); font-weight: 500; font-size: .8rem; margin-left: .3em; }
.browse-section ul { list-style: none; max-height: 17rem; overflow-y: auto; padding: 0 4px 4px; }
.browse-section li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; font-size: .88rem; }
.browse-section li a { display: block; padding-block: 5px; overflow-wrap: anywhere; }
.browse-section li > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.section-links { margin: 8px 0; font-size: .88rem; }
.section-links a { display: inline-block; padding-block: 6px; }
.filters { display: grid; gap: 8px; padding: 4px 0 8px; }
.filters label { display: grid; gap: 3px; font-weight: 600; font-size: .84rem; }
.filters label > input, .filters select { width: 100%; min-width: 0; }
.filters button[type="reset"] { min-height: 38px; justify-self: start; }
.price-filters { grid-column: 1 / -1; border-block: 1px solid var(--border); padding: 6px 0; }
.price-filters > summary { cursor: pointer; font-size: .86rem; font-weight: 650; }
.price-filters[open] > :not(summary) { margin-top: 7px; }
.price-filters #max-price { display: block; width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: var(--link); cursor: pointer; }
.price-filters output { display: block; color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.filter-picker { position: relative; min-width: 0; }
.filter-picker > summary { position: relative; list-style: none; cursor: pointer; min-height: 44px; border: 1px solid var(--muted); border-radius: 6px; background: var(--surface); padding: 8px 24px 8px 10px; overflow-wrap: anywhere; }
.filter-picker > summary::-webkit-details-marker { display: none; }
.filter-picker > summary::after { content: ""; position: absolute; inset: 15px 12px auto auto; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.filter-picker[open] > summary::after { transform: translateY(4px) rotate(225deg); }
.filter-menu { position: absolute; z-index: 800; inset: calc(100% + 3px) 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 18px rgb(16 56 62 / .14); padding: 6px; }
.filter-menu input { width: 100%; min-height: 38px; padding: 6px 8px; }
.filter-options { max-height: 12rem; overflow: auto; margin-top: 4px; padding: 3px; }
.filter-options button { position: relative; display: block; width: 100%; min-height: 38px; border: 0; text-align: left; padding: 5px 24px 5px 6px; font-weight: 550; overflow-wrap: anywhere; }
.filter-options button[aria-pressed="true"] { background: var(--tint); font-weight: 750; }
.filter-options button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 14px 8px auto auto; width: 8px; height: 5px; border: solid var(--link); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.filter-options button:focus-visible { outline-offset: -3px; }
.filter-empty { padding: 6px; color: var(--muted); font-size: .86rem; }
.results-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.results-header h2 { margin: 0; }
.directory-results { margin-bottom: 24px; }
.table-scroll { position: relative; max-inline-size: 100%; overflow-x: auto; border-block: 1px solid var(--border); }
#table-hint { margin-bottom: 4px; }
.gym-table { width: 100%; min-width: 34rem; border-spacing: 0; font-size: .875rem; line-height: 1.35; text-align: left; }
.gym-table th, .gym-table td { padding: 8px 12px; vertical-align: middle; }
.gym-table thead { color: var(--heading); background: var(--tint); }
.gym-table thead th { font-weight: 650; white-space: nowrap; }
.gym-row { --row-fill: var(--surface); background: var(--row-fill); }
.gym-row:nth-child(even of :not([hidden])) { --row-fill: var(--wash); }
.gym-row:focus-within, .gym-row:hover { --row-fill: #e6f0ee; }
.gym-table .gym-name { width: 21%; min-width: 9.25rem; max-width: 19rem; font-weight: 550; }
.table-region { min-width: 8.5rem; }
.table-styles { width: 21%; min-width: 11.5rem; }
.table-country { display: inline-flex; align-items: baseline; gap: 5px; }
.table-country .country-flag { flex: none; margin: 0; }
.gym-row a { font-weight: 600; overflow-wrap: anywhere; }
.gym-row a:focus-visible { outline-offset: 1px; }
.gym-status { display: block; color: var(--muted); font-size: .76rem; }
.gym-table .table-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-missing { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.gym-style { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.table-styles .gym-style { display: grid; grid-template-columns: repeat(2, max-content); justify-items: start; }
.style-chip { position: relative; display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: #285344; white-space: nowrap; font-size: .75rem; font-weight: 600; line-height: 1.25; }
.style-chip[data-style="rope"] { background: #e8eff4; color: #2a4e68; }
.style-chip[data-style="auto"] { background: #efeaf4; color: #524068; }
.style-chip[data-style="speed"] { background: #f5ebd7; color: #654816; }
.pagination { margin-top: 16px; display: flex; align-items: center; justify-content: end; gap: 12px; }
#no-results { margin-top: 12px; }
.continent-explorer, .country-highlights { border-top: 1px solid var(--border); margin-block: 32px 56px; padding-top: 24px; scroll-margin-top: 12px; }
.continent-index { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 8px; background: var(--wash); }
.continent-index a { display: grid; gap: 3px; align-content: center; padding: 8px 12px; min-height: 52px; border: 1px solid transparent; border-radius: 6px; line-height: 1.25; }
.continent-index a strong { font-weight: 600; }
.continent-index a span { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.continent-index a:hover { background: var(--surface); }
.continent-index a[aria-current="true"] { background: var(--tint); border-color: var(--link); }
.continent-panel { margin-top: 16px; }
.continent-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; margin-bottom: 12px; }
.continent-heading h3 { font-size: 1.625rem; }
.explore-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.explore-link svg { flex: 0 0 18px; width: 18px; height: 18px; }
.section-links .explore-link { display: inline-flex; }
.destination-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.country-finder { min-width: 0; padding: 12px 16px; border-radius: 6px; background: var(--wash); }
.destination-layout :is(h3, h4) { margin: 0 0 8px; color: var(--heading); font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
.wall-highlights > :is(h3, h4) { margin-top: 12px; margin-bottom: 12px; }
.country-search { margin-block: 12px 4px; }
.country-search input { width: 100%; min-width: 0; }
.country-finder ul, .wall-grid { list-style: none; }
.country-finder li + li { border-top: 1px solid var(--border); }
.country-finder a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding-block: 5px; font-weight: 600; line-height: 1.25; }
.country-finder a:hover { background: var(--tint); }
.country-finder .country-flag { width: 20px; height: 15px; margin: 0; }
.country-finder small { color: var(--muted); font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.country-empty { margin-block: 12px 4px; color: var(--muted); }
.country-more { margin-top: 8px; padding-inline: 0; border: 0; background: transparent; color: var(--link); }
.country-more:hover { background: transparent; color: var(--hover); }
.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.country-feature { padding-block: 12px 20px; border-top: 1px solid var(--border); }
.country-feature h3 { margin: 0; }
.country-feature h3 a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.country-cards { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px; margin: 12px -4px 0; }
.country-cards button { flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--link); }
.country-cards small { color: var(--muted); font-variant-numeric: tabular-nums; }
.country-cards .country-flag { margin: 0; }
.country-cards button[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 0 0 1px var(--link); border-color: var(--link); font-weight: 700; }
.country-cards button[aria-pressed="true"]::after { content: ""; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.venue-layout, .venue-location, .gym-rail { margin-block: 24px; }

.venue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 310px); gap: 32px; align-items: start; }
.venue-layout:not(:has(.venue-main > section)) { grid-template-columns: minmax(0, 420px); }
.venue-layout:not(:has(.venue-main > section)) .visit-panel { grid-column: 1; }
.venue-main { grid-column: 1; grid-row: 1; min-width: 0; }
.venue-main section + section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.venue-main p { max-width: 68ch; }
.visit-panel { grid-column: 2; grid-row: 1; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 16px; }
.visit-panel h2 { font-size: 1.3125rem; }
.icon-link { display: flex; align-items: start; gap: 8px; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.icon-link svg, .facility-list svg { flex: 0 0 24px; color: var(--icon-gold); }
.venue-links { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.facility-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.facility-list li { display: flex; align-items: start; gap: 12px; }
.venue-main .gym-style + .facility-list { margin-top: 16px; }
.extra-facilities { margin-top: 16px; }
.extra-facilities summary { display: list-item; width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 6px; color: var(--link); cursor: pointer; }
.extra-facilities ul { margin-top: 12px; }
.venue-sizes { margin: 16px 0 0; list-style: none; color: var(--muted); font-size: .875rem; }
.price-table { width: 100%; border-spacing: 0; border-block: 1px solid var(--border); text-align: left; font-size: .875rem; line-height: 1.45; }
.price-group + .price-group { margin-top: 20px; }
.price-group h3 { margin-bottom: 8px; }
.price-table th, .price-table td { padding: 8px 12px; vertical-align: top; }
.price-table thead { background: var(--tint); color: var(--heading); }
.price-table tbody { background: var(--surface); }
.price-table tbody tr:nth-child(even) { background: var(--wash); }
.price-table tbody th { font-weight: 600; }
.price-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.venue-location, .venue-layout + .gym-rail { padding-top: 24px; border-top: 1px solid var(--border); }
.rail-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.rail-header :is(h2, h4) { margin: 0; }
.rail-controls { display: flex; gap: 8px; margin-inline-start: auto; }
.rail-controls button { display: grid; place-items: center; width: 44px; padding: 0; color: var(--link); }
.rail-controls svg { width: 20px; height: 20px; }
.rail-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(216px, 25vw, 256px); gap: 12px; align-items: stretch; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 8px; margin-inline: -4px; }
.rail-track li { min-width: 0; scroll-snap-align: start; }
.rail-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 8px; height: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 12px; }
.rail-card > svg { width: 18px; height: 18px; }
.rail-card:hover { background: var(--tint); }
.rail-copy { display: grid; gap: 4px; line-height: 1.35; }
.rail-copy strong { font-weight: 600; overflow-wrap: break-word; }
.rail-copy > span { color: var(--muted); font-size: .875rem; }
.rail-copy > .rail-area { margin-top: 4px; color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-area span { color: var(--muted); font-weight: 400; }
.rail-copy .gym-style { margin-block: 4px; }
.wall-card { grid-template-columns: minmax(0, 1fr); }
.wall-card .rail-copy { grid-template-rows: auto auto 1fr; height: 100%; }
.wall-card .rail-area { align-self: end; font-size: clamp(1rem, 2vw, 1.375rem); letter-spacing: -.02em; }
.continent-panel .wall-grid li:first-child .wall-card { border-color: var(--dark); background: var(--dark); color: var(--sea-glass); }
.continent-panel .wall-grid li:first-child .wall-card:hover { background: var(--heading); }
.continent-panel .wall-grid li:first-child .rail-copy > span { color: #d9ebe8; }
.continent-panel .wall-grid li:first-child .rail-copy > .rail-area { color: var(--amber); }

@media (max-width: 960px) {
    .destination-layout { gap: 24px; }
    .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .shell { width: calc(100% - 40px); }
    .directory-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .directory-sidebar { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 16px; }
    .sidebar-section { flex: 1 1 auto; margin: 0; padding: 0; }
    .sidebar-section[open] { flex-basis: 100%; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-links { margin: 0; }
    .gym-table tr > :first-child { position: sticky; left: 0; background: var(--row-fill, var(--tint)); z-index: 1; border-right: 1px solid var(--border); }
    .gym-table .gym-name { width: 9rem; min-width: 9rem; max-width: 9rem; }
    .continent-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .destination-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .venue-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .visit-panel, .venue-main { grid-column: auto; grid-row: auto; }
}
@media (max-width: 620px) {
    #map { height: clamp(150px, 20vh, 180px); }
    .map-status { font-size: .78rem; }
    .directory-search { display: grid; gap: 3px; }
    .directory-search input { width: 100%; }
    .pagination { justify-content: flex-start; flex-wrap: wrap; }
    .price-table th, .price-table td { padding-inline: 6px; }
    .facility-list { column-gap: 12px; }
    footer .shell { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-width: 350px) {
    .filters, .facility-list { grid-template-columns: 1fr; }
    .continent-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

}
