/* ------------------------------------------------------------------
   "Tours in your language" pages (includes/language-tour-page.php).
   Builds on /css/travel-guide.css (.tg-*) and /css/cruise.css (.cr-*);
   scoped to .lt so nothing here reaches other pages.
   ------------------------------------------------------------------ */

/* Hero: darker photo so the white text reads easily */
.lt .tg-hero-img { filter: brightness(.78) saturate(.92); object-position: center 45%; }
.lt .tg-hero::after {
    background:
        linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.58) 50%, rgba(0,0,0,.40) 100%),
        linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 40%, rgba(0,0,0,.70) 100%);
}
.lt .tg-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; padding-top: 4.5rem; }
.lt .tg-hero h1 { max-width: 18ch; }
.lt .tg-lead { color: rgba(255,255,255,.9); }

/* Hero demo card: the driver speaks, you hear it in your language */
.lt-demo {
    align-self: end; background: rgba(20,20,22,.72); border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px; padding: 1.1rem 1.1rem 1rem; backdrop-filter: blur(8px);
    box-shadow: 0 18px 50px rgba(0,0,0,.35); max-width: 440px; justify-self: end; width: 100%;
}
.lt-demo-label {
    display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 .4rem;
}
.lt-demo-label i { color: var(--tg-yellow); }
.lt-bubble {
    display: flex; gap: .6rem; align-items: flex-start; border-radius: 14px; padding: .7rem .85rem;
    font-size: .95rem; line-height: 1.45; margin: 0 0 .85rem;
}
.lt-bubble-flag { font-size: 1.25rem; line-height: 1.1; flex: none; }
.lt-bubble-driver { background: rgba(255,255,255,.10); color: rgba(255,255,255,.88); }
.lt-bubble-you { background: var(--tg-yellow); color: #1a1a1a; font-weight: 600; margin-bottom: .7rem; }
.lt-demo-arrow { text-align: center; color: var(--tg-yellow); margin: -.35rem 0 .35rem; font-size: .9rem; }
.lt-demo-flags { display: flex; flex-wrap: wrap; gap: .3rem; font-size: 1.15rem; margin: 0; padding: 0; list-style: none; }
.lt-demo-flags li { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.10); }
.lt-demo-flags li.is-on { background: rgba(255,193,7,.28); box-shadow: 0 0 0 2px var(--tg-yellow); }

/* Language chips with flags */
.lt-langs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .9rem 0 0; list-style: none; }
.lt-langs a, .lt-langs span.lt-chip {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
    background: var(--tg-card); box-shadow: var(--tg-shadow); border: 1px solid var(--tg-line);
    color: var(--tg-ink); font-weight: 600; text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
.lt-langs a:hover { transform: translateY(-1px); border-color: var(--tg-yellow); }
.lt-langs span.lt-chip { background: var(--tg-yellow); border-color: var(--tg-yellow); color: #1a1a1a; }
.lt-langs .lt-flag { font-size: 1.15rem; line-height: 1; }
.lt-langnames { margin-top: .9rem !important; color: var(--tg-muted) !important; font-size: .9rem; }

/* "Ask a question" note */
.lt-ask {
    margin-top: 1rem !important; display: flex; gap: .7rem; align-items: center;
    background: #fff6d6; color: #5c4300 !important; border-radius: 14px; padding: .85rem 1rem;
}
.lt-ask i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tg-yellow); color: #1a1a1a; flex: none; }

/* Closing call to action */
.lt-final {
    margin-top: 3.5rem; border-radius: 22px; padding: 2rem 1.6rem; color: #fff; text-align: center;
    background: linear-gradient(120deg, #1c1c1e 0%, #2d2d31 60%, #3b3320 100%);
}
.lt-final h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .5rem !important; }
.lt-final p { color: rgba(255,255,255,.8) !important; max-width: 52ch !important; margin: 0 auto 1.3rem !important; }
.lt-final .tg-hero-cta { justify-content: center; }

@media (max-width: 900px) {
    .lt .tg-hero-inner { grid-template-columns: 1fr; gap: 1.25rem; }
    .lt-demo { justify-self: stretch; max-width: none; }
    .lt .tg-hero::after {
        background: linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.60) 45%, rgba(0,0,0,.86) 100%);
    }
}

/* Demo flags are buttons: tap one to see what that guest hears */
.lt-demo-hint { font-size: .78rem; color: rgba(255,255,255,.6); margin: 0 0 .45rem; }
.lt-demo-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.lt-demo-flags button {
    width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.10); font-size: 1.2rem; line-height: 1; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.lt-demo-flags button:hover { transform: translateY(-1px); background: rgba(255,255,255,.2); }
.lt-demo-flags button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lt-demo-flags button.is-on { background: rgba(255,193,7,.28); box-shadow: 0 0 0 2px var(--tg-yellow); }
.lt-bubble-you.is-swap { animation: lt-swap .35s ease; }
@keyframes lt-swap { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lt-bubble-you.is-swap { animation: none; } }
