:root {
    --primary-color: #0c1e35;
    /* Deep Navy */
    --secondary-color: #1a3c61;
    /* Lighter Navy */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b89628;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --card-bg: #112240;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 8px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.gold-text {
    color: var(--accent-color);
}

.highlight {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--accent-color);
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 30, 53, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    /* Adjust based on navbar height */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    color: var(--accent-color) !important;
}

.btn-nav:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

/* Page Hero (for sub-pages) */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 8rem 2rem 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bg-dark {
    background: var(--secondary-color);
}

.content-block {
    max-width: 800px;
}

.content-block p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-light) !important;
}

.highlight-text {
    color: var(--accent-color) !important;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 30, 53, 0.3), rgba(12, 30, 53, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features {
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Cruises */
.cruises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cruise-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.cruise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

.cruise-card.featured {
    border: 1px solid var(--accent-color);
    transform: scale(1.02);
}

.cruise-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.cruise-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 2rem;
    position: relative;
    height: 160px;
    /* Enforce strict uniform height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4.5rem;
    /* Push content down to clear aligned badge */
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.cruise-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cruise-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cruise-body p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.itinerary {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    border-left: 2px solid var(--accent-color);
    min-height: 220px;
    /* Ensure consistent height for price alignment */
    display: flex;
    flex-direction: column;
}

.itinerary li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.price {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price span {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Registration Form (Customer Info Component) */
.registration {
    background: var(--secondary-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group select option {
    background-color: var(--card-bg);
    color: var(--white);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-group label:hover {
    color: var(--accent-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Newsletter Component */
.newsletter-container {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    flex: 1 1 400px;
}

.newsletter-form {
    flex: 1 1 300px;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-body);
}

/* Cabin Grid Styles */
.cabin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.cabin-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cabin-item:hover {
    transform: translateY(-3px);
}

.cabin-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.cabin-details {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cabin-details h5 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
}

.cabin-details .price {
    font-size: 0.95rem;
    color: var(--gold-color);
    font-weight: bold;
    margin: auto 0 0 0;
    /* Auto top margin pushes it down */
    padding-top: 0.5rem;
}

/* Ship Tour Video Styles */
.ship-tour-video {
    margin: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.ship-tour-video h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    background: #060f1c;
    /* Even darker for footer */
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.ship-name {
    color: var(--gold-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.2rem 0 0.5rem 0;
    font-style: italic;
}

.feature-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--gold-color);
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Logo Styles */
.hero-logo {
    max-width: 450px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .cabin-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-img {
        height: 60px;
        /* Smaller logo on mobile */
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Stack flex fields (Names, Address) on mobile */
    .form-group>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .form-group>div[style*="display: flex"]>input {
        width: 100% !important;
        flex: auto !important;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Schedule Modal */
.modal-content-text {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    color: #333;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn-schedule {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn-schedule:hover,
.close-btn-schedule:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#scheduleBody ul {
    list-style-type: none;
    padding: 0;
}

#scheduleBody li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}