/*
 * Intuition interiéry – stránka Kontakty (Shoptet)
 * Vložit do: Vzhled a obsah → Editor → HTML kód → Záhlaví (do značky style)
 * Platí jen pro obsah v .intu-kontakt (článek Kontakty), písmo přebírá ze šablony.
 * Lightbox (.intu-lb) vytváří intuition-kontakty.js.
 */

.intu-kontakt {
  --intu-tile: #f4f1ed;
  --intu-tile-hover: #ebe6df;
  --intu-text: #000;
  --intu-muted: rgba(0, 0, 0, 0.6);
  --intu-gap: 12px;
  container-type: inline-size;
  max-width: 1200px;
  margin: 0 auto 48px;
  color: var(--intu-text);
  line-height: 1.55;
}
.intu-kontakt *,
.intu-kontakt *::before,
.intu-kontakt *::after {
  box-sizing: border-box;
}
.intu-kontakt p {
  margin: 0;
}
.intu-kontakt a {
  color: inherit;
}
.intu-kontakt img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Nadpisy sekcí */
.intu-kontakt .intu-title {
  margin: 48px 0 16px;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  border: 0;
}

/* Úvod: fotka výlohy + text */
.intu-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--intu-gap);
}
.intu-hero {
  margin: 0;
}
.intu-hero a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}
.intu-hero img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.intu-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: var(--intu-tile);
}
.intu-kontakt .intu-intro-title {
  margin: 10px 0 16px;
  padding: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  border: 0;
}
.intu-intro-text p:last-child {
  color: var(--intu-muted);
}

/* Dlaždice */
.intu-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--intu-gap);
}
.intu-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px 24px 22px;
  background: var(--intu-tile);
  transition: background-color 0.2s ease;
}
.intu-tile::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  background: var(--intu-icon) no-repeat center / contain;
}
.intu-tile:has(.intu-stretch):hover {
  background: var(--intu-tile-hover);
}
.intu-kontakt .intu-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--intu-muted);
}
.intu-kontakt .intu-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.intu-kontakt .intu-value--mail {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.intu-kontakt .intu-value--small {
  font-size: 16px;
}
.intu-kontakt .intu-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--intu-muted);
}
.intu-kontakt .intu-action {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intu-kontakt .intu-action a {
  padding-right: 20px;
  text-decoration: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat right center / 14px;
  border-bottom: 1px solid currentColor;
}
/* Celá dlaždice je klikací */
.intu-kontakt .intu-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
}
.intu-kontakt .intu-stretch:focus-visible {
  outline: none;
}
.intu-tile:has(.intu-stretch:focus-visible) {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Otevírací doba */
.intu-kontakt .intu-hours {
  width: 100%;
  margin: 2px 0 0;
  border-collapse: collapse;
  font-size: 16px;
  background: none;
  border: 0;
}
.intu-kontakt .intu-hours th,
.intu-kontakt .intu-hours td {
  padding: 4px 0;
  text-align: left;
  vertical-align: baseline;
  background: none;
  border: 0;
}
.intu-kontakt .intu-hours th {
  width: 40%;
  font-weight: 600;
}
.intu-kontakt .intu-hours tr + tr th,
.intu-kontakt .intu-hours tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.intu-kontakt .intu-hours tr + tr td {
  color: var(--intu-muted);
}

/* Fotky prodejny – náhledy */
.intu-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--intu-gap);
}
.intu-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--intu-tile);
  cursor: zoom-in;
}
.intu-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.intu-gallery a:hover img,
.intu-gallery a:focus-visible img {
  transform: scale(1.05);
}

/* Mapa + fakturační údaje */
.intu-bottom {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--intu-gap);
}
.intu-map {
  position: relative;
  min-height: 340px;
  background: var(--intu-tile);
}
.intu-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

/* Responzivita podle šířky obsahu (funguje i vedle postranního panelu) */
@container (max-width: 900px) {
  .intu-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .intu-bottom {
    grid-template-columns: 1fr;
  }
  .intu-intro-text {
    padding: 28px;
  }
  .intu-kontakt .intu-intro-title {
    font-size: 24px;
  }
}
@container (max-width: 560px) {
  .intu-intro,
  .intu-tiles,
  .intu-gallery,
  .intu-bottom {
    --intu-gap: 8px;
  }
  .intu-intro {
    grid-template-columns: 1fr;
  }
  .intu-intro-text {
    padding: 24px 20px;
  }
  .intu-kontakt .intu-intro-title {
    font-size: 22px;
  }
  .intu-tiles {
    grid-template-columns: 1fr;
  }
  .intu-tile {
    min-height: 0;
    padding: 20px;
  }
  .intu-kontakt .intu-title {
    margin-top: 36px;
  }
  .intu-map {
    min-height: 280px;
  }
  /* První fotka přes celou šířku, zbylé čtyři 2 × 2 */
  .intu-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .intu-gallery a:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }
}

/* Lightbox – zvětšená fotka */
.intu-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.intu-lb.is-open {
  opacity: 1;
  visibility: visible;
}
.intu-lb figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.intu-lb img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.intu-lb figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}
.intu-lb button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}
.intu-lb button:hover {
  opacity: 0.6;
}
.intu-lb button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.intu-lb-close {
  top: 8px;
  right: 8px;
}
.intu-lb-prev {
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}
.intu-lb-next {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}
.intu-lb-count {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.6);
}
.intu-lb.is-single .intu-lb-prev,
.intu-lb.is-single .intu-lb-next,
.intu-lb.is-single .intu-lb-count {
  display: none;
}
html.intu-lb-lock,
html.intu-lb-lock body {
  overflow: hidden;
}
@media (max-width: 600px) {
  .intu-lb {
    padding: 56px 12px 72px;
  }
  .intu-lb-prev,
  .intu-lb-next {
    top: auto;
    bottom: 8px;
    transform: none;
  }
  .intu-lb-prev {
    left: calc(50% - 56px);
  }
  .intu-lb-next {
    right: calc(50% - 56px);
  }
}

/* Ikony dlaždic */
.intu-i-pin { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.intu-i-clock { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.intu-i-phone { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.intu-i-mail { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E"); }
.intu-i-bag { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.intu-i-truck { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.5'/%3E%3Ccircle cx='17' cy='17.5' r='1.5'/%3E%3C/svg%3E"); }
.intu-i-return { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E"); }
.intu-i-box { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }
.intu-i-doc { --intu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h7'/%3E%3C/svg%3E"); }
