/* === CSS Variables === */
:root {
    --primary-color: #00796b; /* Teal */
    --primary-dark: #004d40;  /* Darker Teal */
    --accent-color: #ffab40;  /* Orange accent */
    --light-gray: #f4f4f4;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #424242;
    --white-color: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --font-primary: 'Poppins', Arial, sans-serif;
}

/* === Basic Reset & Global Styles === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--light-gray);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* === Typography === */
h1, h2, h3 {
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5em;
    margin-top: 2.5em;
}
h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.75em;
    padding-left: 2em;
    position: relative;
}

ul li::before {
    content: '✓'; /* Checkmark or '🌴' */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* === Header === */
.site-header {
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    padding: 80px 20px;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    margin-bottom: 20px; /* Added margin for separation if container doesn't start immediately */
}

.site-header::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.site-header h1, .site-header .subtitle {
    position: relative; /* To appear above the overlay */
    z-index: 1;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.site-header .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 0.5em;
}

/* === Navigation === */
.main-nav {
    background-color: var(--primary-dark);
    padding: 1em 0;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 10px; /* Adjust if you have a top admin bar or other elements */
    z-index: 1000;
    margin: 0 auto 30px auto; /* Centered and with bottom margin */
    width: fit-content; /* Make it only as wide as its content */
    max-width: 95%; /* Ensure it doesn't overflow on small screens */
}

.main-nav a {
    color: var(--white-color);
    margin: 0 1em;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* === Card Styles (for sections like travelers, booking) === */
.info-card {
    background-color: var(--white-color);
    padding: 1.5em;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5em;
}
.info-card p {
    margin-bottom: 0.5em;
}
.info-card strong {
    color: var(--primary-dark);
}

/* === Image Gallery === */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.image-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.main-image-wrapper img {
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* === Table (Itinerary) === */
.itinerary-table-wrapper {
    overflow-x: auto; /* Horizontal scroll on small screens if content is too wide */
    margin: 2em 0;
}

.itinerary-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden; /* For border-radius to apply to table */
}

.itinerary-table th, .itinerary-table td {
    padding: 1em 1.25em;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}
.itinerary-table th:last-child, .itinerary-table td:last-child {
    border-right: none;
}
.itinerary-table tr:last-child td {
    border-bottom: none;
}

.itinerary-table thead th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.itinerary-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Slightly off-white for even rows */
}
.itinerary-table tbody tr:hover {
    background-color: #f1f8f7; /* Light teal hover */
}

.itinerary-date-header {
    background-color: var(--primary-dark) !important;
    color: var(--white-color) !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 1.2em !important;
    padding: 0.8em !important;
}
.itinerary-date-header td {
    border-bottom: none !important; /* Remove bottom border for date header cells */
}

.itinerary-table ul {
    margin-top: 0.5em;
    padding-left: 1em;
}
.itinerary-table ul li::before {
    content: '•';
    font-size: 1em;
}


/* === Note / Callout === */
.note-box {
    background-color: #fff3e0; /* Light Orange */
    border-left: 5px solid var(--accent-color);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.note-box p:last-child {
    margin-bottom: 0;
}

/* === Emojis in Headings === */
h2 .emoji, h3 .emoji {
    margin-right: 0.5em;
    font-size: 1em; /* Relative to heading size */
    vertical-align: middle;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    .main-nav a {
        margin: 0 0.75em;
        padding: 0.5em 0.75em;
    }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .site-header {
        padding: 60px 15px;
    }
    .site-header h1 { font-size: 2rem; }
    .site-header .subtitle { font-size: 1.2rem; }

    .main-nav {
        width: 100%; /* Full width */
        border-radius: 0; /* Remove border radius for full-width nav */
        padding: 0;
        top: 0; /* Stick to very top */
    }
    .main-nav a {
        display: block;
        margin: 0;
        padding: 0.8em 1em;
        border-radius: 0;
        border-bottom: 1px solid var(--primary-color);
    }
    .main-nav a:last-child {
        border-bottom: none;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1em;
    }
    .image-gallery img {
        height: 180px;
    }

    /* Responsive Table: Stacked layout */
    .itinerary-table thead {
        display: none; /* Hide table headers */
    }
    .itinerary-table tr:not(.itinerary-date-header) { /* Keep date header as a full row */
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid var(--medium-gray);
        border-radius: var(--border-radius);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .itinerary-table td:not(.itinerary-date-header-cell) { /* Target normal cells, not date header cell */
        display: block;
        text-align: right !important; /* Align value to the right */
        padding-left: 50%; /* Make space for the label */
        position: relative;
        border-bottom: 1px dotted var(--medium-gray);
    }
    .itinerary-table td:not(.itinerary-date-header-cell)::before {
        content: attr(data-label); /* Get label from data-label attribute */
        position: absolute;
        left: 1em;
        width: calc(50% - 2em); /* Adjust width of label area */
        padding-right: 10px;
        white-space: nowrap;
        text-align: left !important;
        font-weight: bold;
        color: var(--primary-dark);
    }
    .itinerary-table tr td:last-child {
        border-bottom: none; /* Remove bottom border for last cell in stacked view */
    }
    .itinerary-date-header {
        display: block;
        width: 100%;
        margin-bottom: 1em;
    }
    .itinerary-date-header td { /* ensure the cell inside date header takes full width */
        display: block;
        width: 100%;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    h1 { font-size: 1.8rem; }
    .site-header h1 { font-size: 1.6rem; }
    .site-header .subtitle { font-size: 1rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .image-gallery {
        grid-template-columns: 1fr; /* Single column */
    }
    .image-gallery img {
        height: 200px; /* Slightly taller for single column */
    }
    .itinerary-table td:not(.itinerary-date-header-cell) {
        padding-left: 1em; /* Adjust for very small screens if labels are too wide */
        text-align: left !important;
    }
    .itinerary-table td:not(.itinerary-date-header-cell)::before {
        position: static; /* Stack label above content */
        display: block;
        width: 100%;
        margin-bottom: 0.25em;
        font-weight: bold;
    }
}