/* =========================
   property-detail.html 用（追記）
========================= */

.page-hero {
  padding: 48px 0 24px;
}

.page-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.breadcrumb {
  margin-top: 10px;
  padding-left: 40px;
}
.breadcrumb-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #666;
}
.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 10px;
  color: #aaa;
}

.property-detail {
  padding: 24px 0 80px;
}

.property-detail__header {
  margin: 10px 0 18px;
  text-align: center;
}
.property-detail__label {
  display: inline-block;
  padding-left: 12px;
  position: relative;
  font-weight: 700;
  margin: 0 0 6px;
}
.property-detail__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 1.2em;
  background: #76b54a; /* 緑に寄せ */
  border-radius: 2px;
}
.property-detail__name {
  margin: 0 0 6px;
  font-size: 22px;
}
.property-detail__sub {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.property-detail__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .property-detail__grid {
    grid-template-columns: 1fr;
  }
}

.property-detail__media {
  min-width: 0;
}
.property-detail__hint {
  margin: 10px 0 0;
  color: #666;
  font-size: 13px;
}

.property-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.06);
}

.property-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.property-kv {
  margin: 0;
}
.property-kv__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eee;
}
.property-kv__row:first-child {
  border-top: none;
}
.property-kv dt {
  color: #666;
}
.property-kv dd {
  margin: 0;
  font-weight: 600;
}

.property-card__cta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn--primary {
  background: #fff;
  color: #333;
  border-color: #ddd;
}
.btn--primary:hover {
  filter: brightness(0.95);
}
.btn--ghost {
  background: #7ab851;
  color: #fff;
  border-color: #7ab851;
}
.btn--ghost:hover {
  filter: brightness(0.95);
}
.btn--lg {
  padding: 14px 16px;
  font-size: 16px;
}

.btn--ghost svg {
  margin-left: 16px;
}

.property-section {
  margin-top: 28px;
}
.section-title {
  font-size: 18px;
  margin: 0 0 10px;
  padding-left: 12px;
  position: relative;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 6px;
  height: 1.2em;
  background: #76b54a;
  /* border-radius: 2px; */
}
.property-text {
  margin: 0;
  line-height: 1.9;
  color: #444;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag {
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  border-radius: 999px;
  font-size: 13px;
  color: #444;
}

.property-list {
  margin: 0;
  padding-left: 18px;
  color: #444;
  line-height: 1.8;
}

.property-detail__bottom-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

/* 画像・ボタン系の崩れ防止（全体CSSと干渉しがち） */
.property-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライダー（最低限の見た目） */
.property-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e9e9e9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.property-slider__viewport {
  width: 100%;
}
.property-slider__track {
  display: flex;
  transition: transform 0.25s ease;
  will-change: transform;
}
.property-slider__slide {
  flex: 0 0 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.property-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.property-slider__arrow--prev {
  left: 12px;
}
.property-slider__arrow--next {
  right: 12px;
}

.property-slider__count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.property-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.property-slider__dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.property-slider__dots .dot.is-active {
  background: #76b54a;
  border-color: #76b54a;
}

/* -------------------------
   property-detail slider fix
------------------------- */

/* コンテナ側の縮み崩れ防止（grid/flexの定番） */
.property-detail__media,
.property-detail__info {
  min-width: 0;
}

/* viewport で確実に隠す＆サイズ確定 */
.property-slider__viewport {
  width: 100%;
  overflow: hidden;
  min-width: 0;
}

/* track のはみ出し/ズレ対策 */
.property-slider__track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
}

/* slide の高さを確実に作る（aspect-ratio を活かす） */
.property-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
}

/* img は slide の枠にフィットさせる */
.property-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 矢印・カウント・ドットのクリック性と重なり順を安定 */
.property-slider__arrow,
.property-slider__count,
.property-slider__dots {
  z-index: 2;
}

/* 影が切れる/角が欠ける対策（親で overflow hidden を使うので） */
.property-slider {
  isolation: isolate;
}

/* モバイルで矢印がはみ出す/小さすぎる対策（任意） */
@media (max-width: 520px) {
  .property-slider__arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .property-slider__arrow--prev {
    left: 8px;
  }
  .property-slider__arrow--next {
    right: 8px;
  }
  .property-slider__count {
    top: 8px;
    right: 8px;
    padding: 5px 9px;
  }
}
/* property-detail lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.pd-lightbox.is-open {
  display: block;
}

.pd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.pd-lightbox__panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(980px, 92vw);
  height: min(640px, 80vh);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 14px;
}

.pd-lightbox__viewport {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.pd-lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.pd-lightbox__prev,
.pd-lightbox__next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.pd-lightbox__count {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .pd-lightbox__panel {
    grid-template-columns: 44px 1fr 44px;
    height: min(340px, 80vh);
  }
  .pd-lightbox__prev,
  .pd-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
