.xco-rsl,
.xco-rsl * {
    box-sizing: border-box;
}

.xco-rsl {
    --xco-rsl-filter-width: 260px;
    --xco-rsl-list-width: 420px;
    --xco-rsl-green: #006052;
    --xco-rsl-dark: #102b2b;
    --xco-rsl-muted: #5d6969;
    --xco-rsl-line: #e8eeee;
    --xco-rsl-soft: #f5f8f7;
    width: 100%;
    overflow: hidden;
    background: #f5f8f7;
    padding: 18px;
    position: relative;
}

.xco-rsl__config {
    display: none !important;
}

.xco-rsl__header {
    margin: 0 0 20px;
}

.xco-rsl__heading {
    margin: 0;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.12;
    color: var(--xco-rsl-dark);
}

.xco-rsl__subheading {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--xco-rsl-muted);
    line-height: 1.55;
}

.xco-rsl__body {
    display: grid;
    grid-template-columns: var(--xco-rsl-filter-width) var(--xco-rsl-list-width) minmax(360px, 1fr);
    align-items: stretch;
    gap: 18px;
    min-width: 0;
}

.xco-rsl__filters,
.xco-rsl__results,
.xco-rsl__map-wrap {
    min-width: 0;
}

.xco-rsl__filters {
    background: #fff;
    border: 1px solid rgba(16, 43, 43, 0.06);
    padding: 24px;
    border-radius: 16px;
    align-self: start;
}

.xco-rsl__search-wrap {
    position: relative;
    margin-bottom: 24px;
}

.xco-rsl__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xco-rsl-green);
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.xco-rsl__search {
    width: 100%;
    height: 46px;
    border: 1px solid var(--xco-rsl-line);
    border-radius: 12px;
    padding: 0 14px 0 42px;
    outline: none;
    background: #f9fbfb;
    color: var(--xco-rsl-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.xco-rsl__search:focus {
    border-color: rgba(0, 96, 82, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 96, 82, 0.08);
    background: #fff;
}

.xco-rsl__filter-title {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--xco-rsl-dark);
}

.xco-rsl__type-list {
    display: grid;
    gap: 10px;
}

.xco-rsl__type-btn,
.xco-rsl__toggle-btn {
    appearance: none;
    border: 1px solid var(--xco-rsl-line);
    background: #fff;
    color: var(--xco-rsl-dark);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.xco-rsl__type-btn:hover,
.xco-rsl__toggle-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 96, 82, 0.25);
    box-shadow: 0 10px 26px rgba(16, 43, 43, 0.08);
}

.xco-rsl__type-btn.is-active,
.xco-rsl__toggle-btn.is-active {
    background: var(--xco-rsl-green);
    border-color: var(--xco-rsl-green);
    color: #fff;
}

.xco-rsl__results {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.xco-rsl__results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.xco-rsl__results-count {
    color: var(--xco-rsl-dark);
    font-weight: 700;
}

.xco-rsl__cards {
    display: grid;
    gap: 14px;
    max-height: var(--xco-rsl-card-list-height, calc(100dvh - 260px));
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.xco-rsl__cards::-webkit-scrollbar {
    width: 8px;
}

.xco-rsl__cards::-webkit-scrollbar-track {
    background: transparent;
}

.xco-rsl__cards::-webkit-scrollbar-thumb {
    background: rgba(16, 43, 43, 0.18);
    border-radius: 999px;
}

.xco-rsl__card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(16, 43, 43, 0.08);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xco-rsl__card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.xco-rsl__card:hover,
.xco-rsl__card.is-active {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(16, 43, 43, 0.1);
    border-color: var(--xco-rsl-green);
}

.xco-rsl__card.is-active:before {
    background: var(--xco-rsl-green);
}

.xco-rsl__card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.xco-rsl__store-name {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--xco-rsl-dark);
}

.xco-rsl__address {
    margin: 0;
    color: var(--xco-rsl-muted);
    font-size: 14px;
    line-height: 1.5;
}

.xco-rsl__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e6f3f1;
    color: #0d4f49;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.xco-rsl__badge--legacy {
    background: #eef1f2;
    color: #48595c;
}

.xco-rsl__badge--lifestyle {
    background: #e6f3f1;
    color: #0d4f49;
}

.xco-rsl__badge--grab_go {
    background: #fff2de;
    color: #8b5100;
}

.xco-rsl__badge--mobile_units {
    background: #eef0ff;
    color: #39417d;
}

.xco-rsl__card-actions {
    margin-top: 16px;
}

.xco-rsl__directions,
.xco-rsl__map-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--xco-rsl-green);
    background: var(--xco-rsl-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.xco-rsl__directions:hover,
.xco-rsl__map-popup-link:hover {
    background: #004c41;
    border-color: #004c41;
    color: #fff;
    transform: translateY(-1px);
}

.xco-rsl__map-wrap {
    position: relative;
}

.xco-rsl__map {
    width: 100%;
    height: 640px;
    min-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    background: #dce5e3;
    z-index: 1;
}

.xco-rsl__map-fallback {
    position: absolute;
    inset: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--xco-rsl-dark);
    text-align: center;
}

.xco-rsl__empty {
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--xco-rsl-muted);
    border: 1px dashed var(--xco-rsl-line);
}

.xco-rsl__marker {
    position: relative;
    width: 24px;
    height: 24px;
}

.xco-rsl__marker-dot {
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--xco-rsl-green);
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(16, 43, 43, 0.28);
}

.xco-rsl__marker-dot:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.xco-rsl__marker--legacy .xco-rsl__marker-dot {
    background: #6b777a;
}

.xco-rsl__marker--lifestyle .xco-rsl__marker-dot {
    background: #006052;
}

.xco-rsl__marker--grab_go .xco-rsl__marker-dot {
    background: #e56a00;
}

.xco-rsl__marker--mobile_units .xco-rsl__marker-dot {
    background: #4a55b5;
}

.xco-rsl__popup {
    min-width: 220px;
}

.xco-rsl__popup-title {
    margin: 0 0 5px;
    color: var(--xco-rsl-dark);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

.xco-rsl__popup-type {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e6f3f1;
    color: #0d4f49;
    font-size: 12px;
    font-weight: 700;
}

.xco-rsl__popup-address {
    margin: 0 0 12px;
    color: var(--xco-rsl-muted);
    line-height: 1.45;
}

.xco-rsl .leaflet-container {
    font-family: inherit;
    z-index: 1;
}

.xco-rsl .leaflet-control-container,
.xco-rsl .leaflet-pane,
.xco-rsl .leaflet-top,
.xco-rsl .leaflet-bottom {
    z-index: 1;
}

.xco-rsl .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 43, 43, 0.16);
}

.xco-rsl .leaflet-popup-content {
    margin: 16px;
}

.xco-rsl__mobile-toggle {
    display: none;
    margin-bottom: 14px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--xco-rsl-line);
    border-radius: 999px;
}

.xco-rsl__mobile-toggle .xco-rsl__toggle-btn {
    width: 50%;
    text-align: center;
    border-radius: 999px;
    border-color: transparent;
}

@media (max-width: 1180px) {
    .xco-rsl__body {
        grid-template-columns: var(--xco-rsl-filter-width) minmax(300px, 1fr);
    }

    .xco-rsl__map-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .xco-rsl {
        padding: 14px;
    }

    .xco-rsl__mobile-toggle {
        display: flex;
    }

    .xco-rsl__body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xco-rsl__filters {
        padding: 18px;
    }

    .xco-rsl__type-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xco-rsl__type-btn {
        text-align: center;
        padding: 11px 10px;
    }

    .xco-rsl__cards {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .xco-rsl__map {
        height: 480px;
    }

    .xco-rsl--show-list .xco-rsl__map-wrap {
        display: none;
    }

    .xco-rsl--show-map .xco-rsl__results {
        display: none;
    }
}

/* v1.0.1: Make hidden fallback/empty states immune to theme or optimisation CSS overrides. */
.xco-rsl__map-fallback[hidden],
.xco-rsl__empty[hidden] {
    display: none !important;
}

/* v1.0.2: Store images, contact links, geolocation and richer map popup/ribbon. */
.xco-rsl__geo {
    margin: -8px 0 24px;
}

.xco-rsl__geo-btn {
    appearance: none;
    width: 100%;
    border: 1px solid var(--xco-rsl-green);
    background: var(--xco-rsl-green);
    color: #fff;
    border-radius: 12px;
    min-height: 44px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.xco-rsl__geo-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(16, 43, 43, 0.10);
}

.xco-rsl__geo-btn:disabled,
.xco-rsl__geo-btn.is-loading {
    cursor: progress;
    opacity: 0.72;
}

.xco-rsl__geo-status {
    margin-top: 8px;
    color: var(--xco-rsl-muted);
    font-size: 12px;
    line-height: 1.4;
}

.xco-rsl__geo-status.is-error {
    color: #9b2c2c;
}

.xco-rsl__card-layout {
    display: grid;
    gap: 16px;
}

.xco-rsl__card-layout.has-image {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
}

.xco-rsl__card-image {
    min-height: 118px;
    border-radius: 13px;
    overflow: hidden;
    background: #e8eeee;
}

.xco-rsl__card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.xco-rsl__card-content {
    min-width: 0;
}

.xco-rsl__distance,
.xco-rsl__popup-distance {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e6f3f1;
    color: #0d4f49;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.xco-rsl__contact-list,
.xco-rsl__popup-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.xco-rsl__contact-link,
.xco-rsl__popup-contact {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f5f8f7;
    color: var(--xco-rsl-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    word-break: break-word;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.xco-rsl__contact-link:hover,
.xco-rsl__popup-contact:hover {
    background: var(--xco-rsl-green);
    color: #fff;
    transform: translateY(-1px);
}

.xco-rsl .leaflet-popup-content-wrapper {
    border-radius: 18px;
    overflow: hidden;
}

.xco-rsl .leaflet-popup-content {
    width: auto !important;
    margin: 0;
}

.xco-rsl__popup {
    width: min(430px, calc(100vw - 70px));
    min-width: 240px;
    background: #fff;
}

.xco-rsl__popup--with-image {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
}

.xco-rsl__popup--no-image {
    display: block;
}

.xco-rsl__popup-image {
    min-height: 100%;
    background: #e8eeee;
}

.xco-rsl__popup-image img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: block;
    object-fit: cover;
}

.xco-rsl__popup-details {
    min-width: 0;
    padding: 16px;
}

.xco-rsl__popup-title {
    margin: 0 0 6px;
}

.xco-rsl__popup-type {
    margin-bottom: 8px;
}

.xco-rsl__popup-address {
    margin-bottom: 0;
}

.xco-rsl__popup .xco-rsl__map-popup-link {
    width: 100%;
    margin-top: 14px;
}

.xco-rsl__user-marker {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 96, 82, 0.16);
    box-shadow: 0 0 0 8px rgba(0, 96, 82, 0.08);
}

.xco-rsl__user-marker span {
    position: absolute;
    inset: 9px;
    display: block;
    border-radius: 999px;
    background: var(--xco-rsl-green);
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(16, 43, 43, 0.24);
}

.xco-rsl__user-popup {
    padding: 12px 14px;
    font-weight: 800;
    color: var(--xco-rsl-dark);
}

.xco-rsl__distance[hidden],
.xco-rsl__geo-status[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .xco-rsl__card-layout.has-image {
        grid-template-columns: 1fr;
    }

    .xco-rsl__card-image {
        min-height: 190px;
    }

    .xco-rsl__contact-link,
    .xco-rsl__popup-contact {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .xco-rsl__popup--with-image {
        grid-template-columns: 1fr;
    }

    .xco-rsl__popup-image img {
        height: 150px;
        min-height: 150px;
    }

    .xco-rsl__popup-details {
        padding: 14px;
    }
}

/* v1.0.3: Google Roadmap support and Google Maps info-window polish. */
.xco-rsl .gm-style {
    font-family: inherit;
}

.xco-rsl .gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 40px rgba(16, 43, 43, 0.16) !important;
}

.xco-rsl .gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: none !important;
}

.xco-rsl .gm-style .gm-ui-hover-effect {
    top: 4px !important;
    right: 4px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border-radius: 999px !important;
}

/* v1.0.5: Admin dashboard visibility options, stronger button controls and search icon alignment. */
.xco-rsl__body--no-filters {
    grid-template-columns: var(--xco-rsl-list-width) minmax(360px, 1fr);
}

.xco-rsl__search-wrap {
    display: block;
}

.xco-rsl__search-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.xco-rsl__search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.xco-rsl__search {
    padding-left: 50px;
}

.xco-rsl__directions,
.xco-rsl__map-popup-link,
.xco-rsl__geo-btn,
.xco-rsl__contact-link,
.xco-rsl__popup-contact {
    gap: 0;
}

.xco-rsl__btn-icon,
.xco-rsl__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 8px;
    line-height: 1;
}

.xco-rsl__btn-text {
    display: inline-block;
}

.xco-rsl__custom-field {
    max-width: 100%;
}

.xco-rsl__custom-field strong {
    margin-right: 4px;
}

@media (max-width: 1180px) {
    .xco-rsl__body--no-filters {
        grid-template-columns: minmax(300px, 1fr);
    }
}

@media (max-width: 767px) {
    .xco-rsl__body--no-filters {
        grid-template-columns: 1fr;
    }
}

/* v1.1.0: Admin-store architecture, taxonomy filters, flexible styling and non-overlapping Font Awesome icons. */
.xco-rsl {
    overflow: visible;
}

.xco-rsl__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--xco-rsl-line);
    border-radius: 12px;
    background: #f9fbfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.xco-rsl__search-wrap:focus-within {
    border-color: rgba(0, 96, 82, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 96, 82, 0.08);
    background: #fff;
}

.xco-rsl__search-icon {
    position: static;
    inset: auto;
    transform: none;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.xco-rsl__search-icon i {
    display: block;
    line-height: 1;
}

.xco-rsl__search {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.xco-rsl__search:focus {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.xco-rsl__cards {
    padding-top: 6px;
    padding-bottom: 6px;
}

.xco-rsl__card:hover,
.xco-rsl__card.is-active,
.xco-rsl__type-btn:hover,
.xco-rsl__toggle-btn:hover,
.xco-rsl__directions:hover,
.xco-rsl__map-popup-link:hover,
.xco-rsl__geo-btn:hover:not(:disabled),
.xco-rsl__contact-link:hover,
.xco-rsl__popup-contact:hover {
    transform: none;
}

.xco-rsl__badge--legacy,
.xco-rsl__badge--lifestyle,
.xco-rsl__badge--grab_go,
.xco-rsl__badge--grab-go,
.xco-rsl__badge--mobile_units,
.xco-rsl__badge--mobile-units {
    background: inherit;
    color: inherit;
}

.xco-rsl__btn-icon i,
.xco-rsl__contact-icon i {
    display: block;
    line-height: 1;
}

/* v1.2.0: Final flex-based search control to prevent icon/text overlap across themes and optimisation plugins. */
.xco-rsl .xco-rsl__search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.xco-rsl .xco-rsl__search-icon {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    pointer-events: none !important;
}

.xco-rsl .xco-rsl__search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-left: 0 !important;
}


/* v1.3.6: Search icon removed, contact rows improved and map popup card styling unlocked. */
.xco-rsl .xco-rsl__search-wrap {
    gap: 0 !important;
}

.xco-rsl .xco-rsl__search-icon {
    display: none !important;
}

.xco-rsl .xco-rsl__search {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0;
}

.xco-rsl__contact-list,
.xco-rsl__popup-contacts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.xco-rsl__contact-link,
.xco-rsl__popup-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    gap: 8px;
}

.xco-rsl__contact-icon {
    margin-right: 0 !important;
}

.xco-rsl__contact-text {
    display: inline-flex;
    min-width: 0;
}

.xco-rsl__custom-field strong {
    display: none !important;
}

.xco-rsl__directions,
.xco-rsl__map-popup-link,
.xco-rsl__geo-btn,
.xco-rsl__type-btn,
.xco-rsl__toggle-btn,
.xco-rsl__card,
.xco-rsl__contact-link,
.xco-rsl__popup-contact {
    transition-property: background-color, border-color, color, box-shadow, transform, opacity;
}

.xco-rsl__popup {
    overflow: hidden;
}

.xco-rsl__popup-details {
    min-width: 0;
}

.xco-rsl__popup .xco-rsl__map-popup-link {
    display: flex;
}

.xco-rsl .gm-style .gm-style-iw-c,
.xco-rsl .gm-style .gm-style-iw-d {
    max-width: none !important;
}

@media (max-width: 767px) {
    .xco-rsl__contact-link,
    .xco-rsl__popup-contact {
        width: auto;
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
    }

    .xco-rsl__popup--with-image {
        grid-template-columns: 1fr !important;
    }
}

/* v1.4.0-beta: Elementor template card wrapper support. */
.xco-rsl__template-card{width:100%;}
.xco-rsl__template-fallback{font-size:12px;line-height:1.4;margin:0 0 10px;color:#7a3b00;background:#fff8ec;border:1px solid rgba(122,59,0,.18);padding:8px 10px;}


/* v1.4.2-beta: Let Elementor template cards control their own height.
   The plugin keeps only the sync wrapper; Elementor owns the visual card. */
.xco-rsl--template-cards .xco-rsl__cards {
    align-items: start;
    grid-auto-rows: auto;
}

.xco-rsl__card.xco-rsl__card--template {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent;
}

.xco-rsl__card.xco-rsl__card--template::before {
    display: none !important;
}

.xco-rsl__card.xco-rsl__card--template:hover,
.xco-rsl__card.xco-rsl__card--template.is-active {
    transform: none;
}

.xco-rsl__card--template .xco-rsl__template-card,
.xco-rsl__card--template .xco-rsl__template-card > .elementor {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.xco-rsl__card--template .xco-rsl__template-card > .elementor > .e-con,
.xco-rsl__card--template .xco-rsl__template-card > .elementor > .elementor-section,
.xco-rsl__card--template .xco-rsl__template-card > .elementor > .elementor-element {
    height: auto;
    max-height: none;
}

.xco-rsl__card--template .elementor-custom-embed,
.xco-rsl__card--template .elementor-widget-google_maps,
.xco-rsl__card--template .elementor-widget-google_maps .elementor-widget-container {
    max-height: none !important;
    overflow: visible;
}

.xco-rsl__card--template .xco-rsl__distance {
    margin-top: 8px;
}

/* v1.5.0-beta: Template renderer stability. Elementor owns visual height; plugin wrapper only syncs with map/filter JS. */
.xco-rsl--template-cards .xco-rsl__cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--xco-rsl-template-card-gap, 16px) !important;
}

.xco-rsl--template-cards .xco-rsl__card.xco-rsl__card--template {
    flex: 0 0 auto !important;
    width: 100% !important;
    clear: both !important;
    contain: layout paint;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.xco-rsl--template-cards .xco-rsl__template-card,
.xco-rsl--template-cards .xco-rsl__template-card > .elementor,
.xco-rsl--template-cards .xco-rsl__template-card .elementor-section,
.xco-rsl--template-cards .xco-rsl__template-card .e-con {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.xco-rsl--template-cards .xco-rsl__template-card iframe {
    display: block;
    width: 100%;
}

.xco-rsl__popup--template {
    max-width: 460px;
    min-width: 260px;
}

.xco-rsl__popup--template .xco-rsl__popup-distance--template {
    margin-top: 8px;
}

/* v1.5.1-beta: Frontend filter, geolocation distance badge and template filtering refinements. */
.xco-rsl__type-list {
    --xco-rsl-visible-filter-count: 7;
    --xco-rsl-filter-scroll-height: 382px;
    max-height: var(--xco-rsl-filter-scroll-height);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
}

.xco-rsl__type-list::-webkit-scrollbar {
    width: 6px;
}

.xco-rsl__type-list::-webkit-scrollbar-track {
    background: transparent;
}

.xco-rsl__type-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.xco-rsl__card {
    position: relative;
}

.xco-rsl__card[hidden],
.xco-rsl__card.is-hidden {
    display: none !important;
}

.xco-rsl__distance {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 15;
    margin: 0;
}

.xco-rsl__card--template .xco-rsl__distance {
    margin: 0;
}

.xco-rsl__card-layout.has-image,
.xco-rsl__card-layout.no-image,
.xco-rsl__template-card {
    min-width: 0;
}

@media (max-width: 767px) {
    .xco-rsl__type-list {
        grid-template-columns: 1fr;
        max-height: var(--xco-rsl-filter-scroll-height);
    }
}

/* v1.5.3-beta: selection clearing, icon loading safety and distance badge refinements. */
/* v1.5.4-beta: distance badge now anchors bottom-right by default. */
.xco-rsl__results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.xco-rsl__clear-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--xco-rsl-dark);
    border-radius: 2px;
    padding: 7px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.xco-rsl__clear-btn:hover,
.xco-rsl__clear-btn:focus {
    background: var(--xco-rsl-green);
    border-color: var(--xco-rsl-green);
    color: #fff;
}

.xco-rsl__clear-btn[hidden] {
    display: none !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-main {
    padding-right: 118px;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__badge {
    max-width: 100%;
}

.xco-rsl__card--default .xco-rsl__distance {
    white-space: nowrap;
    pointer-events: none;
}

.xco-rsl__btn-icon,
.xco-rsl__contact-icon,
.xco-rsl__map-popup-link .xco-rsl__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.xco-rsl__btn-icon i,
.xco-rsl__contact-icon i {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

@media (max-width: 520px) {
    .xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-main {
        padding-right: 0;
        padding-top: 34px;
    }
}


/* v1.5.5-beta: adaptive default cards, tablet/mobile off-canvas filters and optional off-canvas on-map card. */
.xco-rsl__mobile-panel-open,
.xco-rsl__mobile-panel-head,
.xco-rsl__mobile-panel-overlay,
.xco-rsl__map-card-overlay {
    display: none;
}

.xco-rsl__card.xco-rsl__card--default {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible;
}

.xco-rsl__card--default .xco-rsl__card-layout,
.xco-rsl__card--default .xco-rsl__card-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default {
    padding-bottom: max(18px, 58px);
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-main {
    padding-right: 0;
}

.xco-rsl__map-card-panel {
    position: fixed;
    top: 24px;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    z-index: 100004;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    box-shadow: 0 22px 60px rgba(16, 43, 43, 0.18);
    transform: translateX(calc(100% + 32px));
    transition: transform 0.28s ease, opacity 0.28s ease;
    opacity: 0;
    pointer-events: none;
    overflow: auto;
}

.xco-rsl--map-card-open .xco-rsl__map-card-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.xco-rsl__map-card-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    background: #fff;
    color: var(--xco-rsl-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.xco-rsl__map-card-content {
    padding: 18px;
}

.xco-rsl--map-card-open .xco-rsl__map-card-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100003;
    background: rgba(16, 43, 43, 0.18);
}

.xco-rsl__map-card-overlay[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .xco-rsl {
        overflow: visible;
    }

    .xco-rsl__mobile-panel-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        margin: 0 0 14px;
        padding: 10px 16px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        background: var(--xco-rsl-green);
        color: #fff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    .xco-rsl__body {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .xco-rsl__filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 92vw);
        z-index: 100002;
        border-radius: 0;
        overflow: auto;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 18px 0 44px rgba(16, 43, 43, 0.14);
    }

    .xco-rsl--mobile-panel-open .xco-rsl__filters {
        transform: translateX(0);
    }

    .xco-rsl__mobile-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        font-weight: 800;
        color: var(--xco-rsl-dark);
    }

    .xco-rsl__mobile-panel-close {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        background: transparent;
        color: var(--xco-rsl-dark);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .xco-rsl--mobile-panel-open .xco-rsl__mobile-panel-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100001;
        background: rgba(16, 43, 43, 0.22);
    }

    .xco-rsl__mobile-panel-overlay[hidden] {
        display: none !important;
    }

    .xco-rsl__mobile-toggle {
        display: flex;
        margin-bottom: 18px;
        border-radius: 2px;
    }

    .xco-rsl__mobile-toggle .xco-rsl__toggle-btn {
        border-radius: 2px;
    }

    .xco-rsl__type-list {
        grid-template-columns: 1fr;
    }

    .xco-rsl__cards {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .xco-rsl__map {
        height: 520px;
    }

    .xco-rsl--show-list .xco-rsl__map-wrap {
        display: none;
    }

    .xco-rsl--show-map .xco-rsl__results {
        display: none;
    }
}

@media (max-width: 600px) {
    .xco-rsl__map-card-panel {
        top: auto;
        right: 10px;
        left: 10px;
        bottom: 10px;
        width: auto;
        max-height: 78vh;
        transform: translateY(calc(100% + 24px));
    }

    .xco-rsl--map-card-open .xco-rsl__map-card-panel {
        transform: translateY(0);
    }
}


/* v1.5.6-beta: default-card content sizing and desktop-safe off-canvas behaviour. */
.xco-rsl__card.xco-rsl__card--default {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: fit-content !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
}

.xco-rsl__card--default .xco-rsl__card-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: start !important;
}

.xco-rsl__card--default .xco-rsl__card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.xco-rsl__card--default .xco-rsl__card-actions {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    clear: both !important;
    z-index: 4;
}

.xco-rsl__card--default .xco-rsl__directions {
    position: relative !important;
    inset: auto !important;
    z-index: 4;
    flex: 0 0 auto;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default {
    padding-bottom: max(76px, var(--xco-rsl-card-padding-bottom, 76px)) !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__distance {
    bottom: var(--xco-rsl-distance-bottom, 18px);
    right: var(--xco-rsl-distance-right, 18px);
}

.xco-rsl__cards {
    align-items: start !important;
    grid-auto-rows: auto !important;
}

.xco-rsl__mobile-panel-open,
.xco-rsl__mobile-panel-head,
.xco-rsl__mobile-panel-overlay {
    display: none !important;
}

.xco-rsl__map-card-panel[aria-hidden="true"],
.xco-rsl__map-card-panel:not([aria-hidden="false"]):not(.is-open) {
    display: none !important;
}

.xco-rsl--map-card-open .xco-rsl__map-card-panel {
    display: block !important;
}

@media (min-width: 1025px) {
    .xco-rsl__mobile-panel-open,
    .xco-rsl__mobile-panel-head,
    .xco-rsl__mobile-panel-overlay {
        display: none !important;
    }

    .xco-rsl__filters {
        position: static !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .xco-rsl__body {
        grid-template-columns: var(--xco-rsl-filter-width) var(--xco-rsl-list-width) minmax(360px, 1fr) !important;
    }

    .xco-rsl__mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .xco-rsl__mobile-panel-open {
        display: inline-flex !important;
    }

    .xco-rsl__mobile-panel-head {
        display: flex !important;
    }

    .xco-rsl--mobile-panel-open .xco-rsl__mobile-panel-overlay {
        display: block !important;
    }

    .xco-rsl__mobile-panel-overlay[hidden] {
        display: none !important;
    }
}

/* v1.5.7-beta: card structure controls and bottom-sheet filters. */
.xco-rsl__card.xco-rsl__card--default {
    display: block !important;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible !important;
    box-sizing: border-box;
}

.xco-rsl__card--default .xco-rsl__card-layout {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.xco-rsl__card--default .xco-rsl__card-layout.has-image {
    flex-direction: row;
}

.xco-rsl__card--default .xco-rsl__card-image {
    flex: 0 0 118px;
}

.xco-rsl__card--default .xco-rsl__card-content {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.xco-rsl__card--default .xco-rsl__card-actions {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 16px;
    overflow: visible !important;
    box-sizing: border-box;
    clear: both;
}

.xco-rsl__card--default .xco-rsl__directions {
    position: relative !important;
    inset: auto !important;
    margin: 0;
    z-index: 2;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default {
    padding-bottom: var(--xco-rsl-card-padding-bottom, 18px) !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-content {
    padding-bottom: calc(var(--xco-rsl-distance-bottom, 18px) + 26px);
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__distance {
    bottom: var(--xco-rsl-distance-bottom, 18px);
    right: var(--xco-rsl-distance-right, 18px);
}

@media (max-width: 767px) {
    .xco-rsl__card--default .xco-rsl__card-layout.has-image {
        flex-direction: column;
    }

    .xco-rsl__card--default .xco-rsl__card-image {
        flex-basis: auto;
    }
}

@media (max-width: 1024px) {
    .xco-rsl__filters {
        position: fixed !important;
        top: auto !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        width: auto !important;
        max-height: min(86vh, 720px);
        z-index: 100002;
        overflow: auto !important;
        transform: translateY(calc(100% + 32px)) !important;
        transition: transform 0.28s ease, opacity 0.28s ease !important;
        box-shadow: 0 -18px 44px rgba(16, 43, 43, 0.14) !important;
        border-radius: var(--xco-rsl-mobile-sheet-radius, 16px) var(--xco-rsl-mobile-sheet-radius, 16px) 0 0 !important;
    }

    .xco-rsl--mobile-panel-open .xco-rsl__filters {
        transform: translateY(0) !important;
    }

    .xco-rsl__mobile-panel-open {
        display: inline-flex !important;
        width: auto;
    }
}

@media (max-width: 767px) {
    .xco-rsl__mobile-panel-open {
        width: 100% !important;
    }

    .xco-rsl__filters {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        max-height: 88vh;
        border-radius: var(--xco-rsl-mobile-sheet-radius, 16px) var(--xco-rsl-mobile-sheet-radius, 16px) 0 0 !important;
    }
}


/* v1.5.9-beta: loading state, accessible touch targets and desktop/tablet/mobile refinements. */
.xco-rsl__type-btn,
.xco-rsl__toggle-btn {
    min-height: 44px;
    min-width: 44px;
}

.xco-rsl--loading .xco-rsl__map-wrap {
    position: relative;
}

.xco-rsl--loading .xco-rsl__map-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f4f4 25%, #e8eeee 50%, #f0f4f4 75%);
    background-size: 200% 100%;
    animation: xco-rsl-shimmer 1.4s infinite;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

@keyframes xco-rsl-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1024px) and (min-width: 601px) {
    .xco-rsl__body {
        grid-template-columns: 240px 1fr;
        grid-template-rows: auto 1fr;
    }

    .xco-rsl__map-wrap {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .xco-rsl__filters {
        grid-column: 1;
        grid-row: 1;
        position: static;
        transform: none;
        inset: auto;
        max-height: none;
        overflow: visible;
        z-index: auto;
    }

    .xco-rsl__results {
        grid-column: 1;
        grid-row: 2;
    }

    .xco-rsl__mobile-panel-open,
    .xco-rsl__mobile-panel-head,
    .xco-rsl__mobile-panel-overlay {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .xco-rsl__body {
        grid-template-columns: 1fr;
    }
}


/* v1.5.9-beta: final tablet override after legacy mobile rules. */
@media (max-width: 1024px) and (min-width: 601px) {
    .xco-rsl__body {
        grid-template-columns: 240px 1fr !important;
        grid-template-rows: auto 1fr !important;
        gap: 14px !important;
    }

    .xco-rsl__map-wrap {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 / 3 !important;
    }

    .xco-rsl__filters {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        max-height: none !important;
        transform: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        z-index: auto !important;
    }

    .xco-rsl__results {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .xco-rsl__mobile-panel-open,
    .xco-rsl__mobile-panel-head,
    .xco-rsl__mobile-panel-overlay {
        display: none !important;
    }
}


/* v1.5.10-beta: default card stacking containment and card gap stabilisation. */
.xco-rsl__cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: var(--xco-rsl-cards-gap, 16px) !important;
    row-gap: var(--xco-rsl-cards-gap, 16px) !important;
    grid-auto-rows: unset !important;
}

.xco-rsl__cards > .xco-rsl__card {
    flex: 0 0 auto !important;
}

.xco-rsl__card.xco-rsl__card--default {
    display: block !important;
    position: relative !important;
    isolation: isolate !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    z-index: 1;
}

.xco-rsl__card.xco-rsl__card--default:hover,
.xco-rsl__card.xco-rsl__card--default.is-active {
    z-index: 5;
}

.xco-rsl__card--default .xco-rsl__card-layout,
.xco-rsl__card--default .xco-rsl__card-content,
.xco-rsl__card--default .xco-rsl__contact-list,
.xco-rsl__card--default .xco-rsl__custom-fields,
.xco-rsl__card--default .xco-rsl__card-actions {
    position: static !important;
    float: none !important;
    transform: none !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.xco-rsl__card--default .xco-rsl__card-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
}

.xco-rsl__card--default .xco-rsl__card-layout.has-image {
    flex-direction: row !important;
}

.xco-rsl__card--default .xco-rsl__card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding-bottom: 0 !important;
}

.xco-rsl__card--default .xco-rsl__card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start;
    width: 100% !important;
    margin-top: var(--xco-rsl-card-actions-top-gap, 16px) !important;
    margin-bottom: 0 !important;
    clear: both !important;
    z-index: 10 !important;
}

.xco-rsl__card--default .xco-rsl__directions {
    position: static !important;
    float: none !important;
    transform: none !important;
    inset: auto !important;
    z-index: 10 !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default {
    padding-bottom: var(--xco-rsl-card-padding-bottom, 18px) !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-content {
    padding-bottom: 0 !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-actions {
    padding-right: calc(var(--xco-rsl-distance-right, 18px) + 110px) !important;
}

.xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__distance {
    z-index: 9 !important;
}

@media (max-width: 767px) {
    .xco-rsl__card--default .xco-rsl__card-layout.has-image {
        flex-direction: column !important;
    }

    .xco-rsl[data-xco-rsl-has-location="yes"] .xco-rsl__card--default .xco-rsl__card-actions {
        padding-right: 0 !important;
    }
}


/* v1.5.13-beta: final hidden-state override for filtered cards.
   Later card layout rules use display declarations with !important, so filtered
   cards must be hidden after all structural card rules are declared. */
.xco-rsl [data-xco-store-card][hidden],
.xco-rsl [data-xco-store-card].is-hidden,
.xco-rsl__cards > .xco-rsl__card[hidden],
.xco-rsl__cards > .xco-rsl__card.is-hidden,
.xco-rsl__card[hidden],
.xco-rsl__card.is-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* v1.5.14-beta: filter cleanup and optional store-list sorting controls. */
.xco-rsl__results-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.xco-rsl__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--xco-rsl-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.xco-rsl__sort-select {
    min-height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    background: #fff;
    color: var(--xco-rsl-dark);
    padding: 7px 28px 7px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.xco-rsl__sort-select:focus {
    outline: 2px solid rgba(15, 61, 54, 0.2);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .xco-rsl__results-top {
        align-items: stretch;
        flex-direction: column;
    }

    .xco-rsl__results-tools,
    .xco-rsl__sort,
    .xco-rsl__sort-select {
        width: 100%;
    }

    .xco-rsl__sort {
        justify-content: space-between;
    }

    .xco-rsl__clear-btn {
        width: 100%;
    }
}

/* v1.5.16-beta route label */
.xco-rsl__route-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.2;
    color: #1f2933;
    min-width: 70px;
}

.xco-rsl__route-label strong {
    font-size: 13px;
    line-height: 1.1;
    color: #006052;
}
