/* Custom styles for Airport Transfer Booking */

/* Fix for fixed navbar overlap */
body {
    padding-top: 80px; /* Adjust based on navbar height */
}

main {
    min-height: calc(100vh - 160px); /* Account for navbar and footer */
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

/* Vehicle Cards */
.vehicle-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vehicle-card.selected {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

/* Vehicle Display Cards for Home Page */
.vehicle-card-display {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.vehicle-card-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vehicle-image-home {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card-display:hover .vehicle-img {
    transform: scale(1.05);
}

.vehicle-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.vehicle-content {
    padding: 1.5rem;
}

.vehicle-name {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vehicle-description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.vehicle-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.vehicle-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.vehicle-features .feature i {
    color: #0d6efd;
    width: 16px;
}

.price-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
}

/* Language and Currency Switchers */
.language-switcher .dropdown-toggle,
.currency-switcher .dropdown-toggle {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
}

.language-switcher .dropdown-toggle:hover,
.currency-switcher .dropdown-toggle:hover {
    color: #0d6efd;
}

/* Form Enhancements */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-title {
    color: #3498db;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-text {
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.social-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact-info .contact-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-item a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    padding-left: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    padding-top: 1rem;
}

.copyright {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    gap: 1.5rem;
}

.footer-bottom-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #3498db;
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer-links {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-card {
        margin-bottom: 15px;
    }
    
    .price-display {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert enhancements */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #d1ecf1;
    color: #055160;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
}

/* Table enhancements */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    border-bottom: none;
    font-weight: 600;
}

/* Badge enhancements */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Completed trips styling */
.completed-trips {
    background: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    border-left: 3px solid #198754;
}

.completed-trips i {
    margin-left: 5px;
}

[dir="rtl"] .completed-trips {
    border-left: none;
    border-right: 3px solid #198754;
}

[dir="rtl"] .completed-trips i {
    margin-left: 0;
    margin-right: 5px;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}