/* Base styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background-color: #ffffff;
    z-index: 1000;
    padding: 20px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}
.fixed-top {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 2;
}

.fixed-top img {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 0 auto 15px;
}

.sidebar img {
    display: block;
    max-width: 30%;
    margin: 0 auto 15px;
}

.search-input {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 20px;
}
#school-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding-top: 10px;
}

.search-input input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px;

    font-size: 16px;
}

.search-input .icon {
    color: #888;
}

.school-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.school-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.school-item h3 {
    margin: 0 0 10px;
    color: #555;
}

.order-button {
    background-color: #812cb9;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.order-button:hover {
    background-color: #641698;
}

/* Right details sidebar */
.details-sidebar {
    position: fixed;
    top: 0;
    left: -700px; /* Change from right to left */
    width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.2); /* Adjust shadow direction */
    overflow-y: auto;
    transition: left 0.3s ease; /* Change transition property */
    z-index: 1000;
    padding: 20px;
}

.details-sidebar.open {
    left: 0; /* Slides in from the left */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #444;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #812cb9;
}

/* Map styling */
#map {
    margin-left: 400px;
    height: 100vh;
}

.school-title {
    font-size: 24px;
    color: #333;
    margin-top: 10px;
    margin-bottom: 15px;
}

.school-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.school-info {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.school-info .icon {
    color: #812cb9;
    margin-right: 8px;
}

.info-label {
    font-weight: bold;
    color: #333;
}

.order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    padding: 12px;
    background-color: #812cb9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #641897;
}

.order-button .icon {
    margin-right: 10px;
    font-size: 18px;
}
.mobile {
    display: none; /* Hide by default */
}
.logo{
    display:block;
}
/* Base styling remains the same */

/* Responsive styling for mobile view */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 90%;
        height: auto;
        border-right: none;
        padding: 10px;
        overflow: hidden;
        
    }

    .fixed-top {
        position: relative;
        top: 0;
        padding-bottom: 10px;
    }

    #map {
        width: 100%;
        height: 200px;
        margin: 10px 0;
    }

    #school-list {
    max-height: calc(100vh - 400px); 
    overflow-y: auto;
    margin: 0 auto;
}

    .details-sidebar {
        width: 93%;
        left: -200%;
        height: auto;
        position: fixed;
        bottom:0;
        
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .details-sidebar.open {
        left: 0;
    }
    
    /* Adjust font sizes and paddings */
    .school-item {
        padding: 10px;
        font-size: 14px;
    }

    .order-button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .close-btn {
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    /* Styling for other elements on mobile */
    .search-input {
        padding: 6px;
    }
    .mobile{
        display: block;
        
    }
   .mobile img {
    display: block;
    max-width: 15%;
    margin: 0 auto;
    text-align: center;
}
.logo{
    display:none;
   
}
}