/* ==========================================================
   properties.html 専用スタイル
   ========================================================== */

/* ページヒーロー */
.page-hero--properties {
  background:
    linear-gradient(rgba(27, 42, 74, .72), rgba(27, 42, 74, .72)),
    url("images/hero/hero-02.jpg") center/cover no-repeat;
}

/* ==========================================================
   サマリーバー
   ========================================================== */
.prop-summary {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}
.prop-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prop-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #f7f8fb;
  border-radius: 10px;
  border-left: 4px solid var(--navy, #1b2a4a);
}
.prop-summary-item--accent {
  background: linear-gradient(135deg, #fff8e7 0%, #fdf1d1 100%);
  border-left-color: var(--gold, #c5a55a);
}
.ps-icon {
  font-size: 32px;
  line-height: 1;
}
.ps-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
}
.ps-num {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}
.ps-num span {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy, #1b2a4a);
  margin-right: 4px;
}
.prop-summary-item--accent .ps-num span {
  color: var(--gold, #c5a55a);
}

@media (max-width: 900px) {
  .prop-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prop-summary-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   エリアマップ（独立セクション調整）
   ========================================================== */
.section-area-map {
  background: #f7f8fb;
}
.section-area-map .area-map {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 14px rgba(27, 42, 74, .05);
}

/* ==========================================================
   ページネーション
   ========================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  color: var(--navy, #1b2a4a);
  text-decoration: none;
  border: 1px solid #d7dbe5;
  border-radius: 6px;
  font-size: 14px;
  transition: all .2s;
}
.page-link:hover {
  background: var(--navy, #1b2a4a);
  color: #fff;
  border-color: var(--navy, #1b2a4a);
}
.page-link--current {
  background: var(--gold, #c5a55a);
  color: #fff;
  border-color: var(--gold, #c5a55a);
  pointer-events: none;
}
.page-link--disabled {
  color: #aaa;
  border-color: #e5e5e5;
  pointer-events: none;
}
.page-dots {
  color: #999;
  padding: 0 6px;
}

/* ==========================================================
   物件ソース注記セクション
   ========================================================== */
.section-source {
  background: #fff;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ==========================================================
   会員CTAボックス
   ========================================================== */
.section-member-cta {
  background: linear-gradient(135deg, #1b2a4a 0%, #2a3e6c 100%);
  color: #fff;
}
.member-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 12px 0;
}
.member-cta-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 14px;
  background: var(--gold, #c5a55a);
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
  border-radius: 4px;
  font-weight: 600;
}
.member-cta-text h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.5;
  color: #fff;
}
.member-cta-text h2 strong {
  color: var(--gold, #c5a55a);
  font-size: 1.15em;
}
.member-cta-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
}
.member-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}
.member-cta-btns .btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}
.member-cta-btns .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.member-cta-btns .btn-outline:hover {
  background: #fff;
  color: var(--navy, #1b2a4a);
}

@media (max-width: 720px) {
  .member-cta-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .member-cta-text h2 { font-size: 22px; }
}

/* ==========================================================
   検索結果ツールバー・ページネーション・ロック表示
   ========================================================== */
.property-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
  padding: 12px 16px;
  background: #f5f7fb;
  border-radius: 6px;
}
.property-count { font-size: 13.5px; color: #4b5563; }
.property-count strong { color: var(--navy, #1b2a4a); font-weight: 700; }
.property-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; }
.property-sort select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  color: #6b7280;
  background: #fafbfd;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
}

/* 物件カード（JS描画） */
.property-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.property-card-link:hover .property-image img { transform: scale(1.03); }
.property-image {
  position: relative;
  overflow: hidden;
  height: 200px;              /* 縦幅200px固定で全カード統一 */
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.property-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  background: transparent;
}
.property-new.property-members {
  background: var(--navy, #1b2a4a);
  color: #fff;
}
.property-new.property-negotiation {
  background: #c0392b;
  color: #fff;
  font-weight: 700;
}

/* ロック（会員限定）— 完全不透明で画像を遮蔽 */
.property-card--locked .property-card-link { cursor: pointer; }
.property-lock {
  position: absolute;
  inset: 0;
  background: var(--navy, #1b2a4a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.property-lock .lock-icon { font-size: 32px; }
.property-lock .lock-label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.property-card--locked .property-name,
.property-card--locked .property-price,
.property-card--locked .property-spec { filter: blur(3px); user-select: none; }

/* ページネーション */
#propertyPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
#propertyPagination .page-link {
  display: inline-block;
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--navy, #1b2a4a);
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s;
}
#propertyPagination .page-link:hover:not(.page-link--disabled):not(.page-link--current) {
  background: var(--navy, #1b2a4a);
  color: #fff;
  border-color: var(--navy, #1b2a4a);
}
#propertyPagination .page-link--current {
  background: var(--gold, #c5a55a);
  color: #fff;
  border-color: var(--gold, #c5a55a);
  font-weight: 700;
}
#propertyPagination .page-link--disabled {
  color: #9ca3af;
  pointer-events: none;
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .property-toolbar { flex-direction: column; align-items: stretch; }
  .property-sort { justify-content: flex-end; }
}
