/* LOCATIONS · V6 "SREBRO"
   Signature: THE BOARD. One ruled manifest of every address, filterable, with a
   small frame beside it that cross-dissolves to whichever row you point at.
   The filter is operable, the crossfade finishes in one pass: nothing here is
   ever caught half drawn. */

/* ------------------------------------------------------------- the opening */

.op {
  position: relative;
  min-height: min(68svh, 720px);
  display: grid;
  align-content: end;
  padding-block: calc(var(--hd-h) + clamp(60px, 12vh, 130px)) clamp(48px, 8vh, 96px);
}
.op-in { display: grid; gap: clamp(20px, 3vh, 36px); }
.op-t { display: grid; gap: clamp(16px, 2.4vh, 28px); justify-items: start; }
.op-t h1 { max-width: 17ch; }
/* the cue sits outside .shell in the markup, so it carries its own gutter or
   its hairline runs off the left edge of the screen */
.op > .descend { margin-top: clamp(18px, 3vh, 34px); padding-inline: var(--gut); }

/* ================================================================ the board */

.sec--ix { padding-top: clamp(70px, 9vh, 120px); }

/* the three families of names, as a ruled register above the board */
.fam { margin-top: clamp(38px, 5.5vh, 72px); }
.fam-l { margin-top: clamp(24px, 3.4vh, 42px); border-top: 1px solid var(--hair); }
.famr {
  display: grid;
  grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 44px);
  padding: clamp(16px, 2.4vh, 28px) 0;
  border-bottom: 1px solid var(--hair);
}
.famr-h { font-size: clamp(1.15rem, 1.7vw, 1.55rem); color: var(--lume); }
.famr-p { font-family: var(--sans); font-weight: 300; font-size: .95rem; color: var(--lume-3); line-height: 1.55; }
.famr-t { display: grid; gap: .9em; }

/* a house named inside prose: quiet, mono, with the metal underline on hover */
.nm-row { display: flex; flex-wrap: wrap; gap: .5em 1.4em; }
.nm-l {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lume-2);
  padding-bottom: .25em;
  box-shadow: inset 0 -1px 0 var(--hair);
  transition: color .3s, box-shadow .3s;
}
.nm-l:hover { color: var(--lume); box-shadow: inset 0 -1px 0 var(--ag); }

/* the filter: text controls, no pills, no chips */
.ixf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(12px, 1.6vw, 22px);
  margin-top: clamp(34px, 5vh, 60px);
}
.ixf-b {
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lume-3);
  padding: .35em 0;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.ixf-b:hover { color: var(--lume-2); }
.ixf-b[aria-pressed="true"] { color: var(--lume); border-bottom-color: var(--ag); }
.ixf-sep { width: 1px; height: 12px; background: var(--hair); }

.board {
  margin-top: clamp(22px, 3vh, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 3vw, 58px);
  align-items: start;
}

.ixl { border-top: 1px solid var(--hair); }
.ixr {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, 1.1fr) auto minmax(0, 150px);
  align-items: baseline;
  gap: clamp(8px, 1.2vw, 20px);
  padding: clamp(12px, 1.7vh, 20px) 0;
  border-bottom: 1px solid var(--hair);
  transition: opacity .45s ease, background .35s ease;
}
.ixr[hidden] { display: none; }
.ixr:hover, .ixr.is-hot { background: rgba(243, 241, 236, .03); }
.ixr-no { font-family: var(--mono); font-size: .68rem; color: var(--lume-3); }
.ixr-a { display: grid; gap: .3em; }
.ixr-nm { font-family: var(--serif); font-size: clamp(1.06rem, 1.5vw, 1.35rem); color: var(--lume); line-height: 1.15; }
.ixr:hover .ixr-nm, .ixr.is-hot .ixr-nm { font-style: italic; }
.ixr-city, .ixr-hrs, .ixr-km {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .05em;
  color: var(--lume-3);
  line-height: 1.5;
}
.ixr-city { text-transform: uppercase; }
.ixr-hrs { display: grid; gap: .3em; }
.ixr-area { color: rgba(243, 241, 236, .34); }
.ixr-pend { font-style: italic; }
.ixr-km { color: var(--ag); white-space: nowrap; }
.ixr-km.is-origin { color: var(--lume-2); font-style: italic; }
/* a bare square with no words beside it reads as a stray glyph: rows whose
   hours are unconfirmed already say so in the line above */
.ixr-st { display: grid; gap: .45em; justify-items: start; }
.ixr-st .olight--pending { display: none; }
.ixr-tel { font-family: var(--mono); font-size: .7rem; color: var(--lume-2); white-space: nowrap; }
.ixr-tel:hover { color: var(--lume); }
.ixr-tel--pend { font-style: italic; color: var(--lume-3); }
/* the menu, under the number on every row of the board. Added on the client
   review of 01.09.2026 ("meni da se dobro vidi"): the card used to be reachable
   only from inside a room. */
.ixr-menu {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .01em;
  color: var(--lume);
  white-space: nowrap;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: border-color .3s;
}
.ixr-menu:hover { border-color: var(--lume); }

/* the frame beside the board: exactly one plate is on at any moment, including
   before a pointer has moved and with JavaScript off */
.brd-ph { position: sticky; top: calc(var(--hd-h) + 28px); }
.brd-fr { position: relative; aspect-ratio: 4 / 5; background: var(--stone); }
.brd-i {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.brd-i.is-on { opacity: 1; visibility: visible; }
.brd-i picture { clip-path: none; height: 100%; }
.brd-i img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.brd-i figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, .22) 30%,
      rgba(8, 9, 11, .52) 58%, rgba(8, 9, 11, .78) 80%, rgba(8, 9, 11, .9) 100%);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lume-2);
}

@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr; }
  .brd-ph { display: none; }
  .ixr { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .ixr-hrs { grid-column: 2; }
  .ixr-km { grid-column: 3; grid-row: 1; }
  .ixr-st { grid-column: 2 / -1; grid-auto-flow: column; justify-content: start; gap: 1.4em; }
}
@media (max-width: 700px) {
  .famr { grid-template-columns: 1fr; gap: 10px; }
  .ixr { grid-template-columns: 28px minmax(0, 1fr); }
  .ixr-km { grid-column: 2; grid-row: auto; }
}

/* ----------------------------------------------------------- from the pier */

.pier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
  gap: clamp(26px, 4vw, 70px);
  align-items: end;
}
.pier-txt > * + * { margin-top: clamp(16px, 2.2vh, 28px); }

@media (max-width: 860px) {
  .pier-grid { grid-template-columns: 1fr; }
  .pier-ph { max-width: 460px; }
}

/* section density, chosen per section from its content weight */
.sec--pier { --pad: clamp(96px, 13vh, 176px); }
