.capdlm {
    --capdlm-blue: #102744;
    --capdlm-blue-light: #154592;
    --capdlm-gold: #fdc303;
    --capdlm-pale: #f5f7fa;
    --capdlm-border: #dfe5ec;
    --capdlm-cyan: #34b7c9;
    --capdlm-green: #2f9e62;
    --capdlm-orange: #ed8b24;
    --capdlm-red: #d74444;
    --capdlm-grey: #707782;
    color: #17213c;
    font-family: "Montserrat", sans-serif;
    position: relative;
}

.capdlm-toolbar {
    align-items: end;
    background: #fff;
    border: 1px solid var(--capdlm-border);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(16, 39, 68, .07);
}

.capdlm-field { display: grid; font-size: 13px; font-weight: 700; gap: 5px; }
.capdlm-field select {
    background: #fff;
    border: 1px solid #c9d3df;
    border-radius: 9px;
    color: #17213c;
    min-height: 42px;
    padding: 6px 34px 6px 10px;
}
.capdlm-check { align-items: center; display: flex; gap: 7px; min-height: 42px; }
.capdlm-locate {
    background: var(--capdlm-blue);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 8px 18px;
}
.capdlm-locate:hover, .capdlm-locate:focus-visible { background: #031b38; }

.capdlm-map-shell { position: relative; }
.capdlm-canvas {
    background: #a1be61;
    border: 1px solid #dce3eb;
    border-radius: 18px;
    height: var(--capdlm-height, 620px);
    min-height: 280px;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}
.capdlm-fullscreen-toggle {
    align-items: center;
    background: #fff;
    border: 2px solid rgba(16, 39, 68, .15);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(16, 39, 68, .22);
    color: var(--capdlm-blue);
    cursor: pointer;
    display: flex;
    font: 700 25px/1 Montserrat, sans-serif;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    z-index: 500;
}
.capdlm-fullscreen-toggle:hover, .capdlm-fullscreen-toggle:focus-visible {
    border-color: var(--capdlm-gold);
    outline: 2px solid var(--capdlm-gold);
    outline-offset: 2px;
}
.capdlm-mobile-filter-toggle { display: none; }
.capdlm .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.capdlm .leaflet-container { background: #a1be61; }
.capdlm-status { font-size: 14px; margin: 9px 2px 0; }
.capdlm-credit { font-size: 12px; margin: 4px 2px 0; opacity: .72; }

.capdlm-marker-wrap { background: transparent; border: 0; }
.capdlm-marker {
    align-items: center;
    background: #fff;
    border: 3px solid var(--capdlm-grey);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(6, 43, 88, .28);
    box-sizing: border-box;
    display: flex;
    height: 48px;
    justify-content: center;
    position: relative;
    width: 48px;
}
.capdlm-marker.is-low { border-color: var(--capdlm-green); }
.capdlm-marker.is-medium { border-color: var(--capdlm-orange); }
.capdlm-marker.is-high { border-color: var(--capdlm-red); }
.capdlm-marker.is-closed { border-color: var(--capdlm-grey); filter: grayscale(1); opacity: .86; }
.capdlm-marker img { border-radius: 50%; height: 34px; object-fit: contain; width: 34px; }
.capdlm-marker-fallback { color: var(--capdlm-blue); font-size: 17px; font-weight: 800; }
.capdlm-marker-wait {
    background: var(--capdlm-blue);
    border: 2px solid #fff;
    border-radius: 999px;
    bottom: -15px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    left: 50%;
    line-height: 19px;
    min-width: 31px;
    padding: 0 4px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}
.capdlm-marker.is-closed .capdlm-marker-wait { background: var(--capdlm-grey); }

.capdlm .capdlm-attraction-popup .leaflet-popup-content-wrapper {
    border: 1px solid var(--capdlm-border);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(16, 39, 68, .24);
    overflow: hidden;
    padding: 0;
}
.capdlm .capdlm-attraction-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.capdlm .capdlm-attraction-popup .leaflet-popup-close-button {
    align-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font: 400 22px/1 Arial, sans-serif;
    height: 30px;
    justify-content: center;
    right: 10px;
    top: 10px;
    width: 30px;
    z-index: 3;
}
.capdlm .capdlm-attraction-popup .leaflet-popup-close-button:hover,
.capdlm .capdlm-attraction-popup .leaflet-popup-close-button:focus { background: rgba(255,255,255,.28); color: #fff; }
.capdlm .capdlm-attraction-popup .leaflet-popup-tip { background: #fff; }
.capdlm-popup { box-sizing: border-box; color: var(--capdlm-blue); min-width: 0; width: 100%; }
.capdlm-popup-head {
    align-items: center;
    background: linear-gradient(135deg, var(--capdlm-blue), var(--capdlm-blue-light));
    display: flex;
    gap: 12px;
    min-height: 74px;
    padding: 16px 48px 16px 16px;
}
.capdlm-popup-icon {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 500px !important;
    box-sizing: border-box;
    clip-path: circle(50%);
    flex: 0 0 auto;
    height: 54px;
    object-fit: cover;
    overflow: hidden;
    padding: 4px;
    width: 54px;
}
.capdlm-popup-title { min-width: 0; }
.capdlm-popup h3 { color: #fff; font-size: 17px; line-height: 1.2; margin: 0 0 5px; }
.capdlm-popup-meta { color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.35; margin: 0; }
.capdlm-popup-body { padding: 15px 16px 16px; }
.capdlm-popup-wait { align-items: center; display: flex; justify-content: space-between; gap: 14px; margin: 0 0 11px; }
.capdlm-popup-wait span { color: #667386; font-size: 11px; font-weight: 600; }
.capdlm-popup-wait strong { color: var(--capdlm-green); font-size: 20px; white-space: nowrap; }
.capdlm-popup-wait.is-medium strong { color: #9a6500; }
.capdlm-popup-wait.is-high strong { color: #b24b43; }
.capdlm-popup-wait.is-closed strong { color: #777; }
.capdlm-popup-comparison { border-radius: 10px; display: grid; gap: 2px; font-size: 11px; margin: 0 0 13px; padding: 8px 10px; }
.capdlm-popup-comparison strong { font-size: 12px; }
.capdlm-popup-comparison span { opacity: .78; }
.capdlm-popup-comparison-low { background: #ddf5eb; color: #087f5b; }
.capdlm-popup-comparison-normal { background: #fff1cf; color: #9a6500; }
.capdlm-popup-comparison-high { background: #fde4e2; color: #b24b43; }
.capdlm-popup-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.capdlm-popup-link {
    background: var(--capdlm-blue);
    border-radius: 9px;
    color: #fff !important;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 10px 13px;
    text-decoration: none !important;
}
.capdlm-popup-link:hover, .capdlm-popup-link:focus { background: var(--capdlm-blue-light); color: #fff !important; }
.capdlm-popup-link-arrow { color: var(--capdlm-gold); font-size: 17px; line-height: 1; }
.capdlm-popup-alert.capdl-alert-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--capdlm-gold);
    border-radius: 9px;
    color: var(--capdlm-blue);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    margin: 0;
    min-height: 40px;
    padding: 8px 11px;
}
.capdlm-popup-alert.capdl-alert-button:hover,
.capdlm-popup-alert.capdl-alert-button:focus { background: var(--capdlm-gold); color: #fff; }
.capdlm-popup-alert svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 17px; }
.capdlm-cluster-wrap { background: transparent; }
.capdlm-cluster {
    align-items: center;
    background: var(--capdlm-blue);
    border: 4px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(16,39,68,.3);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.capdlm-legend { background: #fff; border: 0 !important; border-radius: 10px !important; box-shadow: 0 3px 12px rgba(16,39,68,.2) !important; color: var(--capdlm-blue); overflow: hidden; }
.capdlm-legend-toggle { background: #fff; border: 0; color: var(--capdlm-blue); cursor: pointer; font: 700 12px/1.2 Montserrat, sans-serif; padding: 9px 11px; }
.capdlm-legend-toggle::before { content: "●"; color: var(--capdlm-green); margin-right: 6px; }
.capdlm-legend-panel { border-top: 1px solid var(--capdlm-border); display: grid; gap: 7px; min-width: 168px; padding: 10px 12px; }
.capdlm-legend-panel[hidden] { display: none; }
.capdlm-legend-panel strong { font-size: 11px; }
.capdlm-legend-panel span { align-items: center; display: flex; font-size: 10px; gap: 7px; white-space: nowrap; }
.capdlm-legend-panel i { background: var(--capdlm-green); border-radius: 50%; display: inline-block; height: 9px; width: 9px; }
.capdlm-legend-panel i.is-medium { background: #c48a18; }
.capdlm-legend-panel i.is-high { background: #b24b43; }
.capdlm-legend-panel i.is-closed { background: var(--capdlm-grey); }
.capdlm-user-dot {
    background: #2586f3;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #2586f3, 0 3px 12px rgba(0,0,0,.3);
    height: 16px;
    width: 16px;
}

@media (max-width: 640px) {
    .capdlm-canvas {
        border-radius: 13px;
        height: min(var(--capdlm-height, 620px), 85dvh);
        max-height: 85dvh;
    }
    .capdlm-toolbar { display: none; }
    .capdlm.is-mobile-filters-open .capdlm-toolbar {
        align-items: stretch;
        background: var(--capdlm-pale);
        bottom: 88px;
        display: grid;
        gap: 12px;
        grid-template-columns: 1fr;
        left: 10px;
        margin: 0;
        max-height: calc(100dvh - 118px);
        overflow: auto;
        overscroll-behavior: contain;
        padding: 16px;
        position: fixed;
        right: 10px;
        z-index: 100002;
    }
    .capdlm-field select { width: 100%; }
    .capdlm-check { background: #fff; border: 1px solid var(--capdlm-border); border-radius: 9px; padding: 0 12px; }
    .capdlm-locate { width: 100%; }
    .capdlm-mobile-filter-toggle {
        background: #fff url("https://capdisneyland.com/wp-content/uploads/2026/09/filters.png") center/34px 34px no-repeat;
        border: 1px solid rgba(16,39,68,.12);
        border-radius: 18px;
        bottom: 18px;
        box-shadow: 0 5px 18px rgba(0,0,0,.3);
        cursor: pointer;
        display: block;
        height: 58px;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 16px;
        transform: translateY(15px);
        transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
        width: 58px;
        z-index: 100003;
    }
    .capdlm-mobile-filter-toggle.is-map-visible { opacity: 1; pointer-events: auto; transform: none; }
    .capdlm-mobile-filter-toggle[aria-expanded="true"] { background-image: url("https://capdisneyland.com/wp-content/uploads/2026/09/cross.png"); background-size: 30px 30px; }
    .capdlm-mobile-filter-toggle:hover, .capdlm-mobile-filter-toggle:focus-visible { outline: 2px solid var(--capdlm-gold); outline-offset: 2px; }
    .capdlm .capdlm-attraction-popup { max-width: calc(100vw - 24px); }
    .capdlm .capdlm-attraction-popup .leaflet-popup-content-wrapper { max-width: calc(100vw - 24px); }
    .capdlm-popup-head { padding-left: 13px; }
    .capdlm-popup-icon { height: 48px; width: 48px; }
    .capdlm-popup h3 { font-size: 15px; }
    .capdlm-popup-body { padding: 13px; }
    .capdlm-popup-actions { grid-template-columns: minmax(0, 1fr) minmax(92px, auto); }
    .capdlm-legend { margin-bottom: 18px !important; }
}

body.capdlm-fullscreen-lock { overflow: hidden !important; }
.capdlm.is-fullscreen {
    background: #a1be61;
    height: 100dvh;
    inset: 0;
    margin: 0;
    position: fixed;
    width: 100vw;
    z-index: 100000;
}
.capdlm.is-fullscreen .capdlm-map-shell { height: 100%; }
.capdlm.is-fullscreen .capdlm-canvas { border: 0; border-radius: 0; height: 100dvh; max-height: none; }
.capdlm.is-fullscreen .capdlm-fullscreen-toggle { position: fixed; z-index: 100004; }
.capdlm.is-fullscreen .capdlm-status,
.capdlm.is-fullscreen .capdlm-credit { display: none; }
@media (min-width: 641px) {
    .capdlm.is-fullscreen .capdlm-toolbar {
        left: 70px;
        margin: 0;
        max-width: calc(100vw - 150px);
        position: fixed;
        top: 12px;
        z-index: 100002;
    }
}
