/**
 * Nyata AI - Taxi Booking Styles
 * Professional, clean UI for taxi booking and tracking
 */

/* =====================================================
   TAXI CHAT MESSAGES
   ===================================================== */
.taxi-chat-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--surface, #ffffff);
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.taxi-chat-message .taxi-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.taxi-chat-message .taxi-message-content {
    flex: 1;
}

.taxi-chat-message .taxi-message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.taxi-chat-message .taxi-message-content p:last-child {
    margin-bottom: 0;
}

.taxi-chat-message.taxi-error {
    border-left: 4px solid #EF4444;
}

/* =====================================================
   TAXI QUOTE CARD
   ===================================================== */
.taxi-quote-card {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin: 12px 0;
    max-width: 400px;
}

.taxi-quote-header {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: #1F2937;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.taxi-quote-icon {
    font-size: 24px;
}

/* Locations Section */
.taxi-quote-locations {
    padding: 20px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .taxi-quote-locations {
    background: #1E293B;
    border-bottom-color: #334155;
}

.taxi-location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.taxi-location .location-icon {
    font-size: 20px;
    margin-top: 2px;
}

.taxi-location .location-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.taxi-location .location-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light, #6B7280);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.taxi-location .location-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text, #1F2937);
}

.taxi-route-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, #F59E0B, #10B981);
    margin: 8px 0 8px 9px;
    border-radius: 2px;
}

/* Stats Section */
.taxi-quote-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .taxi-quote-stats {
    border-bottom-color: #334155;
}

.taxi-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taxi-stat .stat-icon {
    font-size: 18px;
}

.taxi-stat .stat-value {
    font-weight: 600;
    font-size: 15px;
}

/* Traffic Section */
.taxi-traffic-section {
    padding: 16px 20px;
    background: #FFFBEB;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .taxi-traffic-section {
    background: #292524;
    border-bottom-color: #334155;
}

.traffic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

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

.traffic-label {
    font-size: 14px;
}

.traffic-bar-container {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dark-mode .traffic-bar-container {
    background: #374151;
}

.traffic-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.traffic-message {
    font-size: 13px;
    color: var(--text-light, #6B7280);
    font-style: italic;
}

.traffic-delay {
    font-size: 12px;
    color: #F59E0B;
    margin-top: 4px;
    font-weight: 500;
}

/* Fare Section */
.taxi-fare-section {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.dark-mode .taxi-fare-section {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

.fare-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light, #6B7280);
    margin-bottom: 8px;
}

.fare-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--text, #1F2937);
    margin-bottom: 8px;
}

.dark-mode .fare-amount {
    color: #F1F5F9;
}

.fare-tariff {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface, #ffffff);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light, #6B7280);
    margin-bottom: 12px;
}

.fare-tariff.night {
    background: #1E1B4B;
    color: #FCD34D;
}

.fare-disclaimer {
    font-size: 11px;
    color: var(--text-light, #6B7280);
    line-height: 1.5;
    padding: 0 10px;
}

/* Booking Fee Section */
.taxi-booking-fee-section {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .taxi-booking-fee-section {
    border-bottom-color: #334155;
}

.booking-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.booking-fee-amount {
    font-weight: 700;
    color: var(--primary, #4F46E5);
    font-size: 18px;
}

.booking-fee-note {
    font-size: 11px;
    color: var(--text-light, #6B7280);
    margin-top: 6px;
}

/* Payment Method Section */
.taxi-payment-method-section {
    padding: 20px;
}

.payment-method-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.payment-method-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--background, #F9FAFB);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 85px;
}

.dark-mode .payment-method-btn {
    background: #1E293B;
    border-color: #334155;
}

.payment-method-btn:hover {
    border-color: var(--primary, #4F46E5);
    background: #EEF2FF;
    transform: translateY(-2px);
}

.dark-mode .payment-method-btn:hover {
    background: #312E81;
}

.payment-method-btn.selected {
    border-color: var(--primary, #4F46E5);
    background: #EEF2FF;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.dark-mode .payment-method-btn.selected {
    background: #312E81;
}

.payment-method-btn .payment-icon {
    font-size: 24px;
}

.payment-method-btn span:last-child {
    font-size: 13px;
    font-weight: 600;
}

/* Confirm Section */
.taxi-confirm-section {
    padding: 20px;
    padding-top: 0;
}

.taxi-confirm-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.taxi-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.taxi-confirm-btn:active {
    transform: translateY(0);
}

.taxi-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.taxi-confirm-btn .btn-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.taxi-confirm-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.taxi-confirm-btn .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   SEARCHING FOR DRIVER
   ===================================================== */
.taxi-searching {
    padding: 30px 20px;
    text-align: center;
}

.searching-animation {
    margin-bottom: 20px;
}

.taxi-cars {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.searching-car {
    font-size: 36px;
    animation: carBounce 1.4s ease-in-out infinite;
}

.searching-car:nth-child(2) {
    animation-delay: 0.2s;
}

.searching-car:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes carBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
}

.searching-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.searching-text p {
    margin: 0 0 4px 0;
    color: var(--text-light, #6B7280);
}

.searching-note {
    font-size: 13px;
    font-style: italic;
}

.searching-cancel-note {
    margin-top: 20px;
    padding: 12px;
    background: #FEF3C7;
    border-radius: 8px;
    font-size: 13px;
}

.dark-mode .searching-cancel-note {
    background: #422006;
}

.searching-cancel-note p {
    margin: 0 0 4px 0;
    color: #92400E;
}

.dark-mode .searching-cancel-note p {
    color: #FCD34D;
}

.taxi-cancel-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #EF4444;
    color: #EF4444;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taxi-cancel-btn:hover {
    background: #EF4444;
    color: white;
}

/* =====================================================
   DRIVER FOUND
   ===================================================== */
.taxi-driver-found {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
}

.driver-found-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.driver-found-header .check-icon {
    font-size: 24px;
}

.driver-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .driver-profile {
    border-bottom-color: #334155;
}

.driver-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.driver-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-avatar .avatar-placeholder {
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.driver-rating {
    color: var(--text-light, #6B7280);
    font-size: 14px;
}

.driver-vehicle {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .driver-vehicle {
    border-bottom-color: #334155;
}

.vehicle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.vehicle-row:last-child {
    margin-bottom: 0;
}

.vehicle-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.vehicle-reg {
    font-weight: 700;
    background: #FEF3C7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 15px;
}

.dark-mode .vehicle-reg {
    background: #422006;
    color: #FCD34D;
}

.driver-eta {
    padding: 16px 20px;
    background: #F0FDF4;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .driver-eta {
    background: #052E16;
    border-bottom-color: #334155;
}

.eta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.eta-row:last-child {
    margin-bottom: 0;
}

.eta-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.booking-fee-warning {
    padding: 12px 20px;
    background: #FEF3C7;
    font-size: 13px;
    color: #92400E;
    text-align: center;
}

.dark-mode .booking-fee-warning {
    background: #422006;
    color: #FCD34D;
}

.driver-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
}

.driver-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.driver-action-btn.call {
    background: #10B981;
    color: white;
}

.driver-action-btn.call:hover {
    background: #059669;
}

.driver-action-btn.message {
    background: #3B82F6;
    color: white;
}

.driver-action-btn.message:hover {
    background: #2563EB;
}

.driver-action-btn.cancel {
    background: transparent;
    border: 2px solid #EF4444;
    color: #EF4444;
}

.driver-action-btn.cancel:hover {
    background: #EF4444;
    color: white;
}

.cancel-note {
    padding: 0 20px 16px;
    font-size: 11px;
    color: var(--text-light, #6B7280);
    text-align: center;
}

/* =====================================================
   LIVE TRACKING MAP
   ===================================================== */
.taxi-tracking-map {
    height: 250px;
    background: #E5E7EB;
    position: relative;
}

.dark-mode .taxi-tracking-map {
    background: #1E293B;
}

.taxi-tracking-card {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    margin: 12px 0;
}

.tracking-header {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.tracking-map-container {
    height: 280px;
    position: relative;
}

.tracking-info {
    padding: 16px 20px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #E5E7EB;
}

.dark-mode .tracking-info {
    border-top-color: #334155;
}

.tracking-stat {
    text-align: center;
}

.tracking-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #4F46E5);
}

.tracking-stat-label {
    font-size: 12px;
    color: var(--text-light, #6B7280);
    margin-top: 2px;
}

.tracking-vehicle {
    padding: 12px 20px;
    background: #F9FAFB;
    font-size: 14px;
    text-align: center;
}

.dark-mode .tracking-vehicle {
    background: #1E293B;
}

/* =====================================================
   RIDE IN PROGRESS
   ===================================================== */
.taxi-ride-progress {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
}

.ride-progress-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.ride-progress-map {
    height: 250px;
    background: #E5E7EB;
}

.ride-progress-info {
    padding: 16px 20px;
}

.ride-destination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ride-destination-icon {
    font-size: 20px;
}

.ride-destination-text {
    font-weight: 600;
}

.ride-stats {
    display: flex;
    justify-content: space-between;
}

.ride-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.ride-meter {
    padding: 12px 20px;
    background: #F0FDF4;
    text-align: center;
    font-size: 14px;
}

.dark-mode .ride-meter {
    background: #052E16;
}

.ride-meter strong {
    color: #10B981;
}

/* =====================================================
   RIDE COMPLETED
   ===================================================== */
.taxi-ride-complete {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    text-align: center;
}

.ride-complete-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 20px;
}

.ride-complete-header h3 {
    margin: 0;
    font-size: 20px;
}

.ride-complete-header p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.ride-fare-display {
    padding: 24px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.dark-mode .ride-fare-display {
    border-bottom-color: #334155;
}

.fare-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light, #6B7280);
    margin-bottom: 8px;
}

.fare-final {
    font-size: 40px;
    font-weight: 800;
    color: var(--text, #1F2937);
}

.dark-mode .fare-final {
    color: #F1F5F9;
}

.fare-payment-note {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light, #6B7280);
}

.ride-rating-section {
    padding: 20px;
}

.rating-question {
    margin-bottom: 12px;
    font-size: 15px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.star-rating span {
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #D1D5DB;
}

.star-rating span:hover {
    transform: scale(1.2);
}

.star-rating span.active {
    color: #F59E0B;
}

.tip-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tip-btn {
    padding: 8px 16px;
    background: var(--background, #F9FAFB);
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .tip-btn {
    background: #1E293B;
    border-color: #334155;
}

.tip-btn:hover, .tip-btn.selected {
    border-color: var(--primary, #4F46E5);
    background: #EEF2FF;
}

.dark-mode .tip-btn:hover, .dark-mode .tip-btn.selected {
    background: #312E81;
}

.submit-rating-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary, #4F46E5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-rating-btn:hover {
    background: var(--primary-dark, #4338CA);
}

/* =====================================================
   NO DRIVER FOUND
   ===================================================== */
.taxi-no-driver {
    padding: 40px 20px;
    text-align: center;
    background: var(--surface, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
}

.no-driver-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.taxi-no-driver h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
}

.taxi-no-driver p {
    margin: 0 0 8px 0;
    color: var(--text-light, #6B7280);
}

.taxi-retry-btn {
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--primary, #4F46E5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taxi-retry-btn:hover {
    background: var(--primary-dark, #4338CA);
    transform: translateY(-2px);
}

/* =====================================================
   DRIVER ARRIVED NOTIFICATION
   ===================================================== */
.taxi-driver-arrived {
    background: var(--surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    text-align: center;
}

.driver-arrived-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 20px;
}

.driver-arrived-header h3 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.driver-arrived-body {
    padding: 20px;
}

.arrived-location {
    font-size: 15px;
    margin-bottom: 16px;
}

.arrived-vehicle {
    background: #FEF3C7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.dark-mode .arrived-vehicle {
    background: #422006;
}

.arrived-vehicle p {
    margin: 4px 0;
    font-size: 14px;
}

.arrived-vehicle .vehicle-reg-large {
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
}

.call-driver-btn {
    width: 100%;
    padding: 14px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.call-driver-btn:hover {
    background: #059669;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 480px) {
    .taxi-quote-card,
    .taxi-driver-found,
    .taxi-tracking-card,
    .taxi-ride-progress,
    .taxi-ride-complete,
    .taxi-no-driver,
    .taxi-driver-arrived {
        margin: 8px -4px;
        border-radius: 12px;
    }
    
    .payment-method-buttons {
        gap: 6px;
    }
    
    .payment-method-btn {
        padding: 10px 14px;
        min-width: 75px;
    }
    
    .payment-method-btn .payment-icon {
        font-size: 20px;
    }
    
    .driver-actions {
        flex-wrap: wrap;
    }
    
    .driver-action-btn {
        flex: 1 1 45%;
    }
    
    .fare-amount {
        font-size: 26px;
    }
    
    .fare-final {
        font-size: 32px;
    }
}

/* =====================================================
   LEAFLET MAP CUSTOMIZATIONS
   ===================================================== */
.leaflet-container {
    font-family: 'Inter', system-ui, sans-serif;
}

.taxi-marker-icon {
    background: none;
    border: none;
}

.taxi-car-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pickup-marker,
.destination-marker {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
}

/* Custom route line */
.taxi-route-path {
    stroke: #4F46E5;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* =====================================================
   LOCATION PICKER STYLES
   ===================================================== */
.taxi-location-picker {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.taxi-gps-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.taxi-gps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.taxi-gps-btn:active {
    transform: translateY(0);
}

.taxi-gps-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.taxi-gps-btn .gps-icon {
    font-size: 18px;
}

.taxi-address-input-wrapper {
    position: relative;
}

.taxi-address-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.taxi-address-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.taxi-address-input::placeholder {
    color: #64748b;
}

.taxi-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.taxi-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

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

.taxi-suggestion:hover,
.taxi-suggestion.selected {
    background: rgba(99, 102, 241, 0.2);
}

.taxi-suggestion .suggestion-icon {
    font-size: 18px;
    opacity: 0.7;
}

.taxi-suggestion .suggestion-text {
    flex: 1;
    min-width: 0;
}

.taxi-suggestion .suggestion-main {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taxi-suggestion .suggestion-sub {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.taxi-suggestion-empty {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.taxi-coords-small {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .taxi-location-picker {
        padding: 12px;
        margin: 8px 0;
    }
    
    .taxi-gps-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .taxi-address-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .taxi-suggestion {
        padding: 10px 12px;
    }
}

/* =====================================================
   LOCATION PERMISSION MODAL
   ===================================================== */
.taxi-permission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.taxi-permission-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.taxi-permission-modal {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.taxi-permission-overlay.visible .taxi-permission-modal {
    transform: scale(1) translateY(0);
}

.taxi-permission-modal .permission-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.taxi-permission-modal h3 {
    color: #e2e8f0;
    font-size: 22px;
    margin-bottom: 15px;
}

.taxi-permission-modal p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.taxi-permission-modal .permission-reasons {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.taxi-permission-modal .permission-reasons li {
    color: #cbd5e1;
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.taxi-permission-modal .permission-note {
    font-size: 12px;
    color: #64748b;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

.taxi-permission-modal .permission-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.taxi-permission-modal .permission-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.taxi-permission-modal .permission-btn.allow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.taxi-permission-modal .permission-btn.allow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.taxi-permission-modal .permission-btn.deny {
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.taxi-permission-modal .permission-btn.deny:hover {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
}

.taxi-permission-modal .permission-alternative {
    font-size: 12px;
    color: #64748b;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .taxi-permission-modal {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .taxi-permission-modal h3 {
        font-size: 18px;
    }
    
    .taxi-permission-modal .permission-buttons {
        flex-direction: column;
    }
    
    .taxi-permission-modal .permission-btn {
        padding: 12px 16px;
    }
}

/* Test Mode Note */
.test-mode-note {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}