/*
 * GETO KOGEN / 提携宿泊施設専用（2026-10-28）
 * 使用範囲: .geto-stays__* のみ
 * 旧 .post / .multi-columns-row / Bootstrap column rules から完全分離。
 * 外部 CSS はこのファイルだけを新規追加し、既存の共通 CSS は変更しない。
 */

.geto-stays__section,
.geto-stays__section * {
  box-sizing: border-box;
}

.geto-stays__section {
  width: 100%;
  padding: 55px 0 65px;
  background: #fff;
}

.geto-stays__section + .geto-stays__section {
  border-top: 1px solid #e6edf4;
}

.geto-stays__container {
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

.geto-stays__heading {
  margin: 0;
  padding: 0;
  color: #26374b;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(22px, 2.7vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
}

.geto-stays__divider {
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px auto 30px;
  padding: 0;
  border: 0;
  background: #246fb8;
}

/* Grid, not floated columns: card heights do not affect subsequent rows. */
.geto-stays__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.geto-stays__item {
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

.geto-stays__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  box-shadow: 0 3px 13px rgb(25 63 102 / 6%);
}

.geto-stays__photo,
.geto-stays__photo a {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.geto-stays__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.geto-stays__header {
  padding: 17px 18px 11px;
  min-width: 0;
}

.geto-stays__name {
  margin: 0 0 8px;
  padding: 0;
  color: #244b70;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.geto-stays__name a {
  color: inherit;
  text-decoration: none;
}

.geto-stays__name a:hover,
.geto-stays__name a:focus-visible {
  color: #0096e0;
  text-decoration: underline;
}

.geto-stays__meta {
  color: #617487;
  font-size: 12.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.geto-stays__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 0 18px 19px;
  color: #3c4a58;
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.geto-stays__description {
  flex: 1 1 auto;
  margin: 0 0 16px;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Booking badges wrap instead of creating horizontal overflow. */
.geto-stays__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e9eef2;
  line-height: 1.8;
}

.geto-stays__actions a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
  text-decoration: none;
}

.geto-stays__actions a:focus-visible {
  outline: 2px solid #246fb8;
  outline-offset: 3px;
}

.geto-stays__actions a > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  border: 0;
}

.geto-stays__actions a > img[src*="btn_booking"] {
  max-height: 62px;
}

/* 花巻温泉: existing text links and line breaks are kept intact. */
.geto-stays__actions--mixed {
  display: block;
}

.geto-stays__actions--mixed a {
  margin: 0 6px 5px 0;
}

.geto-stays__actions p {
  margin: 0;
  line-height: 1.8;
}

.geto-stays__actions--mixed a {
  color: #246fb8;
  text-underline-offset: 2px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .geto-stays__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 639px) {
  .geto-stays__section {
    padding: 36px 0 44px;
  }

  .geto-stays__container {
    padding: 0 16px;
  }

  .geto-stays__divider {
    margin: 12px auto 22px;
  }

  .geto-stays__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .geto-stays__header {
    padding: 15px 15px 10px;
  }

  .geto-stays__content {
    padding: 0 15px 16px;
  }

  .geto-stays__name {
    font-size: 16px;
  }

  .geto-stays__actions {
    gap: 7px 10px;
  }
}
