/*
Theme Name: Skijalište Kozara
Theme URI: https://v2.kozaraski.com/
Author: Skijalište Kozara
Description: Sajt skijališta na Mrakovici. Stanje staze, karte, rental, škole i kamere.
Version: 1.5.3
Requires at least: 6.4
Text Domain: kozaraski
*/

:root {
  --bg: #071422;
  --text: #f4f7fb;
  --muted: #c5d2e2;
  --orange: #ff650a;
  --line: rgba(176, 208, 255, 0.42);
  --max: 1400px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: #ffb27a; }
button, input, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: 12px; top: -40px; background: #fff; color: #000; padding: 8px 12px; z-index: 80; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

.site-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 40;
  background: none;
  border: 0;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 6px 14px 6px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 98, 168, 0.46), rgba(12, 36, 78, 0.4));
  box-shadow: 0 10px 28px rgba(2, 12, 32, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; flex: none; }
.mark { width: 48px; height: 48px; flex: none; display: block; }
.mark img { width: 48px; height: 48px; object-fit: contain; }
.site-footer .mark, .site-footer .mark img { width: 44px; height: 44px; }
.brand-text strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand-text span { display: block; color: #d5e2f2; font-size: 10px; font-weight: 600; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  color: #e7eef8;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 8px 6px;
  white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav .current-menu-item > a, .nav .current_page_item > a {
  color: var(--orange);
  box-shadow: inset 0 -2px 0 var(--orange);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
}

.stage { position: relative; padding: 96px 0 28px; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 52, 0.5) 0%, rgba(8, 30, 68, 0.16) 34%, rgba(7, 24, 56, 0.18) 70%, rgba(5, 14, 32, 0.46) 100%);
  pointer-events: none;
}
.hero-copy, .deck { position: relative; z-index: 1; }
.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 4px 0 8px;
}
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 800; color: #d7e4f4; margin: 0 0 8px; }
.hero-copy h1 {
  font-size: clamp(48px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  font-weight: 800;
}
.hero-copy p.lead { margin: 0 auto 4px; max-width: 760px; color: #eef3f8; font-size: 17px; }
.where { margin: 0 0 14px; color: #d5deea; font-weight: 700; font-size: 15px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 800;
  border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 101, 10, 0.38);
}
.btn:hover { background: #e45508; }
.btn.ghost {
  background: rgba(8, 20, 42, 0.28);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(8, 20, 42, 0.45); }
.btn.block { width: 100%; margin-top: 12px; }

.deck {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.2fr;
  gap: 18px;
}
.glass, .season-bar, .shot {
  background: linear-gradient(180deg, rgba(62, 118, 196, 0.3), rgba(12, 36, 78, 0.4));
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(2, 10, 28, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass { border-radius: 18px; padding: 14px 16px 16px; }
.glass-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.glass-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.glass-sub { color: var(--muted); margin: 4px 0 8px; font-size: 13px; }
.glass-foot { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid rgba(186, 214, 255, 0.18); }
.rows a {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; padding: 9px 0;
}
.rows strong { display: block; font-size: 14px; }
.rows small { display: block; color: var(--muted); font-size: 12px; }
.rows em { margin-left: auto; font-style: normal; color: #d5e2f2; flex: none; }
.rows.prices b { margin-left: auto; font-size: 14px; white-space: nowrap; flex: none; }
.mark-ico {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid currentColor;
}
.mark-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mark-ico.lift { color: #ff8d7a; }
.mark-ico.anchor { color: #9ec0ff; }
.mark-ico.baby { color: #8ee0b0; }
.pill { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; font-style: normal; background: rgba(255,255,255,.12); }
.pill.open { color: #083222; background: #3dd68c; }
.pill.night { color: #fff; background: #2f6fed; }
.pill.closed { color: #ffe7bf; background: rgba(255, 170, 60, 0.22); border: 1px solid rgba(255, 196, 120, 0.35); }
.cam-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cam-row figure { margin: 0; min-width: 0; }
.cam-row img, .cam-row iframe { width: 100%; height: 84px; object-fit: cover; border: 0; border-radius: 10px; background: #06101c; }
.cam-row iframe { height: 132px; }
.cam-row figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cam-slot { position: relative; }
.cam-expand {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(6, 16, 32, .62); color: #fff; cursor: pointer;
}
.cam-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cam-expand:hover { background: var(--orange); border-color: transparent; }
.cam-pop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px; background: rgba(3, 8, 18, .92);
}
.cam-pop[hidden] { display: none; }
.cam-pop-stage { position: relative; width: min(1100px, 100%); height: min(72vh, 640px); }
.cam-pop-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.cam-pop-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(176, 208, 255, .45);
  background: rgba(16, 40, 78, .82); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.cam-pop-close:hover { background: var(--orange); border-color: transparent; }
.cam-logo {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  height: 46px; width: auto; max-width: 42%;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55));
}
.cam-pop-stage:fullscreen, .cam-pop-stage:-webkit-full-screen {
  width: 100%; height: 100%; background: #000; border-radius: 0;
}
.cam-pop-stage:fullscreen iframe, .cam-pop-stage:-webkit-full-screen iframe { border-radius: 0; }
.cam-pop-stage:fullscreen .cam-logo, .cam-pop-stage:-webkit-full-screen .cam-logo {
  right: 28px; bottom: 28px; height: 58px;
}

.band {
  position: relative;
  background: #071422 url("assets/band.jpg") center 35% / cover no-repeat;
  padding-bottom: 36px;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 32, 0.86), rgba(5, 16, 36, 0.8));
}
.band > * { position: relative; z-index: 1; }
.season-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px;
  border-radius: 14px;
  color: #e6eef8; font-weight: 700; font-size: 14px;
}
.section { padding: 28px 0 8px; }
.section h2 { font-size: 34px; letter-spacing: -.03em; margin: 18px 0 14px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { display: block; overflow: hidden; text-decoration: none; color: #fff; border-radius: 18px; }
.shot img { width: 100%; height: 168px; object-fit: cover; }
.shot span { display: block; padding: 12px 14px 14px; }
.shot strong { display: block; font-size: 18px; }
.shot small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; }

body:not(.home) main { padding-top: 108px; }
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; margin: 0; line-height: 1; }
.entry { padding-bottom: 64px; }
.entry-content { font-size: 17px; color: #e6edf5; }
.entry-content h2 { margin-top: 28px; }
.entry-content a { color: #ffb27a; }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; }
table.prices { width: 100%; border-collapse: collapse; min-width: 520px; }
table.prices th, table.prices td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(186,214,255,.18); }
table.prices th { background: rgba(16, 36, 68, .8); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
table.prices td:not(:first-child), table.prices th:not(:first-child) { text-align: right; white-space: nowrap; }
.note { background: rgba(61, 214, 140, .1); border: 1px solid rgba(61, 214, 140, .3); border-radius: 14px; padding: 14px 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; background: #13263d; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px 36px;
  background: rgba(3, 8, 18, 0.9);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1180px, calc(100vw - 150px)); text-align: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 12px; margin: 0 auto; }
.lb-figure figcaption { margin-top: 10px; color: #d5e2f2; font-weight: 700; font-size: 14px; }
.lb-close, .lb-prev, .lb-next {
  border: 1px solid rgba(176, 208, 255, 0.45);
  background: rgba(16, 40, 78, 0.72);
  color: #fff; cursor: pointer; font-weight: 700;
}
.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1;
}
.lb-prev, .lb-next {
  flex: none; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 101, 10, 0.9); border-color: transparent; }
body.lb-open { overflow: hidden; }
.panel { background: linear-gradient(180deg, rgba(36, 86, 158, 0.34), rgba(8, 28, 64, 0.48)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.form { display: grid; gap: 12px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(8, 20, 40, .65); }
.hp { position: absolute; left: -9999px; }
.form-ok { background: rgba(61, 214, 140, .15); border-radius: 12px; padding: 12px 14px; }
.map iframe { width: 100%; height: 280px; border: 0; border-radius: 16px; }

.site-footer { background: #06101c; color: #c5d0dc; padding: 22px 0; border-top: 1px solid rgba(176,208,255,.2); }
.foot-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }
.foot-line .brand { margin-right: 0; }

@media (min-width: 1100px) {
  .hero-copy h1 { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav-toggle { display: inline-flex; }
  .brand { margin-right: 0; }
  .nav { display: none; flex-basis: 100%; }
  body.nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 6px 0 8px; }
  .nav a { white-space: normal; }
  .header-row { flex-wrap: wrap; }
  .deck, .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-figure { max-width: calc(100vw - 28px); }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; width: 46px; height: 46px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lightbox { align-items: center; padding-bottom: 76px; }
  .cam-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { min-height: 0; padding: 8px 0 16px; }
  .hero-copy h1 { font-size: 34px; }
  .stage { padding-top: 88px; }
  .site-header { top: 12px; }
  body:not(.home) main { padding-top: 96px; }
}

@media (max-width: 520px) {
  .cam-row img, .cam-row iframe { height: 72px; }
  .season-bar { font-size: 13px; }
  .shot img { height: 150px; }
}
