/* ============================================
   LOCATION UI STYLES
   ============================================ */

/* Location Info Card */
.location-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-coordinates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.location-coordinates strong {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-coordinates p {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.location-address {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
}

.location-address p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.location-accuracy {
    font-size: 12px;
    color: #1b7f41;
    font-weight: 600;
}

.change-location-btn {
    background: #1b7f41;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.change-location-btn:hover {
    background: #26a654;
    transform: translateY(-1px);
}

/* Radius Filter - Green Theme */
.radius-filter {
    background: linear-gradient(135deg, #1b7f41 0%, #26a654 100%);
    padding: 20px 30px;
    margin: 20px auto 30px auto;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(27, 127, 65, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.radius-filter label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radius-filter select {
    padding: 12px 20px;
    border: 3px solid #ffffff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1b7f41;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radius-filter select:hover {
    border-color: #ffeb3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.radius-filter select:focus {
    border-color: #ffeb3b;
    box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.3);
}

.shop-count {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Distance Badge on Shop Cards */
.distance-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #1b7f41;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.distance-badge.far {
    background: #ff9800;
}

.distance-badge.very-far {
    background: #f44336;
}

/* Location Button Styles */
.header-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #1b7f41;
    border-radius: 20px;
    color: #1b7f41;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-location-btn:hover:not(:disabled) {
    background: #1b7f41;
    color: white;
    transform: translateY(-2px);
}

.header-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.header-location-btn i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .location-info-card,
    .radius-filter {
        margin: 15px;
        padding: 12px 15px;
    }

    .location-coordinates {
        flex-direction: column;
        align-items: flex-start;
    }

    .radius-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .radius-filter select {
        width: 100%;
    }

    .header-location-btn span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* No Results Message */
.no-shops-message {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
}

.no-shops-message i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-shops-message h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-shops-message p {
    color: #999;
    font-size: 14px;
}