.main-content {
    flex: 1;
    overflow-y: auto; /* Enable scrolling only for content */
    display: flex;
}




        .leaflet-left {
  left: auto;
  right: 0;
}
        /* Image container styling */
        .image-container {
            position: relative;
            overflow: hidden;
            border-radius: 8px 8px 0 0;
        }

        /* Overlay animation on hover */
        .school-card:hover .image-overlay {
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
        }

        /* Responsive text sizing */
        @media (max-width: 768px) {
            .overlay-text {
                font-size: 14px !important;
            }
        }






.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.suggestion-text {
    flex-grow: 1;
}

.suggestion-type {
    font-size: 0.8em;
    color: #666;
    margin-left: 10px;
}


.highlight {
    background-color: #FFF9C4;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}


.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-main {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.suggestion-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.suggestion-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
}

.suggestion-text {
    flex-grow: 1;
}

.suggestion-title {
    font-weight: 500;
    margin-bottom: 3px;
}

.suggestion-meta {
    display: flex;
    font-size: 12px;
    color: #666;
}

.suggestion-type {
    margin-right: 8px;
}

.suggestion-actions {
    margin-left: 10px;
}

.btn-preview {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
}

.btn-preview:hover {
    background-color: #eee;
}
.explorer-header {
  color: black;
}

.form-control {
    width: 100%; /* Make both take full width of their container */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

    /* Grid View Styles */
    .schools-grid {
        display: block;
        padding: 10px;
    }
    
    .schools-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 10px;
    }
    
    .school-card.grid-view {
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: transform 0.2s;
    }
    
    .school-card.grid-view:hover {
        transform: translateY(-5px);
    }
    
    .school-card.grid-view .school-image {
        height: 200px;
        width: 100%;
        border-radius: 8px 8px 0 0;
        overflow: hidden;
    }
    
    .school-card.grid-view .school-info {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .school-card.grid-view .school-actions {
        margin-top: auto;
        padding-top: 15px;
    }
    
    /* List View Styles */
    .schools-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .school-card.list-view {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .school-card.list-view .school-image {
        width: 150px;
        min-width: 150px;
        height: 150px;
        border-radius: 8px;
    }
    
    @media (max-width: 768px) {
        .schools-grid-container {
            grid-template-columns: 1fr;
        }
        
        .school-card.list {
            flex-direction: column;
        }
        
        .school-card.list-view .school-image {
            width: 100%;
            height: 200px;
        }
    }
    .no-results {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        text-align: center;
        color: #666;
    }
    
    .no-results svg {
        margin-bottom: 16px;
    }
    
    .no-results h3 {
        margin: 0 0 8px 0;
        color: #333;
    }
    
    .no-results p {
        margin: 0;
    }

    .loading-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        text-align: center;
    }
    
    .loading-state .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0,0,0,0.1);
        border-radius: 50%;
        border-top-color: #2a5ea7;
        animation: spin 1s linear infinite;
        margin-bottom: 16px;
    }
    
    .error-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        text-align: center;
        color: #dc3545;
    }
    
    .error-state svg {
        margin-bottom: 16px;
    }
    
    .retry-btn {
        margin-top: 16px;
        padding: 10px 20px;
        background: #2a5ea7;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }

        /* Cluster markers */
        .cluster-icon {
            background-clip: padding-box;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
        }
        
        .cluster-icon div {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .country-cluster div {
            background-color: #3388ff;
        }
        
        .city-cluster div {
            background-color: #2a5ea7;
        }
        
        .mixed-cluster div {
            background-color: #555;
        }
        
        /* School popups */
        .school-popup {
            max-width: 300px;
        }
        
        .school-popup h3 {
            margin-top: 0;
            color: #2a5ea7;
        }
        
        .popup-image {
            height: 150px;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 10px 0;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .popup-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }
        
        .school-initials {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 24px;
            color: white;
        }
        
        .popup-description {
            color: #555;
            margin: 10px 0;
        }
        
        .popup-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }
        
        .location {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
            margin: 5px 0;
        }
        
        .location svg {
            fill: #2a5ea7;
        }

        #loadMoreTrigger {
            padding: 15px;
            text-align: center;
            color: #666;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f9f9f9;
            border-radius: 8px;
            margin: 10px 0;
        }
        
        #loadMoreTrigger .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(42, 94, 167, 0.2);
            border-radius: 50%;
            border-top-color: #2a5ea7;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }