/* Police Stations Specific Styles */
.police-container {
    padding: 0;
}

.police-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
}

.police-header h3 {
    margin: 0;
    font-weight: bold;
}

.police-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Map Container */
.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

#policeMap {
    width: 100%;
    height: 100%;
}

/* Loading Spinner */
.police-loading {
    text-align: center;
    padding: 40px 20px;
}

.police-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Police Station Cards */
.police-station-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.police-station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.police-station-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.police-station-name {
    font-weight: bold;
    color: #007bff;
    margin: 0;
    font-size: 1.1rem;
}

.police-station-rating {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.stars {
    color: #ffc107;
    margin-right: 5px;
}

.rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.police-station-body {
    padding: 15px;
}

.police-station-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.info-row i {
    width: 20px;
    margin-right: 10px;
    color: #007bff;
}

.police-station-actions {
    display: flex;
    gap: 10px;
}

.direction-btn {
    flex: 1;
    border-radius: 25px;
    font-weight: bold;
    padding: 10px;
    border: none;
    transition: all 0.2s ease;
}

.google-directions {
    background-color: #4285f4;
    color: white;
}

.google-directions:hover {
    background-color: #3367d6;
    transform: scale(1.02);
}

.apple-directions {
    background-color: #000;
    color: white;
}

.apple-directions:hover {
    background-color: #333;
    transform: scale(1.02);
}

/* Distance Badge */
.distance-badge {
    background-color: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    float: right;
}

/* Error Styles */
.police-error {
    margin: 20px;
    border-radius: 15px;
    padding: 20px;
}

.police-error i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .police-header {
        padding: 15px;
    }

    .map-container {
        height: 250px;
    }

    .police-station-actions {
        flex-direction: column;
    }

    .direction-btn {
        margin-bottom: 5px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.police-loading p {
    animation: pulse 2s infinite;
}