body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
}

main {
    margin-top: 125px;
    flex-grow: 1;
    margin-bottom: 95px;
}


.map-header {
    text-align: center; 
    width: 90%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#map {
    width: 100%;
    max-width: 650px;
    max-height: 650px;
    height: 400px;
    border-radius: 5px;
    transition: margin-left 0.3s ease-in-out;
    z-index: 999;
}
#info-panel {
    padding: 15px;
    margin: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    position: top;
    top: 50%;
    left: 5%;
    z-index: 999;
}
#info-panel.show {
    transform: translateX(0);

}

#place-image {
    max-width: 100%;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

#close-info-panel {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    float: right;
}
.hidden {
    display: none !important;
}

.description {
    font-size: 14px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 3px;
    margin: 10px 0;
    list-style: none;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
}

.details-list li i {
    font-size: 12px;
    color: #000000;
}

.links {
    display: flex;
    justify-content: left;
    gap: 10px; 
    margin-top: 10px;
}

.links a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 14px;
    transition: 0.3s ease-in-out;
    margin-top: 5px;
}

.google-maps {
    border: 1px solid#000;}

.apple-maps {
    border: 1px solid#000;
}
.google-maps:hover {
    background-color: #4285F4;
    color: white;
    border: none;
}

.apple-maps:hover {
    background-color: #000000;
    color: white;
}

footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
}

@media (min-width: 800px) {
    .map-container {
        flex-direction: row;
        align-items: flex-start;
    }
    #map {
        height: 80vh;
        width: 70%;
    }
    #info-panel {
        width: 100%;
        left: auto;
        top: auto;
        margin-left: 20px; 
    }

    .map-header {
        text-align: center;
        width: 100%;
    }

}