/* --- Variables & Reset --- */
:root {
    --primary: #0e4d92; /* Deep Greek Blue */
    --primary-dark: #093465;
    --accent: #D4AF37; /* Gold/Sand */
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-sand: #f5f0e1;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.2; color: var(--white); }
h2 { font-size: 2.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.narrow-container { max-width: 800px; }

.section-padding { padding: 5rem 0; }

.bg-light { background-color: var(--bg-light); }
.bg-sand { background-color: var(--bg-sand); }

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 3rem auto;
}

.section-header { text-align: center; margin-bottom: 3rem; }

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 77, 146, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 77, 146, 0.4);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.2rem;
    background: var(--accent);
    color: var(--white);
}

.btn-lg:hover { background: #b5952f; }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 8px 20px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Navbar Logo */
.logo img {
    height: 68px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Footer Logo */
.footer-logo img {
    height: 40px;
    width: auto;
    display: inline-block;
}


@media (max-width: 768px) {
    .logo img {
        height: 25px;
    }
    .footer-logo img {
        height: 35px;
    }
}

nav.scrolled .logo { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--accent); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    background: url('assets/images/car.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
   background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.32));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

/* --- Booking Engine Mockup --- */
.booking-wrapper {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.engine-mockup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fake-input {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 600;
    cursor: not-allowed;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    transition: 0.3s;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* --- Listings Grid --- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.car-card:hover { transform: translateY(-5px); }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.5s ease;
}

.car-card:hover .card-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.card-content { padding: 1.5rem; }

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.company-info h4 { margin: 0; font-size: 0.9rem; color: var(--text-light); font-family: var(--font-body); }
.stars { color: var(--accent); font-size: 0.8rem; }

.specs {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price { font-size: 0.9rem; }
.price strong { font-size: 1.2rem; color: var(--primary); }

/* --- Live Prices Table --- */
.table-responsive { overflow-x: auto; }
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th { background-color: var(--primary); color: white; }


.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


@media (max-width: 992px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
}

.route-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.route-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.route-info { padding: 1.5rem; }
.route-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--accent);
    margin: 5px 0 10px 0;
    font-weight: bold;
}

/* --- Reviews Slider --- */
.slider-container {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.review-slide { display: none; }
.review-slide.active { display: block; animation: fadeIn 0.5s; }

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.reviewer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.reviewer img { width: 40px; border-radius: 50%; }

.slider-controls { margin-top: 2rem; }
.nav-arrow {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    transition: 0.3s;
}
.nav-arrow:hover { background: var(--primary); color: white; }

/* --- FAQ Accordion --- */
.accordion-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--accent); }
.accordion-header.active::after { content: '-'; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
    background: #fdfdfd;
}

.accordion-content p { padding: 1rem 0; }

/* --- Footer --- */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 { color: var(--white); }
.footer-col h3 span { color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); }

.newsletter-form { display: flex; gap: 10px; margin-top: 1rem; }
.newsletter-form input {
    padding: 10px;
    border-radius: 4px;
    border: none;
    flex: 1;
}
.newsletter-form button {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; animation: fadeIn 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .nav-links, .nav-btn { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span {
        display: block; width: 25px; height: 3px; background: var(--white); margin: 5px 0;
    }
    nav.scrolled .hamburger span { background: var(--primary); }
    .booking-wrapper { margin-top: 0; }
}



/* Custom Footer Buttons for Cards */
.card-footer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-primary-sm, .btn-outline-sm {
    padding: 10px 5px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
}

.btn-outline-sm {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-sm:hover { background: var(--primary-dark); }
.btn-outline-sm:hover { background: var(--primary); color: white; }

/* Adjust specs for list-style */
.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.specs li {
    background: #f0f2f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}



.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 10px;
}

.company-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.maps-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: 0.3s;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.maps-link:hover {
    background: #f0f0f0;
    border-color: var(--primary);
    color: var(--primary);
}

/* Specs styling */
.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-bottom: 1rem;
}

.specs li {
    background: #eef2f7;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}



.sorting-note strong {
    color: var(--primary-dark);
    font-weight: 700;
}



footer {
    padding: 50px 0 30px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #666;
}


