@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1b2631;
  --muted: #67727d;
  --line: #e6e0d6;
  --accent: #1d5c6b;
  --accent-soft: #e8f0f1;
  --warn: #a6402a;
  --radius: 14px;
  --nav-w: 224px;
  --pad: clamp(20px, 2.6vw, 36px);
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body {
  display: flex;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin-bottom: 8px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }

.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 17px; height: 17px; }
.ico.xl { width: 40px; height: 40px; color: var(--muted); }

/* ---------- sidebar ---------- */
.nav {
  width: var(--nav-w); flex: none;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 26px 14px calc(16px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}
.brand { padding: 0 12px 26px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.brand-city { font-size: .8rem; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }

#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 14px; border-radius: 12px;
  font-weight: 500; font-size: .98rem; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-item:active { background: #ece7de; }
.nav-item.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav-item.active .ico { color: var(--accent); }

.nav-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.nav-clock { font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 12px 10px; }
body:has(#view[data-page="home"]) .nav-clock { visibility: hidden; }
.lang-btn {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.lang-btn .lang-code { font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.lang-btn .lang-name { color: var(--muted); font-size: .92rem; }

/* ---------- main ---------- */
#view {
  flex: 1; min-width: 0; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  outline: none;
  padding-right: env(safe-area-inset-right);
}

.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px 22px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h2 .ico { color: var(--accent); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.panel-head h2 { margin: 0; }
.more { color: var(--accent); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 2px; }
.price { font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; white-space: nowrap; letter-spacing: .04em; }

/* ---------- home ---------- */
.home { padding: var(--pad); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.hero {
  position: relative; border-radius: 18px; overflow: hidden; color: #fff;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: clamp(22px, 3vw, 36px);
  min-height: clamp(210px, 32vh, 290px);
  background: linear-gradient(100deg, rgba(14, 24, 34, .78) 0%, rgba(14, 24, 34, .4) 55%, rgba(14, 24, 34, .15) 100%), url("../img/rijeka.webp") center 60% / cover;
}
.hello { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; opacity: .95; }
.clock { font-size: clamp(4rem, 9vw, 6.4rem); font-weight: 200; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.date { font-size: 1.15rem; opacity: .9; }
.date::first-letter { text-transform: uppercase; }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.now { display: flex; align-items: center; gap: 12px; }
.now-icon { width: 54px; height: 54px; stroke-width: 1.4; }
.now-temp { font-size: 3.6rem; font-weight: 200; line-height: 1; }
.now-desc { font-size: 1rem; opacity: .9; margin-bottom: 8px; }
.now-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.now-meta div {
  display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 10px; padding: 7px 12px;
}
.now-meta .ico { grid-row: span 2; opacity: .85; }
.now-meta span { font-size: .7rem; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.now-meta b { font-size: .98rem; font-weight: 600; white-space: nowrap; }

.alert { display: flex; align-items: center; gap: 12px; background: #fbeee9; color: var(--warn); border: 1px solid #f1d3c8; border-radius: 12px; padding: 14px 18px; font-weight: 600; }

.home-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.25fr; gap: 18px; }
.wifi { display: flex; gap: 18px; align-items: center; }
.wifi .qr { width: 132px; flex: none; }
.qr svg { width: 100%; height: auto; display: block; }
.wifi-text { min-width: 0; }
.wifi dl { display: grid; }
.wifi dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wifi dd { font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; margin-bottom: 8px; }
.hint { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.hint.big { font-size: .98rem; color: var(--ink); font-weight: 500; margin: 4px 0 10px; }
.info-wifi { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.info-wifi b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.info-wifi b .ico { color: var(--accent); }
.info-wifi small { color: var(--muted); }

.news-mini { display: flex; flex-direction: column; gap: 12px; }
.nm { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.nm-when { font-size: .8rem; font-weight: 600; color: var(--accent); line-height: 1.25; }
.nm-when small { display: block; color: var(--muted); font-weight: 500; }
.nm b { display: block; font-size: .93rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nm small { color: var(--muted); font-size: .8rem; }

.fc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.fc-day { padding: 8px 2px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fc-day:first-child { background: var(--accent-soft); }
.fc-name { font-size: .8rem; font-weight: 600; color: var(--muted); }
.fc-name::first-letter { text-transform: uppercase; }
.fc-ico { width: 28px; height: 28px; color: var(--accent); }
.fc-t { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.fc-t b { color: var(--ink); font-weight: 600; }
.fc-rain { font-size: .72rem; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; flex: 1; min-height: 130px; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 130px;
  background: #9fb3bd center / cover;
  display: flex; align-items: flex-end; padding: 16px 18px; color: #fff;
  transition: transform .15s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 24, 34, .75), rgba(14, 24, 34, 0) 60%); }
.tile span { position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.tile:active, .card:active, .beach:active, .ev:active { transform: scale(.985); }

/* ---------- page header & tabs ---------- */
.page-head {
  position: sticky; top: 0; z-index: 5;
  padding: 28px var(--pad) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 2.1rem; padding-bottom: 14px; }
.tabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: flex; align-items: center;
  min-height: 50px; font-weight: 500; font-size: 1rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.page-body { padding: 24px var(--pad) 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.sec { font-family: inherit; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 28px 0 12px; }
.sec:first-child { margin-top: 0; }
.note { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; line-height: 1.4; }
.note .ico { color: var(--accent); }

/* ---------- cards ---------- */
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .15s; width: 100%;
}
.card-img { aspect-ratio: 16 / 10; background: #e4e0d8; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.logo, .m-media.logo { display: grid; place-items: center; background: #f7f6f3; }
.card-img.logo img { width: 40%; height: auto; object-fit: contain; }
.card-img.blank { display: grid; place-items: center; background: #efebe4; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card h3, .beach h3 { font-size: 1.06rem; font-weight: 600; }
.card-sub { font-size: .83rem; color: var(--accent); font-weight: 500; }
.card p { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid.rows { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card.row { flex-direction: row; align-items: center; gap: 8px; padding: 4px 18px 4px 4px; }
.card.row .card-body { padding: 14px 14px; }
.card.row .qr-mini, .card.row .qr-mini svg { width: 84px; height: 84px; }

.kinds { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 500; color: var(--ink); }
.kind .ico { color: var(--accent); width: 16px; height: 16px; }
.kinds.lg .kind { font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.tags { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.tag .ico { color: var(--accent); width: 16px; height: 16px; }
.tags.wrap .tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: .84rem; color: var(--ink); }

/* ---------- beaches ---------- */
#view[data-page="beaches"] { display: flex; flex-direction: column; overflow: hidden; }
.beach-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; }
.beach-list { overflow-y: auto; padding: 18px 16px 24px var(--pad); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.beach { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; transition: transform .15s; width: 100%; }
.beach-img { position: relative; width: 116px; height: 86px; flex: none; border-radius: 10px; overflow: hidden; background: #e4e0d8; }
.beach-img img { width: 100%; height: 100%; object-fit: cover; }
.pin-no { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.beach-body { min-width: 0; }
.beach .tags { margin-top: 6px; }
.beach-map { position: relative; border-left: 1px solid var(--line); }
#map { position: absolute; inset: 0; background: #e9e6df; }
.pin { display: grid; place-items: center; }
.pin span, .pin.home svg { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid #fff; display: grid; place-items: center; font: 700 13px/1 -apple-system, Roboto, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.pin.home svg { background: var(--warn); padding: 5px; }
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: saturate(.45) brightness(1.04) contrast(.92); }
.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }

/* ---------- news ---------- */
.news-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.ev-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.ev-day-label { padding: 12px 18px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.ev-day-label::first-letter { text-transform: uppercase; }
.ev { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 12px 18px; transition: transform .15s; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev-time { font-weight: 600; font-size: .92rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.ev-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ev-cat { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; }
.ev-img { width: 78px; height: 58px; object-fit: cover; border-radius: 8px; background: #e4e0d8; }
.note-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.note-item[data-goto] { cursor: pointer; }
.note-ico { color: var(--accent); margin-top: 2px; }
.note-text { flex: 1; }
.note-text h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.note-text p { color: var(--muted); line-height: 1.45; font-size: .9rem; }
.qr-mini { flex: none; width: 88px; text-align: center; }
.qr-mini svg { width: 88px; height: 88px; display: block; }
.qr-mini small { display: block; font-size: .68rem; color: var(--muted); margin-top: 6px; line-height: 1.25; }
.qr-mini.lg, .qr-mini.lg svg { width: 116px; }
.qr-mini.lg svg { height: 116px; }

/* ---------- move ---------- */
.move-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.panel.move { display: flex; gap: 16px; align-items: flex-start; }
.move-ico { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.move-text { flex: 1; }
.move-text h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.move-text p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.panel.move .qr-mini, .panel.move .qr-mini svg { width: 80px; height: 80px; }

/* ---------- info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { font-weight: 600; }
.host { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.host-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; }
.host-phone { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.em-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.em { padding: 12px 4px 10px; border-bottom: 1px solid var(--line); }
.em b { display: block; font-size: 1.6rem; font-weight: 600; color: var(--warn); line-height: 1.1; font-variant-numeric: tabular-nums; }
.em span { font-size: .8rem; color: var(--muted); line-height: 1.25; display: block; }
.health { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.health + .health { border-top: 1px solid var(--line); }
.health-text { flex: 1; }
.health-text b { display: block; font-weight: 600; margin-bottom: 3px; }
.health-text small { color: var(--muted); }
.health .qr-mini, .health .qr-mini svg { width: 80px; height: 80px; }
.rules ul, .tips ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules li { padding-left: 18px; position: relative; line-height: 1.4; font-size: .95rem; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tips li { display: flex; gap: 12px; line-height: 1.4; font-size: .93rem; }
.tips li .ico { color: var(--accent); margin-top: 2px; }
.take { display: flex; gap: 18px; align-items: center; }
.credits { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); line-height: 1.5; padding: 8px 2px; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(20, 26, 32, .5);
  display: grid; place-items: center; padding: 28px;
  opacity: 0; transition: opacity .18s;
}
.modal.show { opacity: 1; }
.m-box {
  position: relative; width: min(980px, 100%); max-height: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  transform: translateY(14px) scale(.98); transition: transform .2s;
}
.modal.show .m-box { transform: none; }
.m-box.noimg { grid-template-columns: 1fr; width: min(640px, 100%); }
.m-media { min-height: 420px; background: #e4e0d8; }
.m-media img { width: 100%; height: 100%; object-fit: cover; }
.m-media.logo img { width: 40%; height: auto; }
.m-body { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.m-head { display: flex; align-items: center; gap: 12px; padding-right: 50px; }
.m-head h2 { font-size: 1.75rem; }
.m-body p { color: var(--muted); line-height: 1.55; font-size: 1.02rem; }
.ev-when { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ev-when .ico { color: var(--accent); }
.m-qr { margin-top: auto; display: flex; gap: 16px; align-items: center; background: var(--bg); border-radius: 14px; padding: 14px; }
.m-qr .qr { width: 128px; flex: none; background: #fff; padding: 8px; border-radius: 8px; }
.m-qr b { display: block; font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.m-qr .ico { color: var(--muted); width: 28px; height: 28px; }
.m-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.lang-picker h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin-bottom: 8px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-opt { display: flex; justify-content: space-between; align-items: center; min-height: 62px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; }
.lang-opt span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.lang-opt.active { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- screensaver ---------- */
.saver { position: fixed; inset: 0; z-index: 4000; background: #000; color: #fff; overflow: hidden; }
.saver-img { position: absolute; inset: -4%; background: center / cover; opacity: 0; transition: opacity 2s ease, transform 12s linear; transform: scale(1); }
.saver-img.on { opacity: .8; transform: scale(1.06); }
.saver::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 60%); }
.saver-info { position: absolute; left: 6vw; bottom: 8vh; z-index: 2; transition: transform 2s; }
.saver-clock { font-size: clamp(5rem, 13vw, 9rem); font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.saver-date { font-family: var(--serif); font-size: 1.7rem; opacity: .95; margin-top: 6px; }
.saver-date::first-letter { text-transform: uppercase; }
.saver-weather { font-size: 1.25rem; margin-top: 8px; opacity: .85; }
.saver-touch { margin-top: 26px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.saver.night .saver-img { display: none; }
.saver.night .saver-info { opacity: .35; }
.saver.night .saver-touch { display: none; }

/* ---------- smaller tablets (1024 × 768) ---------- */
@media (max-width: 1100px) {
  :root { --nav-w: 96px; font-size: 16px; }
  .nav { padding: 20px 8px 14px; }
  .brand { padding: 0 0 16px; text-align: center; }
  .brand-name { font-size: 1rem; }
  .brand-city, .nav-clock, .lang-btn .lang-name { display: none; }
  .nav-item { justify-content: center; padding: 6px 0; flex-direction: column; gap: 5px; min-height: 66px; text-align: center; }
  .nav-item span { font-size: .68rem; line-height: 1.1; }
  .lang-btn { justify-content: center; flex-direction: column; gap: 2px; padding: 8px 0; min-height: 60px; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .forecast { grid-column: 1 / -1; padding: 14px 18px; }
  .forecast h2 { margin-bottom: 8px; }
  .fc-day { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 6px 4px; }
  .fc-name { width: 100%; }
  .hero { min-height: 200px; }
  .tiles { min-height: 120px; }
  .beach-layout { grid-template-columns: minmax(300px, 46%) 1fr; }
  .beach-img { width: 96px; height: 76px; }
  .news-layout { grid-template-columns: 1fr; }
  .m-media { min-height: 340px; }
}
@media (max-width: 860px) {
  .info-grid, .move-grid, .grid.rows { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .m-box { grid-template-columns: 1fr; }
  .m-media { min-height: 200px; max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
