/* Scoped styles: they won't affect the rest of your website. */
#cf-map {
    --cf-gold: #e1b66d;
    --cf-cream: #f6efe1;
    --cf-dark: #11180f;
    --cf-line: rgba(250, 232, 192, .38);
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--cf-cream);
    max-width: 1400px;
    margin: 28px auto 65px;
}

#cf-map *,
#cf-map *::before,
#cf-map *::after {
    box-sizing: border-box
}

#cf-map button {
    font: inherit;
    cursor: pointer
}

#cf-map .cf-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #18251a;
    border-radius: 16px 16px 0 0;
}

#cf-map .cf-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 9, 4, .83) 0%, rgba(3, 9, 4, .28) 23%, transparent 42%, rgba(4, 9, 5, .25) 100%)
}

#cf-map .cf-map-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 560px;
    object-fit: cover
}

#cf-map .cf-head {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    padding: 22px 22px 10px;
    text-align: center;
    pointer-events: none
}

#cf-map .cf-paw {
    font-size: 24px;
    color: var(--cf-gold);
    line-height: 1
}

#cf-map .cf-head h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: .015em;
    font-size: clamp(32px, 5vw, 64px);
    margin: 1px 0 0;
    color: #fffaf0
}

#cf-map .cf-subheading {
    font-size: clamp(10px, 1.2vw, 16px);
    letter-spacing: .29em;
    text-transform: uppercase;
    margin: 2px 0 15px;
    color: #fff;
}

#cf-map .cf-filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto
}

#cf-map .cf-filter {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid #F4D06A;
    border-radius: 9px;
    padding: 10px 14px;
    background: #000;
    color: #fdf4e6;
    backdrop-filter: blur(5px);
    transition: background .2s, border-color .2s
}

#cf-map .cf-filter[aria-pressed="true"],
#cf-map .cf-filter:hover {
    border-color: var(--cf-gold);
    background: rgba(144, 106, 48, .4)
}

#cf-map .cf-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

#cf-map .cf-filter .cf-icon {
    color: var(--cf-gold);
    width: 21px;
    height: 21px
}

#cf-map .cf-pin {
    position: absolute;
    z-index: 2;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -100%);
    width: 44px;
    height: 54px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--cf-gold);
    filter: drop-shadow(0 3px 5px #000c);
    transition: opacity .2s, filter .2s
}

#cf-map .cf-pin::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--cf-gold);
    background: rgba(33, 27, 17, .92);
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    box-shadow: 0 0 0 2px rgba(26, 17, 6, .33)
}

#cf-map .cf-pin .cf-icon {
    position: absolute;
    top: 8px;
    left: 12px;
    color: #fff0d3;
    z-index: 1;
    width: 20px;
    height: 20px
}

#cf-map .cf-pin .cf-n {
    position: absolute;
    left: 0;
    top: 35px;
    right: 0;
    line-height: 15px;
    font: 700 11px Arial, sans-serif;
    color: #fff;
    text-shadow: 0 1px 2px #000
}

#cf-map .cf-pin:hover,
#cf-map .cf-pin:focus-visible {
    filter: drop-shadow(0 0 9px #f2d18c);
    outline: 0
}

#cf-map .cf-pin.is-dim {
    opacity: .22
}

#cf-map .cf-pin.is-active::before {
    background: #8a6026;
    box-shadow: 0 0 0 4px rgba(245, 206, 130, .23)
}

#cf-map .cf-directory {
    background: #F4D06A;
    color: #3c2d19;
    padding: 17px 24px 24px;
    border-radius: 0 0 16px 16px
}

#cf-map .cf-directory-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px
}

#cf-map .cf-directory-title h3 {
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    color: #302413
}

#cf-map .cf-directory-title p {
    font-size: 13px;
    font-family: Arial, sans-serif;
    margin: 0;
    color: #000
}

#cf-map .cf-directory-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px
}

#cf-map .cf-directory-item {
    background: #fffaf3;
    border: 1px solid #e7dbc5;
    border-radius: 8px;
    color: #403018;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 12px 10px;
    min-height: 59px;
    font-size: 14px;
    transition: background .2s, border .2s
}

#cf-map .cf-directory-item:hover,
#cf-map .cf-directory-item:focus-visible {
    background: #f3e5cd;
    border-color: #c69850
}

#cf-map .cf-directory-item .cf-icon {
    color: #a27638
}

#cf-map .cf-number {
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #000;
    min-width: 21px
}

#cf-map .cf-dialog {
    position: fixed;
    z-index: 99999;
    inset: 0;
    overflow: auto;
    background: rgba(2, 8, 3, .94);
    padding: 20px 18px 35px;
    color: var(--cf-cream)
}

#cf-map .cf-dialog[hidden] {
    display: none !important
}

#cf-map .cf-dialog::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 15%, rgba(66, 76, 42, .35), transparent 65%);
    pointer-events: none
}

#cf-map .cf-dialog-inner {
    position: relative;
    max-width: 900px;
    margin: auto;
    text-align: center
}

#cf-map .cf-close {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    background: transparent;
    color: #f9edd4;
    font: normal 40px/1 Arial, sans-serif !important;
    width: 45px;
    height: 45px
}

#cf-map .cf-modal-heading {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    margin: 4px 50px 0;
    color: #fff7e8
}

#cf-map .cf-modal-subheading {
    letter-spacing: .24em;
    text-transform: uppercase;
    font-size: clamp(10px, 1.7vw, 15px);
    margin: 4px 0 30px
}

#cf-map .cf-modal-badge {
    border: 7px solid var(--cf-gold);
    color: var(--cf-gold);
    border-radius: 100px;
    width: 67px;
    height: 67px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px
}

#cf-map .cf-detail-title {
    font-size: clamp(27px, 4vw, 41px);
    font-weight: 400;
    margin: 0 auto 10px;
    line-height: 1.2;
    max-width: 720px
}

#cf-map .cf-description {
    font: 18px/1.55 Georgia, serif;
    max-width: 700px;
    margin: 0 auto 22px;
    color: #eee2cb
}

#cf-map .cf-photo-wrap {
    position: relative;
    max-width: 790px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #e3ce9c;
    border-radius: 12px;
    background: #1f281d
}

#cf-map .cf-photo {
    display: block;
    width: 100%;
    height: min(45vh, 420px);
    object-fit: cover
}

#cf-map .cf-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    font-size: 16px;
    color: #e6d8bd
}

#cf-map .cf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #111a12a8;
    color: white;
    border: 1px solid #e7dcc5;
    border-radius: 50%;
    font: 28px/1 Arial, sans-serif !important
}

#cf-map .cf-prev {
    left: 12px
}

#cf-map .cf-next {
    right: 12px
}

#cf-map .cf-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 16px 0 24px
}

#cf-map .cf-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #777;
    border: 0;
    padding: 0
}

#cf-map .cf-dot[aria-current="true"] {
    background: var(--cf-gold)
}

#cf-map .cf-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 780px;
    margin: 0 auto
}

#cf-map .cf-feature {
    padding: 8px 16px;
    border-right: 1px solid var(--cf-line);
    font-size: 16px;
    display: grid;
    justify-items: center;
    gap: 11px
}

#cf-map .cf-feature:last-child {
    border: 0
}

#cf-map .cf-feature .cf-icon {
    width: 31px;
    height: 31px;
    color: var(--cf-gold)
}

#cf-map .cf-back {
    border: 1px solid var(--cf-gold);
    border-radius: 8px;
    background: transparent;
    color: var(--cf-cream);
    padding: 10px 22px;
    margin-top: 26px
}

#cf-map .cf-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

#cf-map .cf-filter .cf-icon {
    width: 27px;
    height: 27px;
    color: #e1b66d;
}

#cf-map .cf-filter[data-filter="facilities"] .cf-icon {
    width: 17px;
    height: 17px;
}

#cf-map .cf-filter[data-filter="small-dogs"] .cf-icon {
    width: 22px;
    height: 22px;
}
#cf-map .cf-filter[data-filter="large-dogs"] .cf-icon {
    width: 36px;
    height: 30px;
    color: #e1b66d;
    fill: none;
}

@media(max-width:900px) {
    #cf-map .cf-map-image {
        min-height: 600px
    }

    #cf-map .cf-head {
        padding: 15px 12px
    }

    #cf-map .cf-filter {
        padding: 8px 10px;
        font-size: 13px
    }

    #cf-map .cf-directory-items {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:560px) {
    #cf-map .cf-map-image {
        min-height: 480px;
        object-fit: fill
    }

    #cf-map .cf-head h2 {
        font-size: 30px
    }

    #cf-map .cf-subheading {
        font-size: 9px
    }

    #cf-map .cf-filters {
        gap: 5px
    }

    #cf-map .cf-filter {
        font-size: 0;
        padding: 9px;
        width: 43px;
        height: 40px
    }

    #cf-map .cf-filter .cf-icon {
        width: 22px;
        height: 22px
    }

    #cf-map .cf-pin {
        transform: translate(-50%, -100%) scale(.8)
    }

    #cf-map .cf-directory {
        padding: 16px 12px
    }

    #cf-map .cf-directory-items {
        grid-template-columns: 1fr
    }

    #cf-map .cf-dialog {
        padding: 12px 12px 28px
    }

    #cf-map .cf-photo {
        height: 260px
    }

    #cf-map .cf-feature {
        font-size: 12px;
        padding: 6px
    }

    #cf-map .cf-detail-title {
        font-size: 27px
    }

    #cf-map .cf-description {
        font-size: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    #cf-map * {
        transition: none !important
    }
}

/* --- Updated square map and luxury gold location pins --- */
#cf-map {
    max-width: 912px;
    margin: 24px auto 48px
}

#cf-map .cf-stage {
    aspect-ratio: 1/1;
    border-radius: 12px 12px 0 0
}

#cf-map .cf-map-image {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: fill;
    filter: saturate(1.32) contrast(1.08) brightness(1.12)
}

#cf-map .cf-stage::before {
    background: linear-gradient(to bottom, rgba(1, 9, 2, .66), rgba(1, 9, 2, .04) 27%, rgba(1, 9, 2, .02) 75%, rgba(1, 9, 2, .18));
    z-index: 1
}

#cf-map .cf-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    transition: opacity .2s ease
}

#cf-map .cf-stage.cf-hovering::after {
    opacity: 1
}

#cf-map .cf-head {
    z-index: 6;
    padding: 12px 10px 0
}

#cf-map .cf-head h2 {
    font-size: clamp(30px, 4.7vw, 54px)
}

#cf-map .cf-subheading {
    font-size: clamp(9px, 1.2vw, 13px);
    margin-bottom: 9px
}

#cf-map .cf-filters {
    gap: 6px
}

#cf-map .cf-filter {
    font-size: 12px;
    padding: 7px 9px;
    gap: 5px
}

#cf-map .cf-filter .cf-icon {
    width: 17px;
    height: 17px
}

#cf-map .cf-pin {
    z-index: 4;
    width: 62px;
    height: 78px;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 2px 4px #000d)
}

#cf-map .cf-pin::before {
    left: 11px;
    top: 1px;
    width: 41px;
    height: 41px;
    border: 2px solid #ffdb86;
    background: linear-gradient(145deg, #000, #000);
    border-radius: 50%;
    transform: none;
    box-shadow: 0 0 0 3px #f3c77033, 0 0 13px #edbd5680
}

#cf-map .cf-pin::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 39px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 23px solid #e6b960;
    filter: drop-shadow(0 3px 2px #0009)
}

#cf-map .cf-pin .cf-icon {
    display: none
}

#cf-map .cf-pin .cf-n {
    z-index: 2;
    top: 9px;
    left: 11px;
    width: 41px;
    font: normal 24px/29px Georgia, serif;
    color: #fbe9c8;
    text-shadow: 0 2px 2px #0009
}

#cf-map .cf-pin:is(:hover, :focus-visible, .is-spotlit) {
    z-index: 5;
    filter: drop-shadow(0 0 10px #ffe28d) drop-shadow(0 0 16px #ffe28d);
    outline: 0
}

#cf-map .cf-pin:is(:hover, :focus-visible, .is-spotlit)::before {
    background: #574026;
    box-shadow: 0 0 0 4px #fff4b5a0, 0 0 22px #f8cb65
}

#cf-map .cf-pin.is-dim {
    opacity: .12
}

#cf-map .cf-pin.is-active::before {
    background: #614322
}

#cf-map .cf-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 790px
}

#cf-map .cf-feature {
    min-height: 97px;
    justify-content: start;
    align-content: start
}

#cf-map .cf-feature .cf-icon {
    width: 40px;
    height: 40px
}

#cf-map .cf-description {
    max-width: 640px
}

@media(max-width:650px) {
    #cf-map .cf-stage {
        aspect-ratio: 1/1
    }

    #cf-map .cf-head {
        padding: 6px 5px 0
    }

    #cf-map .cf-head h2 {
        font-size: clamp(24px, 5.5vw, 34px)
    }

    #cf-map .cf-subheading {
        letter-spacing: .14em;
        font-size: 9px;
        margin-bottom: 4px
    }

    #cf-map .cf-filters {
        gap: 3px
    }

    #cf-map .cf-filter {
        width: 36px;
        height: 32px;
        padding: 6px;
        font-size: 0
    }

    #cf-map .cf-filter .cf-icon {
        width: 18px;
        height: 18px
    }

    #cf-map .cf-pin {
        transform: translate(-50%, -75%) scale(.65)
    }

    #cf-map .cf-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 15px
    }

    #cf-map .cf-feature:nth-child(2n) {
        border: 0
    }
}

/* ===== LEFT MAP / RIGHT CONTENT LAYOUT ===== */
#cf-map {
    width: 100%;
    max-width: none;
    margin: 24px auto 48px
}

#cf-map .cf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: #72311e;
    border-radius: 14px;
    overflow: hidden
}

#cf-map .cf-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    align-self: start
}

#cf-map .cf-map-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    min-height: 0 !important
}

#cf-map .cf-side {
    position: relative;
    min-width: 0;
    background: #faf6ec;
    max-height: 100%;
    align-self: stretch
}

#cf-map .cf-directory {
    height: 100%;
    border-radius: 0;
    padding: 32px 27px;
    overflow: auto
}

#cf-map .cf-directory-title {
    display: block;
    margin-bottom: 24px
}

#cf-map .cf-directory-title h3 {
    font-size: clamp(24px, 2.4vw, 34px);
    margin-bottom: 9px
}

#cf-map .cf-directory-title p {
    line-height: 1.55
}

#cf-map .cf-directory-items {
    grid-template-columns: 1fr;
    gap: 9px
}

#cf-map .cf-directory-item {
    min-height: 58px;
    font-size: 16px;
    padding: 12px 14px
}

#cf-map .cf-dialog {
    position: relative;
    inset: auto;
    z-index: auto;
    overflow: visible;
    background: #151e14;
    padding: 34px 22px 28px;
    height: 100%;
    min-width: 0
}

#cf-map .cf-dialog::before {
    position: absolute
}

#cf-map .cf-dialog-inner {
    max-width: 100%;
    position: relative
}

#cf-map .cf-close {
    right: 0;
    top: -18px;
    z-index: 2
}

#cf-map .cf-modal-heading {
    font-size: 30px;
    padding-top: 4px;
    margin: 0 35px 0
}

#cf-map .cf-modal-subheading {
    font-size: 10px;
    margin-bottom: 17px
}

#cf-map .cf-modal-badge {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin-bottom: 14px
}

#cf-map .cf-detail-title {
    font-size: clamp(23px, 2vw, 34px);
    color: #fff;
}

#cf-map .cf-description {
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.45
}

#cf-map .cf-photo-wrap {
    width: 100%;
    max-width: none
}

#cf-map .cf-photo {
    height: auto;
    aspect-ratio: 1.65;
    object-fit: cover
}

#cf-map .cf-dots {
    margin: 11px 0 20px
}

#cf-map .cf-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 0
}

#cf-map .cf-feature {
    font-size: 13px;
    min-height: 75px;
    padding: 6px 10px;
    gap: 8px
}

#cf-map .cf-feature:nth-child(2n) {
    border: 0
}

#cf-map .cf-feature .cf-icon {
    width: 31px;
    height: 31px
}

#cf-map .cf-back {
    margin-top: 18px
}

#cf-map .cf-directory[hidden],
#cf-map .cf-dialog[hidden] {
    display: none !important
}

@media (max-width:950px) {
    #cf-map .cf-layout {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden
    }

    #cf-map .cf-stage {
        width: 100%;
        aspect-ratio: 1 / 1
    }

    #cf-map .cf-side {
        max-height: none
    }

    #cf-map .cf-directory {
        padding: 24px 18px
    }

    #cf-map .cf-directory-items {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    #cf-map .cf-dialog {
        padding: 28px 20px
    }

    #cf-map .cf-photo {
        max-height: 450px
    }

    #cf-map .cf-features {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    #cf-map .cf-feature:nth-child(2n) {
        border-right: 1px solid var(--cf-line)
    }

    #cf-map .cf-feature:last-child {
        border: 0
    }
}

@media (max-width:550px) {
    #cf-map .cf-directory-items {
        grid-template-columns: 1fr
    }

    #cf-map .cf-features {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    #cf-map .cf-feature:nth-child(2n) {
        border: 0
    }

    #cf-map .cf-modal-heading {
        font-size: 28px
    }

    #cf-map .cf-photo {
        height: auto;
        aspect-ratio: 1.5
    }
}


/* === REVISED LAYOUT: menu outside aerial map; details at full width === */
#cf-map .cf-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr)
}

#cf-map .cf-stage {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    align-self: start;
    overflow: visible;
    background: #10190f
}

#cf-map .cf-stage::before,
#cf-map .cf-stage::after {
    display: none
}

#cf-map .cf-head {
    position: relative;
    z-index: 5;
    top: auto;
    left: auto;
    right: auto;
    pointer-events: auto;
    padding: 20px 20px 22px;
    background: linear-gradient(145deg, #72311e, #72311e);
}

#cf-map .cf-head h2 {
    font-size: clamp(30px, 3.3vw, 46px)
}

#cf-map .cf-subheading {
    margin: 4px 0 19px
}

#cf-map .cf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 9px;
    justify-content: center
}

#cf-map .cf-filter {
    white-space: nowrap;
    min-height: 42px;
    padding: 9px 13px;
    font-size: 13px
}

#cf-map .cf-map-canvas {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a2919
}

#cf-map .cf-map-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .10), transparent 28%, rgba(0, 0, 0, .15));
}

#cf-map .cf-map-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    transition: opacity .2s ease
}

#cf-map .cf-map-canvas.cf-hovering::after {
    opacity: 1
}

#cf-map .cf-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    min-height: 0 !important;
    filter: saturate(1.2) contrast(1.06) brightness(1.04)
}

#cf-map .cf-pin {
    z-index: 4
}

#cf-map .cf-pin:is(:hover, :focus-visible, .is-spotlit) {
    z-index: 5
}

/* When a facility is selected, the map disappears and detail fills the entire container. */
#cf-map .cf-layout.cf-detail-open {
    display: block
}

#cf-map .cf-detail-open .cf-stage {
    display: none !important
}

#cf-map .cf-detail-open .cf-side {
    width: 100%;
    max-height: none;
    background: #141e14
}

#cf-map .cf-detail-open .cf-dialog {
    width: 100%;
    min-height: 650px;
    padding: 38px clamp(18px, 4vw, 60px) 45px
}

#cf-map .cf-detail-open .cf-dialog-inner {
    max-width: 1000px;
    margin: 0 auto
}

#cf-map .cf-detail-open .cf-photo-wrap {
    max-width: 850px
}

#cf-map .cf-detail-open .cf-photo {
    aspect-ratio: 1.8;
    max-height: 520px;
    object-fit: cover
}

#cf-map .cf-detail-open .cf-features {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

#cf-map .cf-detail-open .cf-feature:nth-child(2n) {
    border-right: 1px solid var(--cf-line)
}

#cf-map .cf-detail-open .cf-feature:last-child {
    border-right: 0
}

@media(max-width:950px) {
    #cf-map .cf-layout {
        grid-template-columns: 1fr
    }

    #cf-map .cf-stage {
        aspect-ratio: auto
    }

    #cf-map .cf-head {
        padding: 16px 12px 20px
    }

    #cf-map .cf-map-canvas {
        aspect-ratio: 1 / 1
    }

    #cf-map .cf-filter {
        font-size: 13px
    }
}

@media(max-width:560px) {
    #cf-map .cf-head {
        padding: 16px 7px
    }

    #cf-map .cf-filter {
        font-size: 12px;
        width: auto;
        height: auto;
        min-height: 38px;
        padding: 7px 8px;
        gap: 5px
    }

    #cf-map .cf-filter .cf-icon {
        width: 17px;
        height: 17px
    }

    #cf-map .cf-detail-open .cf-features {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    #cf-map .cf-detail-open .cf-feature:nth-child(2n) {
        border-right: 0
    }

    #cf-map .cf-detail-open .cf-photo {
        aspect-ratio: 1.45
    }
}


/* ===== V4: immersive full-screen map, centred features, mobile-friendly ===== */
#cf-map .cf-map-image {
    filter: saturate(1.16) contrast(1.04) brightness(1.045);
    image-rendering: auto;
}

#cf-map .cf-features,
#cf-map .cf-detail-open .cf-features {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 18px auto 0;
    gap: 0;
}

#cf-map .cf-feature {
    flex: 0 1 190px;
    min-width: 145px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    text-align: center;
    padding: 12px 18px;
    min-height: 105px;
}

#cf-map .cf-feature .cf-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
}

#cf-map .cf-feature span {
    display: block;
    text-align: center;
    line-height: 1.35;
}

#cf-map .cf-feature:not(:last-child),
#cf-map .cf-detail-open .cf-feature:not(:last-child) {
    border-right: 1px solid var(--cf-line);
}

#cf-map .cf-feature:last-child,
#cf-map .cf-detail-open .cf-feature:last-child {
    border-right: 0;
}

#cf-map .cf-fullscreen-close {
    position: fixed;
    right: clamp(12px, 3vw, 35px);
    top: 12px;
    z-index: 2147483002;
    display: block;
    width: 48px;
    height: 48px;
    border: 1px solid #d3b477;
    border-radius: 50%;
    background: #112017;
    color: #ffdf9f;
    font: 34px/1 Arial, sans-serif;
    box-shadow: 0 2px 18px #0008;
}

#cf-map .cf-fullscreen-close[hidden] {
    display: none !important;
}

/* Facilities tab enlarges the map to the entire available viewport. */
#cf-map.cf-map-expanded .cf-stage {
    position: fixed !important;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    background: #0e170f;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax #07100b;
}

#cf-map.cf-map-expanded .cf-head {
    width: 100%;
    flex: 0 0 auto;
    max-width: 1200px;
    padding: 12px 60px 12px;
}

#cf-map.cf-map-expanded .cf-head h2 {
    font-size: clamp(27px, 3vw, 40px);
}

#cf-map.cf-map-expanded .cf-subheading {
    font-size: 11px;
    margin: 1px 0 8px;
}

#cf-map.cf-map-expanded .cf-filters {
    gap: 7px;
}

#cf-map.cf-map-expanded .cf-filter {
    min-height: 37px;
    font-size: 12px;
    padding: 6px 9px;
}

#cf-map.cf-map-expanded .cf-map-canvas {
    flex: 0 0 auto;
    width: min(100vw, calc(100dvh - 170px));
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 22px;
}

#cf-map.cf-map-expanded .cf-map-image {
    height: 100%;
    object-fit: fill;
}

#cf-map.cf-map-expanded .cf-pin {
    visibility: visible;
}

/* Detail itself opens as a proper viewport modal rather than only filling the page. */
#cf-map .cf-detail-open .cf-dialog {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483001 !important;
    overflow-y: auto !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 24px 20px 34px !important;
    background: #121d13 !important;
    overscroll-behavior: contain;
}

#cf-map .cf-detail-open .cf-dialog-inner {
    max-width: 990px !important;
}

#cf-map .cf-detail-open .cf-close {
    position: fixed;
    right: 18px;
    top: 12px;
    z-index: 3;
    border: 1px solid #d5b674;
    background: #121b13;
    border-radius: 50%;
    font-size: 30px !important;
}
#cf-map .cf-detail-open .cf-close:hover {
    background: #d5b674;
    color: #000;
}
#cf-map .cf-detail-open .cf-modal-heading {
    font-size: clamp(26px, 3.2vw, 39px);
}

#cf-map .cf-detail-open .cf-modal-subheading {
    margin-bottom: 12px;
}

#cf-map .cf-detail-open .cf-modal-badge {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin-bottom: 10px;
}

#cf-map .cf-detail-open .cf-detail-title {
    font-size: clamp(25px, 3vw, 36px);
}

#cf-map .cf-detail-open .cf-description {
    font-size: 16px;
    margin-bottom: 15px;
}

#cf-map .cf-detail-open .cf-photo-wrap {
    max-width: 800px;
}

#cf-map .cf-detail-open .cf-photo {
    aspect-ratio: 1.95;
    max-height: 46dvh;
}

#cf-map .cf-detail-open .cf-dots {
    margin: 10px 0 0;
}

@media(max-width:950px) {
    #cf-map .cf-directory {
        display: none !important;
    }

    #cf-map.cf-mobile-directory-open .cf-directory {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 2147483001;
        overflow-y: auto;
        padding: 62px 18px 25px;
        border-radius: 0;
    }

    #cf-map.cf-mobile-directory-open .cf-fullscreen-close {
        z-index: 2147483003;
    }

    #cf-map.cf-mobile-directory-open .cf-directory-items {
        grid-template-columns: 1fr;
    }

    #cf-map .cf-side {
        background: transparent;
    }

    #cf-map.cf-map-expanded .cf-map-canvas {
        width: min(100vw, calc(100dvh - 150px));
    }
}

@media(max-width:600px) {
    #cf-map.cf-map-expanded .cf-head {
        padding: 14px 50px 8px 10px;
    }

    #cf-map.cf-map-expanded .cf-head h2 {
        font-size: 27px;
    }

    #cf-map.cf-map-expanded .cf-filter {
        width: 38px;
        height: 36px;
        padding: 7px;
        font-size: 0;
    }

    #cf-map.cf-map-expanded .cf-filter .cf-icon {
        width: 20px;
        height: 20px;
    }

    #cf-map.cf-map-expanded .cf-map-canvas {
        width: 100vw;
        max-width: 100%;
    }

    #cf-map .cf-detail-open .cf-dialog {
        padding: 22px 12px 32px !important;
    }

    #cf-map .cf-detail-open .cf-photo {
        aspect-ratio: 1.4;
        max-height: 42dvh;
    }

    #cf-map .cf-features,
    #cf-map .cf-detail-open .cf-features {
        gap: 0;
        justify-content: center;
    }

    #cf-map .cf-feature {
        flex: 0 1 50%;
        min-width: 0;
        padding: 10px 8px;
        min-height: 95px;
    }

    #cf-map .cf-feature:nth-child(2n),
    #cf-map .cf-detail-open .cf-feature:nth-child(2n) {
        border-right: 0;
    }

    #cf-map .cf-feature .cf-icon {
        width: 29px;
        height: 29px;
        margin-bottom: 7px;
    }
}

/* v5: responsive map and fullscreen view. These overrides must be LAST. */
#cf-map .cf-paw {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 27px;
    color: #e4b860;
}

#cf-map .cf-paw svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}

#cf-map .cf-layout {
    min-width: 0;
}

#cf-map .cf-map-canvas {
    aspect-ratio: 1/1;
    max-width: 100%;
}

#cf-map .cf-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(1.04) contrast(1.02);
}

#cf-map.cf-map-expanded .cf-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    z-index: 2147483000 !important;
    overflow: hidden !important;
    background: #0e170f !important;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .86) !important;
}

#cf-map.cf-map-expanded .cf-head {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 10px 62px 9px 18px !important;
}

#cf-map.cf-map-expanded .cf-head h2 {
    font-size: clamp(26px, 3vw, 36px) !important;
}

#cf-map.cf-map-expanded .cf-filters {
    max-width: 100%;
    justify-content: center;
}

#cf-map.cf-map-expanded .cf-map-canvas {
    width: min(100vw, calc(100dvh - 126px)) !important;
    height: auto !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    aspect-ratio: 1/1 !important;
    align-self: center !important;
    margin: 0 auto !important;
}

#cf-map.cf-map-expanded .cf-map-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

#cf-map.cf-map-expanded .cf-fullscreen-close {
    display: block;
}

#cf-map.cf-map-expanded .cf-pin {
    z-index: 5;
}

@media(max-width:800px) {
    #cf-map.cf-map-expanded .cf-head {
        padding: 8px 58px 8px 8px !important;
    }

    #cf-map.cf-map-expanded .cf-map-canvas {
        width: min(100vw, calc(100dvh - 115px)) !important;
        flex: 0 1 auto !important;
    }
}

@media(max-width:600px) {
    #cf-map.cf-map-expanded .cf-head {
        padding: 8px 52px 8px 7px !important;
    }

    #cf-map.cf-map-expanded .cf-map-canvas {
        width: 100vw !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        max-height: calc(100dvh - 105px);
        flex: 0 1 auto !important;
    }
}

/* V6: map category filters stay in the original split layout. */
#cf-map .cf-pin.is-dim {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#cf-map .cf-pin {
    transition: opacity .18s ease, filter .18s ease;
}

/* Ensure the site map stays responsive with no horizontal overflow. */
#cf-map .cf-layout {
    max-width: 100%;
}

/* Pin positions (restored from the old site) */
.cf-pin[data-id="1"] { --x: 38%; --y: 73%; }
.cf-pin[data-id="2"] { --x: 22%; --y: 62%; }
.cf-pin[data-id="3"] { --x: 44%; --y: 39%; }
.cf-pin[data-id="4"] { --x: 78%; --y: 51%; }
.cf-pin[data-id="5"] { --x: 77%; --y: 39%; }
.cf-pin[data-id="6"] { --x: 65%; --y: 57%; }
.cf-pin[data-id="7"] { --x: 55%; --y: 33%; }
.cf-pin[data-id="8"] { --x: 19%; --y: 26%; }
.cf-pin[data-id="9"] { --x: 66%; --y: 44%; }
.cf-pin[data-id="10"] { --x: 88%; --y: 44%; }
.cf-pin[data-id="11"] { --x: 59%; --y: 56%; }
