/* px_stay stay-features — layout + look per style (template tokens only) */

/* ===== style-1 · head + photo column | 2 × 2 icon cells ===== */
.px-stay-features.style-1 .px-stay-features__row {
  --t4-gutter-x: var(--px-sp-6);
  --t4-gutter-y: var(--px-sp-10);
  --bs-gutter-x: var(--px-sp-6);
  --bs-gutter-y: var(--px-sp-10);
}
@media (min-width: 1200px) {
  .px-stay-features.style-1 .px-stay-features__row {
    --t4-gutter-x: var(--px-sp-10);
    --bs-gutter-x: var(--px-sp-10);
  }
}
.px-stay-features.style-1 .px-stay-features__aside {
  display: flex;
  flex-direction: column;
}
.px-stay-features.style-1 .px-sec-head {
  margin-bottom: var(--px-sp-10);
}
.px-stay-features.style-1 .px-sec-desc {
  font-size: var(--body-font-size);
}
/* Photo pinned to the column bottom; frame owns the ratio, the edit-mode wrapper + img fill it */
.px-stay-features.style-1 .px-stay-features__frame {
  margin-top: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--px-radius);
}
.px-stay-features.style-1 .px-stay-features__frame > .px-editable-media,
.px-stay-features.style-1 .px-stay-features__img {
  display: block;
  width: 100%;
  height: 100%;
}
.px-stay-features.style-1 .px-stay-features__img {
  object-fit: cover;
}

/* Cells split by 1px rules: the grid ground shows through the gaps */
.px-stay-features.style-1 .px-stay-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bs-border-width);
  height: 100%;
  background: var(--px-border-light);
}
.px-stay-features.style-1 .px-stay-features__cell {
  display: flex;
  flex-direction: column;
  padding: var(--px-sp-8);
  background: var(--px-surface-raised);
}
.px-stay-features.style-1 .px-stay-features__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--px-ink-strong);
  border-radius: 50%;
  color: var(--px-ink-strong);
  font-size: var(--px-icon-lg);
}
.px-stay-features.style-1 .px-stay-features__title {
  margin: var(--px-sp-7) 0 var(--px-sp-3);
}
.px-stay-features.style-1 .px-stay-features__text {
  margin: 0;
  color: var(--px-muted);
}

@media (max-width: 575.98px) {
  .px-stay-features.style-1 .px-stay-features__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Phone: icon beside the text, so four cells do not each take a screen */
  .px-stay-features.style-1 .px-stay-features__cell {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-content: start;
    column-gap: var(--px-sp-4);
    padding: var(--px-sp-6);
  }
  .px-stay-features.style-1 .px-stay-features__icon {
    grid-row: span 2;
    width: 3rem;
    height: 3rem;
    font-size: var(--px-icon-md);
  }
  .px-stay-features.style-1 .px-stay-features__title {
    margin: 0 0 var(--px-sp-2);
  }
}
