/* Homepage theme tokens and base styles */
body {
            font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-x: hidden;
        }

        :root {
            --primary: #006b5c;
            --primary-container: #7df8e5;
            --secondary: #4a635e;
            --secondary-container: #cce8e1;
            --tertiary: #456179;
            --tertiary-container: #c7e7ff;
            --surface: #f8f9ff;
            --surface-variant: #dae4e0;
            --surface-container: #ecf2f0;
            --outline: #6f7975;
            --on-primary: #ffffff;
            --on-surface: #191c1b;
            --on-surface-variant: #3f4946;
            --background: #dae4e0;
            --card-background: rgba(255, 255, 255, 0.7);
            --footer-background: #191c1b;
            --footer-text: #f8f9ff;
        }

        [data-theme="dark"] {
            --primary: #5ddcc6;
            --primary-container: #00513f;
            --secondary: #b0ccc6;
            --secondary-container: #334b46;
            --tertiary: #a2cbef;
            --tertiary-container: #2d4860;
            --surface: #0f1513;
            --surface-variant: #3f4946;
            --surface-container: #1a201e;
            --outline: #899390;
            --on-primary: #003831;
            --on-surface: #e0e3e1;
            --on-surface-variant: #bfc9c5;
            --background: #1a201e;
            --card-background: rgba(26, 32, 30, 0.8);
            --footer-background: #0a0e0c;
            --footer-text: #e0e3e1;
        }

        html {
            min-height: 100%;
            background: var(--background) fixed no-repeat;
        }

        body {
            background: transparent;
            color: var(--on-surface);
        }

        /* Hero and image gallery */
        .hero {
            width: min(100%, 1200px);
            min-height: 100vh;
            min-height: 100svh;
            position: relative;
            margin: 0 auto;
            padding: 112px 24px 64px;
            display: grid;
            grid-template-columns: 1fr;
            align-items: center;
            gap: 48px;
        }

        .hero-content {
            max-width: 560px;
            margin: 0 auto;
            text-align: center;
        }

        .hero .hero-kicker {
            margin-bottom: 16px;
            color: var(--tertiary);
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            text-align: inherit;
        }

        .hero h1 {
            margin-bottom: 24px;
            color: var(--on-surface);
            font-size: clamp(40px, 5vw, 64px);
            font-weight: 800;
            line-height: 1.1;
        }

        .hero h1 em {
            color: var(--primary);
            font-style: normal;
        }

        .hero-gallery {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
            width: 100%;
        }

        .hero-image-card {
            height: clamp(220px, 45vw, 360px);
            overflow: hidden;
            border-radius: 28px;
            background: var(--card-background);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .hero-image-card img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-scroll {
            position: absolute;
            z-index: 1;
            right: 0;
            bottom: 12px;
            left: 0;
            display: flex;
            justify-content: center;
            width: 208px;
            height: 208px;
            margin: 0 auto;
            border-radius: 50%;
        }

        .hero-scroll img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .hero-scroll:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        @media (min-width: 768px) {
            .hero {
                padding: 120px 40px 80px;
            }

            .hero-gallery {
                grid-template-columns: 1.1fr 0.9fr;
                align-items: center;
                gap: 24px;
            }

            .hero-image-card-landscape {
                height: 340px;
            }

            .hero-image-card-portrait {
                height: 420px;
            }
        }

        @media (min-width: 1100px) {
            .hero {
                grid-template-columns: 0.9fr 1.1fr;
                gap: 64px;
                padding-right: 24px;
                padding-left: 24px;
            }

            .hero-content {
                margin: 0;
                text-align: left;
            }

            .hero-gallery {
                gap: 24px;
            }

            .hero-image-card-landscape {
                height: 400px;
            }

            .hero-image-card-portrait {
                height: 500px;
            }
        }

        @media (max-width: 600px) {
            .hero {
                min-height: auto;
                grid-template-areas:
                    "landscape"
                    "content"
                    "portrait"
                    "scroll";
                gap: 18px;
                padding: 88px 16px 20px;
            }

            .hero-content {
                grid-area: content;
                max-width: 100%;
            }

            .hero h1 {
                margin-bottom: 12px;
                font-size: clamp(28px, 8vw, 42px);
            }

            .hero .hero-kicker {
                margin-bottom: 10px;
                font-size: 12px;
            }

            .hero-gallery {
                display: contents;
            }

            .hero-image-card-landscape {
                grid-area: landscape;
                height: 180px;
            }

            .hero-image-card-portrait {
                grid-area: portrait;
                height: 220px;
            }

            .hero-scroll {
                position: static;
                grid-area: scroll;
                width: 110px;
                height: 110px;
                margin-top: -8px;
            }

            .hero-image-card {
                border-radius: 20px;
            }
        }

        /* Homepage feature cards */
        .features {
            padding: 120px 0 0;
            background: transparent;
        }

        .features-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .features h2 {
            text-align: center;
            font-size: clamp(32px, 6vw, 48px);
            font-weight: 700;
            margin-bottom: 64px;
            color: var(--on-surface);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 32px;
        }

        /* Maldives guide teaser */
        .maldives-teaser {
            padding: 120px 0 0;
            background: transparent;
        }

        .maldives-teaser-heading {
            max-width: 1152px;
            margin: 0 auto 40px;
            padding: 0 24px;
            text-align: center;
        }

        .maldives-teaser-heading h2 {
            color: var(--on-surface);
            font-size: clamp(32px, 6vw, 48px);
            font-weight: 700;
            line-height: 1.2;
            margin: 0;
        }

        .maldives-teaser-container {
            width: calc(100% - 48px);
            max-width: 1152px;
            margin: 0 auto;
            padding: 0;
            background: var(--card-background);
            backdrop-filter: blur(10px);
            border-radius: 28px;
            border: 0.5px solid var(--outline);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
        }

        .maldives-teaser-container:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
        }

        .maldives-teaser-image-frame {
            position: relative;
            display: block;
            width: 100%;
            height: clamp(220px, 30vw, 360px);
            overflow: hidden;
            container-type: size;
            border-radius: 28px 28px 0 0;
        }

        .maldives-teaser-image {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 82cqh;
            height: 82cqw;
            max-width: none;
            object-fit: cover;
            transform: translate(-50%, -50%) rotate(90deg);
        }

        .maldives-teaser-content {
            max-width: 1080px;
            padding: 0 40px 40px 32px;
            margin: 0 auto;
            text-align: center;
        }

        .section-kicker,
        .maldives-teaser-kicker {
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.08em;
            margin-bottom: 14px;
            text-transform: uppercase;
        }

        .section-kicker {
            text-align: center;
        }

        .maldives-teaser-intro {
            color: var(--on-surface-variant);
            font-size: clamp(17px, 2vw, 21px);
            line-height: 1.7;
            margin: 0 auto 28px;
            max-width: 780px;
        }

        .maldives-teaser-highlights {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
            max-width: 720px;
            margin: 0 auto 28px;
            justify-items: center;
        }

        .maldives-teaser-highlight {
            color: var(--on-surface);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
            max-width: 220px;
        }

        .maldives-teaser-icon {
            display: block;
            width: 26px;
            height: 26px;
            margin: 0 auto 10px;
            color: var(--tertiary);
        }

        .maldives-teaser-icon img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .maldives-teaser-highlight strong,
        .maldives-teaser-highlight span {
            display: block;
        }

        .maldives-teaser-highlight strong {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 3px;
        }

        .maldives-teaser-highlight span {
            color: var(--on-surface-variant);
            font-size: 15px;
        }

        .maldives-teaser-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: min(100%, 420px);
            margin: 0 auto;
            background: var(--primary);
            color: var(--on-primary);
            border: none;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 100px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 107, 92, 0.3);
            outline: none;
        }

        .maldives-teaser-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 107, 92, 0.4);
        }

        .maldives-teaser-button:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .maldives-teaser-button svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
        }

        @media (max-width: 768px) {
            .maldives-teaser {
                padding-top: 80px;
            }

            .maldives-teaser-heading {
                width: calc(100% - 40px);
                margin-bottom: 32px;
                padding: 0;
            }

            .maldives-teaser-container {
                width: calc(100% - 40px);
            }

            .maldives-teaser-image-frame {
                height: 220px;
            }

            .maldives-teaser-content {
                padding: 32px 24px;
            }
        }

        @media (max-width: 600px) {
            .maldives-teaser-image-frame {
                border-radius: 20px 20px 0 0;
            }

            .maldives-teaser-content {
                padding: 24px 20px;
            }

            .maldives-teaser-heading {
                margin-bottom: 24px;
            }

            .maldives-teaser-highlights {
                grid-template-columns: 1fr;
                gap: 16px;
                max-width: 360px;
                justify-items: stretch;
            }

            .maldives-teaser-highlight {
                flex-direction: row;
                align-items: center;
                gap: 12px;
                max-width: none;
                text-align: left;
            }

            .maldives-teaser-icon {
                flex: 0 0 26px;
                margin: 0;
            }

            .maldives-teaser-highlight strong {
                font-size: 16px;
            }

            .maldives-teaser-highlight span {
                font-size: 13px;
            }
        }

        @media (max-width: 1024px) and (min-width: 769px) {
            .maldives-teaser-container {
                width: calc(100% - 80px);
                max-width: 1120px;
            }

            .maldives-teaser-content {
                padding: 32px 32px 28px;
            }
        }

        .feature-card {
            background: var(--card-background);
            backdrop-filter: blur(10px);
            border-radius: 28px;
            padding: 40px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 0.5px solid var(--outline);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 24px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .feature-card h3 {
            font-size: clamp(20px, 4vw, 24px);
            font-weight: 600;
            margin: 0 0 16px;
            color: var(--on-surface);
        }

        .feature-card p {
            color: var(--on-surface-variant);
            line-height: 1.6;
            font-size: 14px;
            margin: 0;
        }

        /* Tour cards */
        .tours {
            padding: 120px 0 0;
            background: transparent;
        }

        .tours-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .tours h2 {
            text-align: center;
            font-size: clamp(32px, 6vw, 48px);
            font-weight: 700;
            margin-bottom: 64px;
            color: var(--on-surface);
        }

        .tours-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 32px;
        }

        .tour-card {
            background: var(--card-background);
            border-radius: 28px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 2, 0.2, 1);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 0.5px solid var(--outline);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .tour-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
        }

        .tour-image {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--on-primary);
            font-size: 48px;
            position: relative;
            overflow: hidden;
        }

        .tour-image .tour-background {
            position: absolute;
            inset: 0;
            width: 100%;

            object-fit: cover;
            z-index: 0;
        }

        .tour-image > img:not(.tour-background) {
            position: relative;
            z-index: 1;
        }

        .tour-content {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            padding: 32px;
            height: auto;
            text-align: center;
        }

        .tour-content h3 {
            font-size: clamp(20px, 4vw, 24px);
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--on-surface);
            text-align: center;
        }

        .tour-content p {
            color: var(--on-surface-variant);
            line-height: 1.6;
            margin-bottom: 24px;
            font-size: 14px;
            max-height: 140px;
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .tour-content p.is-scrollable:not(.is-at-scroll-end) {
            -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, 0.45) 100%);
            mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, 0.45) 100%);
        }

        .tour-content p.is-scrollable:focus-visible {
            outline: 2px solid var(--outline);
            outline-offset: 2px;
        }

        .tour-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 12px;
            margin-top: auto;
        }

        .learn-more-button {
            background: var(--primary);
            color: var(--on-primary);
            border: none;
            padding: 12px 24px;
            border-radius: 100px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 107, 92, 0.3);
            outline: none;
            width: 100%;
            margin-top: auto;
        }

        /* Contact section and footer */
        .contact {
            padding: 120px 0 120px;
            background: transparent;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .contact h2 {
            text-align: center;
            font-size: clamp(32px, 6vw, 48px);
            font-weight: 700;
            margin-bottom: 64px;
            color: var(--on-surface);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 32px;
        }

        .contact-card {
            background: transparent;
            padding: 0;
            text-align: center;
        }

        .contact-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 24px;
            background: var(--primary-container);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .contact-card h3 {
            font-size: clamp(20px, 4vw, 24px);
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--on-surface);
        }

        .contact-card p {
            color: var(--on-surface-variant);
            line-height: 1.6;
            font-size: 14px;
        }

        footer {
            background: var(--footer-background);
            color: var(--footer-text);
            padding: 64px 0 32px;
            text-align: center;
        }

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

        /* Responsive homepage layout */
        @media (max-width: 768px) {
            .nav-left {
                gap: 8px;
            }

            .theme-toggle {
                width: 36px;
                height: 36px;
                padding: 6px;
            }

            .features,
            .tours {
                padding: 80px 0;
            }

            .features {
                padding: 80px 0 0;
            }

            .tours {
                padding: 80px 0 0;
            }

            .contact {
                padding-top: 80px;
            }

            .features-container,
            .tours-container {
                padding: 0 20px;
            }

            .features h2,
            .tours h2 {
                margin-bottom: 48px;
            }

            .features-grid,
            .tours-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .feature-card,
            .tour-content {
                padding: 32px 24px;
            }

            .footer-links {
                flex-direction: column;
                gap: 16px;
            }

            .footer-content {
                padding: 0 20px;
            }

            footer {
                padding: 48px 0 24px;
            }
        }

        @media (max-width: 1024px) and (min-width: 769px) {
            .features-grid,
            .tours-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .features-container,
            .tours-container {
                padding: 0 40px;
            }
        }

        @media (max-width: 480px) {
            .features h2,
            .tours h2 {
                font-size: 28px;
            }

            .feature-card h3,
            .tour-content h3 {
                font-size: 18px;
            }

            .feature-card,
            .tour-content {
                padding: 24px 20px;
            }

            .tour-image {
                height: 160px;
                font-size: 36px;
            }

            .logo {
                font-size: 24px;
            }
        }

        /* Contact actions and inquiry dialog controls */
        .social-button {
            color: var(--on-primary);
            border: none;
            padding: 0;
            width: 70px;
            height: 70px;
            border-radius: 100px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 107, 92, 0.3);
            outline: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-button img {
            width: 42px;
            height: 42px;
            display: block;
        }

        .social-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 107, 92, 0.4);
        }
        #close.social-button {
           width: 100%;
        }

    .modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    }

    .modal-footer {
    margin-top: 18px;
    }

    .close-btn {
    width: 100%;
    }

/* Theme-specific feature icon */
.feature-theme-icon {
    width: 110px;
    height: 110px;
}
