/* Central Point – početna (zgrada) */
body { overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .5s; }
.pill-btn.big { height: 52px; padding: 0 26px; font-size: 14px; }
em { font-style: italic; }

/* zavesa */
.curtain { position: fixed; inset: 0; z-index: 200; background: #090807; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity 1.2s var(--ease) .2s, visibility 1.4s; }
.curtain img { height: 22px; opacity: 0; animation: fadeUp 1s var(--ease) .1s forwards; }
.curtain span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); opacity: 0; animation: fadeUp 1s var(--ease) .35s forwards; }
.curtain.gone { opacity: 0; visibility: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* navigacija */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 22px 40px; transition: background .4s, padding .4s, backdrop-filter .4s; }
.nav.solid { background: rgba(11,10,9,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 14px 40px; border-bottom: 1px solid var(--line); }
.nav-logo img { height: 20px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { right: 0; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.12); animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.0); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,8,7,.86) 0%, rgba(9,8,7,.55) 38%, rgba(9,8,7,0) 70%), linear-gradient(0deg, rgba(9,8,7,.9) 0%, rgba(9,8,7,0) 40%); }
.hero-content { position: absolute; left: 6vw; top: 50%; transform: translateY(-54%); max-width: 640px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 132px); line-height: .9; margin: 18px 0 26px; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold-2); font-weight: 300; }
.hero p { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 500px; margin: 0 0 34px; font-weight: 300; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { position: absolute; left: 6vw; right: 6vw; bottom: 46px; display: flex; gap: 0; border-top: 1px solid var(--line-2); padding-top: 22px; }
.hero-stats div { flex: 1; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1; }
.hero-stats span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { position: absolute; right: 6vw; bottom: 52px; width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* explorer */
.explorer { position: relative; padding: 120px 0 0; background: var(--bg); }
.explorer-head, .xp-head { max-width: 760px; margin: 0 auto 46px; text-align: center; padding: 0 24px; }
.explorer h2, .xp h2, .loc h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin: 14px 0 18px; }
.xp h2 em, .loc h2 em { color: var(--gold-2); }
.explorer-head p, .xp-head p { color: var(--ink-2); font-size: 16px; line-height: 1.7; font-weight: 300; }
.explorer-head p b { color: var(--gold-2); font-weight: 600; }
.tower { position: relative; height: min(100vh, 56.25vw); min-height: 560px; overflow: hidden; }
.tower-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tower-dim { fill: rgba(9,8,7,.0); transition: fill .6s var(--ease); pointer-events: none; }
.tower.focus .tower-dim { fill: rgba(9,8,7,.38); }
.apt { cursor: pointer; outline: none; }
.apt-shape { fill: url(#aptFill); stroke: #f3dfb8; stroke-width: 3.5; stroke-linejoin: round; animation: aptPulse 2.4s ease-in-out infinite; transition: fill .3s; }
.apt-glow { fill: none; stroke: #e3c99c; stroke-width: 10; opacity: .55; animation: aptGlow 2.4s ease-in-out infinite; }
.apt:hover .apt-shape, .apt:focus .apt-shape { fill: rgba(227,201,156,.75); animation: none; }
@keyframes aptPulse { 50% { fill-opacity: .55; } }
@keyframes aptGlow { 50% { opacity: .15; } }
.callout-line { stroke: #e3c99c; stroke-width: 2.5; stroke-dasharray: 8 8; animation: dash 1.2s linear infinite; }
.callout-dot { fill: #f3dfb8; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.apt-card-float { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 14px; border-radius: 20px; text-align: left; background: rgba(14,12,10,.78); border: 1px solid rgba(227,201,156,.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s; min-width: 230px; }
.apt-card-float:hover { transform: translateY(-3px); border-color: var(--gold); }
.apt-card-float b { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; }
.apt-card-float .meta { font-size: 12.5px; color: var(--ink-2); }
.apt-card-float .go { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--gold-2); letter-spacing: .04em; }
.apt-card-float .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s; }
.apt-card-float:hover .go svg { transform: translateX(4px); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 0 rgba(127,209,139,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(127,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(127,209,139,0); } }
.tower-legend { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 18px; padding: 10px 16px; border-radius: 999px; background: rgba(14,12,10,.7); backdrop-filter: blur(12px); font-size: 12px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.lg.gold { background: var(--gold); }

/* iskustvo */
.xp { padding: 140px 6vw 120px; background: radial-gradient(80% 60% at 50% 0%, #17140f, var(--bg) 70%); }
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1400px; margin: 0 auto; }
.xp-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3.2; background: #15130f; border: 1px solid var(--line); }
.xp-card.wide { grid-column: span 2; aspect-ratio: auto; min-height: 420px; }
.xp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.xp-card:hover img { transform: scale(1.05); }
.xp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,8,7,.88), rgba(9,8,7,0) 55%); }
.xp-txt { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 24px; }
.xp-txt .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.xp-txt h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 4px 0 6px; }
.xp-txt p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.xp-cta { display: flex; justify-content: center; margin-top: 48px; }

/* poređenje kolekcija */
.cmp { padding: 40px 6vw 140px; }
.cmp-wrap { position: relative; max-width: 1300px; margin: 0 auto; aspect-ratio: 16/10; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); user-select: none; }
.cmp-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-a { position: absolute; inset: 0; clip-path: inset(0 48% 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: 52%; width: 2px; background: var(--gold-2); transform: translateX(-1px); pointer-events: none; }
.cmp-line span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(14,12,10,.8); border: 1px solid var(--gold); display: grid; place-items: center; backdrop-filter: blur(8px); }
.cmp-line svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; }
.cmp-tag { position: absolute; top: 20px; font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(14,12,10,.7); backdrop-filter: blur(8px); }
.cmp-tag.l { left: 20px; } .cmp-tag.r { right: 20px; color: var(--gold-2); }
.cmp-wrap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1300px; margin: 18px auto 0; }
.cmp-row figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); }
.cmp-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cmp-row figure:hover img { transform: scale(1.05); }
.cmp-row figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 20px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
@media (max-width: 900px) { .cmp-row { grid-template-columns: 1fr; } .cmp-wrap { aspect-ratio: 4/5; } }

/* lokacija */
.loc { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.loc-media { position: absolute; inset: 0; }
.loc-media img { width: 100%; height: 100%; object-fit: cover; }
.loc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,8,7,.95) 6%, rgba(9,8,7,.2) 55%, rgba(9,8,7,.5)); }
.loc-content { position: relative; padding: 0 6vw 90px; max-width: 760px; }
.loc-content p { color: var(--ink-2); font-size: 17px; line-height: 1.7; font-weight: 300; }

/* footer */
.foot { padding: 80px 6vw 36px; border-top: 1px solid var(--line); background: #0a0908; }
.foot-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-logo { height: 24px; }
.foot-claim { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink-2); margin: 0 auto 0 0; }
.foot-bot { display: flex; justify-content: space-between; margin-top: 50px; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* kartica stana */
.drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #110f0d; border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .65s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(5,4,3,.55); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; backdrop-filter: blur(3px); }
.scrim.open { opacity: 1; visibility: visible; }
.drawer-x { position: absolute; top: 20px; right: 20px; }
.drawer-head { padding: 34px 34px 18px; }
.drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; margin: 8px 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.chips .ok { color: #9fd6a6; border-color: rgba(127,209,139,.35); }
.dtabs { display: flex; gap: 4px; margin: 0 34px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dtabs button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.dtabs button.on { background: rgba(255,255,255,.09); color: var(--ink); }
.dbody { flex: 1; overflow-y: auto; padding: 22px 34px; }
.hero3d { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); }
.hero3d img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero3d:hover img { transform: scale(1.04); }
.hero3d .play { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(14,12,10,.8); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.hero3d .play i { width: 0; height: 0; border-left: 10px solid var(--gold); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.rooms { list-style: none; padding: 0; margin: 22px 0 0; }
.rooms li { display: flex; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.rooms li span::before { content: attr(data-n); display: inline-block; width: 26px; color: var(--gold); font-size: 12px; }
.rooms li b { color: var(--ink); font-weight: 600; }
.rooms li.total { border-bottom: 0; padding-top: 16px; font-size: 15px; }
.rooms li.total b { color: var(--gold-2); font-family: var(--serif); font-size: 24px; }
.planimg { border-radius: 16px; background: #fff; padding: 10px; margin-bottom: 14px; }
.planimg img { width: 100%; display: block; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: #222; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal button:hover img { transform: scale(1.06); }
.d3-list { display: grid; gap: 12px; }
.d3 { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/8; }
.d3 img { width: 100%; height: 100%; object-fit: cover; }
.d3 span { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.drawer-foot { padding: 18px 34px 26px; border-top: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,4,3,.94); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox [data-lb=prev] { position: absolute; left: 20px; top: 50%; }
.lightbox [data-lb=next] { position: absolute; right: 20px; top: 50%; }
.lightbox .lb-x { position: absolute; top: 20px; right: 20px; }

@media (max-width: 900px) {
  .nav { padding: 16px 18px; } .nav.solid { padding: 12px 18px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; height: 38px; padding: 0 14px; font-size: 12px; }
  .hero-content { left: 18px; right: 18px; top: auto; bottom: 170px; transform: none; }
  .hero p { font-size: 15px; }
  .hero-stats { left: 18px; right: 18px; bottom: 26px; flex-wrap: wrap; row-gap: 14px; }
  .hero-stats div { flex: 0 0 50%; } .hero-stats b { font-size: 30px; }
  .scroll-cue { display: none; }
  .tower { height: 78vh; }
  .tower-svg { }
  .xp-grid { grid-template-columns: 1fr; }
  .xp-card.wide { grid-column: auto; min-height: 300px; }
  .drawer-head, .dbody, .drawer-foot { padding-left: 20px; padding-right: 20px; }
  .dtabs { margin: 0 20px; }
}
