/* Hospitals Specific Styles */
.hospitals-container {
    padding: 0;
}

.hospitals-header {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
}

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

.hospitals-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;
}

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

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

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

/* Hospital Cards */
.hospital-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;
}

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

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

.hospital-name {
    font-weight: bold;
    color: #dc3545;
    margin: 0;
    font-size: 1.1rem;
}

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

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

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

.hospital-body {
    padding: 15px;
}

.hospital-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: #dc3545;
}

.hospital-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: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    float: right;
}

/* Emergency Badge */
.emergency-badge {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse-emergency 2s infinite;
}

/* Emergency Badge Animation */
@keyframes pulse-emergency {
    0% { background-color: #dc3545; }
    50% { background-color: #dc3545; }
    100% { background-color: #dc3545; }
}

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

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

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

    .map-container {
        height: 250px;
    }

    .hospital-actions {
        flex-direction: column;
    }

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

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

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