/* Yalnız desktop arama formundaki Çevremde Ara butonu ve aynı konum modalı. */
@media (min-width:561px){
  .fe-listings-family-scope .fe-desktop-nearby-action{display:flex!important;width:100%!important;align-items:center!important;gap:11px!important;margin:12px 0 14px!important;padding:12px!important;border:1px solid #315678!important;border-radius:12px!important;background:#102c49!important;color:#eaf5ff!important;text-align:left!important;cursor:pointer!important}
  .fe-listings-family-scope .fe-desktop-nearby-action:hover,.fe-listings-family-scope .fe-desktop-nearby-action:focus-visible{border-color:#278df5!important;background:#173b60!important;outline:2px solid transparent!important}
  .fe-desktop-nearby-action-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#1a5486;color:#75baff;font-size:24px}
  .fe-desktop-nearby-action-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
  .fe-desktop-nearby-action-text strong{font-size:13px;line-height:1.2;font-weight:800}
  .fe-desktop-nearby-action-text small{font-size:11px;color:#a9c6dd;line-height:1.3}
  .fe-desktop-nearby-action-arrow{font-size:25px;color:#61b3ff}
  html[data-fe-theme="light"] .fe-listings-family-scope .fe-desktop-nearby-action{background:#eff6ff!important;color:#10375c!important;border-color:#cbdff3!important}
  html[data-fe-theme="light"] .fe-listings-family-scope .fe-desktop-nearby-action:hover{background:#deecff!important}
  html[data-fe-theme="light"] .fe-desktop-nearby-action-text small{color:#547590}
  .fe-nearby-modal{
    position:fixed!important;
    inset:0!important;
    z-index:10050!important;
    display:none!important;
    align-items:center!important;
    justify-content:center!important;
    padding:16px!important;
    background:rgba(7,20,34,.46)!important;
    backdrop-filter:blur(5px)!important;
    -webkit-backdrop-filter:blur(5px)!important;
  }
  .fe-nearby-modal.is-open{display:flex!important}
  body.fe-nearby-open{overflow:hidden!important}

  .fe-nearby-card{
    position:relative!important;
    width:min(100%,390px)!important;
    max-height:calc(100dvh - 32px)!important;
    overflow:auto!important;
    border-radius:22px!important;
    padding:22px 18px 18px!important;
    background:#ffffff!important;
    color:#152b3f!important;
    border:1px solid #e1e8ef!important;
    box-shadow:0 22px 60px rgba(7,27,47,.20)!important;
  }
  .fe-nearby-card::before{display:none!important}

  .fe-nearby-close{
    position:absolute!important;
    right:12px!important;
    top:12px!important;
    width:36px!important;
    height:36px!important;
    border:0!important;
    border-radius:50%!important;
    background:#f2f5f8!important;
    color:#526a7e!important;
    font-size:24px!important;
    line-height:1!important;
    display:grid!important;
    place-items:center!important;
  }

  .fe-nearby-head{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
    margin:0 42px 18px 0!important;
  }
  .fe-nearby-badge{
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    color:#1677e8!important;
    background:#eef6ff!important;
    border:1px solid #d8eaff!important;
    box-shadow:none!important;
  }
  .fe-nearby-badge .fe-icon{width:20px!important;height:20px!important}
  .fe-nearby-head-copy{min-width:0!important}
  .fe-nearby-card h3{
    margin:1px 0 5px!important;
    font-size:21px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:-.02em!important;
    color:#10263a!important;
    white-space:nowrap!important;
  }
  .fe-nearby-card p{
    margin:0!important;
    font-size:12px!important;
    line-height:1.45!important;
    color:#6d8192!important;
  }

  .fe-nearby-range-shell{
    margin:0 0 14px!important;
    padding:14px 14px 12px!important;
    border-radius:16px!important;
    background:#f7f9fb!important;
    border:1px solid #e4eaf0!important;
  }
  .fe-nearby-distance{
    display:grid!important;
    grid-template-columns:26px minmax(0,1fr) 26px!important;
    align-items:center!important;
    gap:9px!important;
    margin:0!important;
  }
  .fe-nearby-home,.fe-nearby-pin{
    display:grid!important;
    place-items:center!important;
    color:#7890a5!important;
  }
  .fe-nearby-pin{color:#1677e8!important}
  .fe-nearby-home .fe-icon,.fe-nearby-pin .fe-icon{width:18px!important;height:18px!important}

  .fe-nearby-distance input[type="range"]{
    --nearby-fill:21%;
    -webkit-appearance:none!important;
    appearance:none!important;
    width:100%!important;
    height:20px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    outline:none!important;
  }
  .fe-nearby-distance input[type="range"]::-webkit-slider-runnable-track{
    height:5px!important;
    border:0!important;
    border-radius:999px!important;
    background:linear-gradient(90deg,#1677e8 0 var(--nearby-fill),#d8e1e9 var(--nearby-fill) 100%)!important;
  }
  .fe-nearby-distance input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none!important;
    appearance:none!important;
    width:18px!important;
    height:18px!important;
    margin-top:-6.5px!important;
    border:4px solid #1677e8!important;
    border-radius:50%!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(22,119,232,.24)!important;
  }
  .fe-nearby-distance input[type="range"]::-moz-range-track{
    height:5px!important;
    border:0!important;
    border-radius:999px!important;
    background:#d8e1e9!important;
  }
  .fe-nearby-distance input[type="range"]::-moz-range-progress{
    height:5px!important;
    border-radius:999px!important;
    background:#1677e8!important;
  }
  .fe-nearby-distance input[type="range"]::-moz-range-thumb{
    width:18px!important;
    height:18px!important;
    border:4px solid #1677e8!important;
    border-radius:50%!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(22,119,232,.24)!important;
  }

  .fe-nearby-range-label{text-align:center!important;margin:9px 0 0!important}
  .fe-nearby-range-label strong{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:72px!important;
    padding:6px 11px!important;
    border-radius:10px!important;
    background:#eaf4ff!important;
    color:#1268ca!important;
    font-size:13px!important;
    font-weight:800!important;
    box-shadow:none!important;
  }

  .fe-nearby-statusline{
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr)!important;
    align-items:start!important;
    gap:8px!important;
    margin:0 0 14px!important;
    padding:0 2px!important;
  }
  .fe-nearby-status-icon{
    display:grid!important;
    place-items:center!important;
    color:#73899c!important;
    padding-top:1px!important;
  }
  .fe-nearby-status-icon .fe-icon{width:16px!important;height:16px!important}
  .fe-nearby-status{
    min-height:0!important;
    margin:0!important;
    font-size:11.5px!important;
    line-height:1.45!important;
    color:#6d8192!important;
  }
  .fe-nearby-status.is-error{color:#b5473c!important}
  .fe-nearby-status.is-success{color:#207a55!important}

  .fe-nearby-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .fe-nearby-actions button{
    width:100%!important;
    min-height:48px!important;
    border-radius:12px!important;
    font-size:14px!important;
    font-weight:800!important;
  }
  .fe-nearby-primary{
    order:1!important;
    border:1px solid #1677e8!important;
    background:#1677e8!important;
    color:#fff!important;
    box-shadow:0 8px 18px rgba(22,119,232,.18)!important;
  }
  .fe-nearby-secondary{
    order:2!important;
    min-height:42px!important;
    border:1px solid #dce4eb!important;
    background:#fff!important;
    color:#536c80!important;
  }
  .fe-nearby-primary:disabled{opacity:.58!important;cursor:wait!important}

  html[data-fe-theme="dark"] body .fe-nearby-modal{background:rgba(1,11,21,.62)!important}
  html[data-fe-theme="dark"] body .fe-nearby-card{
    background:#0f2940!important;
    color:#f2f7fb!important;
    border-color:#29475f!important;
    box-shadow:0 22px 60px rgba(0,0,0,.42)!important;
  }
  html[data-fe-theme="dark"] body .fe-nearby-close{background:#18364f!important;color:#dbe8f2!important}
  html[data-fe-theme="dark"] body .fe-nearby-badge{background:#143c61!important;border-color:#265a86!important;color:#69b3ff!important}
  html[data-fe-theme="dark"] body .fe-nearby-card h3{color:#f6fbff!important}
  html[data-fe-theme="dark"] body .fe-nearby-card p,
  html[data-fe-theme="dark"] body .fe-nearby-status{color:#aebfd0!important}
  html[data-fe-theme="dark"] body .fe-nearby-range-shell{background:#102f49!important;border-color:#284760!important}
  html[data-fe-theme="dark"] body .fe-nearby-home{color:#92a8ba!important}
  html[data-fe-theme="dark"] body .fe-nearby-range-label strong{background:#163c5e!important;color:#8fc8ff!important}
  html[data-fe-theme="dark"] body .fe-nearby-secondary{background:#102d46!important;border-color:#31506a!important;color:#d7e5f0!important}
  html[data-fe-theme="dark"] body .fe-nearby-status.is-error{color:#ffaaa2!important}
  html[data-fe-theme="dark"] body .fe-nearby-status.is-success{color:#7fd7ad!important}


}
@media (max-width:560px){.fe-desktop-nearby-action{display:none!important}}

/* Presetler, hem mobil hem desktop Çevremde Ara penceresi */
.fe-nearby-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:11px}
.fe-nearby-presets button{cursor:pointer;min-width:0;border:1px solid #335b7b;border-radius:7px;background:#123553;color:#d7e9fa;padding:7px 1px;font-size:11px;font-weight:700}
.fe-nearby-presets button.is-active{background:#197ded;color:white;border-color:#58b2ff}
@media(max-width:380px){.fe-nearby-presets{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.fe-nearby-presets button{font-size:10px}}

/* PATCH 41 - Desktop Çevremde Ara: sadece hazır mesafe seçim düğmeleri. */
@media (min-width:561px){
  body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;margin-top:12px!important;padding:0!important;
    width:100%!important;align-items:stretch!important;
    background:transparent!important;border:0!important;
  }
  body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets>button[data-nearby-preset]{
    appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;min-width:0!important;width:100%!important;height:32px!important;
    min-height:32px!important;max-height:32px!important;margin:0!important;padding:0 2px!important;
    border:1px solid #375b7d!important;border-radius:8px!important;
    background:#173c5c!important;color:#d8ebfc!important;
    font-family:inherit!important;font-size:11px!important;line-height:1!important;font-weight:700!important;
    letter-spacing:0!important;white-space:nowrap!important;box-shadow:none!important;
    text-transform:none!important;opacity:1!important;cursor:pointer!important;
  }
  body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets>button[data-nearby-preset]:hover,
  body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets>button[data-nearby-preset]:focus-visible{
    background:#205886!important;border-color:#6bbcff!important;color:#fff!important;
  }
  body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets>button[data-nearby-preset].is-active{
    background:#1677e8!important;border-color:#63b7ff!important;color:#fff!important;
  }
  html[data-fe-theme="light"] body .fe-nearby-modal .fe-nearby-card .fe-nearby-presets>button[data-nearby-preset]:not(.is-active){
    background:#eff5fc!important;border-color:#ccdeef!important;color:#224966!important;
  }
}
