* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.6;

    --primary: #355d8c;
    --accent: #8bc34a;
    --bg: #ffffff;
    --text: #333333;

    background: var(--bg);
    color: var(--text);

}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.footer-logo {
    height: 110px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.desktop-nav a:hover {
    opacity: 0.7;
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
}

.mobile-menu a {
    padding: 15px;
    text-decoration: none;
    color: var(--primary);
    border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
    background: #f5f5f5;
}

.hero {
    height: 250px;
    position: relative;
    background: url("https://www.aa.co.nz/content/dam/nzaa/02-services/travel/must-dos/must-dos-hero-images/Karangahake-Gorge.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* dark overlay so white text is readable */
    z-index: 1;
}

/* keep text above overlay */
.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 2;
}

.hero .hero-attribution {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    z-index: 2;
}

iframe {
    opacity: 0.85;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 30px auto;
}

.carousel-container {
    position: relative;
    width: 90%;
    margin: auto;
}

.tour-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.tour-grid::-webkit-scrollbar {
    display: none;
}

.tour-card {
    flex: 0 0 300px;
}

.tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tour-image {
    opacity: 0.85;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 20px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.info-section {
    width: 90%;
    margin: 40px auto;
}

.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    align-items: center;
}

.info-block img {
    width: 100%;
    border-radius: 4px;
}


.learn-btn {
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    padding: 7px 10px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.learn-btn:hover {
    opacity: 0.8;
}

.page-title {
    text-align: center;
    padding: 40px 20px;
}

.tour-list {
    width: 90%;
    margin: auto;
}

.tour-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

.tour-item img {
    width: 100%;
    border-radius: 4px;
}

.coming-soon {
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: #e8f1fa;
}

.coming-soon a {
    color: var(--primary);
}

.contact-section {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.contact-info.coming-soon {
    text-align: left;
}

.timeline {
    position: relative;
    width: 90%;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dcecf9;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding-left: 50px;
}

.dot {
    width: 14px;
    height: 14px;
    background: #355d8c;
    border-radius: 50%;
    position: absolute;
    left: 14px;
    top: 5px;
}

.content {
    background: #f4f9ff;
    padding: 15px 18px;
    border-radius: 8px;
    width: 100%;
}

.content h3 {
    margin-bottom: 5px;
    color: #355d8c;
}

.content img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 12px;
}

footer {
    margin-top: 40px;
    background: #dcecf9;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    padding: 30px;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--primary);
    margin-bottom: 8px;
}

.copyright {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

.colour-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.colour-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
}

.colour-btn.normal {
    background: #ffffff;
}

.colour-btn.protanopia {
    background: #ffb000;
}

.colour-btn.deuteranopia {
    background: #00a884;
}

.colour-btn.tritanopia {
    background: #3b82f6;
}

.colour-btn:hover {
    transform: scale(1.1);
}

body.protanopia {
    --primary: #0047AB;
    --accent: #FFD700;
}

body.deuteranopia {
    --primary: #5A189A;
    --accent: #F77F00;
}

body.tritanopia {
    --primary: #1B998B;
    --accent: #FF6B6B;
}

.highlights {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-card {
    background: #f4f9ff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.highlight-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.tracks-section {
    width: 90%;
    margin: 40px auto;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.track-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.track-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.track-card:hover img {
    transform: scale(1.05);
}

.track-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(53, 93, 140, 0.85);
    color: white;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 14px;
}

.video-preview {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
}

.video-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.video-preview:hover img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 44px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-preview:hover .play-overlay {
    opacity: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 4px 4px;
}

.tour-video {
    grid-column: 1 / -1;
    margin-top: 0;
}

.tour-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 4px;
}

.map-section {
    width: 90%;
    margin: 40px auto;
}

.map-section h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.map-section > p {
    margin-bottom: 15px;
    color: #666;
}

#tour-map {
    height: 420px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .info-block,
    .tour-item {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .tracks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}