/* Variable Definitions */
:root {
    /* Luxury/Premium Theme inspired by Tanishq aesthetic */
    --primary-color: #831843; /* Deep Rose/Burgundy */
    --primary-light: #fce7f3; /* Light Pink for backgrounds */
    --primary-hover: #500724;
    --secondary-color: #78350f; /* Amber/Gold dark */
    --accent: #d97706; /* Gold */
    
    --background: #fffbfb; /* Very subtle warm white */
    --surface: #ffffff;
    
    --text: #1f2937; /* Gray 800 */
    --text-muted: #6b7280; /* Gray 500 */
    --text-light: #9ca3af;
    
    --border: #f3e8ff; /* Soft edges */
    --border-strong: #e5e7eb;
    
    --success: #059669;
    --error: #dc2626;
    
    --shadow-sm: 0 1px 2px 0 rgba(131, 24, 67, 0.05);
    --shadow: 0 4px 6px -1px rgba(131, 24, 67, 0.1), 0 2px 4px -2px rgba(131, 24, 67, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(131, 24, 67, 0.1), 0 4px 6px -4px rgba(131, 24, 67, 0.05);
    
    --radius: 4px; /* Sharper, more elegant corners */
    --radius-lg: 8px;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Mulish', sans-serif;
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px; /* Wider container for luxury feel */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background-color: var(--surface);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-bottom: 3px solid var(--primary-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
}

.navbar nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar nav a {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary-color);
}

.navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}

.inline-form {
    display: inline;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0;
    font-family: var(--font-body);
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.alert.success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left-color: var(--success);
}

.alert.error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--error);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 50px; /* Pill shape */
    background: linear-gradient(135deg, var(--primary-color), #be185d);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(131, 24, 67, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 24, 67, 0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: #dc2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background-color: white;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Hero Section with Carousel */
.hero-wrapper {
    position: relative;
    height: 75vh; /* Taller hero */
    min-height: 600px;
    margin-bottom: 0; /* Remove margin, search box will float over */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 400; /* Lighter weight for elegance */
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
    font-style: italic; /* Playfair Italic usually looks very elegant */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Search Box (Floating) */
.search-box-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -4rem; /* Overlap hero */
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.search-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--text);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover,
.search-item.selected {
    background-color: var(--primary-light);
}

.search-item-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.search-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-img i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.search-item-info {
    flex: 1;
}

.search-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.search-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Section Common */
.section {
    padding: 6rem 0;
    background-color: var(--surface);
}

.section:nth-child(even) {
    background-color: var(--background);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '❄'; /* Decorative symbol or line */
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
    opacity: 0.5;
}

/* Or a line */
.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}


.section-title h2 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

/* How It Works - Elegant Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.step-card {
    padding: 3rem 2rem;
    background: var(--surface);
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.step-icon {
    width: 80px;
    height: 80px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.75rem;
    background: var(--primary-light);
}

/* Cards & Grid (Vehicles) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05); /* Gentle zoom */
}

.card-body {
    padding: 2rem;
    position: relative;
    background: white;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem; 
}

th, td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

tr:hover td {
    background-color: #fafafa;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Badge Refinements */
.badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.available {
    background-color: var(--success);
}

.badge.vehicle-type {
    background-color: var(--secondary-color);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    font-family: var(--font-heading);
}

/* Features Grid (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: var(--accent);
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-title i {
    color: var(--primary-color);
}

/* Footer Restored */
footer {
    background-color: #1a1a1a;
    color: #e5e5e5;
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--primary-color);
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: #a3a3a3;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Navigation & Responsive Header */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 1100;
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%; /* Slide out by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem; /* Reduced padding */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        gap: 1.5rem;
        overflow-y: auto; /* Allow scrolling if menu is tall */
    }

    .navbar nav.open {
        right: 0;
    }

    .navbar nav a {
        font-size: 1.1rem;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .navbar nav a:last-child {
        border-bottom: none;
    }

    .navbar nav a::after {
        display: none; /* Remove underline effect on mobile */
    }

    .navbar nav .btn-outline {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    /* Adjust Hero for Mobile */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-box-wrapper {
        margin-top: -2rem;
        padding: 0 1rem;
    }

    .search-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-grid, .features-grid, .reviews-grid { 
        gap: 2rem;
    }

    /* Horizontal Scroll for Vehicles on Mobile */
    .grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scroll-snap-type: x mandatory;
    }

    .grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar */
    }

    .card {
        flex: 0 0 280px; /* Fixed width for consistent cards */
        scroll-snap-align: center;
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .card-img-top {
        height: 180px; /* Better height for mobile */
    }

    .card-body {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Fixing lint warning */
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }

    .card-meta {
        margin-bottom: 0.75rem;
        display: flex;
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }

    .card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: auto; /* Push footer to bottom */
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .price-amount {
        font-size: 1.25rem;
    }

    .card-footer .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        width: auto;
    }
    
    /* Center align section titles on mobile */
    .section-title {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Footer & Others */
    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}
