/* ============================================================
   LetsTravel — Hero Styles
   ============================================================ */

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Extrabold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --lt-font: 'Polin', 'Heebo', sans-serif;
    --lt-main: #3DCCE2;
    --lt-dark: #1E2735;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0a1628 !important;
    font-family: var(--lt-font);
}

/* Remove scrollbar on homepage hero */
body.home {
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════
   Loader — Cinematic Image Crossfade
   ══════════════════════════════════════════════════════════ */
.hero-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a1628;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background image slides — quick snap transitions */
.hero-loader__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: scale(1.02);
}

.hero-loader__slide.active {
    opacity: 1;
}

@keyframes loaderSlideZoom {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}

/* Dark overlay */
.hero-loader__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    z-index: 1;
}

/* Content wrapper */
.hero-loader__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--lt-font);
    color: #ffffff;
    direction: rtl;
}

/* Logo */
.hero-loader__logo {
    width: 600px;
    max-width: 80vw;
    height: auto;
    margin-bottom: auto;
    margin-top: auto;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.4));
    animation: loaderLogoFloat 3s ease-in-out infinite;
}

@keyframes loaderLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Progress area — anchored to bottom */
.hero-loader__progress {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 300px;
}

.hero-loader__percent {
    font-size: 28px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-loader__bar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.hero-loader__bar-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════════════════ */
.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 50px 0 0;
    direction: rtl;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s ease;
    pointer-events: none;
}

/* Dark background behind nav when scrolling — makes nav readable */
.hero-nav.scrolled {
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.7) 70%, transparent 100%);
    padding-bottom: 30px;
}

.hero-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.hero-nav__inner {
    max-width: 91.67%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ── Ticket Button (Right) ── stays ABOVE the dest-panel */
.hero-nav__ticket {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 1102;
}

.hero-nav__hamburger {
    width: 50px;
    height: 50px;
    background: var(--lt-main);
    border: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    transition: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* Kill any browser/theme hover color on the hamburger button */
.hero-nav__hamburger:hover,
.hero-nav__hamburger:focus,
.hero-nav__hamburger:active {
    background: var(--lt-main) !important;
    outline: none;
    box-shadow: none;
}

.hero-nav__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → hover: lines spread (BOTH direct hover AND parent ticket hover) */
.hero-nav__hamburger:hover span:first-child,
.hero-nav__ticket:hover .hero-nav__hamburger span:first-child {
    transform: translateY(-2px);
}

.hero-nav__hamburger:hover span:last-child,
.hero-nav__ticket:hover .hero-nav__hamburger span:last-child {
    transform: translateY(2px);
}

/* Hamburger → X state (when panel is open) */
.hero-nav__ticket.is-open .hero-nav__hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hero-nav__ticket.is-open .hero-nav__hamburger span:nth-child(2) {
    opacity: 0;
}

.hero-nav__ticket.is-open .hero-nav__hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Ticket Label (text slide) ── */
.hero-nav__ticket-label {
    width: 139px;
    height: 50px;
    background: #fff;
    border-radius: 0 12px 12px 0;
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--lt-dark);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    position: relative;
}

/* The text wrapper — fills the label, clips overflow, positions text */
.hero-nav__ticket-label-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    transition: transform 0.35s ease;
    position: relative;
    line-height: 50px;
}

.hero-nav__ticket-label-text::after {
    content: attr(data-text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-nav__ticket:hover .hero-nav__ticket-label-text {
    transform: translateY(-100%);
}

/* ── Logo (Center) ── */
.hero-nav__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hero-nav__logo img {
    width: 140px;
    height: auto;
}

/* Hide ONLY the logo when panel is open (ticket + links stay visible above panel) */
.hero-nav.panel-open-nav .hero-nav__logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ── Menu Links (Left) ── */
.hero-nav__links {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Link hover slide animation */
.hero-nav__link {
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    color: #fff !important;
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 500;
    height: 1.3em;
    position: relative;
}

.hero-nav__link-text {
    display: block;
    transition: transform 0.35s ease;
}

.hero-nav__link-text::after {
    content: attr(data-text);
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
}

.hero-nav__link:hover .hero-nav__link-text {
    transform: translateY(-100%);
}

/* ── Contact Button (Left) ── */
.hero-nav__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 12px;
    background: transparent !important;
    color: #fff !important;
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

/* No fill — just a subtle border glow on hover */
.hero-nav__contact:hover {
    color: #fff !important;
    background: transparent !important;
    border-color: var(--lt-main);
    box-shadow: 0 0 14px rgba(61, 204, 226, 0.3);
}

/* ══════════════════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   Hero Scroll Zone — provides scroll room for the transition
   ══════════════════════════════════════════════════════════ */
.hero-scroll-zone {
    position: relative;
    width: 100%;
    height: 200vh; /* 100vh hero + 100vh scroll room for transition */
    background: #0a1628 url('../images/bg_1.jpg') center / cover no-repeat fixed;
}

.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: transparent;
    z-index: 5;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Globe shift left when panel is open */
.hero.panel-open .hero__canvas {
    transform: translateX(-25%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    pointer-events: none;
}

/* ── Hero Content ── */
.hero__content {
    position: absolute;
    right: 4.17%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #fff;
    direction: rtl;
    opacity: 0;
    animation: heroContentFadeIn 1s ease 1.5s forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hide hero content when panel is open */
.hero.panel-open .hero__content {
    opacity: 0 !important;
    transform: translateY(-50%) translateX(50px);
    pointer-events: none;
}

@keyframes heroContentFadeIn {
    to {
        opacity: 1;
    }
}

.hero__title {
    font-family: var(--lt-font);
    font-size: 62px;
    font-weight: 700;
    line-height: 68px;
    margin: 0 0 20px;
    white-space: nowrap;
}

.hero__subtitle {
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    margin: 0;
    opacity: 0.85;
}

/* ── Bottom Right: Text + animated line ── */
.hero__next-dest {
    position: absolute;
    bottom: 60px;
    right: 4.17%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
    z-index: 3;
    direction: rtl;
    opacity: 0;
    animation: heroContentFadeIn 1s ease 2s forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero.panel-open .hero__next-dest {
    opacity: 0 !important;
    pointer-events: none;
}

.hero__next-dest span {
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    order: 2;
}

.hero__next-dest-line {
    width: 129px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    order: 1;
}

.hero__next-dest-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    animation: lineSlide 2s ease-in-out infinite;
}

@keyframes lineSlide {
    0% { left: 100%; }
    50% { left: 50%; }
    100% { left: -50%; }
}

/* ── Bottom Left: Flight Button (fixed position) ── */
.hero__flights-btn {
    position: fixed;
    bottom: 60px;
    left: 4.17%;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 164px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--lt-dark);
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 600;
    z-index: 1100;
    direction: rtl;
    overflow: hidden;
    opacity: 0;
    animation: heroContentFadeIn 1s ease 2s forwards;
    transition: box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease, visibility 0.3s ease;
}

.hero__flights-btn:hover {
    box-shadow: 0 4px 20px rgba(61, 204, 226, 0.3);
}

.hero__flights-btn-text {
    position: relative;
    z-index: 1;
}

.hero__flights-btn-plane {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.hero__flights-btn:hover .hero__flights-btn-plane {
    animation: planeFly 0.6s ease forwards;
}

@keyframes planeFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    40% { transform: translate(15px, -15px) scale(0.6); opacity: 0; }
    41% { transform: translate(-15px, 15px) scale(0.6); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* ── Globe shifts left when panel opens ── */
.hero.panel-open .hero__canvas {
    transform: translateX(-20%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__canvas {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ══════════════════════════════════════════════════════════
   Destinations Panel (slides from the right — 50% width)
   ══════════════════════════════════════════════════════════ */
.dest-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 120px 40px 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    direction: rtl;
}

.dest-panel.open {
    transform: translateX(0);
}

/* No overlay — globe stays visible and clickable */
.dest-panel__overlay {
    display: none !important;
}

.dest-panel__header {
    margin-bottom: 30px;
}

.dest-panel__title {
    font-family: var(--lt-font);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

/* ── Continent Filter Tabs ── */
.dest-panel__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.dest-panel__tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--lt-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.dest-panel__tab:hover {
    border-color: rgba(61, 204, 226, 0.4);
    color: #fff;
    background: rgba(61, 204, 226, 0.08);
}

.dest-panel__tab.active {
    background: var(--lt-main);
    border-color: var(--lt-main);
    color: #fff;
    font-weight: 600;
}

/* ── Destination Cards Grid ── */
.dest-panel__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Destination Card with Image ── */
.dest-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
    overflow: hidden;
}

.dest-card:hover {
    background: rgba(61, 204, 226, 0.12);
    transform: translateY(-4px);
    border-color: rgba(61, 204, 226, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dest-card__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.dest-card__body {
    padding: 14px 16px;
}

.dest-card__name {
    font-family: var(--lt-font);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}

.dest-card__desc {
    font-family: var(--lt-font);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.dest-card__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px 12px;
    color: var(--lt-main);
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dest-card:hover .dest-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ════════════════════════════════════
   Continent labels on globe (positioned by JS)
   ════════════════════════════════════ */
.continent-label {
    position: absolute;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    font-family: var(--lt-font);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(61, 204, 226, 0.15);
    border: 1px solid rgba(61, 204, 226, 0.25);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.continent-label:hover {
    color: #fff;
}

/* Continent labels stay visible when panel is open — panel covers right half anyway */

/* Hide hello-elementor header */
body.home .site-header,
body.home .site-navigation {
    display: none;
}

/* ══════════════════════════════════════════════════════════
   Section 2 — Africa
   Layered: africa.png (bg) → AFRICA text → africa-overlay.png (fg)
   ══════════════════════════════════════════════════════════ */
.section-africa {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: #0a1628;
    margin-top: -100vh; /* overlap hero scroll-zone for seamless transition */
    opacity: 0; /* JS controls — stays 0 during scroll */
    transition: opacity 1s ease;
}

.section-africa.visible {
    opacity: 1;
}

/* Background layer — full image */
.section-africa__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.section-africa__img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title — centered between layers, entrance animation */
.section-africa__title {
    position: relative;
    z-index: 2;
    font-family: var(--lt-font);
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    margin: 0;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-africa__title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay layer — sits on top of title */
.section-africa__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.section-africa__img-overlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ══════════════════════════════════════════════════════════
   Globe → Africa Transition Overlay
   Fills the hero with darkness as we zoom into the continent
   ══════════════════════════════════════════════════════════ */
.hero__transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: #0a1628;
    opacity: 0;
    pointer-events: none;
}