/*--------------------------------------------------------------
Nova početna (template-home-new.php)
--------------------------------------------------------------*/

/* ---------- Hero slajder ---------- */
.hn-hero {
    position: relative;
    height: clamp(380px, 42vw, 600px);
    overflow: hidden;
    background: #0b2a44;
    color: #fff;
}
.hn-hero__slides { position: absolute; inset: 0; }
.hn-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility 0s linear .8s;
}
.hn-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease, visibility 0s;
    z-index: 1;
}
.hn-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}
.hn-slide.is-active .hn-slide__img { transform: scale(1); }
.hn-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 24, 44, .86) 0%, rgba(6, 24, 44, .62) 34%, rgba(6, 24, 44, .18) 64%, rgba(6, 24, 44, 0) 82%),
        linear-gradient(0deg, rgba(6, 24, 44, .55) 0%, rgba(6, 24, 44, 0) 38%);
}
.hn-slide__in {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 84px; /* donjih 64px pokriva pretraga */
}
.hn-slide__txt {
    max-width: 640px;
    padding: 0;
}
.hn-slide__txt > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.hn-slide.is-active .hn-slide__txt > * { opacity: 1; transform: none; }
.hn-slide.is-active .hn-slide__txt > :nth-child(2) { transition-delay: .1s; }
.hn-slide.is-active .hn-slide__txt > :nth-child(3) { transition-delay: .2s; }
.hn-slide.is-active .hn-slide__txt > :nth-child(4) { transition-delay: .3s; }

/* mala oznaka: žuta crtica + tekst */
.hn-slide__oznaka {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hn-slide__oznaka::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: #f8bf37;
}
.hn-slide .hn-slide__naslov {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
    text-transform: none;
    text-wrap: balance;
}
.hn-slide .hn-slide__podnaslov {
    max-width: 520px;
    margin: 16px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.5;
}

/* cena (tipografski blok) | dugme */
.hn-slide__akcije {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 30px;
}
.hn-slide__cena {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, .28);
}
.hn-slide__cena:last-child { padding-right: 0; border-right: 0; }
.hn-slide__cena-lbl {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hn-slide__cena-iznos {
    color: #f8bf37;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
}
.hn-slide__cena--tekst .hn-slide__cena-iznos { font-size: 22px; line-height: 1.2; }
.hn-slide .hn-slide__dugme {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 7px 7px 7px 24px;
    border-radius: 999px;
    background: #fff;
    color: #0b2a44;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.hn-slide__dugme-ik {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #04b0ef;
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hn-slide .hn-slide__dugme:hover,
.hn-slide .hn-slide__dugme:focus {
    background: #04b0ef;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(4, 176, 239, .45);
}
.hn-slide__dugme:hover .hn-slide__dugme-ik,
.hn-slide__dugme:focus .hn-slide__dugme-ik { background: #fff; color: #04b0ef; transform: translateX(3px); }

/* kontrole: brojač, progres, strelice - jedna traka dole desno */
.hn-hero__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 92px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}
.hn-hero__ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 6px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(6, 24, 44, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}
.hn-hero__broj {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hn-hero__broj b { color: #fff; font-size: 16px; }
.hn-hero__broj i { margin: 0 4px; font-style: normal; }
.hn-hero__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.hn-hero__nav--prev { margin-left: 4px; }
.hn-hero__nav--next { margin-left: -8px; }
.hn-hero__nav:hover,
.hn-hero__nav:focus-visible { background: #fff; color: #0b2a44; outline: none; }

.hn-hero__dots {
    display: flex;
    gap: 6px;
}
.hn-hero__dot {
    position: relative;
    width: 22px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
    cursor: pointer;
    transition: width .3s ease;
}
.hn-hero__dot.is-active { width: 40px; background: rgba(255, 255, 255, .55); }
.hn-hero__dot span {
    position: absolute;
    inset: 0;
    width: 0;
    background: #f8bf37;
}
.hn-hero__dot.is-active span { animation: hnProgres var(--hn-trajanje, 6s) linear forwards; }
.hn-hero.is-paused .hn-hero__dot.is-active span { animation-play-state: paused; }
@keyframes hnProgres { to { width: 100%; } }

@media (max-width: 991px) {
    .hn-hero__dots { display: none; }
}
@media (max-width: 767px) {
    .hn-hero { height: 480px; }
    .hn-slide__shade {
        background: linear-gradient(0deg, rgba(6, 24, 44, .92) 0%, rgba(6, 24, 44, .5) 55%, rgba(6, 24, 44, .12) 100%);
    }
    /* tekst u gornjem delu (iznad trake sa strelicama i pretrage) */
    .hn-slide__in { align-items: center; padding-top: 18px; padding-bottom: 112px; }
    .hn-slide__akcije { gap: 14px 20px; margin-top: 22px; }
    .hn-slide__cena { padding-right: 20px; }
    .hn-slide .hn-slide__dugme { font-size: 15px; padding-left: 18px; }
    .hn-slide__dugme-ik { width: 34px; height: 34px; }
    .hn-hero__bar { bottom: 56px; justify-content: flex-start; }
    .hn-hero__ctrl { padding: 4px 4px 4px 14px; gap: 10px; }
    .hn-hero__nav { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-slide, .hn-slide__img, .hn-slide__txt > * { transition: none; }
    .hn-slide__img { transform: none; }
}

/* pretraga ispod slajdera */
.page-template-template-home-new #filteri-home { margin-top: 0; }

/* ---------- Boksovi ---------- */
.hn-boksovi { padding: 10px 0 30px; }
.hn-box {
    --hn-akcent: #04b0ef;
    padding: 44px 0 14px;
}
.hn-box--alt { background: #f5f9fc; }
.hn-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.hn-box .hn-box__naslov {
    position: relative;
    margin: 0;
    padding: 0 0 0 16px;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}
.hn-box__naslov::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: var(--hn-akcent);
}
.hn-box__desno {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}
.hn-box .hn-box__sve {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0879a5;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.hn-box .hn-box__sve:hover { color: #04b0ef; text-decoration: none; }
.hn-box__sve svg { transition: transform .2s ease; }
.hn-box__sve:hover svg { transform: translateX(3px); }

.hn-rail__nav { display: flex; gap: 8px; }
.hn-rail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dbe5ee;
    border-radius: 50%;
    background: #fff;
    color: #0879a5;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.hn-rail__btn:hover:not(:disabled) { background: #04b0ef; border-color: #04b0ef; color: #fff; }
.hn-rail__btn:disabled { opacity: .35; cursor: default; }

/* traka sa karticama */
.hn-rail { --hn-gap: 20px; position: relative; }
.hn-rail__track {
    display: flex;
    gap: var(--hn-gap);
    padding: 6px 4px 26px;
    margin: -6px -4px 0;
}
.hn-rail__item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    /* bez slajdera kartice popune red, ali nijedna nije šira od 1/3 (1/2 kad je "2 u redu") */
    max-width: calc((100% - (min(var(--hn-po-redu, 5), 3) - 1) * var(--hn-gap)) / min(var(--hn-po-redu, 5), 3));
}
/* slajder: --hn-po-redu kartica u redu (ACF "Kartica u redu"), ostale se skroluju */
.hn-rail.is-slider .hn-rail__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hn-rail.is-slider .hn-rail__track::-webkit-scrollbar { display: none; }
.hn-rail.is-slider .hn-rail__item {
    flex: 0 0 calc((100% - (var(--hn-po-redu, 5) - 1) * var(--hn-gap)) / var(--hn-po-redu, 5));
    max-width: none;
    scroll-snap-align: start;
}

/* kartica ponude (preuzima izgled .objekat-kartica) */
.hn-rail .single-destinacija.objekat-kartica.hn-kartica {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}
.hn-kartica .ok-media { aspect-ratio: 432 / 300; }
.hn-kartica .ok-glass { justify-content: flex-start; }
.hn-rail .single-destinacija.objekat-kartica h3 { font-size: 18px; }
.hn-kartica .hn-opis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 8px 0 0;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}
.hn-kartica .ok-status { min-width: 0; }
.hn-kartica .ok-footer { padding-top: 4px; }

@media (max-width: 1199px) {
    .hn-rail.is-slider .hn-rail__item { flex-basis: calc((100% - (min(var(--hn-po-redu, 5), 4) - 1) * var(--hn-gap)) / min(var(--hn-po-redu, 5), 4)); }
}
@media (max-width: 991px) {
    .hn-rail__track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .hn-rail__track::-webkit-scrollbar { display: none; }
    .hn-rail__item,
    .hn-rail.is-slider .hn-rail__item {
        flex: 0 0 calc((100% - 2 * var(--hn-gap)) / 2.6);
        max-width: none;
        scroll-snap-align: start;
    }
}
@media (max-width: 767px) {
    .hn-box { padding-top: 32px; }
    .hn-box .hn-box__naslov { font-size: 22px; }
    .hn-rail { --hn-gap: 14px; }
    .hn-rail__nav { display: none; }
    .hn-rail__item,
    .hn-rail.is-slider .hn-rail__item { flex-basis: 78%; }
}

/* ---------- Box 6 ("U ponudi"): slika preko cele kartice, tekst preko slike ---------- */
.hn-box--preko .hn-rail .single-destinacija.objekat-kartica.hn-kartica {
    position: relative;
    min-height: 420px;
    padding: 0;
    overflow: hidden;
    background: #0b2a44;
    isolation: isolate;
}
.hn-box--preko .hn-kartica .ok-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0;
    aspect-ratio: auto;
}
/* gradijent u donjem delu - odvaja tekst od slike */
.hn-box--preko .hn-kartica .ok-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 22, 42, .92) 0%, rgba(4, 22, 42, .7) 32%, rgba(4, 22, 42, .15) 62%, rgba(4, 22, 42, 0) 78%);
    pointer-events: none;
}
.hn-box--preko .hn-kartica .ok-glass {
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    z-index: 2;
}
.hn-box--preko .hn-kartica .ok-body {
    position: relative;
    flex: none;
    margin-top: auto;
    padding: 0 20px 20px;
    pointer-events: none; /* klik prolazi do slike */
}
.hn-box--preko .hn-kartica .ok-body a { pointer-events: auto; }
.hn-box--preko .hn-kartica .ok-status { color: #8fdcff; }
.hn-box--preko .hn-kartica .ok-dot { background: #8fdcff; }
.hn-box--preko .single-destinacija.objekat-kartica.hn-kartica h3 { font-size: 22px; }
.hn-box--preko .single-destinacija.objekat-kartica.hn-kartica h3 a { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hn-box--preko .single-destinacija.objekat-kartica.hn-kartica h3 a:hover { color: #8fdcff; }
.hn-box--preko .hn-kartica .hn-opis { color: rgba(255, 255, 255, .85); }
.hn-box--preko .single-destinacija.objekat-kartica.hn-kartica:hover .ok-slika img { transform: scale(1.06); }

@media (max-width: 767px) {
    .hn-box--preko .hn-rail .single-destinacija.objekat-kartica.hn-kartica { min-height: 380px; }
}

/* ---------- Pretraga (tip ponude / država / destinacija) ---------- */
.hn-pretraga-wrap { position: relative; z-index: 6; padding-top: 30px; }
.hn-pretraga-wrap.has-hero { margin-top: -64px; padding-top: 0; }

.hn-pretraga {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 12px 12px 12px 20px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 40, 70, .16), 0 2px 6px rgba(15, 40, 70, .05);
}
.hn-pretraga .hn-pf {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}
.hn-pretraga .hn-pf + .hn-pf::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: #e5e9ef;
}
.hn-pretraga .hn-pf:hover { background: #f5f9fc; }
.hn-pretraga .hn-pf:focus-within { background: #eef7fc; box-shadow: inset 0 0 0 2px rgba(4, 176, 239, .35); }
.hn-pretraga .hn-pf:hover::before,
.hn-pretraga .hn-pf:hover + .hn-pf::before,
.hn-pretraga .hn-pf:focus-within::before,
.hn-pretraga .hn-pf:focus-within + .hn-pf::before { opacity: 0; }

.hn-pf__ik { flex: none; margin-top: 1px; color: #0879a5; }
.hn-pf__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hn-pf__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.hn-pf__chev { color: #6b7280; transition: transform .2s ease; }
.hn-pf:focus-within .hn-pf__chev { transform: rotate(180deg); }

.hn-pretraga .hn-pf select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: auto;
    margin: 5px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    cursor: pointer;
    outline: none;
}
.hn-pretraga .hn-pf select:disabled { color: #a3aab5; cursor: not-allowed; }
.hn-pretraga .hn-pf:has(select:disabled) { cursor: not-allowed; }
.hn-pretraga .hn-pf:has(select:disabled):hover { background: transparent; }
.hn-pretraga.is-loading .hn-pf:has([name="state"]) .hn-pf__ik { animation: hnPuls 1s ease-in-out infinite; }
@keyframes hnPuls { 50% { opacity: .35; } }

/* država nije izabrana */
.hn-pretraga .hn-pf.is-greska { animation: hnTrese .4s ease; background: #fff4f8; }
.hn-pretraga .hn-pf.is-greska .hn-pf__label,
.hn-pretraga .hn-pf.is-greska .hn-pf__ik { color: #ed3395; }
@keyframes hnTrese { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.hn-pretraga .hn-pretraga__btn {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 14px 18px;
    border: 0;
    border-radius: 16px;
    background: #f8bf37;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hn-pretraga .hn-pretraga__btn:hover,
.hn-pretraga .hn-pretraga__btn:focus-visible {
    background: #f5b01a;
    box-shadow: 0 10px 24px rgba(248, 191, 55, .45);
    outline: none;
}
.hn-pretraga .hn-pretraga__btn:active { transform: translateY(1px); }

@media (max-width: 991px) {
    .hn-pretraga { flex-wrap: wrap; padding: 10px; }
    .hn-pretraga .hn-pf { flex: 1 1 30%; padding: 14px 12px; }
    .hn-pf__label { font-size: 16px; }
    .hn-pretraga .hn-pretraga__btn { flex: 1 1 100%; flex-direction: row; padding: 14px; }
}
@media (max-width: 767px) {
    .hn-pretraga-wrap.has-hero { margin-top: -40px; }
    .hn-pretraga { flex-direction: column; gap: 0; border-radius: 18px; }
    .hn-pretraga .hn-pf { flex: none; padding: 13px 10px; }
    .hn-pretraga .hn-pf + .hn-pf::before { left: 10px; right: 10px; top: 0; bottom: auto; width: auto; height: 1px; }
    .hn-pretraga .hn-pretraga__btn { flex: none; margin-top: 8px; }
    .hn-pretraga { padding: 8px 10px 10px; }
    /* strelica skroz desno u polju */
    .hn-pf__label { justify-content: flex-start; }
    .hn-pf__chev { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-pretraga .hn-pf.is-greska { animation: none; }
}

/* brzi linkovi ispod pretrage (ACF "hn_oblacici") */
.hn-oblacici {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.hn-oblacici .hn-oblacic {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border: 1px solid #d6ebf7;
    border-radius: 999px;
    background: #f3faff;
    color: #0b2a44;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.hn-oblacici .hn-oblacic:hover,
.hn-oblacici .hn-oblacic:focus-visible {
    border-color: #04b0ef;
    background: #04b0ef;
    color: #fff;
    text-decoration: none;
    outline: none;
}
.hn-oblacici .hn-oblacic:active { transform: translateY(1px); }
@media (max-width: 767px) {
    .hn-oblacici { gap: 10px; margin-top: 14px; }
    .hn-oblacici .hn-oblacic { padding: 10px 18px; font-size: 15px; }
}

/* select je nevidljiv preko celog polja – klik bilo gde u polju otvara listu */
.hn-pretraga .hn-pf select,
.hn-pretraga .hn-pf select.form-control {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0 0 54px;
    border: 0;
    opacity: 0;
    font-size: 16px; /* iOS ne zumira */
    cursor: pointer;
}
.hn-pretraga .hn-pf select:disabled { cursor: not-allowed; }
.hn-pf__val {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hn-pf.is-izabrano .hn-pf__val { color: #0879a5; font-weight: 600; }
.hn-pf.is-disabled .hn-pf__val { color: #a3aab5; }
.hn-pretraga .hn-pf.is-disabled { cursor: not-allowed; }
.hn-pretraga .hn-pf.is-disabled:hover { background: transparent; }

/* ---------- Box 1: baneri (slika preko cele kartice, tekst levo), po 2 u redu ---------- */
.hn-box--baner .hn-rail__item { max-width: none; }
.hn-box--baner .hn-rail.is-slider .hn-rail__item { flex: 0 0 calc((100% - (var(--hn-po-redu, 2) - 1) * var(--hn-gap)) / var(--hn-po-redu, 2)); }
.hn-box--baner .hn-rail .single-destinacija.objekat-kartica.hn-kartica {
    position: relative;
    aspect-ratio: 16 / 8;
    min-height: 280px;
    padding: 0;
    overflow: hidden;
    background: #0b2a44;
    isolation: isolate;
}
.hn-box--baner .hn-kartica .ok-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0;
    aspect-ratio: auto;
}
.hn-box--baner .hn-kartica .ok-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 22, 42, .85) 0%, rgba(4, 22, 42, .55) 40%, rgba(4, 22, 42, 0) 72%),
        linear-gradient(0deg, rgba(4, 22, 42, .55) 0%, rgba(4, 22, 42, 0) 45%);
    pointer-events: none;
}
.hn-box--baner .hn-kartica .ok-glass { top: 16px; right: 16px; bottom: auto; left: auto; z-index: 2; }
.hn-box--baner .hn-kartica .ok-body {
    position: relative;
    flex: none;
    max-width: 62%;
    margin-top: auto;
    padding: 0 26px 26px;
    pointer-events: none; /* klik prolazi do slike */
}
.hn-box--baner .hn-kartica .ok-body a { pointer-events: auto; }
.hn-box--baner .hn-kartica .ok-status { color: #8fdcff; }
.hn-box--baner .hn-kartica .ok-dot { background: #8fdcff; }
.hn-box--baner .hn-rail .single-destinacija.objekat-kartica.hn-kartica h3 { font-size: 28px; line-height: 1.15; }
.hn-box--baner .single-destinacija.objekat-kartica.hn-kartica h3 a { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hn-box--baner .single-destinacija.objekat-kartica.hn-kartica h3 a:hover { color: #8fdcff; }
.hn-box--baner .hn-kartica .hn-opis { color: rgba(255, 255, 255, .88); font-size: 14px; }
.hn-box--baner .hn-kartica .ok-footer { margin-top: 0; }
.hn-box--baner .hn-kartica .ok-dugme { display: inline-flex; width: auto; padding: 10px 20px; }
.hn-box--baner .single-destinacija.objekat-kartica.hn-kartica:hover .ok-slika img { transform: scale(1.05); }

/* 3 / 4 / 5 banera u redu: uži baneri → viši format, tekst preko cele širine, gradijent odozdo */
.hn-box--po-3 .hn-rail .single-destinacija.objekat-kartica.hn-kartica { aspect-ratio: 4 / 3; min-height: 260px; }
.hn-box--po-4 .hn-rail .single-destinacija.objekat-kartica.hn-kartica,
.hn-box--po-5 .hn-rail .single-destinacija.objekat-kartica.hn-kartica { aspect-ratio: 4 / 5; min-height: 300px; }
.hn-box--po-3 .hn-kartica .ok-body,
.hn-box--po-4 .hn-kartica .ok-body,
.hn-box--po-5 .hn-kartica .ok-body { max-width: none; padding: 0 20px 20px; }
.hn-box--po-3 .hn-rail .single-destinacija.objekat-kartica.hn-kartica h3 { font-size: 23px; }
.hn-box--po-4 .hn-rail .single-destinacija.objekat-kartica.hn-kartica h3,
.hn-box--po-5 .hn-rail .single-destinacija.objekat-kartica.hn-kartica h3 { font-size: 20px; }
.hn-box--po-3 .hn-kartica .ok-media::after,
.hn-box--po-4 .hn-kartica .ok-media::after,
.hn-box--po-5 .hn-kartica .ok-media::after { background: linear-gradient(0deg, rgba(4, 22, 42, .9) 0%, rgba(4, 22, 42, .55) 42%, rgba(4, 22, 42, 0) 72%); }
.hn-box--po-4 .hn-kartica .hn-opis,
.hn-box--po-5 .hn-kartica .hn-opis { -webkit-line-clamp: 2; }

/* tačkice ispod slajdera */
.hn-rail__dots { display: flex; justify-content: center; gap: 8px; margin-top: -8px; min-height: 10px; }
.hn-rail__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #cfd8e3;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}
.hn-rail__dots button:hover { background: #9fb0c3; }
.hn-rail__dots button.is-active { width: 28px; background: var(--hn-akcent, #04b0ef); }
.hn-rail__dots:has(button:only-child) { visibility: hidden; }

@media (max-width: 991px) {
    .hn-box--baner .hn-rail__item,
    .hn-box--baner .hn-rail.is-slider .hn-rail__item { flex-basis: 86%; }
    .hn-box--po-3 .hn-rail__item,
    .hn-box--po-3 .hn-rail.is-slider .hn-rail__item,
    .hn-box--po-4 .hn-rail__item,
    .hn-box--po-4 .hn-rail.is-slider .hn-rail__item,
    .hn-box--po-5 .hn-rail__item,
    .hn-box--po-5 .hn-rail.is-slider .hn-rail__item { flex-basis: calc((100% - var(--hn-gap)) / 2.2); }
    .hn-box--baner .hn-kartica .ok-body { max-width: 80%; }
    .hn-box--po-3 .hn-kartica .ok-body,
    .hn-box--po-4 .hn-kartica .ok-body,
    .hn-box--po-5 .hn-kartica .ok-body { max-width: none; }
}
@media (max-width: 767px) {
    .hn-box--baner .hn-rail .single-destinacija.objekat-kartica.hn-kartica { aspect-ratio: 4 / 3; min-height: 0; }
    .hn-box--baner .hn-rail__item,
    .hn-box--baner .hn-rail.is-slider .hn-rail__item { flex-basis: 86%; }
    .hn-box--po-4 .hn-rail .single-destinacija.objekat-kartica.hn-kartica,
    .hn-box--po-5 .hn-rail .single-destinacija.objekat-kartica.hn-kartica { aspect-ratio: 4 / 4; }
    .hn-box--baner .hn-kartica .ok-body { max-width: none; padding: 0 18px 18px; }
    .hn-box--baner .hn-rail .single-destinacija.objekat-kartica.hn-kartica h3 { font-size: 22px; }
    .hn-box--baner .hn-kartica .ok-media::after { background: linear-gradient(0deg, rgba(4, 22, 42, .9) 0%, rgba(4, 22, 42, .5) 45%, rgba(4, 22, 42, 0) 75%); }
}

/* početna: na telefonu bez dugmeta "Pretraži ponudu" u plutajućoj traci (pretraga je odmah ispod slajdera) */
body.page-template-template-home-new #floating-bar .filter-telefon { display: none !important; }

/* ---------- Pretraga: prilagođene padajuće liste (js/home-new.js) ---------- */
.hn-pretraga { position: relative; }
.hn-pretraga.hn-dd-on .hn-pf select { pointer-events: none; }
.hn-pretraga.hn-dd-on .hn-pf:focus-visible { outline: 0; background: #eef7fc; box-shadow: inset 0 0 0 2px rgba(4, 176, 239, .35); }
.hn-pretraga .hn-pf.is-otvoreno { background: #eef7fc; box-shadow: inset 0 0 0 2px rgba(4, 176, 239, .35); }
.hn-pretraga .hn-pf.is-otvoreno .hn-pf__chev { transform: rotate(180deg); }

.hn-dd {
    position: absolute;
    z-index: 40;
    width: 340px;
    max-width: calc(100vw - 30px);
    overflow: hidden;
    border: 1px solid #e3eaf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 40, 70, .18), 0 2px 8px rgba(15, 40, 70, .06);
    animation: hnDdIn .16s ease-out;
}
.hn-dd[hidden] { display: none; }
@keyframes hnDdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.hn-dd__trazi {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 10px 4px;
    padding: 0 12px;
    border: 1.5px solid #e3eaf1;
    border-radius: 12px;
    background: #f7fafc;
    color: #6b7280;
    transition: border-color .2s ease, background .2s ease;
}
.hn-dd__trazi:focus-within { border-color: #04b0ef; background: #fff; color: #0879a5; }
.hn-dd__trazi input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    outline: 0;
    box-shadow: none;
}

.hn-dd__lista {
    position: relative;
    max-height: 320px;
    margin: 0;
    padding: 6px;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cfe0ec transparent;
}
.hn-dd__grp {
    margin: 8px 0 2px;
    padding: 6px 12px 4px;
    color: #0879a5;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hn-dd__grp:first-child { margin-top: 0; }
.hn-dd__opt {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 36px 8px 12px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
}
.hn-dd__opt.is-u-grupi { padding-left: 22px; }
.hn-dd__opt.is-prazna { color: #6b7280; }
.hn-dd__opt.is-active { background: #f0f8fd; color: #0879a5; }
.hn-dd__opt.is-selected { color: #0879a5; font-weight: 700; }
.hn-dd__opt.is-selected::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 11px;
    margin-top: -7px;
    border: solid #04b0ef;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.hn-dd__nema { padding: 14px 12px; color: #6b7280; font-size: 14px; text-align: center; }

@media (max-width: 767px) {
    .hn-dd { width: auto; right: 10px; border-radius: 16px; }
    .hn-dd__lista { max-height: 280px; }
}
.hn-dd__lista [hidden] { display: none !important; }

/* ---------- boks bez zaglavlja (Box 1): strelice levo/desno po sredini kartica ---------- */
.hn-box--bez-head { padding-top: 36px; }
.hn-rail__nav--strane {
    position: absolute;
    top: 6px;
    bottom: 26px;                 /* = donji padding trake (ispod su tačkice) */
    left: -22px;
    right: -22px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.hn-rail__nav--strane .hn-rail__btn {
    width: 48px;
    height: 48px;
    border: 0;
    box-shadow: 0 6px 20px rgba(11, 42, 68, .22);
    pointer-events: auto;
}
.hn-rail__nav--strane .hn-rail__btn:disabled { opacity: 0; pointer-events: none; }
.hn-rail__nav--strane .hn-rail__btn svg { width: 20px; height: 20px; }
@media (max-width: 1240px) {
    .hn-rail__nav--strane { left: -8px; right: -8px; }
}
