/* 施設ページ・カード専用スタイル */

/* ── 施設一覧カード ── */
.gs-facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gs-sp-md);
  padding: var(--gs-sp-lg) var(--gs-side-pad);
  max-width: var(--gs-max-w-wide);
  margin: 0 auto;
}
@media (min-width: 600px) {
  .gs-facility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gs-facility-grid { grid-template-columns: repeat(3, 1fr); }
}

.gs-card {
  background: var(--gs-white);
  border-radius: var(--gs-r-lg);
  overflow: hidden;
  box-shadow: var(--gs-shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--gs-text);
  display: block;
}
.gs-card:hover {
  box-shadow: var(--gs-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.gs-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gs-light);
}
.gs-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.gs-card:hover .gs-card__thumb img { transform: scale(1.03); }
.gs-card__video-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; padding: 2px 7px;
  border-radius: var(--gs-r-full);
}
.gs-card__body { padding: 12px; }
.gs-card__area { font-size: 11px; color: var(--gs-main); font-weight: 700; margin-bottom: 4px; }
.gs-card__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.gs-card__catch { font-size: 13px; color: var(--gs-muted); margin-bottom: 8px; }
.gs-card__meta {
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 12px;
}
.gs-card__price { color: var(--gs-deep); font-weight: 700; }

/* ── 絞り込みフィルター ── */
.gs-filter-wrap {
  background: var(--gs-white);
  border-bottom: 1px solid var(--gs-border);
  padding: var(--gs-sp-md) var(--gs-side-pad);
}
.gs-filter-toggle {
  background: none; border: 1px solid var(--gs-main);
  color: var(--gs-main); font-weight: 700;
  padding: 8px 20px; border-radius: var(--gs-r-full);
  cursor: pointer; font-size: var(--gs-fs-sm);
}
.gs-filter-body {
  display: none; margin-top: var(--gs-sp-md);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gs-sp-md);
}
.gs-filter-section label { font-size: var(--gs-fs-sm); font-weight: 700; color: var(--gs-deep); display: block; margin-bottom: 6px; }
.gs-filter-section select {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--gs-border); border-radius: var(--gs-r-md);
  font-size: var(--gs-fs-sm); background: var(--gs-white);
  color: var(--gs-text);
}
.gs-filter-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-filter-checks label {
  font-size: 12px; font-weight: 400;
  background: var(--gs-light); border-radius: var(--gs-r-full);
  padding: 4px 12px; cursor: pointer;
  border: 1px solid var(--gs-border);
}
.gs-filter-checks input:checked + span,
.gs-filter-checks input:checked ~ * {
  background: var(--gs-main); color: #fff;
}
.gs-filter-apply {
  background: var(--gs-deep); color: #fff;
  border: none; border-radius: var(--gs-r-full);
  padding: 10px 32px; font-weight: 700;
  cursor: pointer; font-size: var(--gs-fs-sm);
  margin-top: var(--gs-sp-md);
}

/* ── 施設詳細ページ ── */

/* カルーセル */
.gs-carousel-wrap {
  width: 100%; background: #000;
  position: relative;
}
.gs-carousel-wrap .swiper { width: 100%; }
.gs-carousel-wrap .swiper-slide img {
  width: 100%; max-height: 70vw;
  object-fit: cover;
}
@media (min-width: 600px) {
  .gs-carousel-wrap .swiper-slide img { max-height: 400px; }
}
.swiper-button-next, .swiper-button-prev {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.swiper-pagination-bullet-active { background: var(--gs-main) !important; }

/* サムネイル列 */
.gs-carousel-thumbs {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 4px var(--gs-side-pad);
  background: #111;
  scrollbar-width: none;
}
.gs-carousel-thumbs::-webkit-scrollbar { display: none; }
.gs-carousel-thumbs img {
  width: 56px; height: 42px; object-fit: cover;
  border-radius: 2px; opacity: .6; cursor: pointer;
  flex-shrink: 0; transition: opacity .15s;
}
.gs-carousel-thumbs img.active { opacity: 1; outline: 2px solid var(--gs-main); }

/* 動画セクション */
.gs-video-wrap { padding: var(--gs-sp-lg) var(--gs-side-pad); background: var(--gs-white); }
.gs-video-thumb-wrap {
  position: relative; cursor: pointer;
  background: #000; border-radius: var(--gs-r-md); overflow: hidden;
}
.gs-video-thumb-wrap img { width: 100%; display: block; opacity: .85; }
.gs-video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.gs-video-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent var(--gs-deep);
  margin-left: 4px;
}
.gs-video-iframe-wrap {
  display: none; position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--gs-r-md); overflow: hidden;
}
.gs-video-iframe-wrap.portrait { padding-bottom: 177.7%; /* 9:16 */ }
.gs-video-iframe-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* 施設名・ヘッダー情報 */
.gs-facility-header {
  padding: var(--gs-sp-lg) var(--gs-side-pad) var(--gs-sp-md);
  background: var(--gs-white);
  border-bottom: 1px solid var(--gs-border);
}
.gs-facility-name { font-size: var(--gs-fs-xl); font-weight: 700; color: var(--gs-text); margin-bottom: 6px; }
.gs-facility-catch { font-size: var(--gs-fs-sm); color: var(--gs-muted); margin-bottom: 10px; }
.gs-facility-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* 基本情報テーブル */
.gs-info-section { padding: var(--gs-sp-lg) var(--gs-side-pad); background: var(--gs-white); margin-top: var(--gs-sp-md); }
.gs-info-table { width: 100%; border-collapse: collapse; font-size: var(--gs-fs-sm); }
.gs-info-table th, .gs-info-table td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--gs-border);
  vertical-align: top;
}
.gs-info-table th {
  width: 38%; background: var(--gs-light);
  color: var(--gs-deep); font-weight: 700; white-space: nowrap;
}

/* 施設の特徴 */
.gs-features-section { padding: var(--gs-sp-lg) var(--gs-side-pad); background: var(--gs-white); margin-top: var(--gs-sp-md); }
.gs-feature-item { margin-bottom: var(--gs-sp-md); padding-bottom: var(--gs-sp-md); border-bottom: 1px solid var(--gs-border); }
.gs-feature-item:last-child { border-bottom: none; margin-bottom: 0; }
.gs-feature-title {
  font-size: var(--gs-fs-base); font-weight: 700; color: var(--gs-deep);
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.gs-feature-title::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gs-main); color: #fff; font-size: 12px;
  flex-shrink: 0;
}
.gs-feature-body { font-size: var(--gs-fs-sm); color: var(--gs-text); line-height: var(--gs-lh-loose); }

/* 体験者の感想 */
.gs-reviews-section { padding: var(--gs-sp-lg) var(--gs-side-pad); background: var(--gs-white); margin-top: var(--gs-sp-md); }
.gs-review-item {
  background: var(--gs-light); border-radius: var(--gs-r-md);
  padding: var(--gs-sp-md); margin-bottom: var(--gs-sp-md);
}
.gs-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gs-review-date { font-size: var(--gs-fs-xs); color: var(--gs-muted); }
.gs-review-body { font-size: var(--gs-fs-sm); line-height: var(--gs-lh-loose); }
.gs-review-note { font-size: 11px; color: var(--gs-muted); margin-top: var(--gs-sp-md); }

/* 近くの施設 */
.gs-nearby-section { padding: var(--gs-sp-lg) var(--gs-side-pad); margin-top: var(--gs-sp-md); }
.gs-nearby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gs-sp-sm); }
