
/* Main layout styles */
.main {
    display: flex;
    height: 100vh;
    margin: 0;
    padding: 20px;
    background-color: #FFFFFF;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 550px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Elevation profile container styles */
#elevation-profile {
    width: 100%;
    height: 250px;
    /* margin-top: 20px; */
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.route-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    min-height: 250px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    color: #4d7a2b;
    font-size: 1.2em;
}

.route-title {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* margin-top: 20px; */
}

.route-description {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.custom-map-control-button {
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    height: 40px;
    cursor: pointer;
}

.custom-map-control-button:hover {
    background: #ebebeb;
}

#street-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#close-street-view {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #79AB2B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

#close-street-view:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    #elevation-profile {
        height: 150px;
    }
    
    .stats {
        gap: 10px;
    }
}

/* Info window styles */
.info-window {
    max-width: 350px;
    padding: 15px;
}

.info-window h4 {
    text-align: center;
    margin: 0;
    color: #333333;
    font-size: 18px;
}

.info-window img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    border-radius: 4px;
}

.info-window p {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.info-window .buttons {
    text-align: center;
    margin-top: 10px;
}

.info-window .btn {
    background-color: #79AB2B;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.info-window .btn:hover {
    background-color: #D3D3D3;
}

/* Street View container styles */
#street-view {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#close-street-view {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #79AB2B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

#close-street-view:hover {
    background-color: #D3D3D3;
}

.infowindow-bottom, .infowindow-top {
    position: absolute;
    bottom: auto;
    padding: 15px;
    top: 0px;
    left: 0;
    right: 0px;
}
