/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/
:root {
    --listeo-map-toggle-color: var(--listeo-primary-color, #1e4068);
    --listeo-map-toggle-color-rgb: var(--listeo-primary-color-rgb, 30, 64, 104);
}

.headline.headline-aligned-to-center.headline-extra-spacing.headline-box.headline-with-subtitle {
    color: green; /* Changes the text color to green */
    font-weight: bold; /* Makes the text bold */
}

.custom-checkbox {
    width: 16px; /* Adjust the size as needed */
    height: 16px; /* Adjust the size as needed */
    vertical-align: middle; /* Aligns the checkbox with the text */
    margin-right: 8px; /* Adds space between the checkbox and the text */
}

/* Hide header sign in link on small screens */
@media (max-width: 767px) {
    #header-container .header-widget .sign-in {
        display: none;
    }
}

/* Sign in link styling inside mobile menu */
.mobile-nav-widgets .mobile-sign-in {
    display: block;
    color: #fff;
    padding: 10px 0;
    font-size: 16px;
}

@media (min-width: 768px) {
    .mobile-nav-widgets .mobile-sign-in {
        display: none;
    }
}

/* Hide empty account container on small screens */
@media (max-width: 767px) {
    #header-container .header-widget:has(> .sign-in) {
        display: none;
    }
}


/* Remove gap above the map */
#map-container.fullwidth-home-map {
    margin-top: 0;
    padding-top: 0;
}


/* Place search button above filter buttons on home search template */
.search-button-top .main-search-input button.button {
    order: -1;
    width: 100%;
}

/* Mobile collapsible map overrides */
@media (max-width: 768px) {
    body.mobile-map-collapsible-loading #map-container,
    body.mobile-map-collapsible-loading #map-container.fullwidth-home-map {
        height: 120px !important;
        max-height: 120px !important;
        overflow: hidden;
        transition: none !important;
    }

    #map-container.mobile-map-collapsible {
        height: 120px !important;
        max-height: 120px !important;
        overflow: hidden;
        transition: height 0.4s ease-in-out, max-height 0.4s ease-in-out;
    }

    #map-container.mobile-map-collapsible #map {
        height: 120px !important;
        pointer-events: none;
    }

    #map-container.mobile-map-collapsible.expanded {
        height: 500px !important;
        max-height: 500px !important;
    }

    #map-container.mobile-map-collapsible.expanded #map {
        height: 500px !important;
        pointer-events: auto;
    }
}

.mobile-map-toggle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--listeo-map-toggle-color);
    border-radius: 85px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--listeo-map-toggle-color);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-map-toggle-btn:hover,
.mobile-map-toggle-btn:focus {
    background: var(--listeo-map-toggle-color);
    color: #fff;
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--listeo-map-toggle-color-rgb), 0.3);
    outline: none;
}

#show-map-button,
.show-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 24px;
    border-radius: 85px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--listeo-map-toggle-color);
    color: var(--listeo-map-toggle-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    white-space: nowrap;
}

#show-map-button:hover,
#show-map-button:focus,
.show-map-button:hover,
.show-map-button:focus {
    background: var(--listeo-map-toggle-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--listeo-map-toggle-color-rgb), 0.3);
    text-decoration: none;
}

#show-map-button:focus-visible,
.show-map-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (min-width: 769px) {
    #show-map-button,
    .show-map-button {
        display: none !important;
    }
}

.mobile-map-collapse-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--listeo-map-toggle-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
}

#map-container.mobile-map-collapsible.expanded .mobile-map-collapse-btn {
    opacity: 1;
    pointer-events: all;
}

.mobile-map-collapse-btn:hover,
.mobile-map-collapse-btn:focus {
    background: var(--listeo-map-toggle-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--listeo-map-toggle-color-rgb), 0.3);
}

.mobile-map-collapse-btn i {
    font-size: 18px;
    color: var(--listeo-map-toggle-color);
    transition: color 0.3s ease;
}

.mobile-map-collapse-btn:hover i,
.mobile-map-collapse-btn:focus i {
    color: #fff;
}

body.mobile-map-collapsible-active #show-map-button {
    display: none !important;
}

.half-archive-listings-layout,
.halfsidebar-archive-listings-layout {
    background: #f7f7f7;
}

.half-archive-listings-layout .full-page-container,
.halfsidebar-archive-listings-layout .full-page-container {
    display: flex;
}

.half-archive-listings-layout .full-page-map-container,
.halfsidebar-archive-listings-layout .full-page-map-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.half-archive-listings-layout .full-page-map-container #map-container,
.halfsidebar-archive-listings-layout .full-page-map-container #map-container {
    flex: 1 1 auto;
    overflow: hidden;
}

.half-archive-listings-layout .full-page-container.full-page-jobs,
.halfsidebar-archive-listings-layout .full-page-container.full-page-jobs,
.half-archive-listings-layout .full-page-content-container,
.halfsidebar-archive-listings-layout .full-page-content-container {
    height: auto !important;
    max-height: none !important;
}

.half-archive-listings-layout.mobile-map-collapsible-active .margin-top-40,
.halfsidebar-archive-listings-layout.mobile-map-collapsible-active .margin-top-40 {
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    .half-archive-listings-layout .full-page-container,
    .halfsidebar-archive-listings-layout .full-page-container {
        flex-direction: column;
    }

    .half-archive-listings-layout .full-page-map-container #map-container,
    .halfsidebar-archive-listings-layout .full-page-map-container #map-container {
        flex: 0 0 auto;
        height: auto;
    }

    .half-archive-listings-layout .fs-inner-container.map-fixed,
    .halfsidebar-archive-listings-layout .fs-inner-container.map-fixed {
        position: relative !important;
        top: 0;
        padding-top: 0;
        height: auto !important;
    }
}

.daterangepicker.fas-daterange-active {
    margin-top: 8px;
    z-index: 99999;
}

.daterangepicker.fas-daterange-active .calendar-table td {
    border-radius: 12px;
    font-weight: 600;
    color: #111;
}

.daterangepicker.fas-daterange-active .calendar-table td.available:hover {
    background: rgba(30, 64, 104, 0.12);
    color: #1e4068;
}

.daterangepicker.fas-daterange-active .calendar-table td.in-range {
    background: rgba(203, 12, 12, 0.12);
    color: #68431e;
}

.daterangepicker.fas-daterange-active .calendar-table td.active,
.daterangepicker.fas-daterange-active .calendar-table td.start-date,
.daterangepicker.fas-daterange-active .calendar-table td.end-date {
    background: var(--listeo-primary-color, #1e4068);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 64, 104, 0.35);
}

.daterangepicker.fas-daterange-active .calendar-table td.start-date {
    border-radius: 12px 0 0 12px;
}

.daterangepicker.fas-daterange-active .calendar-table td.end-date {
    border-radius: 0 12px 12px 0;
}

body.fas-daterange-open {
    overflow: hidden;
}

.daterangepicker .fas-daterange-close {
    display: none;
}

.daterangepicker .fas-daterange-presets {
    display: none;
}

/* Ensure datepicker sits above bottom dialog on mobile and desktop */
body.fas-bottom-dialog-open .daterangepicker {
    z-index: 12000 !important;
}

@media (max-width: 768px) {
    .daterangepicker.fas-daterange-active .drp-calendar {
        display: none !important;
    }

    .daterangepicker.fas-daterange-active .fas-calendar-scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        margin: 0 -4px;
        padding-right: 8px;
        max-height: calc(100vh - 300px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 300px - env(safe-area-inset-bottom, 0px));
        margin-top: 32px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .fas-calendar-month {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .fas-calendar-month-title {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 16px;
        padding-left: 4px;
    }

    .fas-calendar-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .fas-calendar-table th {
        text-align: center;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.6);
        padding: 10px 0;
    }

    .fas-calendar-table td {
        text-align: center;
        padding: 20px 0;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        border-radius: 12px;
        margin: 0 2px;
        font-size: 20px;
    }

    .fas-calendar-table tbody tr {
        line-height: 2em !important;
    }


    .fas-calendar-table td.disabled,
    .fas-calendar-table td.disabled.in-range,
    .fas-calendar-table td.disabled.start-date,
    .fas-calendar-table td.disabled.end-date {
        cursor: default;
        opacity: 0.32;
        background: transparent !important;
        border: none !important;
        text-decoration: none !important;
        color: rgba(0, 0, 0, 0.28) !important;
    }

    .fas-calendar-table td.available:hover {
        background: rgba(17, 17, 17, 0.08);
    }

    .fas-calendar-table td.start-date,
    .fas-calendar-table td.end-date {
        background: var(--listeo-primary-color, #1e4068);
        color: #fff;
    }

    .fas-calendar-table td.in-range {
        background: rgba(30, 64, 104, 0.15);
        color: inherit;
    }

    .daterangepicker.fas-daterange-cleared .calendar-table td.start-date,
    .daterangepicker.fas-daterange-cleared .calendar-table td.end-date,
    .daterangepicker.fas-daterange-cleared .calendar-table td.in-range,
    .daterangepicker.fas-daterange-cleared .calendar-table td.active {
        background: transparent !important;
        color: inherit !important;
        box-shadow: none !important;
    }

    .daterangepicker.fas-daterange-cleared .fas-calendar-scroll td.start-date,
    .daterangepicker.fas-daterange-cleared .fas-calendar-scroll td.end-date,
    .daterangepicker.fas-daterange-cleared .fas-calendar-scroll td.in-range,
    .daterangepicker.fas-daterange-cleared .fas-calendar-scroll td.active {
        background: transparent !important;
        color: inherit !important;
    }

    .fas-calendar-table td.off {
        opacity: 0.4;
        filter: grayscale(0.25);
        color: rgba(0, 0, 0, 0.32);
        background: transparent !important;
        text-decoration: none !important;
        border: none;
    }

    .fas-calendar-table td.off.in-range,
    .fas-calendar-table td.off.start-date,
    .fas-calendar-table td.off.end-date {
        background: transparent !important;
        color: rgba(0, 0, 0, 0.32) !important;
    }

    body.fas-daterange-open .daterangepicker,
    .daterangepicker.fullscreen,
    .daterangepicker.fas-daterange-active {
        position: fixed !important;
        top: 30px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: env(safe-area-inset-bottom, 0px) !important;
        width: 100vw !important;
        height: calc(100vh - 30px) !important;
        height: calc(100dvh - 30px) !important;
        min-height: calc(100vh - 30px) !important;
        min-height: calc(100dvh - 30px) !important;
        max-height: calc(100vh - 30px) !important;
        max-height: calc(100dvh - 30px) !important;
        margin: 0 !important;
        max-width: none !important;
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        padding: 20px 16px 60px;
        box-shadow: 0 12px 24px rgba(12, 26, 54, 0.18) !important, 0 4px 12px rgba(12, 26, 54, 0.12) !important;
        background: #fff;
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 999999;
        transform: none !important;
        filter: drop-shadow(0 24px 48px rgba(12, 26, 54, 0.18));
    }

    .daterangepicker.fas-daterange-active {
        display: flex !important;
        flex-direction: column;
        padding: 74px 16px 0;
        position: relative;
    }

    .daterangepicker.fas-daterange-active::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 16px 40px rgba(12, 26, 54, 0.22), 0 6px 18px rgba(12, 26, 54, 0.14);
        pointer-events: none;
        z-index: -1;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-presets {
        display: flex;
        position: absolute;
        top: 20px;
        left: 18px;
        right: 70px;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
        min-height: 40px;
        z-index: 2;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-preset {
        border-radius: 999px;
        border: 1px solid rgba(18, 32, 54, 0.18);
        background: #fff;
        color: #122036;
        font-size: 14px;
        font-weight: 600;
        padding: 6px 10px;
        min-width: 72px;
        cursor: pointer;
        line-height: 1.4;
        -webkit-appearance: none;
        appearance: none;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
            box-shadow 0.2s ease;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-preset:hover,
    .daterangepicker.fas-daterange-active .fas-daterange-preset:focus {
        background: rgba(30, 64, 104, 0.08);
        border-color: rgba(30, 64, 104, 0.5);
        outline: none;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-preset.is-active {
        background: var(--listeo-primary-color, #1e4068);
        color: #fff;
        border-color: var(--listeo-primary-color, #1e4068);
    }

    .daterangepicker.fas-daterange-active .fas-daterange-preset:disabled,
    .daterangepicker.fas-daterange-active .fas-daterange-preset.is-disabled {
        opacity: 0.45;
        cursor: not-allowed;
        border-color: rgba(18, 32, 54, 0.12);
        background: rgba(255, 255, 255, 0.75);
        color: rgba(18, 32, 54, 0.6);
        box-shadow: none;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(18, 32, 54, 0.12);
        color: #122036;
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.25s ease, transform 0.2s ease;
    }

    .daterangepicker.fas-daterange-active .fas-daterange-close:hover,
    .daterangepicker.fas-daterange-active .fas-daterange-close:focus {
        background: rgba(18, 32, 54, 0.22);
        outline: none;
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(18, 32, 54, 0.18);
    }

    body.fas-daterange-open .daterangepicker .drp-calendar,
    body.fas-daterange-open .daterangepicker .ranges,
    .daterangepicker.fullscreen .drp-calendar,
    .daterangepicker.fullscreen .ranges,
    .daterangepicker.fas-daterange-active .drp-calendar,
    .daterangepicker.fas-daterange-active .ranges {
        width: 100%;
        max-width: none;
        float: none;
        flex: 0 0 auto;
    }

    body.fas-daterange-open .daterangepicker .drp-calendar.left,
    body.fas-daterange-open .daterangepicker .drp-calendar.right,
    .daterangepicker.fullscreen .drp-calendar.left,
    .daterangepicker.fullscreen .drp-calendar.right,
    .daterangepicker.fas-daterange-active .drp-calendar.left,
    .daterangepicker.fas-daterange-active .drp-calendar.right {
        padding: 0;
        margin-bottom: 16px;
    }

    body.fas-daterange-open .daterangepicker .ranges,
    .daterangepicker.fullscreen .ranges,
    .daterangepicker.fas-daterange-active .ranges {
        margin-bottom: 16px;
    }

    body.fas-daterange-open .daterangepicker .drp-buttons,
    .daterangepicker.fullscreen .drp-buttons,
    .daterangepicker.fas-daterange-active .drp-buttons {
        position: sticky;
        bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        padding-top: 16px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        margin-top: auto;
        margin-bottom: env(safe-area-inset-bottom, 0px);
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        left: 0;
        right: 0;
    }

    .daterangepicker.fas-daterange-active .drp-buttons .drp-selected {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 600;
        font-family: inherit;
        letter-spacing: 0.01em;
        color: #122036;
        text-align: center;
    }

    .drp-buttons .drp-selected.fas-daterange-placeholder {
        color: rgba(18, 32, 54, 0.5);
        font-weight: 500;
    }

    body.fas-daterange-open .daterangepicker .drp-buttons .btn,
    .daterangepicker.fullscreen .drp-buttons .btn,
    .daterangepicker.fas-daterange-active .drp-buttons .btn {
        display: block;
        width: 100%;
        margin: 0;
        border-radius: 12px;
        padding: 14px;
        font-size: 18px;
        line-height: 1.1;
        text-transform: none;
        font-weight: 600;
    }

    .daterangepicker.fas-daterange-active .drp-buttons .fas-daterange-clear {
        border: 1px solid rgba(30, 64, 104, 0.35);
        background: transparent;
        color: var(--listeo-primary-color, #1e4068);
        margin-bottom: 0;
    }

    .daterangepicker.fas-daterange-active .drp-buttons .fas-daterange-clear:hover {
        background: rgba(30, 64, 104, 0.08);
        color: var(--listeo-primary-color, #1e4068);
    }

    .daterangepicker.fas-daterange-active .drp-buttons .fas-daterange-clear:focus,
    .daterangepicker.fas-daterange-active .drp-buttons .fas-daterange-clear:active {
        background: transparent;
        color: var(--listeo-primary-color, #1e4068);
        box-shadow: 0 0 0 2px rgba(30, 64, 104, 0.18);
    }

    .daterangepicker.fas-daterange-active .drp-buttons .cancelBtn {
        display: none !important;
    }

    .daterangepicker.fas-daterange-active .drp-buttons .applyBtn {
        background: var(--listeo-primary-color, #1e4068);
        border: none;
        color: #fff;
    }

    .daterangepicker .drp-buttons .applyBtn:disabled,
    .daterangepicker .drp-buttons .applyBtn.fas-apply-disabled {
        background: rgba(30, 64, 104, 0.35) !important;
        color: rgba(255, 255, 255, 0.7) !important;
        cursor: not-allowed;
        box-shadow: none !important;
        filter: grayscale(0.2);
    }
}

.fas-region-select .bootstrap-select .dropdown-menu {
    z-index: 9999;
}

.elementor-field-group .elementor-field-icon {
    pointer-events: none;
}

/* Collapsible listing filters */
.listing-filters-collapsible {
    position: relative;
}

.listing-filters-collapsible .fas-filters-toggle {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(18, 32, 54, 0.18);
    background: #fff;
    color: #122036;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.listing-filters-collapsible .fas-filters-toggle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.listing-filters-collapsible.is-expanded .fas-filters-toggle::after {
    transform: rotate(-135deg);
}

.listing-filters-collapsible .fas-filters-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 104, 0.2);
}

.listing-filters-collapsible .fas-filters-toggle-text {
    line-height: 1.2;
}

.listing-filters-collapsible .fas-filters-collapsible-content {
    margin-top: 18px;
}

.listing-filters-collapsible.is-collapsed .fas-filters-collapsible-content {
    display: none;
}

.listing-filters-collapsible--search .fas-filters-toggle {
    border-width: 1.5px;
    border-color: rgb(30, 64, 104);
    background: transparent;
    color: rgb(30, 64, 104);
    box-shadow: none;
    letter-spacing: 0.01em;
    padding: 12px 28px;
}

.listing-filters-collapsible--search.is-collapsed .fas-filters-toggle {
    margin-bottom: 0;
}

.listing-filters-collapsible--search.is-expanded .fas-filters-toggle {
    margin-bottom: 18px;
}

.listing-filters-collapsible--search .fas-filters-toggle::after {
    border-width: 1.5px;
    border-color: currentColor;
}

.listing-filters-collapsible--search .fas-filters-toggle:hover,
.listing-filters-collapsible--search .fas-filters-toggle:focus {
    background: rgba(30, 64, 104, 0.05);
    box-shadow: 0 4px 14px rgba(30, 64, 104, 0.12);
}

.listing-filters-collapsible--search .fas-filters-collapsible-content {
    margin-top: 0;
    position: relative;
    z-index: 4050;
    padding-bottom: 18px;
}

.listing-filters-collapsible--search.is-expanded .fas-filters-collapsible-content {
    margin-top: 18px;
}

section.search.listing-filters-collapsible--search {
    padding: 16px 20px;
    position: relative;
    z-index: 4000;
    overflow: visible;
    isolation: isolate;
}

body .listing-filters-collapsible--search {
    opacity: 0;
    transform: translateY(16px);
    transition: none;
}

body.listeo-filters-ready .listing-filters-collapsible--search {
    opacity: 1;
    transform: translateY(0);
}

section.search.listing-filters-collapsible--search.is-expanded {
    padding-top: 16px;
    padding-bottom: 16px;
}

@media (max-width: 768px) {
    section.search.listing-filters-collapsible--search {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        margin: 8px auto;
        row-gap: 8px;
    }

    section.search.listing-filters-collapsible--search.is-expanded {
        padding: 10px 18px;
    }

    section.search.listing-filters-collapsible--search .fas-filters-toggle {
        max-width: 260px;
        margin: 0 auto;
        padding: 12px 22px;
    }

    section.search.listing-filters-collapsible--search .fas-filters-collapsible-content {
        margin-top: 0;
    }

    section.search.listing-filters-collapsible--search.is-expanded .fas-filters-collapsible-content {
        margin-top: 12px;
    }
}

section.search.listing-filters-collapsible--search .bootstrap-select {
    position: static;
    z-index: auto;
}

section.search.listing-filters-collapsible--search .bootstrap-select.open {
    position: relative;
    z-index: 900;
}

section.search.listing-filters-collapsible--search .bootstrap-select.open .dropdown-menu {
    z-index: 1200;
}

section.search.listing-filters-collapsible--search .panel-dropdown .panel-dropdown-content {
    z-index: 640;
}

.fs-inner-container.content .listings-container {
    position: relative;
    z-index: 100;
}

.fs-container .fs-inner-container.map-fixed {
    position: relative;
    z-index: 1;
}

.fs-container .fs-inner-container.content {
    position: relative;
    z-index: 2 !important;
}

@media (max-width: 1024px) {
    .fs-container .fs-inner-container.map-fixed.fas-inline-filters-active {
        z-index: 5000;
    }
}

.fs-container .fs-inner-container.map-fixed #map-container,
.fs-container .fs-inner-container.map-fixed #map {
    position: relative;
    z-index: 0 !important;
}

.fs-inner-container.content::after {
    pointer-events: none;
    z-index: 0;
}

.listing-filters-collapsible--search .panel-dropdown {
    position: static;
    z-index: auto;
}

.listing-filters-collapsible--search .panel-dropdown.active {
    position: relative;
    z-index: 4500;
}

.fs-inner-container.content,
.fs-inner-container.content .fs-content,
.fs-inner-container.content .fs-content > .row,
.fs-inner-container.content .fs-content .panel-wrapper,
.fs-inner-container.content .fs-content .col-fs-12 {
    overflow: visible;
}

.fs-inner-container.content .listings-container,
.fs-inner-container.content .listings-container .listing-item-container {
    position: relative;
    z-index: 0;
}

/* Course date selector */
.course-date-selector {
    display: flex;
    align-items: flex-start;
    column-gap: 15px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.course-date-selector label {
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    column-gap: 8px;
    color: #1e4068;
    white-space: nowrap;
}

.course-date-selector label i {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(30, 64, 104, 0.12);
    align-items: center;
    justify-content: center;
    color: #1e4068;
    font-size: 13px;
}

.course-date-selector .panel-dropdown {
    flex: 1 1 auto;
    width: auto;
    min-width: 220px;
}

.course-date-options .single-service label {
    background-color: #f8f8f8 !important;
    border-radius: 4px !important;
    color: #777 !important;
    cursor: pointer;
    display: block;
    font-size: 14.7px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
    padding: 15px !important;
    padding-right: 70px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
}

.course-date-options .single-service label h5 {
    color: #666;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
}

.course-date-availability {
    display: none !important;
}

.course-date-options .single-service:not(.selected) label:hover,
.course-date-options .single-service:not(.selected) input:hover + label {
    background-color: rgba(30, 64, 104, 0.08) !important;
    color: #1e4068 !important;
}

.course-date-options .single-service:not(.selected) label:hover h5,
.course-date-options .single-service:not(.selected) input:hover + label h5 {
    color: inherit !important;
}

.course-date-options .single-service.selected label,
.course-date-options .single-service input:checked + label {
    background-color: #1e4068 !important;
    color: #fff !important;
}

.course-date-options .single-service.selected label h5,
.course-date-options .single-service input:checked + label h5 {
    color: inherit !important;
}

.course-date-panel .panel-dropdown-content.padding-reset {
    padding: 20px !important;
}

.course-date-panel .panel-dropdown-content {
    pointer-events: none;
}

.course-date-panel.active .panel-dropdown-content {
    pointer-events: auto;
}

.listing-date-action__content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 0;
}

.listing-date-action__content span {
    margin: 0;
    flex: 1 1 auto;
}

.listing-date-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.listing-date-dropdown .course-date-panel > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 18px;
    border: 1px solid #1e4068;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #1e4068;
    background: #fff;
    box-shadow: 0 6px 15px rgba(30, 64, 104, 0.08);
    transition: all 0.2s ease;
}

.listing-date-dropdown .course-date-panel > a::after {
    display: none;
}

.listing-date-dropdown .course-date-panel > a:hover,
.listing-date-dropdown .course-date-panel.active > a {
    background: rgba(30, 64, 104, 0.05);
    box-shadow: 0 10px 20px rgba(30, 64, 104, 0.12);
}

.listing-date-dropdown .panel-dropdown-content {
    width: 320px;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px !important;
}

.listing-date-dropdown .course-date-panel .panel-dropdown-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto;
}

@media (max-width: 640px) {
    .listing-date-action__content {
        flex-wrap: wrap;
    }
}

.listing-item .listing-small-badges-container {
    top: 14px;
    left: 14px;
    right: 14px;
    padding-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.listing-item .listing-small-badge {
    padding-left: 26px;
    padding-right: 10px;
    font-size: 13px;
    line-height: 26px;
    min-height: 26px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
}

.listing-small-badge.more-dates-badge {
    background-color: #fff;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    line-height: 26px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    padding: 0 10px;
    border-radius: 100px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    position: relative;
    margin-bottom: 0;
}

/* Listing cards height adjustments */
.listings-container .listing-item-container.list-layout {
    margin-bottom: 18px;
    border-radius: 22px;
}

.listings-container .listing-item-container.list-layout .listing-item {
    height: auto;
    min-height: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(18, 32, 54, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
}

.listings-container .listing-item-container.list-layout .listing-item:hover {
    box-shadow: 0 18px 36px rgba(18, 32, 54, 0.18);
    transform: translateY(-2px);
}

.listings-container .listing-item-container.list-layout .listing-item-image {
    height: clamp(160px, 22vw, 210px);
    max-height: 210px;
}

.listings-container .listing-item-container.list-layout .listing-item-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.listings-container .listing-item-container.list-layout .listing-item-content {
    padding: 8px 14px 10px;
}

.listings-container .listing-item-container.list-layout .listing-item-content .listing-item-inner {
    padding-left: 0;
}

.listings-container .listing-item-container.list-layout .listing-item-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.listings-container .listing-item-container.list-layout .listing-author,
.listings-container .listing-item-container.list-layout .listing-address-text,
.listings-container .listing-item-container.list-layout .listing-list-small-badges-container,
.listings-container .listing-item-container.list-layout .listing-item-inner .star-rating {
    margin-top: 0;
}

.listings-container .listing-item-container.list-layout .listing-list-small-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 8px;
    margin-top: 6px;
    align-items: center;
}

.listings-container .listing-item-container.list-layout .listing-list-small-badges-container br {
    display: none;
}

.listings-container .listing-item-container.list-layout .listing-list-small-badges-container .listing-small-badge {
    float: none;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
    border-radius: 999px;
    min-height: 34px;
    font-weight: 600;
    flex: 0 1 auto;
    min-width: 0;
}

.listings-container .listing-item-container.list-layout .listing-small-badge.more-dates-badge {
    background-color: #f4f4f4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(30, 64, 104, 0.08);
    box-shadow: none;
}

@media (max-width: 520px) {
    .listings-container .listing-item-container.list-layout .listing-list-small-badges-container {
        gap: 6px;
    }

    .listings-container .listing-item-container.list-layout .listing-list-small-badges-container .listing-small-badge {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1;
        min-height: 30px;
    }

    .listings-container .listing-item-container.list-layout .listing-small-badge.more-dates-badge {
        padding: 5px 10px;
    }
}

.listings-container .listing-item-container.list-layout .listing-author {
    font-size: 13px;
}

.listings-container .listing-item-container.list-layout .listing-address-text {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.listings-container .listing-item-container.list-layout .listing-address-text::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #1e4068;
    font-size: 12px;
    line-height: 1;
}

.listings-container .listing-item-container.list-layout .listing-item-inner h3 {
    margin: 0 0 1px;
}

.listings-container .listing-item-container.list-layout .listing-item-inner .star-rating {
    padding-top: 0;
}

.listings-container .listing-item-container.list-layout .listing-item-inner .star-rating,
.listings-container .listing-item-container.list-layout .listing-item-inner .rating-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.listings-container .listing-item-container.list-layout .listing-list-small-badges-container .listing-small-badge i {
    margin-right: 5px;
    position: relative;
    top: 0;
}

@media (max-width: 768px) {
    .listing-item-container.list-layout .listing-item-inner {
        padding: 10px;
    }
}

.fas-date-range .fas-date-field {
    display: grid;
    position: relative;
    height: 100%;
}

.fas-date-range .fas-date-field .date_range {
    grid-area: 1 / 1;
    padding-right: 48px;
    width: 100%;
}

.fas-date-range .fas-date-field .fa-calendar,
.fas-date-range .fas-date-field .elementor-field-icon,
.fas-date-range .fas-date-field .eicon-calendar {
    position: static;
    grid-area: 1 / 1;
    justify-self: end;
    align-self: center;
    margin-right: 20px;
    color: #999;
    pointer-events: none;
}

@media (min-width: 992px) {
    .fas-date-range .fas-date-field {
        display: block;
    }

    .fas-date-range .fas-date-field .fa-calendar,
    .fas-date-range .fas-date-field .elementor-field-icon,
.fas-date-range .fas-date-field .eicon-calendar {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
        right: 20px;
        justify-self: auto;
        align-self: auto;
    }
}

body.fas-bottom-dialog-open,
html.fas-bottom-dialog-open {
    overflow: hidden !important;
    height: 100%;
}

/* Bottom sheet dialog */
.fas-bottom-dialog {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 11000;
}

.fas-bottom-dialog.is-visible {
    display: block;
}

.fas-bottom-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fas-bottom-dialog.is-open .fas-bottom-dialog__overlay {
    opacity: 1;
}

.fas-bottom-dialog__panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: min(720px, 100%);
    max-height: calc(100vh - var(--fas-bottom-dialog-top, 150px));
    height: calc(100vh - var(--fas-bottom-dialog-top, 150px));
    overflow: hidden;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    padding: 0px 0px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.fas-bottom-dialog.is-open .fas-bottom-dialog__panel {
    transform: translate(-50%, 0);
}

.fas-bottom-dialog__top {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 5000; /* Above form fields inside the panel */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    min-height: 40px; /* Align thickness with map dialog */
    padding: 4px 8px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* Match footer shadow but cast downward */
    border-bottom: 1px solid #e6e8ed; /* Divider between header and content */
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__top {
    min-height: 40px;
    padding: 4px 8px;
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__close {
    margin: 6px;
}

.fas-bottom-dialog__top::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 6px;
    background: #cfd4dd;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.fas-bottom-dialog__close {
    border: none;
    background: #eef3fb;
    color: #1e4068;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin: 12px;
}

.fas-bottom-dialog__divider {
    border: 0;
    border-top: 1px solid #e6e8ed;
    margin: 0px -20px;
    height: 1px;
    display: block;
    background: #e6e8ed;
    position: relative;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

/* Subtle shadow under the top bar (overlaps the content below). */
.fas-bottom-dialog__top::after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    height: 14px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.04) 40%,
        rgba(0, 0, 0, 0) 100%
    ); /* Softer overlay that fades quickly */
    z-index: 5001; /* Sit above content and header itself */
}

.fas-bottom-dialog__body {
    padding: 4px 0;
    color: #374151;
    font-size: 15px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.fas-bottom-dialog__slot {
    display: none;
}

.fas-bottom-dialog__slot.is-active {
    display: block;
}

.fas-bottom-dialog__slot--filters {
    padding: 10px 16px 16px;
}

.fas-bottom-dialog__slot--filters .fas-filters-collapsible-content {
    margin-top: 12px;
}

.fas-bottom-dialog__filters-host {
    display: block;
}

.fas-bottom-dialog__title {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #1e4068;
    padding-left: 16px;
    padding-right: 12px;
    line-height: 1.3;
    flex: 1 1 auto;
    margin: 0;
}

.fas-bottom-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.fas-bottom-dialog__actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    align-items: center;
}

.fas-bottom-dialog__footer.is-hidden {
    display: none;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__body {
    padding: 10px 0 24px;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__panel {
    padding: 0;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__info {
    display: none;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.12);
    z-index: 5000;
    overflow: visible;
    border-top: 1px solid #e6e8ed; /* Divider between content and footer */
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0; /* Align shadow to footer edge without offset */
    height: 12px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 5001;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__actions {
    flex-direction: column;
    gap: 10px;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__actions .button {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.fas-bottom-dialog--filters-active .fas-bottom-dialog__secondary {
    background: #f2f4f8;
    color: #1e4068;
}

.fas-bottom-dialog__slot--filters .panel-dropdown {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    vertical-align: top;
    margin: 0 10px 10px 0;
}

.fas-bottom-dialog__slot--filters .panel-dropdown:last-child {
    margin-right: 0;
}

.fas-bottom-dialog .button {
    animation: none !important;
    transition: none;
}

/* Map variant */
.fas-bottom-dialog__panel--map {
    padding: 0px;
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__top {
    position: relative;
    top: 0;
    right: 0;
    z-index: 3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__top::after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    height: 12px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 4;
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__divider {
    margin: 0;
    height: 0;
    border: 0;
    background: transparent;
    position: relative;
    box-shadow: none;
    display: none;
}

.fas-bottom-dialog__panel--map .fas-bottom-dialog__divider::after {
    content: none;
}

.fas-bottom-dialog__body--map {
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fas-bottom-dialog__map-wrapper {
    border-radius: 0;
    overflow: hidden;
    background: #f5f7fb;
    flex: 1 1 auto;
    position: relative;
    z-index: 0;
}

.fas-bottom-dialog__map {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

/* Map help overlay */
.fas-map-help-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 18px;
    z-index: 1200;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.fas-map-help-overlay.is-visible {
    display: flex;
}

.fas-map-help-overlay__content {
    display: grid;
    gap: 18px;
    max-width: 320px;
    width: 100%;
    justify-items: center;
}

.fas-map-help-overlay__item {
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.fas-map-help-overlay__item i {
    font-size: 44px;
}

.fas-map-help-overlay__cta {
    background: #fff;
    color: #1e4068;
    border: none;
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    margin-top: 14px;
}

.fas-map-help-overlay__cta:focus,
.fas-map-help-overlay__cta:hover {
    background: #eef3fb;
}

/* Map legend */
.fas-map-legend-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.fas-map-legend {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    color: #1e4068;
    min-width: 200px;
    pointer-events: auto;
}

.fas-map-legend.is-hidden {
    display: none;
}

.fas-map-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
}

.fas-map-legend__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fas-map-legend__icon img,
.fas-map-legend__icon svg {
    max-width: 100%;
    max-height: 100%;
}

.fas-map-legend__icon i {
    font-size: 20px;
}

.fas-map-legend.is-collapsed {
    display: none;
    pointer-events: none;
}

.fas-map-legend-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    color: #1e4068;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid rgba(30, 64, 104, 0.35);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(12, 26, 54, 0.18);
    z-index: 1101;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
}

.fas-map-legend-toggle.is-active {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-1px);
    border-color: rgba(30, 64, 104, 0.5);
    box-shadow: 0 10px 22px rgba(12, 26, 54, 0.22);
}

.fas-bottom-dialog__primary {
    background: #1e4068;
    color: #fff;
    width: 100%;
    max-width: 520px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
}

.fas-bottom-dialog__secondary {
    background: #f5f7fb;
    color: #1e4068;
    width: 100%;
    max-width: 520px;
    padding: 15px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
    border: 1px solid #1e4068; /* Blue outline matching Accept */
}

@media (max-width: 768px) {
    .fas-bottom-dialog__panel {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .fas-bottom-dialog__actions {
        gap: 10px;
    }
}

.leaflet-listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 60;
    pointer-events: none;
}

.leaflet-listing-badges .listing-small-badge {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    color: #1e4068;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
    min-height: 26px;
    border: none;
}

.leaflet-listing-badges .listing-small-badge i {
    display: none;
}

.leaflet-listing-badges .pricing-badge {
    background: rgba(30, 64, 104, 0.95);
    color: #fff;
}

.leaflet-listing-badges .more-dates-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #1e4068;
}

.leaflet-listing-badges .leaflet-date-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #1e4068;
    padding-left: 12px;
    padding-right: 12px;
}

.leaflet-date-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231e4068'/%3E%3Crect x='6' y='7' width='12' height='11' rx='2' fill='white'/%3E%3Cpath d='M9 6v2m6-2v2' stroke='%231e4068' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M9 13l2.2 2.3L15 11.5' stroke='%23009e6c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center center / contain no-repeat;
    border-radius: 50%;
    flex: 0 0 auto;
    margin-right: 6px;
}

.fas-bottom-dialog__map .leaflet-popup {
    position: fixed !important;
    left: 50% !important;
    bottom: 14px !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    z-index: 1600 !important;
}

.fas-bottom-dialog__map .leaflet-popup-pane {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    height: auto !important;
    pointer-events: none !important;
}

.fas-bottom-dialog__map .leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
    padding: 0;
}

.fas-bottom-dialog__map .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: min(92vw, 460px) !important;
}

.fas-fixed-popup {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    z-index: 1 !important;
}

.fas-bottom-dialog__map .leaflet-popup-tip-container {
    display: none;
}

.leaflet-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.leaflet-card__image-link {
    display: block;
    position: relative;
    background: #000;
    overflow: hidden;
    padding: 0;
}

.leaflet-card__image-link img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 2;
}

.fas-fixed-popup-card .leaflet-listing-img-container::before {
    content: none !important;
    background: none !important;
}
.fas-fixed-popup-card .leaflet-listing-img-container::after {
    content: none !important;
    display: none !important;
    background: none !important;
}
.fas-fixed-popup-card .leaflet-listing-img-container,
.fas-fixed-popup-card .leaflet-card__image-link {
    background: #fff !important; /* fallback when image is missing */
    height: 150px;
}
.fas-fixed-popup-card .leaflet-card__image-link img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background: #fff !important; /* fallback color for broken/missing src */
    height: 150px;
    object-position: center;
}

.leaflet-card__body {
    padding: 8px 14px 10px;
    display: grid;
    gap: 4px;
    background: #fff;
    color: #111;
}

.leaflet-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.leaflet-card__address {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.4;
}

.leaflet-card__meta .star-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.leaflet-card__meta .rating-counter {
    padding-left: 0;
    margin: 0;
    line-height: 1.3;
}
.leaflet-card__meta .rating-counter span {
    margin: 0;
}

.fas-fixed-popup-host {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 2000;
    width: 100%;
    max-width: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fas-fixed-popup-host.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.fas-fixed-popup-card {
    background: transparent;
    pointer-events: auto;
    width: min(92vw, 460px);
    margin: 0 auto;
}
.fas-fixed-popup-card .leaflet-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.fas-bottom-dialog__title--map {
    font-weight: 700;
    font-size: 15px;
    color: #1e4068;
    padding-left: 16px;
    white-space: nowrap;
}
.fas-bottom-dialog__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Zoom controls: move away from popup and enlarge */
.fas-bottom-dialog__map .leaflet-top.leaflet-left {
    right: 14px;
    left: auto;
    top: 90px; /* sit below the dialog header and badge */
    z-index: 1100;
}
.fas-bottom-dialog__map .leaflet-control-zoom {
    display: none;
}
.fas-bottom-dialog__map .leaflet-control-zoom a {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 20px;
    background: #fff;
    border: none;
    box-shadow: none;
}
.leaflet-rating-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e4068;
}

.leaflet-rating-line i {
    color: #ffb400;
}

.leaflet-rating-line--muted {
    color: #888;
    font-weight: 600;
}

/* Split map quick actions */
.listing-actions-bar {
    display: none;
    margin: 10px 0 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    gap: 12px;
}

.listing-actions-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid #d8dce3;
    border-radius: 12px;
    color: var(--listeo-primary-color, #1e4068);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.listing-actions-bar__btn i {
    font-size: 18px;
    color: currentColor;
}

.listing-actions-bar__btn:hover,
.listing-actions-bar__btn:focus {
    background: rgba(var(--listeo-primary-color-rgb, 30, 64, 104), 0.08);
    border-color: var(--listeo-primary-color, #1e4068);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    outline: none;
}

.listing-actions-bar__btn[aria-pressed="true"] {
    background: rgba(var(--listeo-primary-color-rgb, 30, 64, 104), 0.12);
    border-color: var(--listeo-primary-color, #1e4068);
    box-shadow: inset 0 0 0 1px rgba(var(--listeo-primary-color-rgb, 30, 64, 104), 0.25);
}

/* Hide legacy inline controls */
section.search .fas-filters-toggle,
    section.search .rozbal-dialog-btn,
    .show-map-button {
    display: none !important;
}

@media (max-width: 1024px) {
    /* Keep filters markup in DOM for JS but remove its layout footprint (page only, not the dialog slot) */
    section.search.listing-filters-collapsible--search:not(.fas-bottom-dialog__slot) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        border: 0 !important;
    }

    /* Hide map until user explicitly opens it */
    .fs-inner-container.map-fixed #map-container.mobile-map-collapsible:not(.expanded) {
        display: none !important;
        height: 0;
        min-height: 0;
    }

    .fs-inner-container.map-fixed #map-container.mobile-map-collapsible.expanded {
        display: block;
        height: 320px;
    }

    .listing-actions-bar {
        display: flex;
        align-items: center;
    }

    .listing-actions-bar__btn {
        flex: 1;
    }

    /* Hide legacy toggles on mobile */
    section.search .fas-filters-toggle,
    section.search .rozbal-dialog-btn,
    .show-map-button,
    #map-container .mobile-map-toggle-btn,
    #map-container .mobile-map-collapse-btn {
        display: none !important;
    }
}

/* Keep the header “Add Listing” CTA from overlapping the filters bar when logged in */
body.logged-in .header-widget .button.border.with-icon {
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
}
