:root {
    --navy: #0b2f4f;
    --blue: #006298;
    --light-blue: #e9f4fa;
    --red: #e43d30;
    --gold: #f3c64e;
    --ink: #10253a;
    --muted: #5f6f7f;
    --line: #d4dde5;
    --white: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: #edf3f7; }
button, input, select { font: inherit; }

.club-map-shell {
    display: grid;
    grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
    width: 100%;
    min-height: 720px;
    height: 100vh;
    overflow: hidden;
    background: var(--white);
}

.club-map-directory {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid #c3d0da;
    background: rgba(255, 255, 255, .98);
    box-shadow: 8px 0 22px rgba(11, 47, 79, .12);
}

.club-map-brand { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: .8rem; align-items: center; padding: 1rem; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue)); }
.club-map-brand img { width: 88px; max-height: 76px; padding: .35rem; object-fit: contain; border-radius: .6rem; background: var(--white); }
.club-map-brand h1 { margin: .12rem 0 .25rem; font-size: 1.55rem; line-height: 1; }
.club-map-brand p { margin: 0; font-size: .82rem; line-height: 1.35; }
.club-map-brand .eyebrow { color: #bfe6fa; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.club-map-filters { display: grid; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: #f7fafc; }
.club-map-filters label { display: grid; gap: .3rem; font-size: .78rem; font-weight: 750; }
.club-map-filters input[type="search"], .club-map-filters select { width: 100%; min-height: 42px; padding: .55rem .65rem; border: 1px solid #aebdca; border-radius: .55rem; color: var(--ink); background: var(--white); }
.club-map-filters input:focus, .club-map-filters select:focus { outline: 3px solid rgba(0, 98, 152, .22); border-color: var(--blue); }
.club-map-filters fieldset { display: flex; flex-wrap: wrap; gap: .45rem .75rem; margin: 0; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .55rem; }
.club-map-filters legend { padding: 0 .3rem; font-size: .75rem; font-weight: 800; }
.club-map-selects { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .65rem; }
.club-map-reset { justify-self: start; padding: .45rem .6rem; border: 1px solid #aebdca; border-radius: .4rem; color: var(--blue); background: var(--white); cursor: pointer; font-size: .75rem; font-weight: 750; }
.club-map-reset:focus-visible { outline: 3px solid rgba(0, 98, 152, .35); outline-offset: 2px; }
.club-map-filters fieldset label { display: flex; flex-direction: row; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 650; }

.club-map-summary { padding: .65rem 1rem; color: var(--navy); font-size: .78rem; font-weight: 800; border-bottom: 1px solid var(--line); }
.club-map-results { flex: 1 1 auto; overflow-y: auto; padding: .6rem; }
.club-map-empty { margin: .5rem; padding: 1rem; border: 1px dashed #afbfcb; border-radius: .7rem; color: var(--muted); text-align: center; }
.club-map-region-group { margin-bottom: .6rem; }
.club-map-region-group > h2 { position: sticky; top: -.6rem; z-index: 1; margin: 0 0 .35rem; padding: .52rem .6rem; color: var(--navy); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; background: #e8f1f7; border-radius: .45rem; }
.club-map-club { padding: .7rem; border-bottom: 1px solid #e4e9ee; }
.club-map-club:last-child { border-bottom: 0; }
.club-map-club-heading { display: flex; align-items: center; gap: .6rem; }
.club-map-club-logo { flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); }
.club-map-club-logo-placeholder { display: grid; place-items: center; color: var(--white); background: var(--blue); font-weight: 900; }
.club-map-club h3 { margin: 0; font-size: .92rem; }
.club-map-description { margin: .5rem 0 0; color: var(--muted); font-size: .73rem; line-height: 1.4; white-space: pre-line; }
.club-map-description-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.club-map-club-heading > div { min-width: 0; }
.club-map-club-title { padding: 0; border: 0; color: var(--navy); background: transparent; text-align: left; font-weight: 750; cursor: pointer; overflow-wrap: anywhere; }
.club-map-club-title:hover { color: var(--blue); text-decoration: underline; }
.club-map-details-link { margin-top: .5rem; padding: .4rem 0; border: 0; color: var(--blue); background: transparent; font-size: .75rem; font-weight: 750; text-decoration: underline; cursor: pointer; }
.club-map-club-title:focus-visible, .club-map-details-link:focus-visible, .club-map-detail-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.club-map-programs { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.club-map-programs span { padding: .12rem .38rem; border-radius: 999px; color: #174b68; background: var(--light-blue); font-size: .65rem; font-weight: 750; }
.club-map-location { display: block; width: 100%; margin-top: .45rem; padding: .42rem .5rem; border: 0; border-left: 3px solid var(--red); border-radius: .25rem; color: var(--ink); background: #f9fbfc; text-align: left; cursor: pointer; }
.club-map-location:hover, .club-map-location:focus { background: #eef6fa; outline: 2px solid rgba(0, 98, 152, .2); }
.club-map-location[disabled] { border-left-color: #9eabb5; cursor: default; }
.club-map-location strong, .club-map-location small { display: block; }
.club-map-location small { margin-top: .12rem; color: var(--muted); line-height: 1.3; }
.club-map-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .45rem; font-size: .72rem; }
.club-map-links a { color: var(--blue); font-weight: 750; }
.club-map-contacts { display: grid; gap: .25rem; margin-top: .55rem; padding: .5rem; border-radius: .45rem; background: #f3f7fa; font-size: .7rem; }
.club-map-contacts > strong { color: var(--navy); }
.club-map-contacts p { display: grid; gap: .08rem; margin: 0; }
.club-map-contacts a { color: var(--blue); }
.club-map-directory footer { padding: .65rem 1rem; color: var(--muted); font-size: .68rem; line-height: 1.35; border-top: 1px solid var(--line); }

.club-map-stage { position: relative; min-width: 0; min-height: 500px; background: #dfe8ee; }
.club-google-map { width: 100%; height: 100%; }
.club-map-message { position: absolute; inset: auto 1rem 1rem; z-index: 1; max-width: 560px; margin: auto; padding: .75rem 1rem; border: 1px solid #aebdca; border-radius: .65rem; color: var(--navy); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 22px rgba(11, 47, 79, .15); text-align: center; }
.club-map-message[hidden] { display: none; }
.club-map-pin { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid var(--white); border-radius: 50% 50% 50% 0; color: var(--white); background: var(--red); box-shadow: 0 2px 7px rgba(11, 47, 79, .35); font-size: .72rem; font-weight: 900; transform: rotate(-45deg); }
.club-map-pin span { transform: rotate(45deg); }
.club-map-details { width: min(760px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--white); box-shadow: 0 12px 48px rgba(11, 47, 79, .3); overflow: hidden; }
.club-map-details[open] { display: flex; flex-direction: column; }
.club-map-details { position: fixed; top: 0; bottom: auto; margin: 1rem auto; max-height: calc(min(100dvh, var(--club-map-detail-viewport-height, 100dvh)) - 2rem); }
.club-map-details::backdrop { background: rgba(11, 47, 79, .6); }
.club-map-detail-header { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 1rem; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: #f3f7fa; }
.club-map-detail-header h2 { margin: .35rem 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.club-map-detail-close { flex: 0 0 auto; min-height: 44px; padding: .5rem .8rem; border: 1px solid #aebdca; border-radius: .4rem; color: var(--blue); background: var(--white); cursor: pointer; font-weight: 750; }
.club-map-detail-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .4rem .55rem 1rem; overflow-wrap: anywhere; }
.club-map-detail-body .club-map-description { margin: 1rem 0; font-size: .95rem; line-height: 1.6; color: var(--ink); }
.club-map-detail-body .club-map-club { border: 0; }
.club-map-detail-body .club-map-programs span { font-size: .78rem; }
.club-map-detail-body .club-map-links, .club-map-detail-body .club-map-contacts { font-size: .9rem; gap: .75rem; }
.club-map-detail-body .club-map-contacts p { gap: .3rem; }
.club-map-detail-body .club-map-location { cursor: default; }
.club-map-detail-area { color: var(--muted); font-size: .85rem; }
.club-map-noscript { margin: 1rem; padding: 1rem; background: var(--white); }

@media (max-width: 760px) {
    .club-map-details { width: calc(100% - 1rem); }
    .club-map-detail-header { padding: .65rem .75rem; gap: .5rem; }
    .club-map-shell { grid-template-columns: 1fr; grid-template-rows: minmax(330px, 38vh) minmax(680px, 62vh); height: auto; min-height: 100vh; overflow: visible; }
    .club-map-directory { grid-row: 2; border-top: 1px solid #c3d0da; border-right: 0; }
    .club-map-stage { grid-row: 1; min-height: 330px; }
    .club-map-brand { grid-template-columns: 70px minmax(0, 1fr); padding: .75rem; }
    .club-map-brand img { width: 70px; max-height: 62px; }
}
