/* ═══════════════════════════════════════════════════════
   LANDING SCREEN — INSEE Ecocycle Virtual Tour
   ═══════════════════════════════════════════════════════ */

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #ffffff;
    background: #001a0d;
}

:root {
    --ls-green: #00a851;
    --ls-dark: #007a3b;
    --ls-deep: #004d24;
    --ls-light: #4dc98a;
    --ls-white: #ffffff;
    --ls-border: rgba(0, 168, 81, 0.18);
}

/* ── WRAPPER ─────────────────────────────────────────── */
#landingScreen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #001a0d;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}
#landingScreen.hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── BACKGROUND LAYERS ───────────────────────────────── */
.ls-bg {
    position: absolute;
    inset: 0;
    background-image: url("../../panos/tong_quan_nha_may.tiles/preview.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.35) saturate(0.7);
    transform: scale(1.08);
    animation: lsBgZoom 25s ease-in-out infinite alternate;
}
@keyframes lsBgZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.14) translateX(-1%);
    }
}
.ls-bg-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 30, 15, 0.92) 0%,
        rgba(0, 50, 25, 0.68) 45%,
        rgba(0, 20, 10, 0.88) 100%
    );
}
.ls-bg-pat {
    position: absolute;
    inset: 0;
    background-image: url("../img/eco-pattern.png");
    background-size: 180px;
    opacity: 0.035;
    pointer-events: none;
}

/* ── FLOATING PARTICLES ──────────────────────────────── */
.ls-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.ls-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 168, 81, 0.35) 0%,
        transparent 70%
    );
    animation: lsFloat linear infinite;
}
@keyframes lsFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* ── TOP BAR ─────────────────────────────────────────── */
.ls-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        transparent 100%
    );
}
.ls-topbar-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    animation: lsFadeDown 0.6s ease both;
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.ls-main {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

/* ── LEFT: INTRO ─────────────────────────────────────── */
.ls-intro {
    flex: 0 0 52%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 48px 60px;
    position: relative;
    z-index: 2;
}
.ls-logo {
    display: none;
}
.ls-vr-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 168, 81, 0.1);
    border: 1px solid rgba(0, 168, 81, 0.22);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ls-light);
    margin-bottom: 20px;
    animation: lsFadeDown 0.8s 0.08s ease both;
    box-shadow: 0 0 20px rgba(0, 168, 81, 0.1);
}
.ls-vr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ls-light);
    box-shadow: 0 0 8px var(--ls-light);
    animation: lsBlink 1.8s infinite;
}
.ls-heading {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: var(--ls-white);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    animation: lsFadeDown 0.8s 0.14s ease both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.ls-heading span {
    color: var(--ls-light);
}
.ls-tagline {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.85;
    max-width: 440px;
    margin-bottom: 32px;
    font-style: italic;
    animation: lsFadeDown 0.8s 0.2s ease both;
}

/* ── TOUR MODE BUTTONS ───────────────────────────────── */
.ls-tour-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    animation: lsFadeUp 0.8s 0.28s ease both;
}
.ls-tour-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2px;
    margin-top: 12px;
}
.ls-tour-label:first-child {
    margin-top: 0;
}
.ls-tour-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 168, 81, 0.06);
    border: 1px solid rgba(0, 168, 81, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.ls-tour-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 168, 81, 0.08) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
}
.ls-tour-btn:hover::before {
    opacity: 1;
}
.ls-tour-btn:hover {
    background: rgba(0, 168, 81, 0.14);
    border-color: rgba(0, 168, 81, 0.35);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 168, 81, 0.12);
}
.ls-tour-btn-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(0, 168, 81, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-light);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}
.ls-tour-btn:hover .ls-tour-btn-icon {
    background: var(--ls-green);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 168, 81, 0.4);
}
.ls-tour-btn-text {
    flex: 1;
    position: relative;
    z-index: 1;
}
.ls-tour-btn-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3px;
}
.ls-tour-btn-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}
.ls-tour-btn-arrow {
    color: rgba(0, 168, 81, 0.4);
    transition:
        transform 0.25s,
        color 0.25s;
    position: relative;
    z-index: 1;
}
.ls-tour-btn:hover .ls-tour-btn-arrow {
    transform: translateX(4px);
    color: var(--ls-light);
}

/* ── RIGHT: FACTORY CARDS ────────────────────────────── */
.ls-factories {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px 60px 20px;
    gap: 18px;
    position: relative;
    z-index: 2;
}
.ls-fcard {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: lsFadeUp 0.8s ease both;
}
.ls-fcard:nth-child(1) {
    animation-delay: 0.3s;
}
.ls-fcard:nth-child(2) {
    animation-delay: 0.42s;
}
.ls-fcard:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 20px 56px rgba(0, 168, 81, 0.2),
        0 0 0 1px rgba(0, 168, 81, 0.2);
    border-color: rgba(0, 168, 81, 0.35);
}
.ls-fcard.selected {
    border-color: var(--ls-green);
    box-shadow:
        0 0 0 2px var(--ls-green),
        0 20px 56px rgba(0, 168, 81, 0.3);
}
.ls-fcard-thumb {
    height: 150px;
    position: relative;
    overflow: hidden;
}
.ls-fcard-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ls-fcard:hover .ls-fcard-thumb-bg {
    transform: scale(1.1);
}
.ls-fcard-thumb-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 15%,
        rgba(0, 20, 10, 0.82) 100%
    );
}
.ls-fcard-body {
    padding: 16px 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ls-fcard-text {
    flex: 1;
}
.ls-fcard-code {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ls-light);
    margin-bottom: 5px;
}
.ls-fcard-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 5px;
}
.ls-fcard-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.ls-fcard-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(0, 168, 81, 0.1);
    border: 1px solid rgba(0, 168, 81, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ls-fcard:hover .ls-fcard-arrow,
.ls-fcard.selected .ls-fcard-arrow {
    background: var(--ls-green);
    border-color: var(--ls-green);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 0 14px rgba(0, 168, 81, 0.4);
}

/* ── SCENE PANEL (slide-in) ──────────────────────────── */
.ls-panel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
    cursor: pointer;
}
.ls-panel-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.ls-scene-panel {
    position: absolute;
    top: 12px;
    right: -780px;
    bottom: 12px;
    width: 740px;
    z-index: 20;
    background: #040e08;
    border: 1px solid rgba(0, 168, 81, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.ls-scene-panel.open {
    right: 12px;
}

/* Preview image column */
.ls-sp-preview {
    width: 300px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    background: #040e08;
}
.ls-sp-preview-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
    transform: scale(1.15);
}
.ls-scene-panel.open .ls-sp-preview-img {
    transform: scale(1);
}
.ls-sp-preview-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        #040e08 0%,
        rgba(4, 14, 8, 0.35) 45%,
        transparent 100%
    );
}
.ls-sp-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 1;
}
.ls-sp-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 168, 81, 0.15);
    border: 1px solid rgba(0, 168, 81, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 700;
    color: var(--ls-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}
.ls-sp-preview-name {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.ls-sp-preview-meta {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

/* Right content column */
.ls-sp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(
        170deg,
        rgba(0, 168, 81, 0.03) 0%,
        transparent 40%
    );
}

.ls-sp-header {
    padding: 20px 16px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 168, 81, 0.1);
    background: #040e08;
    width: 100%;
    box-sizing: border-box;
}
.ls-sp-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
}
.ls-sp-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-green);
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.ls-sp-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.ls-sp-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ls-sp-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 168, 81, 0.45) rgba(255, 255, 255, 0.06);
}
.ls-sp-list::-webkit-scrollbar {
    width: 6px;
}
.ls-sp-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
.ls-sp-list::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 81, 0.45);
    border-radius: 4px;
}
.ls-sp-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 81, 0.65);
}
@media (max-width: 600px) {
    .ls-sp-list::-webkit-scrollbar {
        width: 8px;
    }
}

/* Timeline scene items */
.ls-scene-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    margin-bottom: 2px;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}
.ls-scene-item:hover:not(.ls-soon) {
    background: rgba(0, 168, 81, 0.08);
    border-color: rgba(0, 168, 81, 0.12);
    transform: translateX(4px);
}
.ls-scene-item.ls-soon {
    cursor: default;
    opacity: 0.3;
}

/* Timeline node */
.ls-scene-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(0, 168, 81, 0.06);
    border: 2px solid rgba(0, 168, 81, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--ls-light);
    flex-shrink: 0;
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}
.ls-scene-item:not(:last-child) .ls-scene-num::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 14px;
    background: rgba(0, 168, 81, 0.12);
    transform: translateX(-50%);
}
.ls-scene-item:hover:not(.ls-soon) .ls-scene-num {
    background: var(--ls-green);
    border-color: var(--ls-green);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 168, 81, 0.4);
    transform: scale(1.1);
}
.ls-scene-text {
    flex: 1;
    min-width: 0;
}
.ls-scene-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-scene-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(0, 168, 81, 0.6);
}
.ls-scene-soon-tag {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ls-sp-enter-btn {
    margin: 8px 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ls-green) 0%, #005c28 100%);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 0;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 24px rgba(0, 168, 81, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}
.ls-sp-enter-btn:hover {
    box-shadow:
        0 8px 32px rgba(0, 168, 81, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.ls-sp-enter-btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* ── FOOTER ──────────────────────────────────────────── */
.ls-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 18px 32px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ls-footer-left,
.ls-footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.ls-footer a,
.ls-footer-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 0;
}
.ls-footer a:hover,
.ls-footer-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}
.ls-footer-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
}
.ls-credit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.5px;
}

/* ── MAP MODAL ───────────────────────────────────────── */
/* ── Guided Tour Intro Modal ───────────────────────── */
.ls-guided-overlay {
    position: fixed;
    inset: 0;
    z-index: 5998;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s,
        visibility 0.35s;
}
.ls-guided-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ls-guided-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    z-index: 5999;
    width: 90vw;
    max-width: 480px;
    background: rgba(0, 25, 18, 0.92);
    border: 1px solid rgba(0, 168, 81, 0.25);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s,
        visibility 0.35s,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ls-guided-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.ls-guided-content {
    padding: 28px 24px;
}

.ls-guided-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: 0.2px;
}

.ls-guided-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
}

.ls-guided-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.ls-guided-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}
.ls-guided-tips li i {
    color: var(--ls-green, #00a851);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.ls-guided-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ls-green, #00a851), #00c85d);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 168, 81, 0.35);
}
.ls-guided-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 168, 81, 0.45);
}
.ls-guided-start-btn:active {
    transform: translateY(0);
}

.ls-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}
.ls-map-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ls-map-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 6001;
    width: 92vw;
    max-width: 1200px;
    height: 85vh;
    background: #0a1f12;
    border: 1px solid rgba(0, 168, 81, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 168, 81, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.ls-map-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.ls-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #0a1f12;
    border-bottom: 1px solid rgba(0, 168, 81, 0.2);
    flex-shrink: 0;
}
.ls-map-tabs {
    display: flex;
    gap: 4px;
}
.ls-map-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ls-map-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.ls-map-tab.active {
    background: rgba(0, 168, 81, 0.12);
    color: var(--ls-light);
}
.ls-map-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.ls-map-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.ls-map-modal > iframe {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    border: 0;
    display: block;
    border-radius: 20px;
}
.ls-map-info {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 15, 8, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 81, 0.15);
    border-radius: 12px;
    padding: 10px 24px;
    pointer-events: none;
    text-align: center;
}
.ls-map-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.ls-map-addr {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes lsBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
@keyframes lsFadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes lsFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes lsShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* shimmer effect on heading */
.ls-heading span {
    background: linear-gradient(
        90deg,
        var(--ls-light) 0%,
        #8fffbf 30%,
        var(--ls-light) 60%,
        #8fffbf 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lsShimmer 4s linear infinite;
}

/* ── Scrollbar (desktop + mobile) ──────────────────────── */
.ls-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 168, 81, 0.5) rgba(255, 255, 255, 0.06);
}
.ls-main::-webkit-scrollbar {
    width: 8px;
}
.ls-main::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
.ls-main::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 81, 0.5);
    border-radius: 4px;
}
.ls-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 81, 0.7);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
    .ls-main {
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ls-intro {
        flex: none;
        padding: 90px 24px 24px;
        max-width: 520px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .ls-tour-modes {
        max-width: 360px;
    }
    .ls-logo {
        width: 200px;
        margin-bottom: 20px;
    }
    .ls-factories {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 28px 24px 100px;
        max-width: 360px;
        margin: 0 auto;
        box-sizing: border-box;
        width: 100%;
        position: relative;
    }
    .ls-factories::before {
        content: "";
        position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 168, 81, 0.35) 20%,
            rgba(0, 168, 81, 0.35) 80%,
            transparent 100%
        );
    }
    .ls-fcard {
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        border-radius: 16px;
        border-color: rgba(255, 255, 255, 0.12);
    }
    .ls-fcard-thumb {
        height: 160px;
    }
    .ls-scene-panel {
        width: 100%;
        right: auto;
        bottom: -100vh;
        top: auto;
        height: 85vh;
        border-left: none;
        border-top: 1px solid rgba(0, 168, 81, 0.12);
        border-radius: 20px 20px 0 0;
        transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
    }
    .ls-scene-panel.open {
        bottom: 0;
        right: auto;
    }
    .ls-sp-preview {
        width: 100%;
        min-width: unset;
        height: 180px;
        min-height: 180px;
    }
    .ls-sp-content {
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(0, 168, 81, 0.1);
        min-height: 0;
        overflow: hidden;
    }
}
@media (max-width: 600px) {
    .ls-topbar {
        padding: 14px 16px;
    }
    .ls-topbar-logo {
        height: 34px;
    }
    .ls-intro {
        padding: 80px 16px 20px;
        max-width: 100%;
    }
    .ls-heading {
        font-size: 1.7rem;
    }
    .ls-logo {
        width: 160px;
    }
    .ls-tour-modes {
        max-width: 100%;
    }
    .ls-factories {
        gap: 12px;
        padding: 0 16px 90px;
        max-width: 100%;
    }
    .ls-fcard {
        max-width: none;
        min-width: 0;
    }
    .ls-fcard-thumb {
        height: 140px;
    }
    .ls-fcard-body {
        padding: 12px 14px 16px;
    }
    .ls-fcard-name {
        font-size: 14px;
    }
    .ls-fcard-code,
    .ls-fcard-meta {
        font-size: 10px;
    }
    .ls-fcard-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .ls-footer {
        padding: 14px 16px;
        flex-direction: column;
        gap: 8px;
    }
    .ls-footer-left,
    .ls-footer-right {
        gap: 12px;
    }
    .ls-map-modal {
        max-width: 96vw;
        height: 80vh;
        border-radius: 14px;
    }
    .ls-map-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    .ls-voice-fab .ls-voice-label {
        display: none;
    }
    .ls-voice-fab {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
    }
}
@media (max-width: 400px) {
    .ls-factories {
        padding: 22px 14px 90px;
    }
    .ls-factories::before {
        left: 14px;
        right: 14px;
    }
}

/* ── Voice narration FAB ─────────────────────────────── */
.ls-voice-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 600;
    height: 44px;
    padding: 0 16px 0 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 30, 20, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.65);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: lsFadeUp 0.6s 0.8s both;
}
.ls-voice-fab i {
    font-size: 16px;
}
.ls-voice-fab:hover {
    background: rgba(0, 168, 81, 0.25);
    color: #fff;
    border-color: rgba(0, 168, 81, 0.35);
}
.ls-voice-fab.active {
    background: rgba(0, 168, 81, 0.2);
    color: var(--ls-green, #00a851);
    border-color: rgba(0, 168, 81, 0.4);
}
.ls-voice-fab.active i {
    animation: lsPulseGlow 2s ease-in-out infinite;
}
@keyframes lsFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes lsPulseGlow {
    0%,
    100% {
        text-shadow: 0 0 6px rgba(0, 168, 81, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(0, 168, 81, 0.7);
    }
}
