/* Component „visit”: where and when, the „jó tudni” lines, and the map (loaded on a click) or a photo. The layer order is
   the base's (kit.css), so this file's place among the links does not matter, and the Site's own site.css wins over it. */
@layer sections {
  .visit-grid { display: grid; gap: var(--space-xl); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
  .visit-address { font-family: var(--font-display); font-weight: var(--type-h3-weight); font-size: var(--type-h3-size); line-height: var(--type-h3-leading); letter-spacing: var(--type-h3-tracking); }
  .visit .hours { max-inline-size: 26rem; }
  .visit .hours th, .visit .hours td { border-color: var(--c-line); }
  .visit .hours tr.is-today th, .visit .hours tr.is-today td { color: var(--c-text); }
  .visit .status { background: transparent; border-color: var(--c-line); }
  .visit-photo { box-shadow: var(--shadow-brand); }

  /* „Jó tudni”: a short line each, its icon in the muted text */
  .visit-notes-title { font-size: var(--type-body-size); }
  .visit-notes { display: grid; gap: var(--space-2xs); max-inline-size: 26rem; padding: 0; list-style: none; font-size: var(--step--1); }
  .visit-notes li { display: flex; gap: var(--space-2xs); align-items: start; color: var(--c-text-muted); }
  .visit-notes .icon { inline-size: 1rem; block-size: 1rem; margin-block-start: 0.125rem; color: var(--c-text); }

  /* The map's place: grey until the click, then Google's frame in the same box */
  .visit-map {
    position: relative; overflow: hidden; aspect-ratio: var(--photo-ratio); border-radius: var(--radius-media);
    border: var(--border-w) solid var(--c-line); background: var(--c-surface-2);
  }
  .visit-map-place { display: grid; place-content: center; justify-items: center; gap: var(--space-xs); block-size: 100%; padding: var(--space-m); text-align: center; }
  .visit-map-icon { inline-size: 2rem; block-size: 2rem; stroke-width: 1.5; color: var(--c-text-muted); }
  .visit-map-note { max-inline-size: 32ch; font-size: var(--step--2); line-height: 1.4; color: var(--c-text-muted); }
  .visit-map iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }
  .visit-map.is-loaded { border-color: transparent; }
}
