:root {
  color-scheme: light;
  --ink: #102943;
  --muted: #43617c;
  --navy: #081c31;
  --ice: #d5efff;
  --line: #cbdfee;
  --white: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5faff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2086c1; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.045em; }
h3 { font-size: 1.2rem; }
.wrap { width: min(100% - 2rem, 69rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { background: var(--navy); color: white; }
.header-inner { display: grid; align-items: center; min-height: 2.75rem; }
nav { display: flex; align-items: center; gap: 0 clamp(.5rem, 2vw, 1.5rem); min-width: 0; }
.site-header nav { justify-content: space-evenly; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; font-weight: 650; color: var(--ice); text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--navy); }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 64% center; }
.hero::after { content: ""; background: linear-gradient(90deg, rgb(5 19 36 / .9), rgb(5 19 36 / .55) 49%, transparent 90%), linear-gradient(0deg, rgb(5 19 36 / .8), transparent 30%); }
.hero-inner { position: relative; min-height: clamp(30rem, 53vw, 37rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 3.5rem; }
.season { border: 1px solid #9ac9e5; background: rgb(16 48 76 / .75); border-radius: 2rem; padding: .35rem .75rem; font-size: .875rem; font-weight: 700; }
h1 { margin-top: .9rem; font-size: clamp(3.25rem, 10vw, 6.6rem); line-height: .97; letter-spacing: -.075em; }
h1 span { color: #b9e5ff; }
.hero-intro { margin-top: 1rem; font-size: clamp(1rem, 2.5vw, 1.25rem); }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: .75rem; padding: .55rem 1rem; background: var(--ice); color: var(--navy); font-weight: 750; text-decoration: none; }
.button:hover { background: #b6e2ff; }
.hero .button { margin-top: 1.25rem; }
.hero-dates { position: absolute; bottom: .65rem; right: 0; max-width: 100%; padding: .2rem .55rem; border-radius: .35rem; font-size: clamp(1rem, 2.2vw, 1.125rem); font-weight: 700; background: rgb(5 19 36 / .85); color: #e1f4ff; }
.hero-dates time { display: inline-block; }

.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
#informacije { padding-top: clamp(1.1rem, 3vw, 2rem); }
.featured-notices { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .45rem .55rem; border-radius: .65rem; background: var(--navy); color: var(--ice); }
.featured-viewport { overflow: hidden; min-width: 0; }
.featured-notices ul { display: flex; gap: 3rem; width: max-content; margin: 0; padding: .25rem 0 .25rem 100%; list-style: none; white-space: nowrap; text-transform: uppercase; font-weight: 700; animation: slide-notices var(--notice-duration, 18s) linear infinite; }
.featured-notices button { min-height: 2.75rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--ice); color: var(--navy); font: inherit; cursor: pointer; }
.featured-notices[data-paused] ul { display: grid; gap: .35rem; width: auto; padding-inline-start: .4rem; white-space: normal; overflow-wrap: anywhere; animation: none; }
@keyframes slide-notices { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .featured-notices button { display: none; }
  .featured-notices ul { display: grid; gap: .35rem; width: auto; padding-inline-start: .4rem; white-space: normal; overflow-wrap: anywhere; animation: none; }
}
.hours-heading { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: baseline; justify-content: space-between; font-size: clamp(1rem, 4.1vw, 1.2rem); }
.hours-heading span:last-child { white-space: nowrap; }
.hours-details { margin-top: .3rem; }
.hours-details summary { width: fit-content; color: var(--muted); font-size: .9rem; }
.hours-details p + p { margin-top: .35rem; }
.intro { margin: .65rem 0 1.5rem; max-width: 58ch; color: var(--muted); }
.info-grid, .visit-grid, .gallery { display: grid; gap: 1rem; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--white); padding: clamp(1rem, 3vw, 1.65rem); box-shadow: 0 .4rem 1.2rem rgb(15 64 101 / .045); }
.tag { display: table; border-radius: 1rem; padding: .2rem .65rem; background: #e9f3fa; color: #254d68; font-size: .875rem; font-weight: 700; }
.card .tag { margin-top: .6rem; }
.details { margin: .9rem 0 0; }
.details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding-block: .45rem; border-top: 1px solid var(--line); }
.details dd { margin: 0; color: var(--muted); }

.ice-band { border-block: 1px solid var(--line); background: linear-gradient(125deg, #e5f4ff, #f7fcff); }
.day-control { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin-bottom: 1rem; }
.day-control label { font-weight: 700; }
select { appearance: none; min-height: 2.75rem; max-width: 100%; padding: .4rem 2.2rem .4rem .75rem; border: 1px solid #7999b1; border-radius: .6rem; color: var(--ink); font: inherit; background: linear-gradient(45deg, transparent 50%, #365b77 50%) calc(100% - 1.05rem) center / .35rem .35rem no-repeat, linear-gradient(135deg, #365b77 50%, transparent 50%) calc(100% - .7rem) center / .35rem .35rem no-repeat, white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; padding: .35rem 0; font-weight: 750; }
th, td { padding: .55rem .3rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .875rem; }
.slot-status { display: inline-block; padding: .15rem .55rem; border-radius: 1rem; font-size: .875rem; font-weight: 750; }
.available { color: #185747; background: #dff6ee; }
.occupied { color: #7c342c; background: #fbe8e4; }

.gallery { list-style: none; padding: 0; margin: 0; }
.gallery li { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: end; aspect-ratio: 16 / 8; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; font-weight: 750; color: #204a67; background: linear-gradient(135deg, #f2faff 20%, #d4ebfb); }
.gallery li::before, .gallery li::after { content: ""; position: absolute; z-index: -1; width: 55%; aspect-ratio: 1; top: -37%; right: 0; transform: rotate(35deg); border: 1px solid rgb(255 255 255 / .8); background: rgb(255 255 255 / .32); }
.gallery li::after { top: -20%; right: 17%; }
.gallery li:has(img) { padding: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .gallery-cover { display: block; aspect-ratio: auto; grid-column: 1 / -1; }
.gallery-cover button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-cover img { height: auto; }
#pregled-galerije { width: min(100% - 1rem, 78rem); max-width: none; border: 1px solid var(--line); border-radius: 1rem; padding: .65rem; color: var(--ink); }
#pregled-galerije::backdrop { background: rgb(8 28 49 / .92); }
.gallery-view { overflow: auto; max-height: 72dvh; margin-block: .5rem; background: #edf7ff; }
.gallery-view img { display: block; max-width: 100%; max-height: 72dvh; width: auto; height: auto; margin-inline: auto; }
.gallery-view[data-zoom] img { max-width: none; max-height: none; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.gallery-controls button { font: inherit; color: var(--ink); background: var(--ice); border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .55rem; cursor: pointer; }

.visit-grid { padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.camera { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 14rem; border-radius: 1.2rem; padding: clamp(1rem, 4vw, 2rem); background: linear-gradient(140deg, #0b2138, #184b71); color: white; }
.camera h2 { margin-top: .8rem; }
.camera p:last-child { margin-top: .6rem; color: var(--ice); }
.location p { margin-top: .55rem; color: var(--muted); }
.location .button { margin-top: 1rem; }
.guestbook { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.guestbook form { display: grid; gap: .4rem; margin-top: .75rem; }
.guestbook label { font-weight: 650; }
.guestbook input, .guestbook textarea { width: 100%; padding: .5rem; border: 1px solid #7999b1; border-radius: .6rem; font: inherit; color: var(--ink); }
.guestbook textarea { resize: vertical; }
.guestbook .button { justify-self: start; margin-top: .3rem; border: 1px solid var(--line); font-family: inherit; cursor: pointer; }
.guestbook ul { display: grid; gap: .75rem; padding: 0; list-style: none; overflow-wrap: anywhere; }
.guestbook li { padding-top: .6rem; border-top: 1px solid var(--line); }
.guestbook li p { white-space: pre-wrap; }
.site-footer { padding-block: .8rem; background: var(--navy); color: white; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; min-height: 2.75rem; padding-right: calc(3rem + env(safe-area-inset-right)); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ice); }

@media (max-width: 38rem) {
  .hero-image { object-position: 70% center; }
  .hero::after { background: linear-gradient(90deg, rgb(5 19 36 / .65), rgb(5 19 36 / .33)), linear-gradient(0deg, rgb(5 19 36 / .85), transparent 70%); }
}

@media (min-width: 43rem) {
  .info-grid, .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery li { aspect-ratio: 4 / 3; }
  .header-inner { min-height: 4.25rem; }
}

h1 .rink-label { color: inherit; overflow-wrap: anywhere; }
#jezik {
  min-height: 2.75rem;
  padding: .2rem 1.2rem .2rem .35rem;
  border: 0;
  font-size: .875rem;
  font-weight: 650;
  color: var(--ice);
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - .6rem) center / .3rem .3rem no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - .3rem) center / .3rem .3rem no-repeat;
}
#jezik option { color: var(--ice); background: var(--navy); }
.card.useful-panel { align-self: start; padding-block: .25rem; scroll-margin-top: 1rem; background: #e9f5fd; }
.useful-panel summary { display: flex; gap: .75rem; align-items: center; justify-content: space-between; min-height: 2.75rem; padding-block: .45rem; font-weight: 750; cursor: pointer; list-style: none; }
@media (min-width: 43rem) and (hover: hover) and (pointer: fine) {
  .useful-panel summary { font-weight: 600; }
}
.useful-panel summary::-webkit-details-marker { display: none; }
.useful-panel summary::after { content: ""; flex: 0 0 .45rem; height: .45rem; margin-right: .15rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.useful-panel[open] summary::after { transform: rotate(225deg); }
.card.useful-panel[open] { padding-bottom: 1rem; }
dialog { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; color: var(--ink); }
dialog::backdrop { background: rgb(8 28 49 / .65); }
.language-options, .status-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.language-options button, .calendar-grid button, .month-controls button, #kamera-full {
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--ice);
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.language-options button { min-height: 2.75rem; padding-inline: .75rem; }
.card h3 + p, .details + p, #stanje-kalendara, #termini { margin-top: .65rem; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.15rem, 1vw, .4rem);
  margin-block: .55rem 1.15rem;
  text-align: center;
}
.calendar-grid > * { display: grid; place-items: center; min-width: 0; min-height: 2.5rem; padding: 0; }
.calendar-grid abbr { min-height: 1.8rem; font-size: .8125rem; text-decoration: none; }
.calendar-grid .nonworking { border-radius: .45rem; }
.calendar-grid button[data-status="available"] { background: #dff6eb; color: #185747; }
.calendar-grid button[data-status="pending"] { background: #fff1c4; color: #674b06; }
.calendar-grid button[data-status="confirmed"] { background: #f9d8d8; color: #842626; }
.calendar-grid button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--navy); font-weight: 750; }
.calendar-grid button:focus-visible { outline-offset: -2px; }
#raspored h1 { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.045em; }
.schedule { max-width: 36rem; padding: clamp(.65rem, 3vw, 1.65rem); }
.month-controls { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .5rem; text-align: center; }
.month-controls h2 { font-size: clamp(1.1rem, 4vw, 1.4rem); letter-spacing: normal; }
.month-controls button { min-height: 2.75rem; font-size: 1.5rem; line-height: 1; }
.month-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.home-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.home-link:hover { color: var(--navy); }
#na-vrh { position: fixed; z-index: 2; right: max(.5rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #9ac9e5; border-radius: 50%; background: #123958; color: #fff; box-shadow: 0 .2rem .55rem rgb(8 28 49 / .3); text-decoration: none; }
#na-vrh span { position: relative; width: 1.1rem; height: 1.1rem; }
#na-vrh span::before { content: ""; position: absolute; inset: .12rem auto auto .25rem; width: .6rem; height: .6rem; border: solid currentColor; border-width: 2px 0 0 2px; transform: rotate(45deg); }
#na-vrh span::after { content: ""; position: absolute; inset: .15rem auto .05rem calc(50% - 1px); width: 2px; background: currentColor; }
.sponsor-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.sponsor-list li { max-width: 100%; }
.sponsor-list img { display: block; max-width: min(9rem, 100%); max-height: 4rem; object-fit: contain; }
@media (max-width: 26rem) {
  nav { gap: .5rem; }
  nav a, #jezik { font-size: .8125rem; }
  .header-inner { column-gap: .5rem; }
}
.status-list { list-style: none; padding: 0; }
.pending { color: #674b06; background: #fff1c4; }
.nonworking { background: #e8edf1; color: #445261; }
.calendar-note { color: var(--muted); font-size: .875rem; }
.map-pin { display: inline-block; width: .8rem; height: .8rem; margin-inline: .15rem .6rem; border: .2rem solid #365b77; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.sponsor-logo { filter: brightness(0) saturate(100%) invert(22%) sepia(31%) saturate(1253%) hue-rotate(171deg) brightness(94%); }
#kamera-video { width: 100%; margin-block: .75rem; }
#kamera-video video { display: block; width: 100%; background: var(--navy); }
#kamera-video:fullscreen { margin: 0; background: black; }
#kamera-video:fullscreen video { height: 100%; object-fit: contain; }
