/* /amap/common/track.css */
* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f5;
}
h1 {
    margin-bottom: 20px;
}
#map-container {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #fff;
}
#distance-info {
    position: absolute;
    top: 10px;
    right: 100px;
    font-size: 16px;
    font-weight: bold;
    color: red;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.map-type-control {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: white;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    user-select: none;
    display: flex;
    gap: 2px;
}
.map-type-btn {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    font-size: 13px;
    transition: all 0.2s;
}
.map-type-btn.active {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
}
#profile-container {
    width: 100%;
    max-width: 1200px;
    height: 250px;
    margin-top: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}
#profile-chart {
    width: 100%;
    height: 100%;
}
.control-panel {
    margin: 20px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
button {
    padding: 8px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
button:hover {
    background-color: #45a049;
}
button:active {
    background-color: #3d8b40;
}
#loading {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}