/* /assets/css/map.css */

body.page--map {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--map .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--map .site-main {
    min-height: 0;
    overflow: visible;
    padding: 20px;
    box-sizing: border-box;
}

.club-map-page {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto 32px;
}

.club-map-shell {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    min-height: 680px;
    border: 1px solid rgba(212, 166, 58, 0.24);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.74), rgba(42, 52, 31, 0.70)),
        url("/assets/images/container2.png") center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 20px 38px rgba(0, 0, 0, 0.24);
}

.club-map-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.13), transparent 31%),
        linear-gradient(90deg, rgba(8, 12, 8, 0.40), rgba(8, 12, 8, 0.10));
    pointer-events: none;
}

.club-map-shell__content,
.club-map-shell__map-wrap {
    position: relative;
    z-index: 1;
}

.club-map-shell__content {
    padding: clamp(22px, 3vw, 34px);
    border-right: 1px solid rgba(255, 247, 232, 0.13);
}

.club-map-intro__eyebrow,
.club-map-result__eyebrow {
    margin: 0 0 9px;
    color: rgba(212, 166, 58, 0.88);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.club-map-intro__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 0.94;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.club-map-intro__text {
    margin: 15px 0 0;
    color: rgba(244, 240, 228, 0.92);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.58;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.club-map-search {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.club-map-search__label {
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 850;
}

.club-map-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.club-map-search__input {
    min-height: 50px;
    width: 100%;
    border: 1px solid rgba(255, 247, 232, 0.16);
    border-radius: 15px;
    background: rgba(7, 11, 7, 0.48);
    color: #fff7e8 !important;
    caret-color: #fff7e8;
    -webkit-text-fill-color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    padding: 0 14px;
    outline: none;
}

.club-map-search__input::placeholder {
    color: rgba(244, 240, 228, 0.62);
    -webkit-text-fill-color: rgba(244, 240, 228, 0.62);
    opacity: 1;
}

.club-map-search__input:focus {
    border-color: rgba(212, 166, 58, 0.48);
    box-shadow: 0 0 0 3px rgba(212, 166, 58, 0.11);
    background: rgba(7, 11, 7, 0.56);
}

.club-map-search__input:-webkit-autofill,
.club-map-search__input:-webkit-autofill:hover,
.club-map-search__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff7e8 !important;
    caret-color: #fff7e8 !important;
    box-shadow: 0 0 0 1000px rgba(7, 11, 7, 0.86) inset !important;
}

.club-map-search__button {
    min-height: 50px;
    border: 1px solid rgba(212, 166, 58, 0.34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(166, 30, 42, 0.96), rgba(122, 24, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 22px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.club-map-search__button:hover,
.club-map-search__button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(212, 166, 58, 0.50);
    background: linear-gradient(180deg, rgba(182, 33, 47, 0.98), rgba(138, 27, 38, 0.99));
}

.club-map-search__button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.club-map-search__hint {
    margin: 0;
    color: rgba(244, 240, 228, 0.76);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.86rem;
    line-height: 1.45;
}

.club-map-result {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(212, 166, 58, 0.20);
    border-radius: 20px;
    background: rgba(7, 11, 7, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.05);
}

.club-map-result__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.club-map-result__address,
.club-map-result__distance {
    margin: 8px 0 0;
    color: rgba(244, 240, 228, 0.92);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
}

.club-map-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.club-map-list__button {
    width: 100%;
    border: 1px solid rgba(255, 247, 232, 0.12);
    border-radius: 16px;
    background: rgba(7, 11, 7, 0.30);
    color: rgba(244, 240, 228, 0.92);
    text-align: left;
    cursor: pointer;
    padding: 13px 14px;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.club-map-list__button:hover,
.club-map-list__button.is-active {
    transform: translateY(-1px);
    border-color: rgba(212, 166, 58, 0.36);
    background: rgba(7, 11, 7, 0.46);
}

.club-map-list__name {
    display: block;
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.25;
}

.club-map-list__address {
    display: block;
    margin-top: 5px;
    color: rgba(244, 240, 228, 0.72);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

.club-map-shell__map-wrap {
    min-height: 680px;
    padding: 18px;
}

.club-map {
    width: 100%;
    height: 100%;
    min-height: 644px;
    border: 1px solid rgba(255, 247, 232, 0.16);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(7, 11, 7, 0.38);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.club-map .leaflet-popup-content-wrapper,
.club-map .leaflet-popup-tip {
    background: rgba(25, 33, 22, 0.98);
    color: #fff7e8;
    border: 1px solid rgba(212, 166, 58, 0.22);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.club-map .leaflet-popup-content {
    min-width: 210px;
    margin: 14px;
    font-family: "Inter", Arial, sans-serif;
}

.club-map-popup__name {
    margin: 0;
    color: #fff7e8;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.25;
}

.club-map-popup__address,
.club-map-popup__note {
    margin: 7px 0 0;
    color: rgba(244, 240, 228, 0.82);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
}

.club-map-popup__link {
    display: inline-flex;
    margin-top: 10px;
    color: rgba(212, 166, 58, 0.96);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

.club-map-popup__link:hover {
    color: #fff7e8;
    text-decoration: underline;
}

.club-map-loading {
    position: absolute;
    inset: 18px;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border-radius: 24px;
    background: rgba(7, 11, 7, 0.72);
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.club-map-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.club-map-loading__spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 247, 232, 0.18);
    border-top-color: rgba(212, 166, 58, 0.95);
    border-radius: 999px;
    animation: club-map-spin 900ms linear infinite;
}

@keyframes club-map-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    .club-map-page {
        width: min(100%, calc(100% - 30px));
    }

    .club-map-shell {
        grid-template-columns: 1fr;
    }

    .club-map-shell__content {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 247, 232, 0.13);
    }

    .club-map-shell__map-wrap {
        min-height: 560px;
    }

    .club-map {
        min-height: 524px;
    }
}

@media (max-width: 640px) {
    body.page--map .site-main {
        padding: 12px;
    }

    .club-map-page {
        width: 100%;
    }

    .club-map-shell {
        border-radius: 22px;
        min-height: 0;
    }

    .club-map-shell__content {
        padding: 20px 18px;
    }

    .club-map-shell__map-wrap {
        min-height: 430px;
        padding: 12px;
    }

    .club-map {
        min-height: 406px;
        border-radius: 18px;
    }

    .club-map-loading {
        inset: 12px;
        border-radius: 18px;
    }
}

/* Map page: match site UI and add Street View transition panel. */
body.page--map .club-map-search__button {
    border-color: rgba(212, 166, 58, 0.42) !important;
    background:
        linear-gradient(180deg, rgba(76, 88, 55, 0.98), rgba(39, 50, 34, 0.98)) !important;
    color: #fff7e8 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 12px 22px rgba(0, 0, 0, 0.22) !important;
}

body.page--map .club-map-search__button:hover,
body.page--map .club-map-search__button:focus-visible {
    border-color: rgba(212, 166, 58, 0.66) !important;
    background:
        linear-gradient(180deg, rgba(91, 104, 65, 0.99), rgba(48, 61, 41, 0.99)) !important;
}

body.page--map .club-map-user-marker {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.34));
}

body.page--map .club-map-streetview {
    position: absolute;
    inset: 18px;
    z-index: 8;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(212, 166, 58, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.90), rgba(42, 52, 31, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 18px 34px rgba(0, 0, 0, 0.30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    pointer-events: none;
    transition:
        opacity 340ms ease,
        visibility 340ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page--map .club-map-streetview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.page--map .club-map-streetview__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 247, 232, 0.14);
    background: rgba(7, 11, 7, 0.52);
}

body.page--map .club-map-streetview__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1.25;
}

body.page--map .club-map-streetview__address {
    display: block;
    margin-top: 3px;
    color: rgba(244, 240, 228, 0.74);
    font-size: 0.80rem;
    font-weight: 650;
}

body.page--map .club-map-streetview__close {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(212, 166, 58, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(76, 88, 55, 0.98), rgba(39, 50, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
}

body.page--map .club-map-streetview__close:hover,
body.page--map .club-map-streetview__close:focus-visible {
    border-color: rgba(212, 166, 58, 0.66);
    background:
        linear-gradient(180deg, rgba(91, 104, 65, 0.99), rgba(48, 61, 41, 0.99));
}

body.page--map .club-map-streetview__frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: rgba(7, 11, 7, 0.72);
}

@media (max-width: 640px) {
    body.page--map .club-map-streetview {
        inset: 12px;
        border-radius: 18px;
    }

    body.page--map .club-map-streetview__bar {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page--map .club-map-streetview__close {
        width: 100%;
    }
}

/* Map page: live map embed fallback and corrected themed background. */
body.page--map .club-map-shell {
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.74), rgba(42, 52, 31, 0.70)),
        url("/assets/images/container3.png") center / cover no-repeat !important;
}

body.page--map .club-map-streetview {
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.90), rgba(42, 52, 31, 0.88)),
        url("/assets/images/container3.png") center / cover no-repeat !important;
}

body.page--map .club-map-streetview__close {
    white-space: nowrap;
}

/* Map page: approved site container background and popup live-view action. */
body.page--map .club-map-shell {
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.74), rgba(42, 52, 31, 0.70)),
        url("/assets/images/container2.png") center / cover no-repeat !important;
}

body.page--map .club-map-streetview {
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.90), rgba(42, 52, 31, 0.88)),
        url("/assets/images/container2.png") center / cover no-repeat !important;
}

body.page--map .club-map-popup__live {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(212, 166, 58, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(76, 88, 55, 0.98), rgba(39, 50, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

body.page--map .club-map-popup__live:hover,
body.page--map .club-map-popup__live:focus-visible {
    border-color: rgba(212, 166, 58, 0.66);
    background:
        linear-gradient(180deg, rgba(91, 104, 65, 0.99), rgba(48, 61, 41, 0.99));
}

body.page--map .club-map-popup__link {
    width: 100%;
    justify-content: center;
    margin-top: 8px !important;
}

/* Map page: reset button and reliable live-view controls. */
body.page--map .club-map-shell,
body.page--map .club-map-streetview {
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.74), rgba(42, 52, 31, 0.70)),
        url("/assets/images/container2.png") center / cover no-repeat !important;
}

body.page--map .club-map-reset {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 7;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(212, 166, 58, 0.42);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(76, 88, 55, 0.98), rgba(39, 50, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 12px 22px rgba(0, 0, 0, 0.22);
}

body.page--map .club-map-reset:hover,
body.page--map .club-map-reset:focus-visible {
    border-color: rgba(212, 166, 58, 0.66);
    background:
        linear-gradient(180deg, rgba(91, 104, 65, 0.99), rgba(48, 61, 41, 0.99));
}

body.page--map .club-map-popup__live {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(212, 166, 58, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(76, 88, 55, 0.98), rgba(39, 50, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

body.page--map .club-map-popup__live:hover,
body.page--map .club-map-popup__live:focus-visible {
    border-color: rgba(212, 166, 58, 0.66);
    background:
        linear-gradient(180deg, rgba(91, 104, 65, 0.99), rgba(48, 61, 41, 0.99));
}

@media (max-width: 640px) {
    body.page--map .club-map-reset {
        right: 24px;
        bottom: 24px;
    }
}

/* Map page: live panel now uses reliable Google Maps embed fallback. */
body.page--map .club-map-streetview__title::before {
    content: "Live map";
    display: block;
    margin-bottom: 3px;
    color: rgba(212, 166, 58, 0.86);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Page flow/footer correction */

body.page--map {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--map .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--map .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--map .site-footer {
    min-height: auto;
    height: auto;
}
