.loex-ui-root {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1200;
}

body[data-loex-map-mode] #gmap-control {
    display: none !important;
}

body[data-loex-map-mode="draw-pending"] .wpestate_marker,
body[data-loex-map-mode="draw-pending"] .marker-cluster,
body[data-loex-map-mode="draw-pending"] .leaflet_cluster,
body[data-loex-map-mode="draw-pending"] .leaflet-marker-icon,
body[data-loex-map-mode="draw-pending"] .leaflet-marker-shadow {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body[data-loex-map-mode="draw-pending"] .gm-bundled-control,
body[data-loex-map-mode="draw-pending"] .gm-control-active,
body[data-loex-map-mode="draw-pending"] .gmnoprint,
body[data-loex-map-mode="draw-pending"] .leaflet-control-container {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body[data-loex-gesture-active="1"] .loex-action-bar,
body[data-loex-gesture-active="1"] .gm-bundled-control,
body[data-loex-gesture-active="1"] .gm-control-active,
body[data-loex-gesture-active="1"] .gmnoprint,
body[data-loex-gesture-active="1"] .leaflet-control-container {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.loex-draw-surface {
    cursor: crosshair;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    touch-action: none;
    z-index: 20;
}

.loex-draw-surface.loex-active {
    opacity: 1;
    pointer-events: auto;
}

.loex-clear,
.loex-draw,
.loex-action-bar {
    pointer-events: auto;
    position: absolute;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1250;
}

.loex-clear {
    top: 16px;
    right: 16px;
}

.loex-draw {
    top: 16px;
    right: 16px;
}

.loex-action-bar {
    left: 16px;
    max-width: none;
    right: 16px;
    top: 16px;
    transform: none;
    width: auto;
}

.loex-clear.loex-hidden,
.loex-draw.loex-hidden,
.loex-action-bar.loex-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loex-clear:not(.loex-hidden),
.loex-draw:not(.loex-hidden),
.loex-action-bar:not(.loex-hidden) {
    opacity: 1;
    visibility: visible;
}

.loex-clear.loex-hidden .loex-clear-button,
.loex-draw.loex-hidden .loex-draw-button,
.loex-action-bar.loex-hidden .loex-action-cancel,
.loex-action-bar.loex-hidden .loex-action-label,
.loex-action-bar.loex-hidden .loex-action-body {
    pointer-events: none !important;
}

.loex-clear-button,
.loex-draw-button,
.loex-action-cancel,
.loex-action-apply {
    appearance: none;
    border-radius: 999px;
    cursor: pointer;
    font: 600 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
    pointer-events: auto;
    position: relative;
    z-index: 1260;
}

.loex-clear-button,
.loex-draw-button {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    color: #568eff;
    padding: 10px 16px;
}

.loex-clear-button {
    border: 1px solid #568eff;
}

.loex-draw-button {
    border: 1px solid rgba(86, 142, 255, 0.55);
}

.loex-clear-button:hover,
.loex-clear-button:focus-visible,
.loex-draw-button:hover,
.loex-draw-button:focus-visible {
    background: #eef4ff;
    outline: none;
}

.loex-action-body {
    align-items: center;
    background: rgba(35, 42, 40, 0.82);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 14px 18px;
    width: 100%;
}

.loex-action-label {
    color: #fff;
    font: 600 12px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: none;
    white-space: normal;
}

.loex-action-cancel {
    background: transparent;
    border: none;
    color: #fff;
    padding: 9px 14px;
}

.loex-action-apply {
    background: #568eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    display: none;
    padding: 10px 16px;
}

.loex-action-cancel:hover,
.loex-action-cancel:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
}

.loex-action-apply:hover,
.loex-action-apply:focus-visible {
    background: #3f7eff;
    outline: none;
}

.loex-action-apply.loex-disabled,
.loex-action-apply:disabled {
    background: #a8c3ff;
    border-color: #a8c3ff;
    cursor: not-allowed;
    opacity: 0.75;
}

.loex-hover-bubble {
    background: rgba(17, 24, 39, 0.95);
    border-radius: 10px;
    color: #fff;
    font: 600 11px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 140px;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    z-index: 1270;
}

.loex-hover-bubble.loex-hidden {
    display: none;
}

.page-template-advanced_search_results .entry-title.title_prop,
.page-template-advanced_search_results .entry-title.title_prop.half_results {
    font-size: 16px !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .loex-clear {
        top: 12px;
        right: 12px;
        transform: none;
    }

    .loex-draw {
        top: 12px;
        right: 12px;
        transform: none;
    }

    .loex-action-bar {
        left: 12px;
        max-width: none;
        right: 12px;
        top: 12px;
        transform: none;
        width: auto;
    }

    .loex-action-body {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .loex-action-label {
        max-width: 180px;
    }
}
