/* ==========================================================================
   1. SZEKCIÓ: GLOBÁLIS ALAPSTÍLUSOK ÉS BETŰTÍPUSOK
   ========================================================================== */

/* AFACAD FLUX BETŰTÍPUSOK */
@font-face {
    font-family: 'Afacad Flux';
    src: url('font/AfacadFlux-Regular.woff2') format('woff2'),
         url('font/AfacadFlux-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Afacad Flux';
    src: url('font/AfacadFlux-Medium.woff2') format('woff2'),
         url('font/AfacadFlux-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Afacad Flux';
    src: url('font/AfacadFlux-SemiBold.woff2') format('woff2'),
         url('font/AfacadFlux-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Afacad Flux';
    src: url('font/AfacadFlux-Bold.woff2') format('woff2'),
         url('font/AfacadFlux-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* COMFORTAA BETŰTÍPUSOK */
@font-face {
    font-family: 'Comfortaa';
    src: url('font/Comfortaa-Medium.woff2') format('woff2'),
         url('font/Comfortaa-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

/* ALAPSTÍLUSOK */
body {
    font-family: 'Afacad Flux', sans-serif;
    background-color: #F4ECE1;
    color: #143824;
    -webkit-font-smoothing: antialiased; /* Szebb, simább betűmegjelenítés */
}

body {
    font-family: 'Afacad Flux', sans-serif;
    background-color: #F4ECE1;
    color: #143824;
    -webkit-font-smoothing: antialiased; /* Szebb, simább betűmegjelenítés */
}


/* ==========================================================================
   2. SZEKCIÓ: HULLÓ LEVELEK ANIMÁCIÓJA (ERDEI HATÁS) - JAVÍTOTT, FIXÁLT VERZIÓ
   ========================================================================== */

/* A teljes kijelzőt lefedő fix konténer, ami végigkíséri a felhasználót görgetés közben */
.leaf-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 40 !important; /* A fehér háttér (z-10) felett, de a fejléc (z-50) alatt */
}

/* Alap levél osztály GPU hardveres gyorsítással */
.bakony-leaf {
    position: absolute;
    pointer-events: none;
    display: block;
    will-change: transform, top;
}

/* --- HÁROM KÜLÖNBÖZŐ JAVÍTOTT MOZGÁSI ÚTVONAL (NÉZETABLAKHOZ IGAZÍTVA) --- */
@keyframes leaf-fall-sway-1 {
    0% {
        top: -6vh;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 106vh;
        transform: translateX(140px) rotate(640deg);
    }
}

@keyframes leaf-fall-sway-2 {
    0% {
        top: -6vh;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 106vh;
        transform: translateX(-140px) rotate(-520deg);
    }
}

@keyframes leaf-fall-sway-3 {
    0% {
        top: -6vh;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 106vh;
        transform: translateX(70px) rotate(360deg);
    }
}

/* Animációs osztályok hozzárendelése */
.leaf-anim-1 {
    animation: leaf-fall-sway-1 linear infinite;
}
.leaf-anim-2 {
    animation: leaf-fall-sway-2 linear infinite;
}
.leaf-anim-3 {
    animation: leaf-fall-sway-3 linear infinite;
}



/* Játékos aura pulzálás a szolgáltatásoknál */
@keyframes aura-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.group:hover .absolute {
    animation: aura-pulse 2s infinite ease-in-out;
}

/* ==========================================================================
   3. SZEKCIÓ: SZOLGÁLTATÁS KÁRTYA ÉS GOMB ANIMÁCIÓK (JAVÍTOTT)
   ========================================================================== */

/* Finom lebegés és árnyék effekt a szolgáltatás kártyákra rámutatáskor */
.service-item {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px -12px rgba(20, 56, 36, 0.2) !important;
}

/* Kiemelt gombok pulzáló/kattanó effektusa (ha van ilyen osztályod) */
.btn-premium-pop {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-pop:hover {
    transform: scale(1.06) translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(226, 149, 19, 0.35) !important;
}


/* ==========================================================================
   4. SZEKCIÓ: TÉRKÉP HOTSPOT PULZÁLÁS
   ========================================================================== */
@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(226, 149, 19, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(226, 149, 19, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(226, 149, 19, 0);
    }
}
.map-hotspot {
    animation: pulse-orange 2s infinite;
}


/* ==========================================================================
   5. SZEKCIÓ: MOBIL NÉZET - OKOSTELEFON VÁZ STRUKTÚRA
   ========================================================================== */

/* A telefont imitáló külső keret */
.phone-frame {
    border: 12px solid #1e293b;
    border-radius: 40px;
    box-shadow: 0 30px 60px -15px rgba(20, 56, 36, 0.2);
    width: 360px;
    height: 720px;
    position: relative;
    background-color: #FCF9F2;
    overflow: hidden;
}

/* Belső, görgethető tartalom a telefonon binnen */
.phone-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Felső kamerasziget (Notch) a telefon tetején */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 18px;
    background-color: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 999;
}


/* ==========================================================================
   6. SZEKCIÓ: NÉZETVÁLTÓ ÉS MOBIL MENÜ LOGIKA
   ========================================================================== */
.view-section {
    display: none !important;
}
.view-section.active-view {
    display: block !important;
}
#view-mobile-home.active-view {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Becsúszó mobil menü háttere */
#mobile-menu-overlay {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-100%);
    opacity: 0;
}
#mobile-menu-overlay.menu-open {
    transform: translateY(0);
    opacity: 1;
}


/* ==========================================================================
   7. SZEKCIÓ: PARALLAX TÁJKÉP MEZŐ (VÉGTELENÍTETT HÁTTÉRMEDER)
   ========================================================================== */

/* Megegyezik a HTML 380px-es magasságával, nem nyomja össze a teret */
.landscape-parallax-container, #parallax-view-box {
    position: relative;
    width: 100%;
    height: 380px !important;
    overflow: hidden;
    background: transparent;
    z-index: 10;
}

/* Biztosítjuk, hogy a rétegek kitöltsék a teret és jól fedjék egymást */
.parallax-layer-back, .parallax-layer-mid, .parallax-layer-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: 2000px auto;
}


/* ==========================================================================
   8. SZEKCIÓ: ANIMÁLT BRINGÁSOK (A VALÓDI HTML SZERKEZETHEZ IGAZÍTVA)
   ========================================================================== */

/* Valósághű bringás döccenés/rugózás */
@keyframes bike-bob {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Kerekek forgástengelyeinek hajszálpontos igazítása az 120x120-as SVG-hez */
.wheel-target {
    animation: wheel-spin linear infinite;
    transform-origin: 25px 95px !important; /* Hátsó kerék középpontja */
}

.wheel-front {
    transform-origin: 95px 95px !important; /* Első kerék középpontja */
}

/* Alap kerékforgás sebességek szinkronizálása a haladással */
.biker-anim-1 .wheel-target {
    animation-duration: 1.2s;
}
.biker-anim-2 .wheel-target {
    animation-duration: 1.7s;
}
.biker-anim-3 .wheel-target {
    animation-duration: 2.7s;
}
.biker-anim-4 .wheel-target {
    animation-duration: 2.2s;
}


/* ==========================================================================
   9. SZEKCIÓ: MADÁR RAJ ANIMÁCIÓK
   ========================================================================== */

.bird-wing-left, .bird-wing-right {
    transform-origin: 24px 16px !important;
}


/* ==========================================================================
   10. SZEKCIÓ: SZOLGÁLTATÁS KÁRTYÁK HOVER ÉS 3D HATÁSAI
   ========================================================================== */

.service-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease-out forwards;
}

.grid .service-item:nth-child(1) {
    animation-delay: 0.1s;
}
.grid .service-item:nth-child(2) {
    animation-delay: 0.15s;
}
.grid .service-item:nth-child(3) {
    animation-delay: 0.2s;
}
.grid .service-item:nth-child(4) {
    animation-delay: 0.25s;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #E29513 !important;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(226, 149, 19, 0.4) !important;
}

/* Kis kártya-ikonok térbeli kiugrása */
.service-item .w-10 {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.service-item:hover .w-10 {
    transform: translateY(-6px) scale(1.15) !important;
    box-shadow: 0 12px 18px -4px rgba(244, 158, 30, 0.5) !important;
}

/* Fő gombok emelkedése */
button[type="submit"],
a[class*="bg-[#F49E1E]"] {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
}
button[type="submit"]:hover,
a[class*="bg-[#F49E1E]"]:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 15px 25px -5px rgba(244, 158, 30, 0.4) !important;
}
button[type="submit"]:active,
a[class*="bg-[#F49E1E]"]:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 5px 10px -2px rgba(244, 158, 30, 0.3) !important;
}


/* ==========================================================================
   11. SZEKCIÓ: INTERAKTÍV PARKTERKÉP PIN JAVÍTÁSOK (TISZTA VERZIÓ)
   ========================================================================== */

.fa-spin-slow {
    animation: spin-slow 25s linear infinite;
}
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alap gombostű (Pin) stílus */
.map-pin {
    width: 34px;
    height: 34px;
    background-color: #143824;
    border: 2px solid #F4ECE1;
    color: #F49E1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 30;
    /* JAVÍTÁS: Százalékos eltolás a tökéletes középpontba igazításhoz minden kijelzőn */
    transform: translate(-50%, -50%) !important;
    font-size: 18px; /* Az ikonok mérete a gombokon belül */
}

@media (min-width: 768px) {
    .map-pin {
        width: 38px;
        height: 38px;
    }
}

.map-pin:hover,
.map-pin.active-pin {
    background-color: #F49E1E;
    color: #F4ECE1;
    /* JAVÍTÁS: A méretnövelés során is megmarad a tökéletes középpontos elrendezés */
    transform: translate(-50%, -50%) scale(1.2) !important;
    box-shadow: 0 0 22px rgba(244, 158, 30, 0.7);
    z-index: 40;
}

.map-pin-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #F49E1E;
    animation: pin-radar 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

.map-pin.active-pin .map-pin-pulse {
    border-color: #F4ECE1;
    animation-duration: 1.6s;
}

@keyframes pin-radar {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

#leaf-container-left, #leaf-container-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - 1100px) / 2);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
#leaf-container-left {
    left: 0;
}
#leaf-container-right {
    right: 0;
}
@media (max-width: 1100px) {
    #leaf-container-left, #leaf-container-right {
        display: none;
    }
}
.leaf {
    position: absolute;
    top: -10%;
    pointer-events: none;
    will-change: transform;
}
.leaf-sway {
    width: 100%;
    height: 100%;
    transform-origin: center;
}
.leaf-svg {
    width: 100%;
    height: 100%;
    display: block;
}
@keyframes fall {
    0% {
        transform: translateY(-10vh);
    }
    100% {
        transform: translateY(110vh);
    }
}
@keyframes sway {
    0% {
        transform: translateX(-25px) rotate(-30deg);
    }
    50% {
        transform: translateX(25px) rotate(30deg);
    }
    100% {
        transform: translateX(-25px) rotate(-15deg);
    }
}