/* ═══════════════════════════════════════════════════════════
   Alpenzaun Realisations — Big Carousel s captions
   ═══════════════════════════════════════════════════════════ */
.aze-real {
    --az-red: #f04e23;
    --az-red-dark: #772008;
    --az-black: #141414;
    --az-muted: #6b6b6b;
    --az-line: rgba(20, 20, 20, 0.08);
    --az-cream: #f6f5f2;
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
    color: var(--az-black);
    margin: 0;
    padding: 80px 0;
    background: transparent;
}
.aze-real * {
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
    box-sizing: border-box;
}

.aze-real-inner {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── HEAD (split: text vľavo, CTA vpravo) ─── */
.aze-real-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.aze-real-head-text {
    max-width: 720px;
}
.aze-real-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--az-red);
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(240, 78, 35, 0.3);
    border-radius: 100px;
    background: rgba(240, 78, 35, 0.06);
}
.aze-real-title {
    font-size: 52px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    color: var(--az-black) !important;
    margin: 0 0 14px !important;
    line-height: 1.05 !important;
}
.aze-real-sub {
    font-size: 17px;
    color: var(--az-muted);
    margin: 0;
    line-height: 1.55;
}

/* CTA pill (vpravo v hlavičke) */
.aze-real-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: var(--az-black);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
}
.aze-real-cta:hover {
    background: var(--az-red);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(240, 78, 35, 0.32);
}
.aze-real-cta svg { width: 16px; height: 16px; transition: transform 240ms ease; }
.aze-real-cta:hover svg { transform: translateX(4px); }

/* ─── CAROUSEL ─── */
.aze-real-carousel {
    position: relative;
    /* full-bleed left/right efekt (presahuje za max-width 1650 ak je viewport širší) */
}
.aze-real-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;   /* proximity = doscrolluje na koniec + netrhá (mandatory blokuje koniec) */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 4px 4px 4px;
    margin: 0 -4px;
}
.aze-real-track::-webkit-scrollbar { display: none; }

.aze-real-item {
    flex: 0 0 auto;
    width: calc((100% - 54px) / 4); /* 4 karty + 3 gapy 18px */
    text-decoration: none !important;
    color: inherit !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
.aze-real-item-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
}
.aze-real-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aze-real-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 70%, rgba(20, 20, 20, 0.18) 100%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
    border-radius: inherit;
}
.aze-real-item:hover .aze-real-item-img {
    transform: translateY(-4px);
}
.aze-real-item:hover .aze-real-item-img img { transform: scale(1.06); }
.aze-real-item:hover .aze-real-item-img::after { opacity: 1; }

/* ─── KARTA S TEXTOM (prvých N fotiek) ───
   Skladba podľa referencie: fotka navrchu, pod ňou svetlé telo s nadpisom
   a dvojriadkovým textom, v pravom dolnom rohu okrúhla šípka „vyrezaná“
   z tela karty. Výrez je biely prstenec (box-shadow) nakreslený PO tele
   karty — tlačidlo zostáva vnútri tela, takže efekt funguje nezávisle od
   toho, akú farbu má stránka pod sekciou. */
.aze-real-item--card { --aze-real-notch: #fff; }
.aze-real-item--card .aze-real-item-img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.aze-real-card-body {
    position: relative;
    background: var(--az-cream, #F7F6F3);
    border-radius: 0 0 20px 20px;
    padding: 18px 20px 20px;
    min-height: 118px;
    transition: background 260ms ease;
}
.aze-real-card-title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
    color: var(--az-black, #141414) !important;
    text-transform: none !important;
}
.aze-real-card-text {
    margin: 7px 52px 0 0 !important;
    padding: 0 !important;
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--az-muted, #6a6a62) !important;
    /* dva riadky — rôzne dlhé texty inak rozhodia výšku kariet v riadku */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aze-real-card-go {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--az-black, #141414);
    border: 1px solid var(--az-line, rgba(20, 20, 20, 0.1));
    box-shadow: 0 0 0 6px var(--aze-real-notch, #fff);
    transition: background 240ms ease, color 240ms ease, border-color 240ms ease,
                transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aze-real-card-go svg { width: 17px; height: 17px; }
.aze-real-item--card:hover .aze-real-card-go {
    background: var(--az-red, #F04E23);
    border-color: var(--az-red, #F04E23);
    color: #fff;
    transform: translate(2px, -2px) scale(1.06);
}
.aze-real-item--card:hover .aze-real-card-body { background: #F2F0EC; }
/* Karta sa zdvihne ako celok — obrázok sám sa už neposúva, inak by sa
   odtrhol od tela karty. */
.aze-real-item--card { transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.aze-real-item--card:hover { transform: translateY(-4px); }
.aze-real-item--card:hover .aze-real-item-img { transform: none; }

/* ─── UKAZOVATEĽ POZÍCIE (namiesto šípok) ─── */
.aze-real-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.aze-real-track.is-dragging a { pointer-events: none; }
.aze-real-prog {
    position: relative;
    height: 3px;
    margin: 22px auto 0;
    max-width: 240px;
    border-radius: 99px;
    background: var(--az-line, rgba(20, 20, 20, 0.1));
    overflow: hidden;
}
.aze-real-prog span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    border-radius: 99px;
    background: var(--az-red, #F04E23);
    transition: transform 160ms ease-out, width 160ms ease-out;
}

/* ─── ARROWS (voliteľné — v admine vypnuté) ─── */
.aze-real-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--az-line);
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--az-black);
    transition: all 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aze-real-arr:hover {
    background: var(--az-red);
    color: #fff;
    border-color: var(--az-red);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 36px rgba(240, 78, 35, 0.35);
}
.aze-real-arr.is-disabled { opacity: 0.3; pointer-events: none; }
.aze-real-arr svg { width: 20px; height: 20px; }
.aze-real-arr--prev { left: -28px; }
.aze-real-arr--next { right: -28px; }

@media (max-width: 1200px) {
    .aze-real-item { width: calc((100% - 36px) / 3); } /* 3 karty na tabletoch */
}
@media (max-width: 900px) {
    .aze-real-title { font-size: 38px !important; }
    .aze-real-item { width: calc((100% - 18px) / 2); } /* 2 karty */
}
@media (max-width: 600px) {
    .aze-real { padding: 56px 0; }
    .aze-real-head--split { align-items: flex-start; gap: 18px; }
    .aze-real-title { font-size: 30px !important; }
    .aze-real-item { width: 80vw; max-width: 360px; }
    .aze-real-arr { display: none; }
    .aze-real-card-body { padding: 16px 18px 18px; min-height: 106px; }
    .aze-real-card-title { font-size: 15.5px !important; }
    .aze-real-card-go { width: 40px; height: 40px; right: 12px; bottom: 12px; }
    .aze-real-card-text { margin-right: 46px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .aze-real-item--card,
    .aze-real-card-go,
    .aze-real-card-body { transition: none !important; }
    .aze-real-item--card:hover { transform: none !important; }
}

/* ─── FULL GRID GALLERY (samostatná stránka) ─── */
.aze-real-full { padding-top: 80px; }
.aze-real-head--center {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 720px;
}
.aze-real-title--big { font-size: 56px !important; }
.aze-real-head--center .aze-real-sub { margin: 0 auto; }
.aze-real-count {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    background: var(--az-cream);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--az-muted);
}
.aze-real-grid {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(var(--aze-real-cols, 4), 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .aze-real-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 720px)  { .aze-real-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .aze-real-grid { grid-template-columns: 1fr !important; } }
.aze-real-full .aze-real-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--az-cream);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.06);
    transition: all 320ms ease;
}
.aze-real-full .aze-real-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}
.aze-real-full .aze-real-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(20, 20, 20, 0.14);
}
.aze-real-full .aze-real-item:hover img { transform: scale(1.06); }
