/* Patch 120: modulové CSS pro patro, výtah a navazující přístupové bloky. */

.ap-access-grid--floor-only {
  grid-template-columns: 1fr;
}

.ap-access-block--wide {
  width: 100%;
}

.ap-floor-row {
  grid-template-columns: repeat(9, minmax(72px, 1fr)) !important;
  align-items: stretch;
  gap: 8px;
}

.ap-floor-row .ap-choice,
.ap-floor-row .ap-choice--floor {
  min-width: 0;
  min-height: 72px;
  padding: 10px 8px;
}

.ap-floor-row .ap-choice--floor strong {
  font-size: .9rem;
  line-height: 1.12;
}

.ap-floor-row .ap-choice small {
  display: block;
  max-width: 100%;
}

@media (max-width: 980px) {
  .ap-floor-row {
    grid-template-columns: repeat(5, minmax(86px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .ap-floor-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    grid-template-columns: none !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .ap-floor-row .ap-choice--floor {
    scroll-snap-align: start;
  }
}

@media (max-width: 380px) {
  .ap-floor-row {
    grid-auto-columns: minmax(88px, 1fr);
  }
}

/* Patch 131: upřesnění výtahu po výběru volby S výtahem. */
.ap-elevator-detail-block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.ap-elevator-detail-block h5 {
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 800;
  color: #172033;
}

.ap-elevator-detail-block p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: .9rem;
}

.ap-elevator-size-row,
.ap-elevator-type-row {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.ap-elevator-type-row {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.ap-choice--elevator-detail {
  min-height: 82px;
}

.ap-choice--elevator-detail .choice-icon {
  font-weight: 900;
}

@media (max-width: 640px) {
  .ap-elevator-size-row,
  .ap-elevator-type-row {
    grid-template-columns: 1fr;
  }
}
