/* TraficDay - Routing Styles */

/* Google Places Autocomplete Dropdown - Ensure it appears above everything */
.pac-container {
    z-index: 10000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-top: 4px;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-query {
    font-weight: 600;
    color: #001A00;
}

.pac-matched {
    font-weight: 700;
    color: #16a34a;
}

/* Routing Toggle Button - Floating button to open routing panel */
.routing-toggle-btn {
    position: absolute;
    bottom: 180px;  /* 80px above + button (100px + 80px = 180px) */
    right: 16px;    /* Match + button alignment */
    width: 56px;
    height: 56px;
    background: #001A00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.routing-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.routing-toggle-btn:active {
    transform: scale(0.95);
}

/* Re-route Banner - Shows when hazard detected */
.reroute-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    z-index: 2000;
    max-width: 90%;
    width: 420px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.reroute-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.reroute-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.reroute-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.reroute-text strong {
    font-size: 16px;
    font-weight: 600;
}

.reroute-text span {
    font-size: 14px;
    opacity: 0.9;
}

.reroute-actions {
    display: flex;
    gap: 8px;
}

.reroute-btn-primary {
    flex: 1;
    padding: 10px 20px;
    background: white;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.reroute-btn-primary:hover {
    background: #f3f4f6;
}

.reroute-btn-secondary {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.reroute-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Routing Panel - Slide-up panel from bottom */
.routing-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    display: none;
}

.routing-panel.active {
    display: block !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.routing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.routing-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #001A00;
    flex: 1;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.routing-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.minimize-routing-btn,
.close-routing-btn {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize-routing-btn {
    font-size: 20px;
    font-weight: bold;
}

.minimize-routing-btn:hover,
.close-routing-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

/* Minimized state */
.routing-panel.minimized {
    max-height: 60px;
    overflow: hidden;
}

.routing-panel.minimized .routing-header h3::after {
    
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Routing Inputs */
.routing-inputs {
    padding: 20px;
}

.routing-input-group {
    margin-bottom: 20px;
    position: relative;
}

.routing-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #001A00;
    font-size: 14px;
}

#destination-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s;
}

#destination-input:focus {
    outline: none;
    border-color: #001A00;
}

.destination-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f9fafb;
}

.suggestion-name {
    font-weight: 600;
    color: #001A00;
    display: block;
    margin-bottom: 4px;
}

.suggestion-address {
    font-size: 13px;
    color: #6b7280;
}

/* Quick Destinations */
.quick-destinations {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-dest-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-dest-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.quick-dest-btn.saved {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.calculate-route-btn {
    width: 100%;
    padding: 14px;
    background: #001A00;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.calculate-route-btn:hover {
    background: #003300;
}

.calculate-route-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Route Options */
.route-options {
    padding: 20px;
}

.route-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.route-options-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #001A00;
}

.back-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #e5e7eb;
}

/* Routes List */
.routes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
    position: relative;
}

.route-card:hover {
    border-color: #16a34a;
    box-shadow: 0 6px 20px rgba(0, 26, 0, 0.15);
    transform: translateY(-2px);
}

.route-card.recommended {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #16a34a;
    border-width: 3px;
}

.recommended-badge {
    background: linear-gradient(135deg, #001A00 0%, #15803d 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.route-mode-icon {
    font-size: 32px;
}

.route-mode-label {
    font-size: 20px;
    font-weight: 700;
    color: #001A00;
}

.route-details {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.route-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 18px;
}

.detail-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.select-route-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #001A00 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.select-route-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 26, 0, 0.3);
}

/* ===== RESTORED ORIGINAL ROUTE CARD DESIGN ===== */

.route-number {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.horus-recommended-badge {
    background: linear-gradient(135deg, #001A00 0%, #15803d 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.safe-route-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.route-mode-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.route-mode-icon-large {
    font-size: 28px;
}

.route-mode-label-large {
    font-size: 18px;
    font-weight: 600;
    color: #001A00;
}

.route-time-large {
    font-size: 32px;
    font-weight: 700;
    color: #001A00;
    margin-bottom: 6px;
}

.route-distance-info {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 12px;
}

.route-travel-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.route-travel-time .detail-icon {
    font-size: 16px;
}

.route-travel-time .detail-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Safety Score Section */
.safety-score-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 8px;
}

.safety-label {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

.safety-progress-bar {
    flex: 1;
    height: 8px;
    background: #dcfce7;
    border-radius: 4px;
    overflow: hidden;
}

.safety-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.safety-value {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    white-space: nowrap;
}

/* Start Navigation Button */
.start-navigation-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.start-navigation-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4)
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.route-number {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.route-recommendation {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.route-recommendation.safe {
    background: #dcfce7;
    color: #166534;
}

.route-recommendation.warning {
    background: #fef3c7;
    color: #92400e;
}

.route-recommendation.danger {
    background: #fee2e2;
    color: #991b1b;
}

.route-main-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.route-time {
    font-size: 28px;
    font-weight: 700;
    color: #001A00;
}

.route-distance {
    font-size: 16px;
    color: #6b7280;
}

.route-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.route-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hazards on Route */
.route-hazards {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.route-hazards-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.hazard-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

.hazard-chip.flood {
    background: #dbeafe;
    color: #1e3a8a;
}

.hazard-chip.protest {
    background: #fef3c7;
    color: #92400e;
}

.hazard-chip.accident {
    background: #fee2e2;
    color: #991b1b;
}

.safety-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.safety-score-label {
    font-size: 13px;
    color: #6b7280;
}

.safety-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.safety-bar-fill {
    height: 100%;
    transition: width 0.3s;
}

.safety-bar-fill.high {
    background: #16a34a;
}

.safety-bar-fill.medium {
    background: #eab308;
}

.safety-bar-fill.low {
    background: #dc2626;
}

.start-navigation-btn {
    width: 100%;
    padding: 12px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.start-navigation-btn:hover {
    background: #15803d;
}

/* Active Trip Info */
.active-trip-info {
    padding: 20px;
    background: #f0fdf4;
    border-top: 2px solid #86efac;
}

.trip-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trip-info-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #166534;
}

.stop-trip-btn {
    padding: 8px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.stop-trip-btn:hover {
    background: #b91c1c;
}

.trip-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    color: #166534;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    color: #166534;
    font-weight: 700;
}

/* Agent Recommendation Section */
/* Mode Selection Section Title */
.mode-selection-title {
    font-weight: 700;
    font-size: 16px;
    color: #166534;
    margin: 24px 0 16px 0;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.agent-recommendation-section {
    background: linear-gradient(135deg, #001A00 0%, #15803d 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 26, 0, 0.3);
    border: 2px solid #16a34a;
    text-align: center;
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.agent-icon.horus-icon {
    width: 32px;
    height: 32px;
    color: white;
    filter: none;
}

.agent-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-description {
    color: #dcfce7;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.horus-description {
    color: #6b7280;
    font-size: 11px;
    margin: 8px 0 12px 0;
    line-height: 1.3;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-recommend-btn {
    background: white;
    color: #001A00;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.agent-recommend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: #f0fdf4;
}

.agent-recommend-btn:active {
    transform: translateY(0);
}

.agent-recommend-btn .btn-icon {
    font-size: 20px;
}

.agent-recommend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Section Divider */
.section-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #d1d5db;
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.section-divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Transportation Mode Selector */
.transportation-mode-selector {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #d1fae5;
}

.mode-selector-title {
    font-weight: 700;
    font-size: 10px;
    color: #166534;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 2px solid #bbf7d0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 26, 0, 0.05), rgba(0, 26, 0, 0));
    opacity: 0;
    transition: opacity 0.25s;
}

.mode-btn:hover::before {
    opacity: 1;
}

.mode-btn:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.mode-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mode-btn.active {
    border-color: #001A00;
    background: linear-gradient(135deg, #001A00 0%, #15803d 100%);
    color: white;
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 26, 0, 0.4);
}

.mode-btn.active::before {
    opacity: 0;
}

.mode-icon {
    font-size: 22px;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.25s;
}

.mode-btn:hover .mode-icon {
    transform: scale(1.1);
}

.mode-btn.active .mode-icon {
    transform: scale(1.05);
}

.mode-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* Speed Limit Display */
.speed-limit-display {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: 4px solid #dc2626;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: none;  /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.speed-limit-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speed-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.speed-unit {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.speed-limit-label {
    position: absolute;
    bottom: -24px;
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 768px) {
    .routing-panel {
        max-width: 480px;
        left: auto;
        right: 20px;
        bottom: 20px;
        border-radius: 20px;
    }

    .reroute-banner {
        max-width: 480px;
        left: auto;
        right: 20px;
        transform: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Speed limit display on desktop */
    .speed-limit-display {
        top: 100px;
        right: 30px;
        width: 90px;
        height: 90px;
    }

    .speed-value {
        font-size: 32px;
    }

    .speed-unit {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    /* Stack mode buttons on mobile if needed */
    .mode-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mode-btn {
        padding: 12px 8px;
        min-height: 75px;
    }

    .mode-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .mode-label {
        font-size: 12px;
    }

    .transportation-mode-selector {
        padding: 18px;
    }

    .mode-selector-title {
        font-size: 14px;
        margin-bottom: 14px;
    }
}

/* ========================================
   FLOATING MINIMIZED NAVIGATION WIDGET
   Google Maps style - appears in corner when user navigates away
   ======================================== */

.floating-nav-widget {
    position: fixed;
    bottom: 90px;  /* Above bottom nav (80px) + 10px gap */
    left: 16px;    /* Left side for better visibility */
    right: 16px;   /* Full width on mobile */
    max-width: 350px;  /* Max width on desktop */
    background: linear-gradient(135deg, #001A00, #004d00);
    color: white;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 2000;  /* Above everything else */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInBottom 0.4s ease-out;
    backdrop-filter: blur(10px);  /* Glassmorphism effect */
}

.floating-nav-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.floating-nav-widget:active {
    transform: translateY(0);
}

.floating-nav-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-nav-icon {
    font-size: 32px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.floating-nav-info {
    flex: 1;
    min-width: 0;  /* Allow text truncation */
}

.floating-nav-destination {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.floating-nav-eta {
    font-size: 13px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.floating-nav-eta::before {
    content: "⏱️";
    font-size: 12px;
}

/* Animation when widget appears */
@keyframes slideInBottom {
    from {
        transform: translateY(150px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pulse animation for navigation icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .floating-nav-widget {
        left: auto;
        right: 16px;
        max-width: 400px;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 767px) {
    .floating-nav-widget {
        max-width: 450px;
        margin: 0 auto;
    }
}
