﻿.nearby-page {
    padding: 40px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 35px;
}

    .page-header h1 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .page-header p {
        color: #64748b;
        font-size: 17px;
    }

.search-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 58px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

    .search-box i {
        color: #94a3b8;
        margin-left: 12px;
    }

    .search-box input {
        border: none;
        outline: none;
        width: 100%;
        background: transparent;
        font-size: 16px;
    }

.btn-location {
    height: 58px;
    padding: 0 25px;
/*    border: none;*/
    border-radius: 16px;
/*    background: #2563eb;
    color: white;*/
    display: flex;
    align-items: center;
    gap: 10px;
/*    font-weight: 600;*/
    transition: .3s;
}

    .btn-location:hover {
        background: #1d4ed8;
    }

.radius-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.radius-buttons {
    display: flex;
    gap: 10px;
}

.radius {
    border: none;
    background: white;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 5px 12px rgba(0,0,0,.05);
}

    .radius.active {
        background: #2563eb;
        color: white;
    }

.map-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    margin-bottom: 35px;
}

#map {
    height: 550px;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
}

    .map-placeholder i {
        font-size: 90px;
        margin-bottom: 20px;
        color: #3b82f6;
    }

.garage-list-title {
    margin-bottom: 20px;
}

.garage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 20px;
}

.garage-card {
    height: 180px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,.05);
}

.skeleton {
    background: linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);
    background-size: 400%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {

    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

@media(max-width:768px) {

    #map {
        height: 420px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .search-panel {
        flex-direction: column;
    }

    .btn-location {
        width: 100%;
        justify-content: center;
    }

    .radius-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}
.leaflet-popup-content {
    font-family: Peyda;
    font-size: 14px;
    direction: rtl;
    text-align: right;
}

.garage-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: .3s;
}

    .garage-card:hover {
        transform: translateY(-5px);
    }

.garage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .garage-card-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

.garage-distance {
    color: #2563eb;
    font-weight: 600;
    margin-top: 5px;
}

.garage-address {
    color: #64748b;
    line-height: 1.9;
}

.garage-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .garage-tags span {
        background: #eff6ff;
        color: #2563eb;
        padding: 5px 12px;
        border-radius: 25px;
        font-size: 13px;
    }

.garage-actions {
    display: flex;
    gap: 10px;
}

.btn-route {
    flex: 1;
    height: 44px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 10px;
}

.btn-view {
    flex: 1;
    height: 44px;
    border: none;
    background: #e2e8f0;
    border-radius: 10px;
}

.garage-selected {
    border: 3px solid #2563eb;
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(37,99,235,.25);
}

.garage-card {
    cursor: pointer;
}

.cp-marker {
    background: transparent !important;
    border: none !important;
}

.cp-marker-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: markerDrop .5s ease;
}

.cp-marker-rate {
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

.cp-marker-body {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#18576C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(37,99,235,.45);
    transition: .25s;
    border: 2px solid #18576C;
}

.cp-marker-arrow {
    width: 10px;
    height: 10px;
    background: #18576C;
    transform: rotate(45deg);
    margin-top: -5px;
}

.cp-marker-body:hover {
    transform: scale(1.15);
}

@keyframes markerDrop {

    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cp-marker-logo {
    width: 30px;
    height: 30px;
}

.address-suggestions {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    overflow: hidden;
    display: none;
    z-index: 99999;
}

.address-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: .2s;
    border-bottom: 1px solid #f2f2f2;
}

    .address-item:last-child {
        border-bottom: none;
    }

    .address-item:hover {
        background: #f6f8fb;
    }

.address-title {
    font-weight: 700;
    color: #222;
}

.address-desc {
    margin-top: 4px;
    font-size: .82rem;
    color: #888;
}

.btn-search-address {
    border: none;
    background: #2F80ED;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: .2s;
}

    .btn-search-address:hover {
        background: #1f6ed4;
    }