/* --- General Body Styles --- */
/* --- General Body Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* CHANGE OR ADD THIS LINE */
    background-color: #f8f9fa; /* Light gray background */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
/* --- Header Styles --- */
.main-header {
    width: 100%;
    background-color: #005a9c;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.main-header .logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav span {
    color: #f0f0f0;
    font-size: 15px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.main-nav a:hover {
    border-bottom-color: #fff;
}

.main-nav a.nav-register-btn {
    background-color: #fff;
    color: #005a9c;
    padding: 8px 14px;
    border-radius: 6px;
    border-bottom: none;
    transition: background-color 0.2s, color 0.2s;
}
.main-nav a.nav-register-btn:hover {
    background-color: #f0f0f0;
    color: #004a8c;
}

/* * --- LAYOUT FIX ---
 * This new wrapper will hold our content
*/
.main-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0; /* Add padding to top/bottom */
}

/* --- Main Search Box Container --- */
.search-container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
    /* INCREASE PADDING */
    padding: 32px 40px; 
    border: 1px solid #e0e0e0;
    box-sizing: border-box; 
}

.search-container h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #005a9c; /* Ferry company color */
}

.search-container p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #555;
}

/* --- Form Styling --- */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    /* INCREASE FONT SIZE */
    font-size: 15px; 
    font-weight: 600;
    margin-bottom: 8px; /* Slightly more space */
}

/* Common style for text inputs, date inputs, and dropdowns */
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ced4da; /* Slightly lighter border */
    border-radius: 6px;
    box-sizing: border-box; 
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Add transition */
}

/* ADD THIS :focus rule */
.form-group input:focus,
.form-group select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2013l128%20128c3.6%203.6%207.8%205.4%2013%205.4s9.4-1.8%2013-5.4l128-128c3.6-3.6%205.4-7.8%205.4-13%200-5-1.8-9.4-5.4-13z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.small {
    flex: 1; 
}

.submit-btn {
    width: 100%;
    /* ADJUST PADDING & FONT SIZE */
    padding: 15px; 
    font-size: 17px; 
    font-weight: 700;
    color: #fff;
    background-color: #007bff; 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.submit-btn:hover {
    background-color: #0056b3;
}

/* --- Styles for Results Page --- */
.results-container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    padding: 24px 32px;
    box-sizing: border-box;
}

/* We center the results container using the same wrapper */
.main-content-wrapper > .results-container {
    margin: 0;
}


.results-container h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #005a9c;
}

.search-summary {
    background-color: #f4f7f6;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.5;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    gap: 16px;
}

.result-times {
    display: flex;
    flex-direction: column;
    flex-basis: 200px;
    flex-grow: 1;
}

.result-times strong {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.result-times span {
    font-size: 16px;
    color: #555;
}

.result-vessel {
    font-size: 16px;
    color: #555;
    flex-basis: 150px;
    flex-grow: 1;
}

.result-price-action {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-basis: 220px;
    flex-grow: 1;
    justify-content: flex-end;
}

.result-price-action .price {
    font-size: 22px;
    font-weight: 700;
    color: #005a9c;
    min-width: 100px;
    text-align: right;
}

.book-btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #28a745; /* Green */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.book-btn:hover {
    background-color: #218838;
}

.no-results {
    text-align: center;
    padding: 40px;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #0056b3;
}

/* --- Styles for Booking Details Page --- */
.booking-container {
    width: 100%;
    max-width: 600px; 
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    padding: 24px 32px;
    box-sizing: border-box;
}

.main-content-wrapper > .booking-container {
    margin: 0;
}

.booking-container h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #005a9c;
}

.booking-container p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #555;
}

.booking-summary {
    background-color: #f4f7f6;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.booking-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.booking-summary p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.passenger-summary {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.passenger-summary li {
    font-size: 16px;
    color: #555;
    margin-bottom: 4px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #005a9c;
    text-align: right;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ccc;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-placeholder {
    background-color: #fff8e1; 
    border: 1px solid #ffe57f;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #6d4c00;
}
.payment-placeholder p {
    margin: 0;
    line-height: 1.4;
}

.booking-form .submit-btn {
    background-color: #28a745; 
}

.booking-form .submit-btn:hover {
    background-color: #218838;
}

/* --- Styles for Confirmation Page --- */
.confirmation-container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    padding: 0; 
    box-sizing: border-box;
    overflow: hidden; 
}

.main-content-wrapper > .confirmation-container {
    margin: 0;
}

.confirmation-header {
    background-color: #28a745; 
    color: #fff;
    padding: 24px 32px;
}

.confirmation-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.confirmation-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    color: #fff; 
}

.confirmation-summary {
    padding: 24px 32px;
}

.confirmation-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}
.confirmation-summary h3 strong {
    color: #005a9c;
    font-family: monospace;
    font-size: 22px;
}

.trip-details {
    margin-bottom: 20px;
}

.trip-details p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.confirmation-summary .passenger-summary {
    margin-bottom: 20px;
}
.confirmation-summary .total-price {
    font-size: 22px;
}

.confirmation-footer {
    background-color: #f9f9f9;
    padding: 24px 32px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.confirmation-footer p {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px 0;
}

.confirmation-footer .back-btn {
    margin-top: 0;
}

/* --- Auth (Login/Register) Forms --- */
.auth-container {
    width: 100%;
    max-width: 440px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.main-content-wrapper > .auth-container {
    margin: 0;
}

.auth-container h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #005a9c;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .submit-btn {
    width: 100%;
}

.auth-form p {
    text-align: center;
    font-size: 15px;
    color: #555;
}
.auth-form p a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}
.auth-form p a:hover {
    text-decoration: underline;
}

/* --- My Account Page --- */
.account-container {
    width: 100%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
    box-sizing: border-box;
}

.main-content-wrapper > .account-container {
    margin: 0;
}

.account-container h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #005a9c;
}
.account-container p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #555;
}
.account-container .data-table {
    margin-top: 0;
}

/* --- Admin Table Styles (reused for My Account) --- */
.table-container {
    width: 100%;
    overflow-x: auto; 
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.data-table th,
.data-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.data-table thead {
    background-color: #f4f7f6;
}
.data-table th {
    font-weight: 600;
    color: #333;
}
.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.data-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* --- Utility Messages --- */
.error-message {
    color: #d93025;
    background-color: #fbeae9;
    border: 1px solid #d93025;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 16px;
    text-align: center;
}

/* --- Landing Page Styles --- */
/* --- New Landing Page Styles --- */

.landing-page body {
    background-color: #fff; /* Switch back to a white body */
}

/* --- Landing Nav --- */
.landing-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.landing-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav .nav-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #005a9c;
    text-decoration: none;
}

.landing-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-nav .nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-nav .nav-links a:hover {
    color: #007bff;
}

/* --- Button Base Styles --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    
}

/* Ensure Book Now button text is white */
.landing-nav .nav-links .nav-btn {
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}
.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

.landing-nav .nav-links .nav-btn {
    padding: 10px 20px;
}

/* --- Landing Hero Section --- */
/* --- Landing Hero Section --- */
.landing-hero {
    /* !! REPLACE 'your-image-url.jpg' with the path to your image !! */
    background-image: url('360_F_305066336_ABAvEqN2L4RduTikb95QeDkAcKZLrdys.jpg');
    background-size: cover;
    background-position: center;
    background-color: #004a8c; /* Fallback color */

    color: #fff; /* This sets all text to white */
    padding: 80px 32px;
    text-align: center;

    /* This adds a subtle dark overlay so the white text is readable */
    position: relative;
    z-index: 1;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}
.landing-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.landing-hero .landing-title {
    font-size: 42px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
}

.landing-hero .landing-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #f0f0f0; /* Lighter white for subtitle */
}

.landing-hero .landing-auth-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}
/* Make secondary buttons look good on dark bg */
.landing-hero .btn-secondary {
    color: #fff;
    border-color: #fff;
}
.landing-hero .btn-secondary:hover {
    background-color: #fff;
    color: #007bff;
}


/* --- General Section Styles --- */
.landing-section {
    padding: 60px 32px;
}

.landing-section.alt-bg {
    background-color: #f4f7f6;
}

.landing-section .section-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.landing-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #005a9c;
    margin-top: 0;
    margin-bottom: 16px;
}

.landing-section .section-intro {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- About Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #005a9c;
    margin-top: 0;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 20px;
    cursor: pointer;
    display: block; /* Makes the whole item clickable */
}

.faq-item summary::marker {
    color: #007bff;
}

.faq-item p {
    padding: 0px 20px 20px 20px;
    margin: 0;
    line-height: 1.7;
    color: #333;
}

/* --- Landing Footer --- */
.landing-footer {
    background-color: #333;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.landing-footer p {
    margin: 0;
    font-size: 14px;
}

/* --- Landing Page Hero Fix --- */
.landing-hero .landing-title {
    color: #fff; /* Override any other color */
}

/* --- Header Styles --- */
.main-header {
    width: 100%;
    background-color: #005a9c;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;

    /* ADD THESE 3 LINES */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Announcement Banner --- */
.announcement-banner {
    background-color: #fff3cd; /* Light yellow */
    color: #856404; /* Dark yellow text */
    padding: 15px 30px;
    text-align: center;
    border-bottom: 1px solid #ffeeba;
    font-size: 16px;
    line-height: 1.5;
}
.announcement-banner strong {
    font-weight: 700;
}


/* --- Booking Dashboard Styles --- */

/* We want the main wrapper to be wider on this page */
.main-content-wrapper {
    align-items: flex-start; /* Align to top */
}

.booking-dashboard-container {
    width: 100%;
    max-width: 1200px; /* Make the container wider */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 30px;
    align-items: flex-start;
}

/* Style the filter box */
#search-filter-box {
    flex: 1; /* Take up 1 part */
    min-width: 320px;
    max-width: 400px; /* Fix the width of the form */
    margin: 0; /* Remove auto margin */
    position: sticky; /* Make the form stick as user scrolls */
    top: 90px; /* (Header height + 20px padding) */
}

/* Style the results list */
.booking-dashboard-container .results-container {
    flex: 2; /* Take up 2 parts */
    min-width: 320px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.booking-dashboard-container .results-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Style the new route info in the list */
.result-route {
    flex-basis: 180px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
}

/* Adjust result item layout */
.result-item {
    align-items: center;
}

/* Notice box for default view */
.notice-box {
    background-color: #e6f7ff;
    border: 1px solid #b3e0ff;
    color: #0056b3;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
}
/* --- Dashboard Schedule Group Titles --- */
.schedule-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #005a9c;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* --- New "Get Price" Button Style --- */
.book-btn-unfiltered {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #007bff; /* Blue text */
    background-color: #e6f2ff; /* Light blue */
    border: 1px solid #007bff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
}
.book-btn-unfiltered:hover {
    background-color: #007bff;
    color: #fff;
}

/* --- New "Book Now" Button for Default List --- */
.book-btn-default {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #28a745; /* Green */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
    width: 100%; /* Make it fill the space */
}
.book-btn-default:hover {
    background-color: #218838;
}

/* Update price text to be smaller in default view */
.result-price-action .price {
    font-size: 18px; /* Was 22px */
    font-weight: 600;
    color: #333; /* Darker text */
}

/* Keep the price big in the filtered view */
.result-price-action span.price {
    font-size: 22px;
    font-weight: 700;
    color: #005a9c;
}

/* --- New Booking Details Styles --- */
.form-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #005a9c;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.total-summary {
    padding: 16px;
    border: 2px solid #007bff;
    background-color: #f8f9fa;
}

.total-summary .total-price {
    font-size: 24px;
}

.back-btn {
    width: 100%;
    box-sizing: border-box; /* Fix for 100% width */
    background-color: #6c757d;
}
.back-btn:hover {
    background-color: #5a6268;
}

/* --- Search Page Button (re-style) --- */
.result-price-action .book-btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #007bff; /* Blue */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
}
.result-price-action .book-btn:hover {
    background-color: #0056b3;
}

/* =========================================
   MODERN LANDING PAGE STYLES (Paste at bottom)
   ========================================= */

/* Use the new fonts */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, .nav-logo {
    font-family: 'Poppins', sans-serif;
}

.landing-page body {
    background-color: #fff;
}

/* --- Navigation --- */
.landing-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-nav .nav-container {
    width: 100%;       /* Ensure it takes full available width */
    max-width: 100%;   /* Remove the 1200px limit */
    margin: 0;         /* Remove auto margins */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;   /* Optional: adds a little breathing room from the very edge */
}

.landing-nav .nav-logo a {
    font-size: 26px;
    font-weight: 800;
    color: #005a9c;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.landing-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-nav .nav-links a:hover {
    color: #005a9c;
}

/* Ensure Book Now button text is white */
.landing-nav .nav-links .nav-btn {
    color: #fff;
    padding: 12px 24px;
}

/* --- Hero Section --- */
.landing-hero {
    /* !! IMPORTANT: Replace with your actual image path !! */
    background-image: url('your-image-url.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #004a8c;
    color: #fff;
    padding: 140px 20px 180px 20px; 
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay to make text readable */
    background: linear-gradient(180deg, rgba(0,25,50,0.7) 0%, rgba(0,90,156,0.8) 100%);
    z-index: -1;
}

.landing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.landing-hero .landing-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff; /* Force white text */
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.landing-hero .landing-subtitle {
    font-size: 20px;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.landing-hero .landing-auth-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Custom Hero Buttons */
.btn-light {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    color: #005a9c;
    border: 2px solid #fff;
}
.btn-light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.btn-outline-light {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background-color: #fff;
    color: #005a9c;
    border-color: #fff;
}

/* --- Wave Shape Divider --- */
.custom-shape-divider-bottom-1698372641 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1698372641 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1698372641 .shape-fill {
    fill: #FFFFFF;
}

/* --- Features Section --- */
.landing-section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.landing-section h2 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.landing-section .section-intro {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Card Style */
.feature-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #e6f2ff;
    color: #007bff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #222;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- FAQ Section --- */
.landing-section.alt-bg {
    background-color: #f9fafb;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item summary {
    font-size: 18px;
    font-weight: 600;
    padding: 24px;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

/* Custom Arrow for FAQ */
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: #007bff;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 24px 24px 24px;
    color: #555;
    line-height: 1.6;
}

/* --- Footer --- */
.landing-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 60px 20px;
    text-align: center;
}

/* --- Destinations Grid --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.dest-card {
    height: 300px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Fallback color if image doesn't load */
    background-color: #ccc; 
}

.dest-card:hover {
    transform: scale(1.02);
}

.dest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text readable */
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.dest-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
}

.dest-content h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.dest-content span {
    font-size: 14px;
    opacity: 0.9;
}

/* --- How It Works Steps --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.step-item p {
    color: #666;
    line-height: 1.5;
}

/* =========================================
   MODAL / POPUP STYLES
   ========================================= */

.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Blurs the background */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    width: 90%; 
    max-width: 600px; /* Fixed max width */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s;
}

.modal-header-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 30px;
}

.modal-body h2 {
    margin-top: 0;
    color: #005a9c;
    font-size: 28px;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.modal-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}


.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.close:hover,
.close:focus {
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}


@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* =========================================
   OCEAN WAVE ANIMATION
   ========================================= */

.ocean-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh; /* Adjust height of waves */
    margin-bottom: -7px; /* Fix for small gap on some screens */
    min-height: 100px;
    max-height: 150px;
}

.waves {
    width: 100%;
    height: 100%;
}

/* Animation Loop */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Wave Layers */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

/* Layer 1 (Fastest, most transparent) */
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

/* Layer 2 */
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

/* Layer 3 */
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

/* Layer 4 (Front, Solid White) */
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* Mobile Responsiveness for Waves */
@media (max-width: 768px) {
    .ocean-waves {
        height: 40px;
        min-height: 40px;
    }
}

/* --- Payment Page Styles --- */
.payment-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 5px;
}

/* =========================================
   FORCED HEADER FIX (NUCLEAR OPTION)
   ========================================= */

/* Force the blue bar to be full width */
.main-header {
    width: 100% !important;
    background-color: #005a9c !important;
    padding: 0 !important; /* Reset padding */
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Force the inner container to stretch properly */
.main-header .nav-container {
    width: 100% !important;
    max-width: 100% !important; /* Allow full screen width */
    margin: 0 !important;
    padding: 15px 40px !important; /* Comfortable padding on sides */
    display: flex !important;
    flex-direction: row !important; /* Force side-by-side */
    justify-content: space-between !important; /* Push logo left, links right */
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Force Links to behave */
.main-header .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important; /* Space between links */
    width: auto !important;
}

/* Ensure Logo is visible and sized right */
.main-header .nav-logo a {
    font-size: 26px !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: block !important;
}

/* Ensure links are white and readable */
.main-header .nav-links a {
    color: white !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Hover effects */
.main-header .nav-links a:hover {
    color: #ffd700 !important;
}


/* =========================================
   UNIVERSAL PAGE LAYOUT FIX
   ========================================= */

/* This fixes the main container on ALL pages */
.main-content-wrapper {
    max-width: 1200px;       /* Stop it from stretching too wide */
    margin: 40px auto;       /* Center it in the middle of the screen */
    padding: 20px;           /* Add breathing room on sides */
    min-height: 80vh;        /* Ensure it takes up most of the screen height */
    width: 90%;              /* Responsive width */
}

/* Fix for the Payment Page Columns */
.payment-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;         /* Allows stacking on small screens */
    margin-top: 20px;
}

/* Fix for the Payment Success / Ticket Page */
.success-card {
    background: white;
    max-width: 600px;
    margin: 50px auto;       /* Center the card perfectly */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

/* Fix for the Search Page (Trip Results) */
.search-results-container {
    margin-top: 30px;
}

.schedule-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;     /* Space between result cards */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Ensure buttons look good */
.submit-btn, .action-btn {
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover {
    opacity: 0.9;
}

/* =========================================
   NEW LANDING PAGE SECTIONS
   ========================================= */

/* Stats Section */
.stats-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-item i {
    font-size: 32px;
    color: #005a9c;
    margin-bottom: 10px;
}
.stat-item h3 {
    font-size: 36px;
    margin: 0;
    color: #333;
    font-weight: 800;
}
.stat-item p {
    color: #666;
    margin: 5px 0 0;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Fleet / Comfort Section */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.fleet-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}
.fleet-card:hover {
    transform: translateY(-5px);
}
.fleet-icon {
    background: #e6f2ff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #005a9c;
    font-size: 28px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #005a9c;
}
.review-card .stars {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 15px;
}
.review-card p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}
.review-card .reviewer {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    text-align: right;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================
   VISIBILITY & COLOR FIXES (Make text readable!)
   ========================================= */

/* 1. HEADER LINKS: Turn them WHITE so they pop against the blue background */
.main-header .nav-links a {
    color: #ffffff !important;      /* Force White Text */
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Slight shadow for readability */
}

/* 2. HOVER EFFECT: Turn Gold when mouse is over them */
.main-header .nav-links a:hover {
    color: #ffd700 !important;      /* Bright Gold */
}

/* 3. PARTNERS SECTION: Make the logos DARK GRAY so you can see them on white */
.partners-logos h3 {
    color: #555555 !important;      /* Dark Gray (Visible!) */
    font-weight: bold !important;
    opacity: 1 !important;          /* Remove transparency */
    text-shadow: none !important;
}

/* 4. LANDING PAGE TEXTS: Ensure all section headers are dark */
.section-header h2, 
.section-intro {
    color: #333333 !important;      /* Dark text */
}

/* =========================================
   MOBILE UI OPTIMIZATIONS (Responsive Design)
   ========================================= */

@media screen and (max-width: 768px) {

    /* 1. HEADER: Stack Logo and Links */
    .main-header .nav-container {
        flex-direction: column; /* Stack vertically */
        padding: 15px !important;
        gap: 15px;
    }
    
    .main-header .nav-links {
        display: flex;
        flex-wrap: wrap;       /* Allow wrapping if too many links */
        justify-content: center;
        gap: 15px !important;
        width: 100%;
    }
    
    .main-header .nav-links a {
        font-size: 14px !important;
        background-color: rgba(255,255,255,0.1); /* Add background for tap target */
        padding: 8px 12px;
        border-radius: 4px;
        margin: 0 !important;
    }

    /* 2. HERO SECTION: Adjust Text Size */
    .landing-hero {
        min-height: 60vh;      /* Shorter hero on mobile */
        padding-top: 60px;
    }
    .landing-title {
        font-size: 28px !important; /* Smaller title */
        padding: 0 20px;
    }
    .landing-subtitle {
        font-size: 16px !important;
        padding: 0 20px;
    }

    /* 3. FORMS: Stack Inputs Vertically */
    .search-card, .filter-box {
        width: 100% !important;
        padding: 20px !important;
        margin-top: 20px;
    }
    
    /* Force inputs to be full width */
    select, input[type="date"], input[type="text"], input[type="email"], input[type="password"] {
        width: 100% !important;
        box-sizing: border-box; /* Prevents spilling over */
        font-size: 16px; /* Prevents iPhone zoom on focus */
        padding: 12px;   /* Larger touch area */
        margin-bottom: 15px;
    }

    /* 4. GRIDS: Turn 3-Column Layouts into 1-Column */
    .stats-grid, 
    .destinations-grid, 
    .fleet-grid, 
    .testimonials-grid,
    .search-container, 
    .payment-container {
        display: flex !important;
        flex-direction: column !important; /* Stack items */
        gap: 20px !important;
    }

    /* 5. TABLES: Add Scrollbar for My Bookings */
    .table-container {
        overflow-x: auto; /* Allow side-scrolling for wide tables */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        border: 1px solid #eee;
    }
    .data-table {
        min-width: 600px; /* Force table to keep shape so it doesn't squish */
    }

    /* 6. MODALS: Full Screen on Mobile */
    .modal-content {
        width: 90% !important;
        margin: 20% auto !important;
    }
    
    /* 7. HIDE DECORATIONS that break layout */
    .ferry-boat {
        display: none !important; /* Hide boat animation on phone */
    }
    
    /* 8. BUTTONS: Full Width for easier tapping */
    .btn, .submit-btn, .action-btn {
        width: 100% !important;
        display: block;
        text-align: center;
        padding: 15px !important;
    }
}

