﻿
/* Google Fonts */
body {
    font-family: "Quicksand", sans-serif;
    background-color: #f4f4f4;
    color: #253d4e;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}


.container {
    display: flex;
    height: 100vh;
}


.sidebar {
    width: 22%;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

    .search-box i {
        position: absolute;
        left: 12px;
        font-size: 18px;
        color: #253d4e;
    }

    .search-box input {
        width: 100%;
        padding: 12px 16px 12px 40px; 
        font-size: 18px;
        font-weight: 500;
        border: 2px solid #253d4e;
        border-radius: 8px;
        transition: all 0.3s ease-in-out;
        outline: none;
        background-color: #fff;
        color: #253d4e;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

        .search-box input:hover {
            border-color: #007BFF;
            box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
        }

        .search-box input:focus {
            border-color: #007BFF;
            box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
        }

        .search-box input::placeholder {
            color: #666;
            font-weight: 400;
        }



.eczane-list {
    margin-top: 15px;
}

.eczane-item {
    margin-left: 10px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

    .eczane-item:hover {
        background: #f1f1f1;
        transform: scale(1.02);
    }


.map-container {
    flex: 1;
    height: 100%;
    border-left: 1px solid #ddd;
}

#map {
    width: 100%;
    height: 100%;
}


.modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 28%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    overflow-y: auto;
    border-radius: 8px 0 0 8px;
    z-index: 101;
}

    
    .modal.active {
        right: 0;
        opacity: 1;
    }

.modal-content {
    display: flex;
    flex-direction: column;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 22px;
    font-weight: 600;
}


.close-btn {
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease-in-out;
}

    .close-btn:hover {
        transform: scale(1.1);
    }


.modal-body {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 400;
}

    
    .modal-body ul {
        padding-left: 20px;
    }

        .modal-body ul li {
            margin-bottom: 5px;
        }


#yolTarifiBtn, #aramaBtn {
    margin-left: 0px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 15px !important;
    padding: 10px 20px !important; 
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important; 
    border: 1px solid #253d4e !important; 
    background-color: white !important; 
    color: #253d4e !important; 
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    text-decoration: none !important; 
    min-width: 160px !important; 
}

    
    #yolTarifiBtn:hover, #aramaBtn:hover {
        background-color: #253d4e !important;
        color: white !important;
    }


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 100;
}

    
    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    .search-box {
        position: relative;
        width: 95%;
        display: flex;
        align-items: center;
    }
    .search-box i {
        left: 20px;
    }
    .sidebar {
        width: 100%;
        height: 50vh;
        max-height: none;
        padding: 15px;
        overflow-y: auto;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    .map-container {
        width: 100%;
        height: 50vh;
        margin-top: 0;
        border-left: none;
        border-radius: 10px;
        overflow: hidden;
    }

    #map {
        position: fixed !important;
        width: 100%;
        height: 100%;
    }
    .modal {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 20px;
        transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        overflow-y: auto;
        border-radius: 10px 0 0 10px;
        z-index: 101;
    }
        .modal.active {
            right: 0;
            opacity: 1;
            width: 75% !important;
        }
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        z-index: 100;
    }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    .modal-header {
        font-size: 16px !important;
    }

    .search-box input {
        width: 90%;
        margin-left: 10px;
    }
}