/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-box {
    direction: rtl;
}

[dir="rtl"] .cars-grid {
    direction: rtl;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .dashboard-tabs {
    direction: rtl;
}

[dir="rtl"] .auth-tabs {
    direction: rtl;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

[dir="rtl"] .toast-container {
    left: auto;
    right: 20px;
}

.toast {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.3s ease-out;
    pointer-events: auto;
    min-width: 300px;
}

[dir="rtl"] .toast {
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-color: #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.toast.error {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.toast.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.toast.info {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.1) 0%, rgba(185, 146, 88, 0.05) 100%);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #059669;
}

.toast.error .toast-icon {
    color: #dc2626;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: var(--accent-gold);
}

.toast-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRTL {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

[dir="rtl"] .toast.hiding {
    animation: slideOutRTL 0.3s ease-out forwards;
}

[dir="rtl"] table {
    direction: rtl;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 0.75rem;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-gold);
    background: rgba(185, 146, 88, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 146, 88, 0.2);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle-icon {
    transition: var(--transition-smooth);
    display: inline-block;
}

[dir="rtl"] .theme-toggle {
    margin-left: 0;
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-left: 0.5rem;
    }
    
    [dir="rtl"] .theme-toggle {
        margin-right: 0.5rem;
    }
}

.language-switcher select {
    font-family: 'Inter', sans-serif;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px; /* 0.875rem - UI text */
    cursor: pointer;
    transition: var(--transition-smooth);
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 88, 0.1);
}

:root {
    /* Luxury Color Palette - Light Mode (Default) */
    --bg-primary: #ffffff; /* Primary background - white */
    --accent-gold: #b99258; /* Luxury gold accent */
    --text-secondary: #6b7280; /* Secondary text */
    --text-primary: #1f2937; /* Primary text - dark gray */
    --text-light: rgba(31, 41, 55, 0.8); /* Light text */
    --bg-card: rgba(255, 255, 255, 0.9); /* Card background */
    --border-color: rgba(185, 146, 88, 0.3); /* Subtle gold border */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
    --radius: 10px; /* Rounded corners */
}

[data-theme="dark"] {
    /* Luxury Color Palette - Dark Mode */
    --bg-primary: #0b0b0b; /* Primary background - black charcoal */
    --accent-gold: #b99258; /* Luxury gold accent */
    --text-secondary: #9aa0a6; /* Secondary text */
    --text-primary: #ffffff; /* Primary text - white */
    --text-light: rgba(255, 255, 255, 0.8); /* Light text */
    --bg-card: rgba(17, 17, 17, 0.8); /* Card background */
    --border-color: rgba(185, 146, 88, 0.2); /* Subtle gold border */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .navbar {
    background: rgba(11, 11, 11, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-overlay {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .search-box {
    background: rgba(17, 17, 17, 0.9);
}

[data-theme="dark"] .search-item input,
[data-theme="dark"] .search-item select {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .search-item input:focus,
[data-theme="dark"] .search-item select:focus {
    background: rgba(11, 11, 11, 0.8);
}

[data-theme="dark"] .search-item select:hover {
    background-color: rgba(11, 11, 11, 0.7);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
    background: rgba(11, 11, 11, 0.8);
}

[data-theme="dark"] .spec-item {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .spec-item:hover {
    background: rgba(11, 11, 11, 0.8);
}

[data-theme="dark"] .booking-form input,
[data-theme="dark"] .booking-form select,
[data-theme="dark"] .booking-select {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .booking-form input:focus,
[data-theme="dark"] .booking-form select:focus,
[data-theme="dark"] .booking-select:focus {
    background: rgba(11, 11, 11, 0.8);
}

[data-theme="dark"] .booking-form select:hover,
[data-theme="dark"] .booking-select:hover {
    background-color: rgba(11, 11, 11, 0.7);
}

[data-theme="dark"] .file-upload-name {
    background: rgba(11, 11, 11, 0.6);
    color: var(--text-light);
}

[data-theme="dark"] .file-upload-label:hover .file-upload-name {
    background: rgba(11, 11, 11, 0.7);
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
    background: rgba(11, 11, 11, 0.6);
}

[data-theme="dark"] .filter-group select:focus,
[data-theme="dark"] .filter-group input:focus {
    background: rgba(11, 11, 11, 0.8);
}

[data-theme="dark"] .payment-option:hover {
    background: rgba(17, 17, 17, 0.95);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(17, 17, 17, 0.95);
}

[data-theme="dark"] .search-item input[type="date"] {
    color-scheme: dark;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero {
    color: white;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    position: relative;
    font-weight: 400;
    font-size: 16px; /* 1rem - body text */
    letter-spacing: 0.01em;
}

/* Typography - Headings use DM Serif Display */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.car-name {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Body and UI text use Inter */
p, span, a, button, input, select, textarea, label,
.nav-menu a,
.btn-primary,
.btn-secondary {
    font-family: 'Inter', sans-serif;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.png.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 800px auto;
    opacity: 0.03; /* Very subtle for luxury feel */
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(185, 146, 88, 0.2);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
    cursor: pointer;
}

.logo-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.logo-link:hover::after {
    width: 100%;
}

.logo-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.logo-link .logo-text {
    color: inherit;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em; /* Uppercase Inter, letter-spacing 0.06em */
    font-size: 12px; /* Smaller font for mobile */
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    background: var(--bg-primary);
    background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3); /* Light overlay for contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 3rem); /* 2.4-3rem responsive */
    font-weight: 400;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
    transition: var(--transition-smooth);
    max-width: 1000px;
    margin: 0 auto;
}

.search-box:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-item label {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* 0.875rem - UI text */
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-item input,
.search-item select {
    font-family: 'Inter', sans-serif;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px; /* Improved readability */
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    min-height: 48px; /* Touch-friendly minimum size */
    width: 100%;
    box-sizing: border-box;
}

.search-item input[type="date"] {
    position: relative;
    color-scheme: light;
}

.search-item input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
    cursor: pointer;
    padding: 0.5rem;
    width: 20px;
    height: 20px;
}

.search-item input[type="date"]::-webkit-inner-spin-button,
.search-item input[type="date"]::-webkit-clear-button {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
}

/* Time input styling - gold icons */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
    cursor: pointer;
    padding: 0.25rem;
}

input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-clear-button {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
}

/* Date input styling for all date inputs (not just search-item) - gold icons */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
    cursor: pointer;
    padding: 0.25rem;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    filter: invert(0.85) sepia(1) saturate(3) hue-rotate(15deg) brightness(0.9);
}

/* Select dropdown styling */
.search-item select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23b99258' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.75rem;
    position: relative;
}

.search-item select:hover {
    border-color: rgba(185, 146, 88, 0.6);
    background-color: rgba(255, 255, 255, 0.9);
}

.search-item select:active {
    border-color: var(--accent-gold);
}

.search-item select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 15px;
    border: none;
}

.search-item select option:hover,
.search-item select option:focus,
.search-item select option:checked {
    background: rgba(185, 146, 88, 0.2);
    color: var(--accent-gold);
}

.search-item select optgroup {
    background: var(--bg-primary);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 13px;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(185, 146, 88, 0.2);
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 88, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.search-item input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    font-family: 'Inter', sans-serif;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 14px; /* Smaller default size */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    min-height: 44px; /* Touch-friendly minimum size */
}

.btn-primary {
    background: linear-gradient(135deg, #b99258 0%, #d4a574 100%); /* Gold gradient */
    color: var(--bg-primary);
    height: fit-content;
    box-shadow: 0 4px 15px rgba(185, 146, 88, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4a574 0%, #b99258 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(185, 146, 88, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Featured Cars Section */
.featured-cars {
    padding: 3rem 0;
    background: var(--bg-primary);
    position: relative;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: var(--bg-primary);
    position: relative;
}

.search-section .search-box {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem); /* 1.25-1.75rem responsive */
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1rem; /* 16px */
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.car-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 1;
}

.car-card:hover::before {
    opacity: 1;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(185, 146, 88, 0.4);
}

.car-image {
    width: 100%;
    height: 280px; /* Larger image for luxury feel */
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-badge {
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(185, 146, 88, 0.95);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 12px; /* UI text - smaller */
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    z-index: 2;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(185, 146, 88, 0.3);
    transition: var(--transition-smooth);
}

.car-card:hover .car-badge {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(185, 146, 88, 0.6);
}

[dir="rtl"] .car-badge {
    right: auto;
    left: 1rem;
}



.car-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.car-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.3;
}

.car-details {
    font-family: 'Inter', sans-serif;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 14px; /* 0.875rem - UI text */
    flex-wrap: wrap;
}

.car-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
}

.price-period {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* 0.875rem - UI text */
    color: var(--text-secondary);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(185, 146, 88, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(185, 146, 88, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #b99258 0%, #d4a574 100%);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(185, 146, 88, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: attr(data-icon);
    font-size: 2rem;
    line-height: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(185, 146, 88, 0.5);
}

.feature-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem); /* Section heading size */
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 16px; /* 1rem - body text */
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem); /* Section heading size */
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.about-text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* 1rem - body text */
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(185, 146, 88, 0.3);
}

.contact-icon {
    font-size: 2rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.2) 0%, rgba(212, 165, 116, 0.2) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon::before {
    content: attr(data-icon);
    font-size: 1.8rem;
    line-height: 1;
}

.contact-item-content {
    flex: 1;
}

.contact-item h3 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-item p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.contact-item-address {
    grid-column: 1 / -1;
}

.contact-map-small {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.contact-map-small iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.contact-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.contact-link:hover {
    color: #d4a574;
    text-decoration: underline;
    transform: translateX(2px);
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
}

.contact-form:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(185, 146, 88, 0.3);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Inter', sans-serif;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 88, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.contact-form .btn-primary {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: none;
}

.contact-message.success {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #10b981;
    display: block;
}

.contact-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}


/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'DM Serif Display', serif;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* Smaller font for mobile */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px; /* Smaller font for mobile */
}

/* Car Details Page */
.car-details-page {
    padding: 2rem 0 5rem;
    background: transparent;
    position: relative;
}

.car-details-container {
    max-width: 1000px;
    margin: 0 auto;
}

.car-details-header {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.car-details-header:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.car-details-image-container {
    width: 100%;
    margin-bottom: 2rem;
}

.car-details-image {
    width: 100%;
    height: 450px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
}

.car-details-header:hover .car-details-image {
    transform: scale(1.01);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.car-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.car-details-image > div {
    position: relative;
    z-index: 1;
}

/* Image Gallery Styles */
.car-image-gallery {
    width: 100%;
    margin-top: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.thumbnail {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    background: var(--bg-card);
    position: relative;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(185, 146, 88, 0.3);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(185, 146, 88, 0.5);
}

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

.thumbnail > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.car-details-info h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    border-color: rgba(185, 146, 88, 0.4);
}

.spec-item strong {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
}

.booking-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booking-form input,
.booking-form select,
.booking-select {
    font-family: 'Inter', sans-serif;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 88, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.booking-form select,
.booking-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23b99258' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.75rem;
    font-weight: 500;
    min-height: 48px;
}

.booking-form select:hover,
.booking-select:hover {
    border-color: rgba(185, 146, 88, 0.6);
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* File Upload Styling */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    cursor: pointer;
}

.file-upload-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    cursor: pointer;
    min-height: 48px;
}

.file-upload-button:hover {
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.2) 0%, rgba(212, 165, 116, 0.2) 100%);
    border-color: rgba(185, 146, 88, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 146, 88, 0.3);
}

.file-upload-button:active {
    transform: translateY(0);
}

.file-upload-name {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.file-upload-label:hover .file-upload-name {
    border-color: rgba(185, 146, 88, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive file upload */
@media (max-width: 768px) {
    .file-upload-label {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-upload-button {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-name {
        margin-top: 0.5rem;
    }
}

.booking-form select option,
.booking-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    font-size: 15px;
    transition: var(--transition-fast);
}

.booking-form select option:hover,
.booking-select option:hover {
    background: rgba(185, 146, 88, 0.15);
    color: var(--accent-gold);
}

.booking-form select option:checked,
.booking-select option:checked {
    background: rgba(185, 146, 88, 0.25);
    color: var(--accent-gold);
    font-weight: 600;
}

.booking-form select optgroup,
.booking-select optgroup {
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 12px;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(185, 146, 88, 0.3);
    margin-top: 0.25rem;
}

.total-price {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.total-price h3 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 400;
}

.total-amount {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Cars Listing Page */
.cars-page {
    padding: 2rem 0 5rem;
    background: transparent;
    position: relative;
}

.cars-header {
    text-align: center;
    margin-bottom: 3rem;
}

.filters {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
    transition: var(--transition-smooth);
}

.filters:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* 0.875rem - UI text */
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    font-family: 'Inter', sans-serif;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px; /* 1rem - body text */
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 88, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(185, 146, 88, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.payment-option:hover::before {
    opacity: 1;
}

.payment-option:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + .payment-icon {
    transform: scale(1.2);
}

.payment-option input[type="radio"]:checked ~ span {
    color: var(--accent-gold);
    font-weight: 600;
}

.payment-option input[type="radio"]:checked ~ .payment-icon,
.payment-option input[type="radio"]:checked ~ span {
    color: var(--accent-gold);
}

.payment-option input[type="radio"]:checked ~ span {
    font-weight: 600;
}

/* Fallback for browsers that support :has() */
@supports selector(:has(*)) {
    .payment-option:has(input[type="radio"]:checked) {
        border-color: var(--accent-gold);
        background: rgba(185, 146, 88, 0.1);
        box-shadow: var(--shadow);
    }
}

/* Fallback for browsers without :has() support */
.payment-option.selected {
    border-color: var(--accent-gold);
    background: rgba(185, 146, 88, 0.15);
    box-shadow: 0 8px 25px rgba(185, 146, 88, 0.3);
    border-width: 3px;
}

.payment-option.selected::before {
    opacity: 1;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.payment-option:hover .payment-icon {
    transform: scale(1.2) rotate(5deg);
}

.payment-option span {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* 0.875rem - UI text */
    color: var(--text-secondary);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: var(--transition-fast);
}

/* Improve scrollbar appearance */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #b99258 0%, #d4a574 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4a574 0%, #b99258 100%);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 11px;
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 1.5rem 0;
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 0.75rem 0;
        width: 100%;
        display: block;
    }

    .logo-image {
        height: 40px;
    }

    .logo-link {
        font-size: 1.1rem;
        gap: 0.4rem;
    }

    .nav-menu.active {
        left: 0;
    }

    /* RTL Mobile Navbar - Match English view */
    [dir="rtl"] .nav-menu {
        flex-direction: column;
        left: auto;
        right: -100%;
    }

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

    .hero {
        min-height: 70vh;
        padding: 2rem 0;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 3vw, 1rem);
        margin-bottom: 1.75rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .hero-search {
        padding: 0 0.5rem;
    }

    .search-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem;
        margin: 0 auto;
    }
    
    .search-item {
        gap: 0.25rem;
    }

    .search-item label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }
    
    .search-item input[type="date"],
    .search-item select {
        font-size: 14px; /* Larger for better mobile touch */
        padding: 0.625rem 0.75rem;
        min-height: 44px; /* iOS minimum for touch-friendly */
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .search-item input[type="date"] {
        padding-right: 2.75rem; /* More space for calendar icon */
    }
    
    .search-item input[type="date"]::-webkit-calendar-picker-indicator {
        width: 20px;
        height: 20px;
        padding: 0.5rem;
        cursor: pointer;
        background-position: right 0.75rem center;
        margin-right: -0.5rem;
    }
    
    .search-item select {
        padding-right: 2.25rem;
    }

    /* RTL Mobile - Match English view */
    [dir="rtl"] .search-item input[type="date"],
    [dir="rtl"] .search-item select {
        padding-right: 0.75rem;
        padding-left: 2.75rem;
    }

    [dir="rtl"] .search-item input[type="date"]::-webkit-calendar-picker-indicator {
        background-position: left 0.75rem center;
        margin-right: 0;
        margin-left: -0.5rem;
    }

    [dir="rtl"] .search-item select {
        background-position: left 0.75rem center;
    }

    .search-box .btn-primary {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    .booking-form select,
    .booking-select {
        min-height: 48px;
        font-size: 15px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: clamp(0.875rem, 3vw, 0.9375rem);
        margin-bottom: 2rem;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .car-card {
        margin-bottom: 0;
        padding: 1.25rem;
    }

    .car-image {
        height: 240px;
    }

    .car-name {
        font-size: clamp(1.25rem, 4vw, 1.375rem);
        margin-bottom: 0.75rem;
    }

    .car-specs {
        font-size: 0.875rem;
        gap: 0.625rem;
        margin: 1rem 0;
    }

    .car-price {
        font-size: clamp(1.125rem, 4vw, 1.25rem);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .about-section {
        padding: 2.5rem 0;
    }

    .about-content {
        padding: 1.75rem;
    }

    .about-text h2 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
        margin-bottom: 1.25rem;
    }

    .about-text p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .contact-icon {
        min-width: 50px;
        height: 50px;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-map-small {
        margin-top: 0.75rem;
    }
    
    .contact-map-small iframe {
        height: 180px;
    }

    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .footer-section p,
    .footer-section a,
    .footer-section li {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 11px;
    }

    .car-details-image {
        height: 250px;
        font-size: 5rem;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        margin-left: 0.5rem;
    }

    .language-switcher select {
        padding: 0.4rem 0.75rem;
        font-size: 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 14px;
        width: 100%;
    }

    .search-item input,
    .search-item select {
        padding: 0.875rem;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0;
    }
    
    .container {
        padding: 0 12px;
    }

    .logo-image {
        height: 35px;
    }

    .logo-link {
        font-size: 1rem;
        gap: 0.3rem;
    }

    .nav-menu {
        top: 60px;
        padding: 1rem 0;
    }

    .hero {
        min-height: 65vh;
        padding: 1.5rem 0;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero-content {
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.875rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
        margin-bottom: 1.5rem;
        line-height: 1.5;
        padding: 0 0.25rem;
    }

    .hero-search {
        padding: 0 0.25rem;
    }

    .search-box {
        padding: 1rem;
        gap: 0.625rem;
    }

    .search-item {
        gap: 0.25rem;
    }

    .search-item label {
        font-size: 0.625rem;
        margin-bottom: 0.25rem;
    }

    .search-item input {
        padding: 0.5rem 0.625rem;
        font-size: 12px;
    }
    
    .search-item input[type="date"],
    .search-item select {
        font-size: 14px; /* Larger for better mobile touch */
        padding: 0.625rem 0.75rem;
        min-height: 44px; /* iOS minimum for touch-friendly */
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .search-item input[type="date"] {
        padding-right: 2.5rem; /* More space for calendar icon */
    }
    
    .search-item input[type="date"]::-webkit-calendar-picker-indicator {
        width: 18px;
        height: 18px;
        padding: 0.5rem;
        cursor: pointer;
        background-position: right 0.75rem center;
        margin-right: -0.5rem;
    }
    
    .search-item select {
        padding-right: 2rem;
    }

    /* RTL Mobile - Match English view */
    [dir="rtl"] .search-item input[type="date"],
    [dir="rtl"] .search-item select {
        padding-right: 0.75rem;
        padding-left: 2.5rem;
    }

    [dir="rtl"] .search-item input[type="date"]::-webkit-calendar-picker-indicator {
        background-position: left 0.75rem center;
        margin-right: 0;
        margin-left: -0.5rem;
    }

    [dir="rtl"] .search-item select {
        background-position: left 0.75rem center;
    }

    .search-box .btn-primary {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.8125rem;
        margin-top: 0.25rem;
    }
    
    .booking-form select,
    .booking-select {
        min-height: 48px;
        font-size: 16px;
    }

    .section-title {
        font-size: clamp(1.375rem, 6vw, 1.625rem);
        margin-bottom: 0.625rem;
    }

    .section-subtitle {
        font-size: clamp(0.8125rem, 3.5vw, 0.875rem);
        margin-bottom: 1.5rem;
    }

    .cars-grid {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

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

    .feature-card {
        padding: 1.25rem 1rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
    }

    .feature-card h3 {
        font-size: clamp(0.9375rem, 4vw, 1.125rem);
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-grid {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .contact-icon {
        min-width: 45px;
        height: 45px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-map-small iframe {
        height: 160px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-section p,
    .footer-section a,
    .footer-section li {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 10px;
    }

    .car-details-header {
        padding: 1.5rem;
    }

    .car-details-image {
        height: 200px;
    }

    .language-switcher select {
        padding: 0.35rem 0.6rem;
        font-size: 11px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 13px;
        width: 100%;
    }

    .search-item input,
    .search-item select {
        padding: 0.75rem;
        font-size: 13px;
    }

    .car-card {
        padding: 1rem;
    }

    .car-image {
        height: 220px;
    }

    .car-name {
        font-size: clamp(1.125rem, 4vw, 1.25rem);
        margin-bottom: 0.5rem;
    }

    .car-specs {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .car-price {
        font-size: clamp(1rem, 4vw, 1.125rem);
    }

    .about-section {
        padding: 2rem 0;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-text h2 {
        font-size: clamp(1.375rem, 5vw, 1.625rem);
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo-image {
        height: 30px;
    }

    .logo-link {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .search-box {
        padding: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 12px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    width: 36px;
    height: 36px;
    fill: white;
}

[dir="rtl"] .whatsapp-button {
    right: auto;
    left: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button svg {
        width: 32px;
        height: 32px;
    }
    
    [dir="rtl"] .whatsapp-button {
        left: 15px;
    }
}

