html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

#main-nav { z-index: 9999 !important; }
.nav-scrolled { background: rgba(2, 73, 89, 0.98) !important; padding: 10px 0 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-slider { height: 100vh; width: 100%; position: relative; }
.swiper-slide { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-content { position: relative; text-align: center; width: 100%; }

/* Hero: tamnjenje samo iznad fotografije, ispod teksta (i tokom Swiper prelaza) */
.mainSwiper .swiper-slide > img {
    z-index: 0;
}
.mainSwiper .slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
/* iOS/mobile: tamnjenje na istom sloju kao slika (Swiper transform gubi sibling-overlay) */
@media (max-width: 767.98px) {
    .mainSwiper .slide-overlay {
        display: none;
    }
    .mainSwiper .swiper-slide > img {
        filter: brightness(0.58);
        -webkit-filter: brightness(0.58);
    }
}
.text-shadow { text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.seo-text-p { margin-bottom: 1.5rem; line-height: 1.8; color: #4a5568; text-align: justify; }

/* iOS Safari: tekst iznad overlaya; fade tokom prelaza */
.mainSwiper .swiper-slide .hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.45s ease, transform 0.45s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.mainSwiper .swiper-slide-active .hero-content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.mainSwiper .swiper-slide img,
.mainSwiper .hero-content,
.mainSwiper h1,
.mainSwiper h2,
.mainSwiper p,
.mainSwiper .hero-cta {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* FAQ GOSPODSKI STIL */
details summary::-webkit-details-marker { display:none; }
details summary { list-style: none; outline: none; cursor: pointer; }
details[open] summary i { transform: rotate(180deg); color: #F27405; }
details { transition: all 0.3s ease; }

.hero-slider {
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

#main-nav {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 99999;
    transform: translateZ(0);
    will-change: transform;
    min-height: 68px;
}

#main-nav {
    will-change: transform, background;
    backface-visibility: hidden;
}

#main-nav.nav-scrolled #nav-inner {
    padding-left: 1rem;
    padding-right: 1rem;
}

.swiper-slide img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    max-width: 100%;
}

.desktop-cta {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f27405, #fb923c);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px rgba(242, 116, 5, 0.35);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.desktop-cta:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 16px 30px rgba(242, 116, 5, 0.42);
    filter: brightness(1.06);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    color: #fff;
    background: rgba(2, 73, 89, 0.12);
    backdrop-filter: blur(3px);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
    background: rgba(242, 116, 5, 0.22);
    border-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.hero-cta:active {
    transform: translateY(0);
}

.price-prefix {
    display: inline-block;
    font-size: 0.42em;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
    vertical-align: top;
    transform: translateY(-0.28em);
    margin-right: 0.08rem;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    #main-nav {
        background: transparent;
        box-shadow: none;
    }

    #nav-inner {
        gap: 0.5rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    #brand-text {
        white-space: nowrap;
        font-size: 1.02rem;
    }

    #main-nav:not(.nav-scrolled) #brand-text {
        font-size: 1.12rem;
    }

    #main-nav:not(.nav-scrolled) .fa-mountain-sun {
        font-size: 1.35rem;
    }

    #menu-btn {
        font-size: 1.45rem;
        padding: 0.4rem;
    }

    .hero-cta {
        padding: 0.85rem 1.5rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    #main-nav.nav-scrolled {
        background: rgba(2, 73, 89, 0.98) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    #main-nav.nav-scrolled #nav-inner {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

@media (min-width: 768px) {
    #main-nav.nav-scrolled #nav-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.mobile-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    box-shadow: 0 10px 24px rgba(242, 116, 5, 0.35);
    background: linear-gradient(135deg, #f27405, #f59e0b);
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: ctaPulse 2.2s ease-in-out infinite;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
    .mobile-cta {
        right: 14px;
        bottom: 14px;
        padding: 1.2rem 1.8rem;
        font-size: 14px;
        letter-spacing: 0.08em;
        border-radius: 9999px;
    }
}

.mobile-cta:hover,
.mobile-cta:active {
    filter: brightness(1.05);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(242, 116, 5, 0.35), 0 0 0 0 rgba(242, 116, 5, 0.45);
    }
    50% {
        box-shadow: 0 10px 24px rgba(242, 116, 5, 0.35), 0 0 0 10px rgba(242, 116, 5, 0);
    }
}

.gallery-grid {
    columns: 2;
    column-gap: 0.75rem;
}

.gallery-section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 1rem;
    cursor: zoom-in;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.tour-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tour-attr {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #024959;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    padding: 0.45rem 0.75rem;
}

.tour-attr i {
    color: #f27405;
}

.smjestaj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .smjestaj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .smjestaj-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        columns: 4;
        column-gap: 1.25rem;
    }

    .gallery-item {
        margin-bottom: 1.25rem;
    }
}
