.wdh-siteplans-section {
    display: flex;
    justify-content: center;
    padding: 60px 24px;
    background-color: #5c5f62;
}

.wdh-siteplans__modal + #floor-plans,
.wdh-siteplans-section + .wdh-siteplans__modal + #floor-plans,
.wdh-siteplans-section + #floor-plans {
    display: none;
}

.wdh-siteplans-section .wdh-siteplans-title {
    color: #ffffff;
    text-align: center;
}

.wdh-siteplans {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.wdh-siteplans__switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    font-family: "TriviaSansBook";
    margin: 20px auto 50px auto;
    -webkit-box-pack: center;
    justify-content: center;
    list-style: none;
    border-bottom: 2px solid #8C9092;
}

.wdh-siteplans__switcher-button {
    color: #8C9092;
    position: relative;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    font-family: 'Fira Sans',sans-serif;
    border: none;
    background: none;
    background-color: transparent;
    font-weight: 400;
    position: relative;
    width: auto;
    padding: 15px 25px;
    margin: 0;
    cursor: pointer;
}

.wdh-siteplans__switcher-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.wdh-siteplans__switcher-button:hover,
.wdh-siteplans__switcher-button.is-active {
    color: #F49804;
}

.wdh-siteplans__switcher-button:hover::after,
.wdh-siteplans__switcher-button.is-active::after {
    background-color: #F49804;
}

.wdh-siteplans__instance[hidden] {
    display: none;
}

.wdh-siteplans__layout {
    display: block;
    /* grid-template-columns: minmax(0, 1fr) 300px; */
    /* gap: 24px; */
    align-items: start;
    position: relative;
}

.wdh-siteplans__layout--map-only {
    grid-template-columns: minmax(0, 1fr);
}

.wdh-siteplans__map-shell {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #d9dddf;
    box-shadow: 0 18px 45px rgba(31, 34, 66, 0.08);
    overflow: hidden;
}

.wdh-siteplans__map-shell .leaflet-pane {
    z-index: 20;
}

.wdh-siteplans__map {
    width: 100%;
    min-height: 720px;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.wdh-siteplans__legend {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(217, 221, 223, 0.9);
    box-shadow: 0 18px 45px rgba(31, 34, 66, 0.12);
    backdrop-filter: blur(4px);
}

.wdh-siteplans__legend-title {
    display: none !important;
    margin: 0;
    padding: 5px;
    color: #1f2242;
    font-family: "TriviaSansMedium", "Fira Sans", sans-serif;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wdh-siteplans__legend-list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
}

.wdh-siteplans__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.wdh-siteplans__legend-dot {
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background-color: #1459c7;
    box-shadow: 0 0 0 1px rgba(20, 89, 199, 0.16);
    flex-shrink: 0;
}

.wdh-siteplans__legend-label {
    color: #5c5f62;
    font-size: 14px;
    line-height: 1.35;
}

.wdh-siteplans__sidebar {
    background-color: #ffffff;
    border: 1px solid #d9dddf;
    box-shadow: 0 18px 45px rgba(31, 34, 66, 0.08);
    padding: 0;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 280px;
    z-index: 30;
}

.wdh-siteplans__sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 20px;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.wdh-siteplans__sidebar-toggle-icon {
    position: relative;
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .wdh-siteplans__sidebar.is-collapsed {
        width: auto;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle {
        position: relative;
        width: 52px;
        height: 52px;
        padding: 0;
        border: 1px solid #d9dddf;
        background-color: #ffffff;
        box-shadow: 0 18px 45px rgba(31, 34, 66, 0.12);
        justify-content: center;
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle-icon {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2242' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 20px 20px;
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle-icon::before,
    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle-icon::after {
        content: none;
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-title {
        position: absolute;
        top: 50%;
        right: calc(100% + 12px);
        transform: translateY(-50%);
        margin: 0;
        padding: 8px 12px;
        background-color: rgba(31, 34, 66, 0.92);
        color: #ffffff;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-title::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px 0 6px 6px;
        border-style: solid;
        border-color: transparent transparent transparent rgba(31, 34, 66, 0.92);
    }

    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle:hover .wdh-siteplans__sidebar-title,
    .wdh-siteplans__sidebar.is-collapsed .wdh-siteplans__sidebar-toggle:focus-visible .wdh-siteplans__sidebar-title {
        opacity: 1;
    }
}

.wdh-siteplans__sidebar-toggle-icon::before,
.wdh-siteplans__sidebar-toggle-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 9px;
    height: 2px;
    background-color: #1f2242;
    transition: transform 0.2s ease;
}

.wdh-siteplans__sidebar-toggle-icon::before {
    left: 0;
    transform: rotate(-45deg);
}

.wdh-siteplans__sidebar-toggle-icon::after {
    right: 0;
    transform: rotate(45deg);
}

.wdh-siteplans__sidebar-toggle[aria-expanded="false"] .wdh-siteplans__sidebar-toggle-icon::before {
    transform: rotate(45deg);
}

.wdh-siteplans__sidebar-toggle[aria-expanded="false"] .wdh-siteplans__sidebar-toggle-icon::after {
    transform: rotate(-45deg);
}

.wdh-siteplans__sidebar-panel {
    padding: 0 20px 20px;
}

.wdh-siteplans__sidebar-panel[hidden] {
    display: none;
}

.wdh-siteplans__sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wdh-siteplans__sidebar-title {
    margin: 0;
    color: #5c5f62;
    font-size: 18px;
    line-height: 1.25;
}

.wdh-siteplans__sidebar-copy {
    margin: 0 0 16px;
    padding: 0;
    color: #666b6e;
    font-size: 13px;
    line-height: 1.45;
}

.wdh-siteplans__filter-reset {
    border: 0;
    padding: 0;
    background: none;
    color: #1f2242;
    cursor: pointer;
    text-decoration: underline;
    font-family: "TriviaSansMedium", "Fira Sans", sans-serif;
    font-size: 14px;
    margin: 0 0 16px;
    display: block;
    margin: 1em auto 0;
    text-align: center;
}

.wdh-siteplans__filter-reset[hidden] {
    display: none;
}

.wdh-siteplans__filters {
    display: grid;
    gap: 10px;
}

.wdh-siteplans__filter {
    display: block;
    width: 100%;
    border: 1px solid #d9dddf;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.wdh-siteplans__filter:hover {
    border-color: #f49804;
    box-shadow: 0 10px 24px rgba(244, 152, 4, 0.16);
    transform: translateY(-1px);
}

.wdh-siteplans__filter-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wdh-siteplans__filter-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.wdh-siteplans__filter-label {
    color: #5c5f62;
    font-family: "TriviaSansMedium", "Fira Sans", sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.wdh-siteplans__filter-input:not(:checked) + .wdh-siteplans__filter-copy {
    background-color: #f6f7f8;
}

.wdh-siteplans__filter-input:not(:checked) + .wdh-siteplans__filter-copy .wdh-siteplans__filter-label {
    opacity: 0.6;
}

.wdh-siteplans__filter-input:checked + .wdh-siteplans__filter-copy {
    box-shadow: inset 4px 0 0 #f49804;
}

.wdh-siteplans__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    background-color: #eef2f4;
    color: #5c5f62;
}

.wdh-siteplans__status--available {
    background-color: rgba(0, 166, 81, 0.14);
    color: #008241;
}

.wdh-siteplans__status--reserved,
.wdh-siteplans__status--sold {
    background-color: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.wdh-siteplans__status--complete,
.wdh-siteplans__status--legally_complete,
.wdh-siteplans__status--legally-complete {
    background-color: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.wdh-siteplans__status--coming_soon,
.wdh-siteplans__status--coming-soon {
    background-color: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.wdh-siteplans__status--draft {
    background-color: rgba(34, 184, 207, 0.14);
    color: #0f8ea2;
}

.wdh-siteplans__status--unknown {
    background-color: rgba(92, 103, 125, 0.14);
    color: #4b5568;
}

.wdh-siteplans__legend-dot--available {
    background-color: #00a651;
    box-shadow: 0 0 0 1px rgba(0, 166, 81, 0.18);
}

.wdh-siteplans__legend-dot--reserved,
.wdh-siteplans__legend-dot--sold {
    background-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.wdh-siteplans__legend-dot--legally_complete,
.wdh-siteplans__legend-dot--legally-complete {
    background-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.wdh-siteplans__legend-dot--coming_soon,
.wdh-siteplans__legend-dot--coming-soon {
    background-color: #f49804;
    box-shadow: 0 0 0 1px rgba(244, 152, 4, 0.18);
}

.wdh-siteplans__legend-dot--draft {
    background-color: #22b8cf;
    box-shadow: 0 0 0 1px rgba(34, 184, 207, 0.18);
}

.wdh-siteplans__legend-dot--unknown {
    background-color: #5c677d;
    box-shadow: 0 0 0 1px rgba(92, 103, 125, 0.18);
}

.wdh-siteplans .leaflet-container {
    font-family: "TriviaSansBook", "Fira Sans", sans-serif;
}

.wdh-siteplans__modal[hidden] {
    display: none;
}

.wdh-siteplans__modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wdh-siteplans__modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 20, 36, 0.7);
}

.wdh-siteplans__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.wdh-siteplans__modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(31, 34, 66, 0.9);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.wdh-siteplans__detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.wdh-siteplans__detail-media {
    min-height: 100%;
    background-color: #f3f3f3;
}

.wdh-siteplans__detail-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.wdh-siteplans__detail-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px;
}

.wdh-siteplans__detail-eyebrow,
.wdh-siteplans__detail-status,
.wdh-siteplans__detail-link {
    margin: 0;
}

.wdh-siteplans__detail-eyebrow {
    padding-bottom: 8px;
    color: #f49804;
    font-size: 13px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wdh-siteplans__detail-title {
    margin: 0;
    color: #1f2242;
    font-size: 32px;
    line-height: 1.15;
}

.wdh-siteplans__detail-status {
    padding-top: 16px;
}

.wdh-siteplans__detail-specs {
    display: flex;
    gap: 12px;
    margin: 20px 0 0;
}

.wdh-siteplans__detail-spec {
    margin: 0;
    padding: 12px 14px;
    background-color: #f6f7f8;
}

.wdh-siteplans__detail-spec dt {
    margin: 0;
    color: #666b6e;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wdh-siteplans__detail-spec dd {
    margin: 6px 0 0;
    color: #1f2242;
    font-family: "TriviaSansMedium", "Fira Sans", sans-serif;
    font-size: 16px;
    line-height: 1.3;
}

.wdh-siteplans__detail-link {
    padding-top: 24px;
    padding-bottom: 0;
}

/* .wdh-siteplans__detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    background-color: #f49804;
    color: #1f2242;
    text-decoration: none;
    font-family: "TriviaSansMedium", "Fira Sans", sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
} */

/* .wdh-siteplans__detail-button:hover {
    background-color: #1f2242;
    color: #ffffff;
} */

body.wdh-siteplans-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .wdh-siteplans__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wdh-siteplans__legend {
        left: 16px;
        bottom: 16px;
    }

    .wdh-siteplans__sidebar-head {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .wdh-siteplans__map {
        min-height: 420px;
    }

    .wdh-siteplans__legend {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }

    .wdh-siteplans__modal {
        padding: 16px;
    }

    .wdh-siteplans__detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .wdh-siteplans__detail-image {
        min-height: 240px;
    }

    .wdh-siteplans__detail-body {
        padding: 24px 20px;
    }

    .wdh-siteplans__detail-specs {
        grid-template-columns: minmax(0, 1fr);
    }

    .wdh-siteplans__detail-title {
        font-size: 26px;
    }

    .wdh-siteplans__sidebar {
        top: auto;
        right: auto;
        width: 100%;
        position: static;
    }
}
