/* ======================
物件紹介ページ専用CSS
====================== */

/* 全体 */
.property-detail{
  padding:140px 0 80px;
}

/* タイトル */
.page-title{
  text-align:center;
  margin-bottom:50px;
}

.page-title h1{
  font-size:32px;
  font-weight:700;
  color:var(--text);
  margin-bottom:10px;
}

/* ======================
物件検索・絞り込み
====================== */
.property-search{
  max-width:720px;
  margin:0 auto 18px;
}

.property-search input{
  width:100%;
  padding:14px 20px;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fff;
  font-size:16px;
  line-height:1.6;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
  transition:0.3s;
}

.property-search input:focus{
  outline:none;
  border-color:var(--main-color);
  box-shadow:0 0 0 3px rgba(123,79,42,0.12);
}

.property-filters{
  margin:0 auto 28px;
  max-width:900px;
}

.filter-group + .filter-group{
  margin-top:18px;
}

.filter-title{
  font-size:14px;
  font-weight:700;
  color:var(--main-dark);
  margin-bottom:10px;
  text-align:center;
}

.filter-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}

.filter-btn{
  padding:10px 16px;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fff;
  color:#333;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.filter-btn:hover{
  border-color:var(--main-color);
  color:var(--main-color);
  transform:translateY(-2px);
}

.filter-btn.active{
  background:var(--main-color);
  border-color:var(--main-color);
  color:#fff;
}

.search-result-text{
  text-align:center;
  font-size:14px;
  color:#666;
  margin-bottom:36px;
}

.no-search-results{
  display:none;
  text-align:center;
  font-size:16px;
  color:#666;
  padding:40px 20px;
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  margin-bottom:40px;
}

/* ======================
物件レイアウト
====================== */
.property-wrap{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:start;
  margin-bottom:80px;
  padding-bottom:60px;
  border-bottom:1px solid #e5e5e5;
}

.property-wrap:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

/* ======================
画像エリア
====================== */
.property-images{
  width:100%;
}

/* メイン画像 */
.main-image{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow);
  touch-action:pan-y;
}

.main-image img{
  display:block;
  width:100%;
  height:420px;
  object-fit:contain;
  background:#f8f8f8;
  cursor:pointer;
  user-select:none;
  -webkit-user-drag:none;
}

/* スライドボタン */
.slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.45);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  cursor:pointer;
  z-index:2;
  transition:0.3s;
}

.slide-btn:hover{
  background:rgba(0,0,0,0.7);
}

.slide-btn.prev{
  left:15px;
}

.slide-btn.next{
  right:15px;
}

.slide-btn.prev::before{
  content:"";
  width:10px;
  height:10px;
  border-left:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(45deg);
}

.slide-btn.next::before{
  content:"";
  width:10px;
  height:10px;
  border-right:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(-45deg);
}

/* サムネイル一覧 */
.thumb-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

.thumb-item{
  width:120px;
  position:relative;
}

.thumb-item img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:10px;
  border:2px solid transparent;
  background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  transition:0.3s;
  cursor:pointer;
}

.thumb-item img:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.thumb-item img.active{
  border-color:var(--main-color);
  box-shadow:0 8px 18px rgba(123,79,42,0.22);
}

/* サムネイルラベル */
.thumb-item::after{
  content:attr(data-label);
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  background:rgba(0,0,0,0.68);
  color:#fff;
  font-size:11px;
  line-height:1.4;
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:0.3s;
}

.thumb-item:hover::after{
  opacity:1;
}

/* ======================
物件情報エリア
====================== */
.property-info{
  background:#fff;
  border-radius:12px;
  padding:35px 32px;
  box-shadow:var(--shadow);
}

.property-title{
  font-size:30px;
  line-height:1.5;
  font-weight:700;
  color:var(--main-dark);
  margin-bottom:24px;
}

.property-text{
  font-size:16px;
  line-height:2;
  color:#444;
  margin-bottom:30px;
}

.property-data{
  display:flex;
  flex-direction:column;
  gap:12px;
  border-top:1px solid #eee;
  padding-top:24px;
}

.property-data div{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:15px;
  line-height:1.8;
  color:#333;
}

.property-data span{
  display:inline-block;
  min-width:110px;
  font-weight:700;
  color:var(--main-color);
}

/* ======================
モーダル
====================== */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  padding:30px;
}

.modal-content{
  max-width:min(92vw, 1200px);
  max-height:88vh;
  width:auto;
  height:auto;
  display:block;
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,0.35);
  background:#fff;
  user-select:none;
  -webkit-user-drag:none;
  touch-action:pan-y;
}

.modal-close{
  position:absolute;
  top:20px;
  right:25px;
  color:#fff;
  font-size:42px;
  line-height:1;
  cursor:pointer;
  z-index:10002;
  transition:0.3s;
}

.modal-close:hover{
  opacity:0.7;
}

/* モーダルナビ */
.modal-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.6);
  cursor:pointer;
  z-index:10001;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.3s;
}

.modal-nav:hover{
  background:rgba(0,0,0,0.8);
}

.modal-nav.prev{
  left:20px;
}

.modal-nav.next{
  right:20px;
}

.modal-nav.prev::before{
  content:"";
  width:12px;
  height:12px;
  border-left:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(45deg);
}

.modal-nav.next::before{
  content:"";
  width:12px;
  height:12px;
  border-right:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(-45deg);
}

/* ======================
レスポンシブ
====================== */
@media (max-width: 1100px){
  .property-wrap{
    grid-template-columns:1fr;
    gap:35px;
  }

  .property-info{
    padding:30px 24px;
  }

  .property-title{
    font-size:26px;
  }

  .main-image img{
    height:380px;
  }
}

@media (max-width: 768px){
  .property-detail{
    padding:120px 0 70px;
  }

  .page-title{
    margin-bottom:35px;
  }

  .page-title h1{
    font-size:26px;
  }

  .property-search{
    margin:0 auto 16px;
  }

  .property-search input{
    font-size:15px;
    padding:12px 16px;
  }

  .property-filters{
    margin-bottom:24px;
  }

  .filter-title{
    font-size:13px;
  }

  .filter-buttons{
    gap:8px;
  }

  .filter-btn{
    padding:9px 14px;
    font-size:13px;
  }

  .search-result-text{
    margin-bottom:28px;
  }

  .no-search-results{
    font-size:15px;
    padding:30px 16px;
  }

  .property-wrap{
    gap:28px;
    margin-bottom:60px;
    padding-bottom:45px;
  }

  .property-title{
    font-size:22px;
    margin-bottom:18px;
  }

  .property-text{
    font-size:15px;
    line-height:1.9;
    margin-bottom:24px;
  }

  .property-data div{
    font-size:14px;
    gap:8px;
  }

  .property-data span{
    min-width:96px;
  }

  .main-image img{
    height:300px;
  }

  .slide-btn{
    width:38px;
    height:38px;
  }

  .slide-btn.prev{
    left:10px;
  }

  .slide-btn.next{
    right:10px;
  }

  .thumb-list{
    gap:10px;
  }

  .thumb-item{
    width:92px;
  }

  .thumb-item::after{
    display:none;
  }

  .modal{
    padding:16px;
  }

  .modal-close{
    top:12px;
    right:16px;
    font-size:34px;
  }

  .modal-nav{
    width:44px;
    height:44px;
  }

  .modal-nav.prev{
    left:10px;
  }

  .modal-nav.next{
    right:10px;
  }
}

@media (max-width: 480px){
  .property-detail{
    padding:110px 0 60px;
  }

  .page-title h1{
    font-size:22px;
  }

  .property-info{
    padding:22px 18px;
  }

  .property-title{
    font-size:20px;
  }

  .property-text{
    font-size:14px;
  }

  .main-image img{
    height:240px;
  }

  .thumb-item{
    width:78px;
  }

  .property-data{
    gap:10px;
  }

  .property-data div{
    flex-direction:column;
    gap:2px;
  }

  .property-data span{
    min-width:auto;
  }
}