/* Distance Calculator Styles - Light Theme */
.distance-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background-color: #ffffff;
}

.calculator-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.calculator-header h2 {
    color: #2c7fb8;
    margin-bottom: 10px;
    font-weight: 600;
}

.calculator-description {
    color: #707070;
    font-size: 16px;
    margin-bottom: 0;
}

.calculator-controls {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.address-search {
    display: flex;
    margin-bottom: 20px;
}

.address-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.address-search input:focus {
    border-color: #5ba4e5;
    outline: none;
}

.address-search button {
    padding: 12px 20px;
    background-color: #5ba4e5;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.address-search button:hover {
    background-color: #4a93d4;
}

.route-options {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.transport-mode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transport-mode label {
    font-weight: 500;
    margin-right: 10px;
    color: #444;
}

.transport-mode select {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 150px;
    font-size: 15px;
    background-color: #fff;
    cursor: pointer;
}

.route-points {
    margin-bottom: 20px;
}

.start-point, .end-point, .waypoint {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.start-point label, .end-point label, .waypoint label {
    width: 140px;
    font-weight: 500;
    color: #444;
}

.start-point input, .end-point input, .waypoint input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    min-width: 250px;
}

.start-point input:focus, .end-point input:focus, .waypoint input:focus {
    border-color: #5ba4e5;
    outline: none;
}

.pick-on-map {
    padding: 10px 15px;
    background-color: #6cbf84;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.pick-on-map:hover {
    background-color: #5eae75;
}

.pick-on-map.active {
    background-color: #f2994a;
}

.remove-waypoint {
    padding: 10px 15px;
    background-color: #f86b6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.remove-waypoint:hover {
    background-color: #e45b5b;
}

#add-waypoint {
    padding: 10px 15px;
    background-color: #a885d8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#add-waypoint:hover {
    background-color: #9575c7;
}

.control-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.control-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.control-buttons button:hover {
    transform: translateY(-2px);
}

#calculate-route {
    background-color: #5ba4e5;
    color: white;
    flex: 2;
}

#calculate-route:hover {
    background-color: #4a93d4;
}

#clear-last, #clear-all {
    background-color: #f86b6b;
    color: white;
    flex: 1;
}

#clear-last:hover, #clear-all:hover {
    background-color: #e45b5b;
}

#map-container {
    position: relative;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#map {
    height: 500px;
    z-index: 1;
}

.route-results {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.result-box {
    flex: 1;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.result-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-box h3 {
    margin-top: 0;
    color: #2c7fb8;
    font-size: 18px;
    font-weight: 600;
}

#distance-result, #time-result, #direct-distance-result {
    font-size: 28px;
    font-weight: 600;
    color: #6cbf84;
    margin-top: 10px;
}

/* Route directions styles */
.route-directions {
    margin-bottom: 30px;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.route-directions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c7fb8;
    font-weight: 600;
}

#route-directions-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 15px;
}

.direction-step {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.direction-step:hover {
    background-color: #f1f7fb;
}

.direction-step:last-child {
    border-bottom: none;
}

.direction-icon {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.direction-text {
    flex-grow: 1;
    font-size: 15px;
    color: #444;
}

.direction-distance {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.direction-step.important {
    background-color: #e5f3ea;
}

.no-route-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px 0;
}

.user-instructions {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-instructions h3 {
    margin-top: 0;
    color: #2c7fb8;
    font-weight: 600;
}

.user-instructions ol {
    padding-left: 20px;
}

.user-instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #444;
}

/* Custom marker styles */
.start-marker-icon, .end-marker-icon, .waypoint-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.start-marker-icon {
    background-color: #6cbf84;
}

.end-marker-icon {
    background-color: #f86b6b;
}

.waypoint-marker-icon {
    background-color: #5ba4e5;
}

.marker-label {
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Address suggestions */
.address-suggestions {
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f1f7fb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .route-options {
        flex-direction: column;
    }
    
    .transport-mode {
        margin-bottom: 15px;
    }
    
    .start-point, .end-point, .waypoint {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .start-point label, .end-point label, .waypoint label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .start-point input, .end-point input, .waypoint input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .route-results {
        flex-direction: column;
    }
    
    #map {
        height: 350px;
    }
    
    .control-buttons {
        flex-direction: column;
    }
}