/* fuel_maps.css - Dedicated styles for Fuel Maps Route Planner page */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Header and Title Styles */
.fuel-maps-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.fuel-maps-title {
    color: #374151;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* Main Container */
.fuel-maps-container {
    padding: 0;
    background-color: transparent;
}

/* Control Panel Styles */
.fuel-maps-controls {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.fuel-maps-controls .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
}

.fuel-maps-controls .col-md-3,
.fuel-maps-controls .col-md-4,
.fuel-maps-controls .col-md-5 {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Fuel Type Selection */
.fuel-type-section {
    margin-bottom: 0;
}

.fuel-type-title {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.fuel-type-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fuel-type-checklist .form-check {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fuel-type-checklist .form-check:hover {
    background-color: rgb(224, 242, 254);
    border-color: rgb(61, 198, 195);
    box-shadow: 0 4px 8px rgba(61, 198, 195, 0.15);
    transform: translateY(-1px);
}

.fuel-type-checklist input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #3DC6C3;
}

.fuel-type-checklist label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

/* Route Planning Section */
.route-planning-section {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.route-planning-title {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.route-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


/* Address Input Styling */
.input-with-suggestions {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.address-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #374151;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.address-input:focus {
    outline: none;
    border-color: #3DC6C3;
    box-shadow: 0 0 0 3px rgba(61, 198, 195, 0.1);
}

.address-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Suggestions Container */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000 !important;
    max-height: 200px;
    overflow-y: auto;
    min-height: 20px;
}

/* Ensure suggestions are visible when shown */
.suggestions-container[style*="display: block"] {
    display: block !important;
}

.suggestions-container[style*="display: none"] {
    display: none !important;
}

.suggestion-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background-color: #fff;
    color: #374151;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

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

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.suggestion-item:focus {
    outline: none;
    background-color: #3DC6C3;
    color: #fff;
}


#start-suggestions,
#end-suggestions {
    /* Subtle debug indicator instead of bright colors */
    border: 1px solid #e5e7eb;
    min-height: auto;
    /* Remove yellow background */
}

.plan-route-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.plan-route-button:hover {
    background-color: #22d3c4;
    box-shadow: 0 4px 12px rgba(61, 198, 195, 0.3);
    transform: translateY(-2px);
}

.plan-route-button:active {
    transform: translateY(0);
}

/* Route Info Section */
.route-info-section {
    margin-bottom: 0;
    margin-top: 25px;
}

.route-info-title {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
    display: block;
}

.route-info-display {
    background-color: #e0f2fe;
    border: 1px solid #3DC6C3;
    border-radius: 8px;
    padding: 15px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.route-info-success {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.route-info-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Map Section */
.fuel-maps-map-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.fuel-maps-map-title {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.fuel-maps-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px #0000001a;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .fuel-maps-controls .row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .fuel-maps-controls .col-md-3,
    .fuel-maps-controls .col-md-4,
    .fuel-maps-controls .col-md-5 {
        min-width: 280px;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .fuel-maps-controls .row {
        flex-direction: column;
        gap: 15px;
    }

    .fuel-maps-controls .col-md-3,
    .fuel-maps-controls .col-md-4,
    .fuel-maps-controls .col-md-5 {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .fuel-maps-container {
        padding: 15px;
    }

    .fuel-maps-controls,
    .fuel-maps-map-section {
        padding: 15px;
    }

    .fuel-maps-title {
        font-size: 24px;
    }

    .fuel-legend {
        justify-content: center;
        gap: 10px;
    }

    .fuel-legend-item {
        font-size: 12px;
    }

    .sample-location-buttons {
        justify-content: center;
    }

    .route-inputs {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .fuel-maps-header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .fuel-maps-title {
        font-size: 20px;
    }

    .fuel-type-checklist .form-check {
        padding: 8px 12px;
    }

    .plan-route-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}