/* EKL Entity Listings - Cabins V1.6; rail filter layout update */

.ekl-entity-browser {
    --ekl-card-min: 360px;
    --ekl-card-max: 420px;
    --ekl-card-gap: 36px;
    --ekl-map-height: 100vh;
    --ekl-spine-width: 140px;
    --ekl-rail-width: 360px;
    --ekl-site-max-width: 1600px;
    --ekl-browser-right-gutter: 24px;
    --ekl-browser-width: min(
        calc(100vw - var(--ekl-spine-width) - var(--ekl-rail-width)),
        calc(var(--ekl-site-max-width) - var(--ekl-spine-width) - var(--ekl-rail-width))
    );
    position: relative;
    display: block;
    width: min(
        calc(var(--ekl-browser-width) - var(--ekl-browser-right-gutter)),
        calc(100% - var(--ekl-browser-right-gutter))
    );
    max-width: none;
    min-width: 0;
    margin: 0;
    overflow: visible;
}

/*
 * Elementor can otherwise allow a shortcode widget to shrink to the intrinsic
 * width of the card lane. These rules make the browser claim the available
 * content width while leaving the surrounding EKL page architecture alone.
 */
.elementor-widget-shortcode:has(.ekl-entity-browser),
.elementor-widget-shortcode:has(.ekl-entity-browser) > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
}

.ekl-entity-browser__stage {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100vh;
    isolation: isolate;
}

/*
 * The map is the stage. It sticks to the viewport while the result lane moves
 * through the normal document flow on top of it.
 */
.ekl-entity-browser__map-layer {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: var(--ekl-map-height);
    margin-bottom: calc(var(--ekl-map-height) * -1);
    overflow: hidden;
    background: #e8ecee;
}

.ekl-entity-browser__map,
.ekl-entity-browser__map-placeholder,
.ekl-location-map.ekl-entity-browser__map {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

.ekl-entity-browser__map-placeholder {
    display: grid;
    place-items: center;
    font-family: "Nunito Sans", sans-serif;
    color: #52636a;
}

.ekl-entity-browser__results {
    position: relative;
    z-index: 3;
    width: clamp(var(--ekl-card-min), 42vw, var(--ekl-card-max));
    min-width: 0;
    padding: 28px 0 52vh 28px;
    pointer-events: none;
}

.ekl-entity-card {
    width: 100%;
    min-width: 0;
    margin: 0 0 var(--ekl-card-gap);
    background: #fff;
    border: 1px solid rgba(18, 75, 96, .28);
    box-shadow: 0 10px 30px rgba(15, 35, 45, .19);
    overflow: hidden;
    pointer-events: auto;
    transition: none;
}

.ekl-entity-card--map-active {
    /* Selected cards are highlighted without changing position or size. */
    transform: none;
    border-color: #d88722;
    box-shadow: 0 0 0 3px rgba(216, 135, 34, .24), 0 12px 34px rgba(15, 35, 45, .22);
}

.ekl-entity-card__image {
    aspect-ratio: 3 / 2;
    background: #e7eaeb;
    overflow: hidden;
}

.ekl-entity-card__image-link,
.ekl-entity-card__image picture,
.ekl-entity-card__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.ekl-entity-card__image-link {
    text-decoration: none !important;
}

.ekl-entity-card__image img {
    object-fit: cover;
}

.ekl-entity-card__image-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    color: #66747a;
}

.ekl-entity-card__body {
    padding: 22px;
}

.ekl-entity-card__title {
    margin: 0 0 8px;
    font-family: "Nunito Sans", sans-serif;
    font-size: clamp(25px, 2vw, 31px);
    line-height: 1.08;
    font-weight: 500;
    color: #123f50;
}

.ekl-entity-card__address {
    display: flex;
    flex-direction: column;
    margin: 0 0 17px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    font-style: normal;
    color: #59656a;
}

.ekl-entity-card__amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: #233238;
}

.ekl-entity-card__amenities li {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.ekl-entity-card__amenities li > span {
    flex: 0 0 auto;
    font-weight: 800;
    color: #174f63;
}

.ekl-entity-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(105px, .8fr);
    gap: 10px;
}

.ekl-entity-card__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #174f63;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    color: #174f63;
    background: #fff;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.ekl-entity-card__button:hover,
.ekl-entity-card__button:focus-visible {
    transform: translateY(-1px);
    background: #f2f6f7;
}

.ekl-entity-card__button--primary,
a.ekl-entity-card__button--primary,
.ekl-entity-card__actions a.ekl-entity-card__button--primary {
    color: #fff !important;
    background: #174f63 !important;
    border-color: #174f63 !important;
}

.ekl-entity-card__button--primary:visited,
a.ekl-entity-card__button--primary:visited {
    color: #fff !important;
}

.ekl-entity-card__button--primary:hover,
.ekl-entity-card__button--primary:focus-visible,
a.ekl-entity-card__button--primary:hover,
a.ekl-entity-card__button--primary:focus-visible {
    color: #fff !important;
    background: #123f50 !important;
    border-color: #123f50 !important;
}

.ekl-entity-browser__mobile-toolbar,
.ekl-entity-browser__mobile-map-header {
    display: none;
}

.ekl-entity-browser--loading .ekl-entity-browser__results {
    opacity: .55;
    transition: opacity .15s ease;
}

/* Rail filters */
.ekl-lodging-filters {
    font-family: "Nunito Sans", sans-serif;
    color: #24343a;
    /* Let the two-column amenity options adapt to narrow mobile drawers. */
    container-type: inline-size;
}

.ekl-lodging-filters__heading {
    margin-bottom: 22px;
    font-family: var(--e-global-typography-primary-font-family, "Nunito Sans"), sans-serif;
    font-size: 27px;
    line-height: 1.08;
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    color: #4B6E81;
    text-transform: uppercase;
}

.ekl-lodging-filters__heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    margin-top: 12px;
    background: #4B6E81;
}

.ekl-lodging-filters__group {
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid rgba(18, 75, 96, .18);
}

.ekl-lodging-filters__group legend {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    font-family: var(--e-global-typography-primary-font-family, "Nunito Sans"), sans-serif;
    font-size: 18px;
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    color: #123f50;
}

.ekl-lodging-filters__group label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}

.ekl-lodging-filters__group input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: #174f63;
}

/* Keep lake choices in one readable column; halve the height of long amenity lists. */
.ekl-lodging-filters__options--amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 10px;
}

.ekl-lodging-filters__options--amenities label {
    min-width: 0;
    margin: 0;
    gap: 7px;
    overflow-wrap: anywhere;
}

@container (max-width: 285px) {
    .ekl-lodging-filters__options--amenities {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ekl-lodging-filters__footer {
    padding-top: 18px;
    border-top: 1px solid rgba(18, 75, 96, .18);
}

.ekl-lodging-filters__count {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 800;
}

.ekl-lodging-filters .ekl-lodging-filters__clear,
.ekl-lodging-filters button.ekl-lodging-filters__clear,
.elementor .ekl-lodging-filters .ekl-lodging-filters__clear {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: underline !important;
    color: #174f63 !important;
    cursor: pointer !important;
}

.ekl-lodging-filters .ekl-lodging-filters__clear:hover,
.ekl-lodging-filters .ekl-lodging-filters__clear:focus,
.ekl-lodging-filters .ekl-lodging-filters__clear:focus-visible,
.elementor .ekl-lodging-filters .ekl-lodging-filters__clear:hover,
.elementor .ekl-lodging-filters .ekl-lodging-filters__clear:focus {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #123f50 !important;
    outline: none;
}

.ekl-lodging-filters .ekl-lodging-filters__clear:disabled,
.elementor .ekl-lodging-filters .ekl-lodging-filters__clear:disabled {
    opacity: .4 !important;
    color: #174f63 !important;
    background: transparent !important;
    cursor: default !important;
}

/* Hide the desktop map-stage treatment on laptop/tablet widths where EKL's
 * spine/rail architecture is already changing. The card list remains usable. */
@media (min-width: 768px) and (max-width: 1366px) {
    .ekl-entity-browser {
        width: 100%;
    }

    .ekl-entity-browser__map-layer {
        position: relative;
        height: min(62vh, 620px);
        margin-bottom: 24px;
    }

    .ekl-entity-browser__results {
        width: min(100%, var(--ekl-card-max));
        margin-inline: auto;
        padding: 0 0 36px;
    }
}


@media (max-width: 767px) {
    .ekl-entity-browser {
        --ekl-map-height: 100dvh;
        width: 100%;
        max-width: 100%;
    }

    .ekl-entity-browser__mobile-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 16px;
        font-family: "Nunito Sans", sans-serif;
    }

    .ekl-entity-browser__mobile-map-open,
    button.ekl-entity-browser__mobile-map-open {
        appearance: none !important;
        -webkit-appearance: none !important;
        min-height: 42px !important;
        padding: 8px 14px !important;
        border: 1px solid #174f63 !important;
        border-radius: 0 !important;
        background: #174f63 !important;
        color: #fff !important;
        font: inherit !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .ekl-entity-browser__mobile-map-open:hover,
    .ekl-entity-browser__mobile-map-open:focus-visible {
        background: #123f50 !important;
        border-color: #123f50 !important;
        color: #fff !important;
    }

    .ekl-entity-browser__stage {
        display: block;
        min-height: 0;
    }

    .ekl-entity-browser__map-layer {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 10000;
        width: 100%;
        height: 100dvh;
        margin: 0;
        background: #fff;
    }

    .ekl-entity-browser--map-open .ekl-entity-browser__map-layer {
        display: block;
    }

    .ekl-entity-browser__mobile-map-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 58px;
        padding: 0 16px;
        border-bottom: 1px solid #d8dfe2;
        background: #fff;
        font-family: "Nunito Sans", sans-serif;
    }

    .ekl-entity-browser__mobile-map-header button {
        appearance: none;
        border: 0;
        background: none;
        font: inherit;
        font-weight: 800;
        color: #174f63;
    }

    .ekl-entity-browser__map,
    .ekl-location-map.ekl-entity-browser__map {
        height: calc(100dvh - 58px) !important;
        min-height: calc(100dvh - 58px) !important;
    }

    .ekl-entity-browser__results {
        width: min(100%, var(--ekl-card-max));
        margin-inline: auto;
        padding: 0;
    }

    .ekl-entity-card {
        min-width: 0;
        max-width: none;
        margin-bottom: 22px;
    }

    .ekl-entity-card__body {
        padding: 18px;
    }

    .ekl-entity-card__amenities {
        grid-template-columns: 1fr;
    }

    body.ekl-mobile-map-open {
        overflow: hidden;
    }
}

.ekl-lodging-filters__notice {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #59656a;
}
