/* 
    MakeMyFlights - Ferry Booking System 
    Premium Light Theme Design System
    Color Palette derived from MakeMyFlights Logo
*/

html {
    scroll-behavior: smooth;
}

:root {
    /* === LOGO-DERIVED BRAND COLORS === */
    --navy:          #0d1b4b;   /* Logo deep navy — text, headings */
    --navy-dark:     #080f2d;   /* Darker navy for hover states */
    --navy-mid:      #112060;   /* Mid-tone navy */
    --navy-light:    #e8edf8;   /* Very light navy tint for backgrounds */

    --green:         #f5800a;   /* MakeMyFlights Orange — primary accent */
    --green-dark:    #c45f00;   /* Darker orange for hover */
    --green-mid:     #e07000;   /* Mid orange */
    --green-light:   #fff3e0;   /* Light orange tint for tags/badges */

    --teal:          #1e7bc8;   /* Logo vibrant blue */

    /* === SEMANTIC ALIASES === */
    --primary:       var(--navy);
    --primary-dark:  var(--navy-dark);
    --primary-light: var(--navy-light);
    --secondary:     var(--green);
    --accent:        #1e7bc8;   /* Vibrant blue — call-to-action complement */

    /* === BASE === */
    --background:    #f4f7fb;   /* Faint navy-tinted off-white */
    --white:         #ffffff;
    --text-main:     #0d1b4b;   /* Deep navy for body text */
    --text-muted:    #5a6f92;   /* Muted navy-grey */

    /* === EFFECTS === */
    --shadow:        0 10px 30px rgba(13, 27, 75, 0.12);
    --shadow-green:  0 10px 30px rgba(245, 128, 10, 0.15);
    --glass:         rgba(255, 255, 255, 0.85);
    --border-radius: 12px;
    --transition:    all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(2, 56, 94, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Mega Menu Styles */
.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    width: 600px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #eee;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.mega-column h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mega-column h5::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--green);
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.mega-link:hover {
    color: var(--navy);
    transform: translateX(5px);
}

.mega-footer {
    grid-column: span 2;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f7fafc;
}

.mega-footer a {
    color: var(--green);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 117, 79, 0.2);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 117, 79, 0.3);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--navy-light) 100%);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy-dark);
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 1rem;
    margin-top: 3rem;
    align-items: flex-end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

/* Ferry Cards */
.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ferry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ferry-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.ferry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ferry-image-container {
    height: 200px;
    position: relative;
}

.ferry-card .ferry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.overlay-tag {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ferry-info {
    padding: 1.5rem;
}

.ferry-route-mini {
    color: var(--green);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ferry-route-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.ferry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ferry-tag {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}

.departures-section {
    margin-bottom: 2.5rem;
}

.departures-section p {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 700;
    margin-bottom: 1rem;
}

.departure-times {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.time-chip {
    background: #f7fafc;
    color: #2d3748;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.more-times {
    color: var(--navy);
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: 0.5rem;
}

.pricing-footer {
    border-top: 1px solid #f7fafc;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-label {
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.price-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
}

.price-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0aec0;
}

.price-discount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #718096;
    margin-top: 0.4rem;
    display: flex;
    gap: 0.5rem;
}

.strike-price {
    text-decoration: line-through;
}

.discount-tag {
    color: #4a5568;
    font-weight: 800;
}

.book-now-btn {
    background: var(--green);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 117, 79, 0.2);
}

.book-now-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 117, 79, 0.35);
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon-container {
    width: 60px;
    height: 60px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.feature-icon-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-list li i {
    color: var(--green);
}

.feature-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-bar {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 5rem;
    border: 1px solid #f0f0f0;
}

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

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.stat-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: var(--transition);
}

.testimonial-card.featured {
    border: 2px solid var(--green);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 700;
}

.quote-icon {
    color: var(--green-light);
    font-size: 2.5rem;
}

.testimonial-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
    min-height: 100px;
}

.route-badge {
    background: var(--navy-light);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 800;
    color: var(--navy);
    display: block;
    font-size: 1rem;
}

.user-location {
    font-size: 0.8rem;
    color: #999;
}

.verified-status {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.faq-cat-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.faq-cat-btn i {
    width: 18px;
}

.faq-cat-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.faq-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-tab-content.active {
    display: block;
}

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

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.faq-item {
    background: white;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-question {
    padding: 1.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question .q-text {
    flex: 1;
}

.popular-badge {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-right: 1.5rem;
    text-transform: uppercase;
}

.faq-answer {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 2rem;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.partner-section {
    background: white;
    padding: 5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    margin: 4rem 0;
    text-align: center;
    border: 1px solid #f5f5f5;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-icon {
    width: 70px;
    height: 70px;
    background: var(--navy-light);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.partner-item h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.partner-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 992px) {
    .search-widget {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ferry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .search-widget {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .ferry-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   NEW HORIZONTAL SEARCH RESULTS DESIGN
   ========================================= */

.booking-progress-bar {
    background: var(--navy);
    padding: 1.5rem 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
}

.step-circle.completed {
    background: var(--green);
    color: white;
}

.step-circle.active {
    background: white;
    color: var(--navy);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.step-label.active, .step-label.completed {
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: -25px 15px 0;
}

.step-line.completed {
    background: var(--green);
}

.search-summary-box {
    background: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #475569;
}

.route-pill {
    background: var(--navy);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.filter-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-pill {
    padding: 0.6rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--navy);
}

.sort-section {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.sort-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-pill.active {
    background: var(--navy);
    color: white;
}

.sort-pill:not(.active) {
    background: #f1f5f9;
    color: #475569;
}

.ferry-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ferry-list-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.ferry-list-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.ferry-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.fastest-tag {
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.ferry-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.ferry-operator {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.ferry-price-box {
    text-align: right;
}

.ferry-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
}

.ferry-price-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.ferry-timeline-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-point {
    text-align: center;
}

.timeline-time {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

.timeline-loc {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.timeline-line {
    flex: 1;
    height: 1px;
    background: #cbd5e1;
    margin: 0 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-duration {
    background: #eff6ff;
    color: var(--navy);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: absolute;
    top: -12px;
}

.ferry-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.ferry-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: var(--navy);
}

.rating-count {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .ferry-list-header {
        flex-direction: column;
        gap: 1rem;
    }
    .ferry-price-box {
        text-align: left;
    }
    .ferry-timeline-container {
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
    }
    .timeline-line {
        width: 1px;
        height: 40px;
        margin: 0;
    }
    .timeline-duration {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .ferry-list-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ====== NEW HOME SEARCH WIDGET ====== */
.hero-wrapper {
    position: relative;
    padding: 10rem 0 12rem;
    background: linear-gradient(rgba(13, 27, 75, 0.2), rgba(13, 27, 75, 0.6)), url('../images/hero_ferry.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top right, rgba(255,255,255,0.05) 50%, transparent 50.1%);
}

.home-search-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.trip-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
}

.trip-tab {
    padding: 1rem 2rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trip-tab.active {
    background: white;
    color: #02385e;
}

.home-search-box {
    background: rgba(13, 27, 75, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

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

.search-input-group {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none;
}

.search-input-group:focus-within {
    background: transparent;
    border-bottom: 2px solid #f5800a;
    transform: none;
    box-shadow: none;
}

.search-input-group label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-input-group select, 
.search-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    cursor: pointer;
}

.search-input-group select option {
    background: #0d1b4b;
    color: #ffffff;
}

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

.add-trip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 2rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #0ea5e9;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: max-content;
}

.add-trip-btn:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

.search-submit-btn {
    width: 100%;
    background: var(--navy);
    color: white;
    padding: 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.search-submit-btn:hover {
    background: #012a4a;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badges div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.nav-links .btn-primary {
    color: var(--white) !important;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: var(--primary);
}

/* ====== MODALS ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.modal-header-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 2rem;
}

.class-option {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.class-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.class-option.selected {
    border-color: #0ea5e9;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.class-option input[type="radio"] {
    margin-top: 5px;
    transform: scale(1.2);
    accent-color: #0ea5e9;
}

.class-info {
    flex: 1;
}

.class-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.class-seats-left {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.class-perks {
    font-size: 0.85rem;
    color: #16a34a;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.class-perks span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.class-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* SEAT MAP CSS */
.seat-map-container {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seat-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.seat-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.seat-box.available { background: #6366f1; }
.seat-box.selected { background: #f97316; }
.seat-box.occupied { background: #cbd5e1; }

.seat-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.row-label {
    font-weight: 700;
    color: #02385e;
    width: 20px;
}

.seat-group {
    display: flex;
    gap: 0.4rem;
}

.seat {
    width: 32px;
    height: 32px;
    border-radius: 8px 8px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid rgba(0,0,0,0.2);
}

.seat.available {
    background: #6366f1;
}

.seat.available:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.seat.selected {
    background: #f97316;
}

.seat.occupied {
    background: #cbd5e1;
    cursor: not-allowed;
    color: #94a3b8;
}

.aisle {
    width: 20px;
}
