#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
}
.school-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
}
.school-card {
    border: #dc3545 1px solid;
    border-radius: 8px;
    cursor: pointer;
    
    transition: background-color 0.2s;
}
.school-card:hover {
    background-color: #f8f9fa;
} 

.school-link {
    font-size: 16px;
    color: #dc3545; /* Red color for the link */
    text-decoration: none;
    color: #007bff; /* Blue for the link */
    font-weight: bold;
}

.school-link:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker blue on hover */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin-top: 20px;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(168, 5, 5, 0.1);
}

#map-container {
    position: relative;
    margin-bottom: 20px;
}

.school-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.list-group-item {
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f1f8ff;
    transform: translateX(2px);
}

.refresh-btn {
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
}

.search-bar-container {
    position: relative;
}

.search-bar-container i {
    position: absolute;
    top: 12px;
    left: 12px;
    color:rgb(51, 72, 90);
}

#searchInput {
    padding-left: 40px;
    border-radius: 20px;
}

/* School link styles */
.school-link {
    color: #dc3545; /* Red color for the link */
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

.school-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Custom popup styles */
.leaflet-popup-content {
    margin: 20px;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

/* View toggle button */
.view-toggle {
    display: none;
    /* Hidden by default, shown on mobile */
    margin-bottom: 15px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .view-toggle {
        display: block;
    }

    #map-container,
    #schoolsList {
        display: none;
    }

    #map-container.active,
    #schoolsList.active {
        display: block;
    }

    .row.flex-row-reverse {
        flex-direction: column;
    }
}


.refresh-btn {
    margin-bottom: 15px;
}
.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
}
.search-bar-container input {
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
}  
    .school-name {
        font-weight: bold;
        color: #007bff; /* Blue for the name */
    }
    .school-email {
        color: #28a745; /* Green for the email */
    }
    .school-phone {
        color: #070bff; /* Yellow for the phone */
    }
    .school-address {
        color: #6c757d; /* Gray for the address */
    }


@media (max-width: 767px) {
    .search-bar-container {
        width: 100%;
        padding: 0 15px;
    }
    .refresh-btn {
        width: 60%;
    }
}
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
