/* En Yakın İstasyon floating button — dar viewport'larda görünür, desktop'ta gizli. */
.se-find-nearest {
    display: none;
    position: fixed;
    bottom: 85px;
    right: 30px;
    background: var(--se-primary);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 7px 12px 7px 10px;
    box-shadow: 0 4px 14px rgba(77, 183, 72, .35);
    z-index: 1000;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease;
}

.se-find-nearest i {
    font-size: 13px;
    opacity: .95;
}

.se-find-nearest-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    opacity: .92;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .se-find-nearest { display: inline-flex; }
}

.se-find-nearest:hover {
    background: var(--se-dark-green, #2d9a28);
    box-shadow: 0 10px 22px rgba(77, 183, 72, .45);
    color: #fff;
}

.se-find-nearest:active {
    transform: translateY(1px);
}

.se-find-nearest:disabled {
    opacity: .7;
    cursor: wait;
}

.se-find-nearest.is-loading i {
    animation: se-fn-spin 1s linear infinite;
}

@keyframes se-fn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Mobile-app-banner aktifken back-to-top yukarı kayıyor; biz de yukarı kayalım. */
body:has(.se-mobile-app-banner:not(.se-mobile-app-banner-hidden)) .se-find-nearest {
    bottom: 123px;
}

/* ===== En Yakın İstasyon Modal ===== */
.se-nearest-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 22, 40, .25);
}
.se-nearest-modal .modal-header {
    background: linear-gradient(135deg, var(--se-primary) 0, #2d9a28 100%);
    color: #fff;
    border-bottom: none;
    padding: 18px 22px;
}
.se-nearest-modal .modal-title {
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}
.se-nearest-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .85;
}
.se-nearest-modal .modal-body {
    background: #f8fafb;
    padding: 18px;
}
.se-nearest-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #eef0f3;
    padding: 14px 22px;
}

.se-nearest-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.se-nearest-userloc {
    background: #fff;
    border: 1px dashed #c8d0d8;
    border-radius: 12px;
    padding: 12px 14px;
    color: #5b6275;
    font-size: 13px;
}
.se-nearest-userloc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.se-nearest-userloc-row > i {
    color: var(--se-primary);
    font-size: 14px;
}
.se-nearest-userloc-row strong { color: #1f2533; font-weight: 700; }
.se-nearest-userloc-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1f6391;
    text-decoration: none;
    font-weight: 600;
    font-size: 12.5px;
}
.se-nearest-userloc-link:hover { text-decoration: underline; }
.se-nearest-userloc-link i { font-size: 10px; }
.se-nearest-userloc-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8a93a4;
    line-height: 1.45;
}
.se-nearest-item {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 16px 16px 14px;
    display: flex;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(15, 22, 40, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.se-nearest-item:hover {
    border-color: #d6dbe2;
    box-shadow: 0 8px 20px rgba(15, 22, 40, .08);
}
.se-nearest-rank {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--se-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(77, 183, 72, .35);
}
.se-nearest-body { flex: 1; min-width: 0; }
.se-nearest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.se-nearest-title { min-width: 0; flex: 1; }
.se-nearest-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2533;
    line-height: 1.3;
    margin-bottom: 3px;
}
.se-nearest-loc {
    font-size: 13px;
    color: #6b7384;
}
.se-nearest-loc i { color: var(--se-primary); }
.se-nearest-distance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: rgba(77, 183, 72, .12);
    color: #2a7d24;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.se-nearest-distance i { font-size: 11px; }

.se-nearest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.se-nearest-actions .btn { padding: 6px 12px; font-size: 13px; font-weight: 600; }

.se-nearest-empty {
    text-align: center;
    padding: 30px 20px;
    color: #6b7384;
}
.se-nearest-empty i {
    font-size: 36px;
    color: #d6a82e;
    margin-bottom: 12px;
    display: block;
}
.se-nearest-empty p { margin: 0; font-size: 14px; }

@media (max-width: 575.98px) {
    .se-nearest-item { padding: 14px 12px; gap: 10px; }
    .se-nearest-rank { width: 28px; height: 28px; font-size: 13px; }
    .se-nearest-name { font-size: 15px; }
    .se-nearest-actions .btn { flex: 1 1 calc(50% - 3px); justify-content: center; display: inline-flex; align-items: center; }
}
