/*
|--------------------------------------------------------------------------
| Ad List Map Radius Search v7
|--------------------------------------------------------------------------
| Liste haritasındaki yakın çevre araması için tema uyumlu, izole edilmiş
| panel. v7: aktif badge ve arama ikon hizası güçlendirildi.
*/
.search-layout-map {
    position: relative;
}

.search-layout-map .list-map-radius-toggle,
.search-layout-map .list-map-radius-toggle *,
.search-layout-map .list-map-radius-panel,
.search-layout-map .list-map-radius-panel * {
    box-sizing: border-box;
}

.search-layout-map .list-map-radius-toggle,
.search-layout-map .list-map-radius-panel button,
.search-layout-map .list-map-radius-panel input {
    float: none !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-primary, 'Plus Jakarta Sans', Arial, sans-serif);
}

.search-layout-map .list-map-radius-toggle i,
.search-layout-map .list-map-radius-toggle span,
.search-layout-map .list-map-radius-toggle em,
.search-layout-map .list-map-radius-panel i,
.search-layout-map .list-map-radius-panel span,
.search-layout-map .list-map-radius-panel small,
.search-layout-map .list-map-radius-panel strong,
.search-layout-map .list-map-radius-panel section,
.search-layout-map .list-map-radius-panel em {
    float: none !important;
}

.list-map-radius-toggle {
    position: absolute;
    top: 20px;
    left: 18px;
    z-index: 1250;
    height: 42px;
    padding: 0 14px 0 12px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.97);
    color: var(--color-black, #111);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.list-map-radius-toggle:hover,
.list-map-radius-toggle.is-open {
    border-color: var(--color-black, #111);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,.17);
}

.list-map-radius-toggle.is-open {
    background: var(--color-black, #111);
    color: #fff;
}

.list-map-radius-toggle.has-radius {
    background: var(--color-red, #EA0029);
    color: #fff;
    border-color: var(--color-red, #EA0029);
    box-shadow: 0 13px 28px rgba(234,0,41,.24);
}

.list-map-radius-toggle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
}

.list-map-radius-toggle span {
    display: inline-block;
}

.list-map-radius-toggle em {
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    margin-left: 2px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
    color: currentColor;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.list-map-radius-toggle .lmr-active-badge {
    display: none !important;
    flex: 0 0 auto;
}

.list-map-radius-toggle.has-radius .lmr-active-badge {
    display: inline-flex !important;
}

.list-map-radius-panel {
    position: absolute;
    left: 18px;
    top: 70px;
    bottom: auto;
    z-index: 1300;
    width: min(390px, calc(100% - 36px));
    max-height: calc(100% - 92px);
    padding: 0;
    background: rgba(255,255,255,.985);
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.20), 0 2px 10px rgba(0,0,0,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: left top;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.list-map-radius-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.lmr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px 9px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.lmr-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lmr-title > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-light-red, #FCF0EF);
    color: var(--color-red, #EA0029);
    font-size: 19px;
}

.lmr-title section {
    width: auto;
    min-width: 0;
    display: block;
}

.lmr-title strong,
.lmr-title small {
    display: block;
    width: 100%;
}

.lmr-title strong {
    color: var(--color-black, #111);
    font-size: 14px;
    font-weight: 900;
    line-height: 18px;
    letter-spacing: -.2px;
}

.lmr-title small {
    margin-top: 1px;
    color: var(--color-grey, #777);
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
}

.lmr-close {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--color-light, #F3F3F3);
    color: var(--color-black, #111);
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease, color .18s ease;
}

.lmr-close:hover {
    background: var(--color-black, #111);
    color: #fff;
}

.lmr-close i {
    display: block;
    font-size: 17px;
    line-height: 1;
}

.lmr-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.25) transparent;
}

.lmr-search-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 9px;
    overflow: visible;
}

.lmr-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 0;
    z-index: 2;
    width: 18px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    color: var(--color-grey, #777);
    font-size: 18px;
    line-height: 1 !important;
    pointer-events: none;
}

.lmr-input {
    display: block !important;
    width: 100% !important;
    height: 42px;
    min-height: 42px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--color-grey-light, #D7D7D7);
    border-radius: 10px;
    background: #fff;
    color: var(--color-black, #111);
    font-size: 13px;
    font-weight: 700;
    line-height: 40px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lmr-input:focus {
    border-color: var(--color-black, #111);
    box-shadow: 0 0 0 4px rgba(0,0,0,.06);
    background: #fff;
}

.lmr-results {
    display: none;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: 1;
    margin-top: 6px;
    overflow: hidden;
    max-height: 210px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.lmr-result {
    display: block !important;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: 0;
    background: #fff;
    color: var(--color-black, #111);
    cursor: pointer;
    text-align: left;
    transition: background-color .16s ease;
}

.lmr-result:hover {
    background: var(--color-light, #F3F3F3);
}

.lmr-result:last-child {
    border-bottom: 0;
}

.lmr-result span,
.lmr-result small {
    display: block;
    width: 100%;
}

.lmr-result span {
    font-size: 13px;
    font-weight: 800;
    line-height: 17px;
}

.lmr-result small {
    margin-top: 3px;
    color: var(--color-grey, #777);
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
}

.lmr-result.is-empty {
    cursor: default;
}

.lmr-mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
}

.lmr-soft-btn {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    background: var(--color-light, #F3F3F3);
    color: var(--color-black, #111);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.lmr-soft-btn:hover {
    border-color: var(--color-red, #EA0029);
    background: var(--color-light-red, #FCF0EF);
    color: var(--color-red, #EA0029);
}

.lmr-soft-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.lmr-soft-btn span {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmr-field {
    display: block;
    margin-top: 10px;
}

.lmr-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.lmr-field-head span {
    display: block;
    color: var(--color-grey, #777);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .35px;
    line-height: 14px;
    text-transform: uppercase;
}

.lmr-field-head strong {
    display: block;
    color: var(--color-red, #EA0029);
    font-size: 12px;
    font-weight: 900;
    line-height: 14px;
}

.lmr-mode-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

.lmr-mode {
    min-width: 0;
    width: 100%;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--color-grey-light, #D7D7D7);
    border-radius: 999px;
    background: #fff;
    color: var(--color-black, #111);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.lmr-mode:hover {
    border-color: var(--color-black, #111);
}

.lmr-mode.is-active {
    border-color: var(--color-black, #111);
    background: var(--color-black, #111);
    color: #fff;
}

.lmr-range {
    --lmr-progress: 14%;
    display: block !important;
    width: 100% !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.lmr-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--color-red, #EA0029) 0%,
        var(--color-red, #EA0029) var(--lmr-progress, 14%),
        #e4e4e4 var(--lmr-progress, 14%),
        #e4e4e4 100%);
}

.lmr-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--color-red, #EA0029);
    box-shadow: 0 3px 10px rgba(0,0,0,.24);
    -webkit-appearance: none !important;
    appearance: none !important;
}

.lmr-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(234,0,41,.12), 0 3px 10px rgba(0,0,0,.24);
}

.lmr-range::-moz-range-track {
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: #e4e4e4;
}

.lmr-range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--color-red, #EA0029);
}

.lmr-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--color-red, #EA0029);
    box-shadow: 0 3px 10px rgba(0,0,0,.24);
    cursor: pointer;
}

.lmr-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.lmr-submit {
    flex: 1;
    width: auto;
    height: 42px;
    padding: 0 8px 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--color-red, #EA0029);
    color: #fff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 12px 24px rgba(234,0,41,.20);
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.lmr-submit:hover:not(:disabled) {
    background: var(--color-black, #111);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,.16);
}

.lmr-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.lmr-submit i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.lmr-clear {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    background: var(--color-light, #F3F3F3);
    color: var(--color-black, #111);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.lmr-clear:hover {
    background: var(--color-black, #111);
    color: #fff;
    border-color: var(--color-black, #111);
}

.lmr-clear i {
    display: block;
    font-size: 17px;
    line-height: 1;
}

.lmr-hint {
    display: block;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(0,0,0,.035);
    color: var(--color-grey, #777);
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
}

.list-map-radius-pin {
    width: 32px;
    height: 32px;
    position: relative;
    border-radius: 999px 999px 999px 0;
    background: var(--color-black, #111);
    border: 3px solid #fff;
    transform: rotate(-45deg);
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
}

.list-map-radius-pin::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: var(--color-red, #EA0029);
}

@media (max-width: 1199px) {
    .list-map-radius-toggle {
        top: 16px;
        left: 16px;
    }

    .list-map-radius-panel {
        left: 16px;
        top: 64px;
        bottom: auto;
        width: min(390px, calc(100% - 32px));
        max-height: calc(100% - 84px);
    }
}

@media (max-width: 768px) {
    .list-map-radius-toggle {
        top: 12px;
        left: 12px;
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .list-map-radius-panel {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 58px;
        bottom: auto;
        width: auto;
        max-height: calc(100% - 72px);
        overflow: hidden;
        border-radius: 15px;
        transform-origin: center top;
    }

    .lmr-body {
        padding: 10px;
    }

    .lmr-mini-actions {
        grid-template-columns: 1fr;
    }

    .lmr-mode-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
}


/* v7 hardening: tema resetleri ve hidden attribute badge görünürlüğünü bozmasın. */
.search-layout-map .list-map-radius-toggle.has-radius #list-map-radius-active-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-layout-map .lmr-search-wrap > i::before {
    line-height: 1 !important;
}

.search-layout-map .lmr-input {
    float: none !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}
