/* 物件一覧・物件詳細ページ（基本レイアウト） */
/* 設備・周辺環境、物件概要の詳細表、ページ内ナビ、画像ギャラリー・ライトボックスを含む */
/* カテゴリー絞り込みボタンの共通見た目（.category-selector__title、.category-selector__options、.category-selector__control 等）、
   絞り込み結果件数表示の共通見た目（.archive-result）、情報提供日等の日付表示（.meta-date）、
   ページ見出しの共通見た目（.page-header、.page-header__title 等）は main.css を参照 */

/* 物件を探す（カテゴリー絞り込み）：物件一覧固有の見た目差分のみ */

.category-selector--property .category-selector__title::before {
  -webkit-mask: url("../images/icons/magnifying-glass.svg") center / contain no-repeat;
  mask: url("../images/icons/magnifying-glass.svg") center / contain no-repeat;
}

/* 物件一覧ページの見出し */

.property-list-page .page-header {
  border-bottom: 1px solid var(--line);
}

/* 物件リスト（横スクロールのカード列。物件一覧ページではアーカイブグリッドに切り替える） */

.property-list {
  --property-scrollbar-radius: 999px;

  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--page-padding) 10px 0;
  gap: 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

/* 見出しを省略した物件紹介テンプレートパートでも、カード一覧の上に適切な余白を確保する。 */
.section-properties__content--without-heading {
  margin-top: 2rem;
}

.property-list::-webkit-scrollbar {
  height: 6px;
}

.property-list::-webkit-scrollbar-track {
  border-radius: var(--property-scrollbar-radius);
  background: var(--property-scrollbar-track);
}

.property-list::-webkit-scrollbar-thumb {
  border-radius: var(--property-scrollbar-radius);
  background: var(--property-scrollbar-thumb);
}

.property-list__item {
  flex: 0 0 min(78vw, 20rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
}

.property-list__item .property-card {
  flex: 1;
  height: auto;
}

/* 物件カード */

.property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card-soft);
}

.property-card__photo {
  position: relative;
  aspect-ratio: 1.66 / 1;
  overflow: hidden;
  background: var(--media-placeholder);
}

.property-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 「外観」画像が未設定の物件カード用のブランドプレースホルダー（木目背景＋ロゴ） */
.property-card__photo-brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--brand-placeholder-bg);
  background-image: url("../images/staff-brand-wood-background.webp");
  background-position: center;
  background-size: cover;
}

.property-card__photo-brand-logo {
  width: 40%;
  height: 40%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgb(25 45 37 / 22%));
}

.property-card__category {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
}

.property-card__badge {
  padding: 5px 9px;
  border-radius: 3px;
  color: var(--on-color);
  font-size: var(--font-size-xs);
  font-weight: 800;
  line-height: 1.4;
}

.property-card__badge--new-condominium {
  background: var(--property-badge-new-condominium-bg);
}

.property-card__badge--used-condominium {
  background: var(--property-badge-used-condominium-bg);
}

.property-card__badge--new-house {
  background: var(--property-badge-new-house-bg);
}

.property-card__badge--used-house {
  background: var(--property-badge-used-house-bg);
}

.property-card__badge--land {
  background: var(--property-badge-land-bg);
}

.property-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px 18px;
}

.property-card__title {
  margin: 0 0 0.75rem;
  font-size: var(--font-size-lg);
  line-height: 1.5;
}

.property-card__facts {
  margin-bottom: 0.875rem;
}

.property-card__update {
  margin: auto 0 0.625rem;
  padding-top: 0.25rem;
  text-align: right;
}

.property-card__detail {
  width: calc(100% + 2.25rem);
  min-height: 48px;
  margin: auto -1.125rem -1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  color: var(--on-color);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: background-color var(--motion-base), border-color var(--motion-base);
}

@media (hover: hover) and (pointer: fine) {
  .property-card__detail:not(:disabled):hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
  }
}

.property-card__detail:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -3px;
}

.property-card__detail--disabled {
  color: var(--on-color);
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

/* 価格表示（物件カード・物件詳細サマリーで共通利用） */

.property-price {
  margin: 0;
  padding-bottom: 1rem;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--line);
}

.property-price__label {
  display: block;
  font-weight: 700;
}

.property-price__value {
  display: inline-flex;
  align-items: baseline;
}

.property-price__amount {
  font-weight: 800;
}

.property-price__unit {
  font-weight: 700;
}

.property-price--card .property-price__label {
  margin-bottom: 0.25rem;
  font-size: var(--font-size-xs);
  line-height: 1.4;
}

.property-price--card .property-price__value {
  gap: 0.15em;
}

.property-price--card .property-price__amount {
  font-size: 1.375rem;
  line-height: 1.3;
}

.property-price--card .property-price__unit {
  font-size: var(--font-size-base);
}

.property-price--summary .property-price__label {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.property-price--summary .property-price__value {
  gap: 0.25rem;
}

.property-price--summary .property-price__amount {
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.property-price--summary .property-price__unit {
  font-size: var(--font-size-lg);
}

/* 物件の主なスペック（間取り・面積など。物件カード・物件詳細サマリーで共通利用） */

.property-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  column-gap: 1rem;
}

.property-facts__item {
  min-width: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.property-facts__item--wide {
  grid-column: 1 / -1;
}

.property-facts dt {
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.4;
}

.property-facts dd {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.5;
}

.property-facts__line {
  display: block;
  overflow-wrap: break-word;
}

/* 物件一覧ページ（絞り込み結果件数表示・カードグリッド・0件表示） */

.property-archive__result {
  margin: 1.5rem 0 1rem;
}

.property-archive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-right: 0;
  padding-bottom: 0;
  gap: 1.25rem;
  overflow: visible;
  scroll-snap-type: none;
}

.property-archive__grid .property-list__item {
  width: 100%;
}

.property-archive__grid .property-card__detail {
  margin: 0 -1.125rem -1.125rem;
}

.property-archive__empty {
  padding: 2.5rem 1.25rem;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.property-archive__empty-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: var(--font-size-lg);
  line-height: 1.5;
}

.property-archive__empty-description {
  margin: 0.75rem 0 0;
  line-height: 1.8;
}

/* 物件詳細ページのヘッダー（種別バッジ表示） */

.property-page-header {
  padding: 1rem 0;
  background: var(--section-background-green);
}

.property-page-header__category {
  margin-bottom: 1rem;
}

/* 物件詳細ページの主な情報サマリー（価格・主なスペック・お問い合わせ導線） */

.property-summary {
  padding-top: 1rem;
}

/* .property-summary__photo / __image は、画像ギャラリーが1件も未設定の物件向けの
   フォールバック表示（アイキャッチ画像1枚のみ）に使う。ギャラリー設定済みの物件では
   下記の .property-visual* が使われる。 */

.property-summary__photo {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--media-placeholder);
  box-shadow: var(--shadow-card-soft);
}

.property-summary__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 画像ギャラリー（メインビジュアル＋画像一覧ダイアログ＋拡大ライトボックス）。
   netlify-preview/style.css の該当ブロックを移植（アイコンパスのみテーマの assets/images/icons/ に合わせて変更）。 */

.property-visual__main {
  position: relative;
  margin: 0;
}

.property-visual__media {
  position: relative;
  overflow: hidden;
  background: var(--media-placeholder);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.property-visual__lightbox-button {
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}

.property-visual__image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

/* 画像ギャラリー未設定の物件詳細ページ用のブランドプレースホルダー（木目背景＋ロゴ）。
   物件カードの .property-card__photo-brand と揃えたデザイン。 */
.property-visual__media--brand {
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  background-color: var(--brand-placeholder-bg);
  background-image: url("../images/staff-brand-wood-background.webp");
  background-position: center;
  background-size: cover;
}

.property-visual__brand-logo {
  width: 22%;
  height: 22%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgb(25 45 37 / 22%));
}

.property-visual__image--floor-plan {
  object-fit: contain;
  background: var(--surface);
}

.property-visual__control,
.property-visual__list-button,
.property-visual__floor-plan-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    color var(--motion-base),
    background-color var(--motion-base),
    border-color var(--motion-base);
}

.property-visual__control[hidden],
.property-visual__list-button[hidden],
.property-visual__floor-plan-button[hidden] {
  display: none;
}

.property-visual__control {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  top: 50%;
  padding: 0;
  color: var(--on-color);
  background: color-mix(in srgb, var(--primary-dark) 86%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--on-color) 48%, transparent);
  border-radius: 50%;
  box-shadow: 0 2px 12px
    color-mix(in srgb, var(--primary-dark) 24%, transparent);
  line-height: 1;
  transform: translateY(-50%);
}

.property-visual__control-icon {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.property-visual__control--previous {
  left: 0.75rem;
}

.property-visual__control--previous .property-visual__control-icon {
  left: 0.15rem;
  transform: rotate(135deg);
}

.property-visual__control--next {
  right: 0.75rem;
}

.property-visual__control--next .property-visual__control-icon {
  right: 0.15rem;
  transform: rotate(-45deg);
}

.property-visual__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
}

.property-visual__list-button,
.property-visual__floor-plan-button {
  width: max-content;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--primary-dark) 18%, transparent);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.property-visual__floor-plan-button::before,
.property-visual__list-button::before,
.property-gallery-dialog__title::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.property-visual__floor-plan-button::before {
  -webkit-mask-image: url("../images/icons/maze.svg");
  mask-image: url("../images/icons/maze.svg");
}

.property-visual__list-button::before,
.property-gallery-dialog__title::before {
  -webkit-mask-image: url("../images/icons/stacked-images.svg");
  mask-image: url("../images/icons/stacked-images.svg");
}

.property-visual__control:hover {
  background: var(--primary-dark);
}

.property-visual__list-button:hover,
.property-visual__floor-plan-button:hover {
  color: var(--on-color);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.property-visual__control:focus-visible,
.property-visual__lightbox-button:focus-visible,
.property-visual__list-button:focus-visible,
.property-visual__floor-plan-button:focus-visible,
.property-gallery-dialog__close:focus-visible,
.property-gallery-dialog__item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.property-visual__lightbox-button:focus-visible {
  outline-offset: -4px;
}

.property-visual__note {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: var(--font-size-caption);
  line-height: 1.6;
}

body.property-gallery-open {
  overflow: hidden;
}

.property-gallery-dialog {
  width: min(calc(100% - 2rem), 70rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px
    color-mix(in srgb, var(--primary-dark) 35%, transparent);
  font-family: inherit;
}

.property-gallery-dialog::backdrop,
.property-gallery-lightbox::backdrop {
  background: rgb(0 0 0 / 72%);
}

.property-gallery-dialog__panel {
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
}

.property-gallery-dialog__header {
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  margin: -1rem -1rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-dark);
}

.property-gallery-dialog__title {
  grid-column: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--on-color);
  font-size: var(--font-size-lg);
  line-height: 1.4;
  text-align: center;
}

.property-gallery-dialog__close {
  position: relative;
  grid-column: 3;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-color);
  background: transparent;
  border: 1px solid
    color-mix(in srgb, var(--on-color) 48%, transparent);
  border-radius: 50%;
  font-family: inherit;
  cursor: pointer;
  transition:
    color var(--motion-base),
    background-color var(--motion-base),
    border-color var(--motion-base);
}

.property-gallery-dialog__close-icon {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}

.property-gallery-dialog__close-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
}

.property-gallery-dialog__close-line--first {
  transform: translate(-50%, -50%) rotate(45deg);
}

.property-gallery-dialog__close-line--second {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.property-gallery-dialog__close:hover {
  color: var(--primary-dark);
  background: var(--on-color);
  border-color: var(--on-color);
}

.property-gallery-dialog__list {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.property-gallery-dialog__list li {
  width: 100%;
  max-width: 32rem;
  min-width: 0;
  justify-self: center;
}

.property-gallery-dialog__item {
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--media-placeholder);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--motion-base);
}

.property-gallery-dialog__item:hover {
  border-color: var(--primary-medium);
}

.property-gallery-dialog__item--active,
.property-gallery-dialog__item[aria-pressed="true"] {
  border-color: var(--primary);
}

.property-gallery-dialog__item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-base);
}

.property-gallery-dialog__item--floor-plan .property-gallery-dialog__item-image {
  object-fit: contain;
}

.property-gallery-lightbox {
  width: calc(100% - 1rem);
  max-width: 90rem;
  height: calc(100dvh - 1rem);
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px
    color-mix(in srgb, var(--primary-dark) 35%, transparent);
  font-family: inherit;
}

.property-gallery-lightbox__panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 1rem;
  overflow: hidden;
}

.property-gallery-lightbox__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: var(--surface);
  border-radius: 4px;
}

.property-gallery-lightbox__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}

/* ライトボックス内での前後ボタンの見た目上書き。
   .property-visual__control をスコープなしで再定義しており、メインビジュアル側にも
   無条件に効く（後勝ちのカスケードに依存する設計のため、省略・順序変更は不可）。 */

.property-visual__control {
  z-index: 2;
  width: 44px;
  height: 64px;
  color: var(--on-color);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.property-visual__control::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 64px;
  height: 64px;
  pointer-events: none;
  background: color-mix(in srgb, var(--primary-dark) 86%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--on-color) 48%, transparent);
  border-radius: 50%;
  box-shadow: 0 2px 12px
    color-mix(in srgb, var(--primary-dark) 24%, transparent);
  transform: translateY(-50%);
  transition:
    background-color var(--motion-base),
    border-color var(--motion-base);
}

.property-visual__control .property-visual__control-icon {
  z-index: 1;
}

.property-visual__control--previous {
  left: 0;
}

.property-visual__control--previous::before {
  left: -32px;
}

.property-visual__control--previous .property-visual__control-icon {
  left: -6px;
}

.property-visual__control--next {
  right: 0;
}

.property-visual__control--next::before {
  right: -32px;
}

.property-visual__control--next .property-visual__control-icon {
  right: -6px;
}

.property-visual__control--previous.property-gallery-lightbox__control {
  left: -1rem;
}

.property-visual__control--next.property-gallery-lightbox__control {
  right: -1rem;
}

.property-visual__control:hover {
  color: var(--on-color);
  background: transparent;
}

.property-visual__control:hover::before {
  background: var(--primary-dark);
  border-color: color-mix(in srgb, var(--on-color) 62%, transparent);
}

.property-visual__control:focus-visible {
  outline-offset: -3px;
}

.property-gallery-lightbox__count {
  color: color-mix(in srgb, var(--on-color) 78%, transparent);
  font-size: var(--font-size-sm);
  font-weight: 400;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .property-visual__control:hover:not(:focus-visible) {
    color: var(--primary-dark);
    background: transparent;
  }

  .property-visual__control:hover:not(:focus-visible)::before {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--primary-dark) 42%, transparent);
  }

  .property-gallery-dialog__item:hover .property-gallery-dialog__item-image {
    transform: scale(1.03);
  }
}

.property-summary__layout {
  display: grid;
  gap: 2rem;
}

.property-summary__content {
  min-width: 0;
  align-self: start;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.property-summary__action {
  max-width: none;
  margin-top: 1rem;
}

/* 外部サイトの掲載ページへのリンク */
/* .property-summary__portal-label は独自のスタイルを持たず、親要素 .property-summary__portal-links の設定を継承する */

.property-summary__portal-links {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 0.2em;
  margin: 0.75rem 0 0 auto;
  color: var(--muted);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  text-align: right;
}

.property-summary__portal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-summary__portal-list li {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.property-summary__portal-list li:first-child::before {
  content: "（";
}

.property-summary__portal-list li + li::before {
  content: " / ";
  white-space: pre;
}

.property-summary__portal-list li:last-child::after {
  content: "）";
}

.property-summary__portal-link {
  display: inline-flex;
  align-items: center;
}

.property-summary__portal-link::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
  margin-left: 0.25em;
  background-color: currentColor;
  -webkit-mask: url("../images/icons/external-link.svg") center / contain no-repeat;
  mask: url("../images/icons/external-link.svg") center / contain no-repeat;
}

/* 情報提供日・次回更新予定日（.meta-date は main.css を参照） */

.property-summary__update {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.35rem;
  row-gap: 0.25rem;
  margin: 1rem 0 0 auto;
}

.property-summary__update dt,
.property-summary__update dd {
  margin: 0;
}

.property-summary__update dt {
  text-align: end;
}

@media (min-width: 768px) {
  .property-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    gap: 22px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .property-list__item {
    min-width: 0;
  }

  .property-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-gallery-dialog__panel,
  .property-gallery-lightbox__panel {
    padding: 1.5rem;
  }

  .property-visual__control--previous.property-gallery-lightbox__control {
    left: -1.5rem;
  }

  .property-visual__control--next.property-gallery-lightbox__control {
    right: -1.5rem;
  }

  .property-gallery-dialog__header {
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 0.75rem 1.5rem;
  }

  .property-gallery-dialog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .property-summary__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    align-items: start;
    gap: 2rem;
  }

  .property-summary__content {
    padding: 1.75rem;
  }

  .property-gallery-dialog__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .property-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-selector__options--property {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .property-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 物件詳細ページ：設備・周辺環境セクション */
/* ページ内ナビ */

.property-section-nav {
  margin-top: 1.5rem;
}

.property-section-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-section-nav__list:has(> li:nth-child(3):last-child) {
  grid-template-columns: 1fr;
}

.property-section-nav__link {
  max-width: none;
  min-height: 42px;
  height: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  box-shadow: none;
  font-size: var(--font-size-caption);
  font-weight: 600;
}

/* 設備・周辺環境で共用のカテゴリーカードグリッド */

.property-feature-groups {
  display: grid;
  gap: 0.75rem;
}

.property-feature-card {
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.property-feature-card__title {
  margin: 0;
  padding-bottom: 0.625rem;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.property-feature-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.property-feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--font-size-xs);
  line-height: 1.6;
}

.property-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0.125rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
  border-radius: 50%;
}

/* リフォームセクションのカードにのみ付く、カード内カテゴリー（キッチン等）の小見出し。
   実施年月（カードのh3）＝実施時期、この小見出し＝箇所で、規約により両方の併記が必須。 */

.property-feature-card__subtitle {
  margin: 0.75rem 0 0;
  color: var(--primary-dark);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.5;
}

.property-feature-card__subtitle:first-of-type {
  margin-top: 0.625rem;
}

/* 周辺環境セクション：カテゴリーグループとGoogleマップをまとめるブロック */
/* .property-location-block 自体に固有スタイルはなし（子要素の margin で余白を確保） */

.property-location-map {
  margin-top: 2rem;
}

.property-location-map__embed {
  width: 100%;
  max-width: 50rem;
  height: clamp(16rem, 45vw, 25rem);
  margin-inline: auto;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

/* .property-location-map__link は .map-link（main.css）と同じ特異度（クラス1つ）のため、
   後に読み込まれた方が勝つ。.map-link の display:inline を打ち消して中央寄せの
   ブロックにできるのは、property.css が main.css より後に読み込まれるため
   （functions.php の wp_enqueue_style の順序に依存する）。 */
.property-location-map__link {
  width: fit-content;
  display: block;
  margin: 0.75rem auto 0;
}

/* 物件詳細ページの補足注記（出典の断り書きなど）。
   netlify-preview（正）には設備・周辺環境・ページ全体の注記があるが、テーマ側は
   現時点で未実装のため、ここでは基本スタイルのみ残す。 */

.property-content-note {
  max-width: var(--text-content-max-width);
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--font-size-xs);
  line-height: 1.7;
}

/* 物件概要（詳細表）。カード自体の見た目は .property-feature-card / .property-feature-card__title を流用する */

.property-detail-groups {
  max-width: var(--text-content-max-width);
  margin: 0 auto;
  align-items: start;
}

.property-detail-table {
  max-width: none;
  display: grid;
  margin: 0.25rem 0 0;
  overflow: hidden;
  background: var(--surface);
}

.property-detail-table > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(7.25rem, 36%) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, var(--surface));
}

.property-detail-table > div:last-child {
  border-bottom: 0;
}

.property-detail-table dt {
  padding: 0.75rem 0;
  color: var(--primary);
  font-size: var(--font-size-xs);
  font-weight: 800;
  line-height: 1.5;
}

.property-detail-table dd {
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .property-section-nav__list {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }

  .property-section-nav__list:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-equipment-groups,
  .property-renovation-groups,
  .property-environment-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-detail-table > div {
    grid-template-columns: minmax(9.5rem, 22%) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .property-equipment-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-renovation-groups,
  .property-environment-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
