/* ===== Property Spec Table ===== */
.prop-spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb; /* gray-200 */
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.7;
}
.prop-spec tbody tr:nth-child(odd) td,
.prop-spec tbody tr:nth-child(odd) th {
  background: #fafafa;
}
.prop-spec th,
.prop-spec td {
  padding: 14px 16px;
  vertical-align: top;
}
.prop-spec th {
  width: 28%;
  color: #374151; /* gray-700 */
  background: #f8fafc; /* slate-50 */
  font-weight: 600;
  border-right: 1px solid #f0f0f0;
}
.prop-spec td {
  color: #111827; /* gray-900 */
}
.prop-spec tbody tr + tr th,
.prop-spec tbody tr + tr td {
  border-top: 1px solid #eee;
}
.prop-spec tbody tr:hover td,
.prop-spec tbody tr:hover th {
  background: #f5f7fb;
}

/* スマホ(<=768px)はカード風に縦積み */
@media (max-width: 768px) {
  .prop-spec {
    font-size: 15px;
  }
  .prop-spec th {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .prop-spec td {
    display: block;
    width: 100%;
    padding-top: 10px;
  }
}

/* ===== Gallery: main + thumbs ===== */
.prop-gallery-wrap {
  margin: 28px 0 16px;
}
.prop-gallery-wrap .pg-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6; /* gray-100 */
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.prop-gallery-wrap .pg-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 180ms ease;
}
.prop-gallery-wrap .pg-main figcaption {
  position: absolute;
  inset: auto 8px 8px 8px;
  background: rgba(17,24,39,0.55);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
}

/* thumbs */
.prop-gallery-wrap .pg-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.prop-gallery-wrap .pg-thumbs button {
  appearance: none;
  border: 2px solid transparent;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 120ms ease, border-color 120ms ease;
}
.prop-gallery-wrap .pg-thumbs button:hover,
.prop-gallery-wrap .pg-thumbs button:focus-visible {
  transform: translateY(-1px);
  border-color: #60a5fa; /* blue-400 */
  outline: none;
}
.prop-gallery-wrap .pg-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.prop-gallery-wrap .pg-thumbs button[aria-current="true"] {
  border-color: #fb923c; /* orange-400 */
}

/* スマホ */
@media (max-width: 768px) {
  .prop-gallery-wrap .pg-main { aspect-ratio: 4/3; }
  .prop-gallery-wrap .pg-thumbs img { height: 64px; }
}

/* Fallback: 元のULを隠す（JS成功時のみJS側で隠す） */
.prop-gallery._enhanced { display: none !important; }

/* ===== Hero image above spec table ===== */
.prop-hero {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6; /* gray-100 */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin: 24px 0 18px;
}
.prop-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .prop-hero { aspect-ratio: 4/3; margin: 18px 0 14px; }
}
