/* 3D不動産内見AI 固有のスタイル（共通は ../../shared/ui.css） */
.page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.page h1 { font-size: 20px; margin-bottom: 4px; }
.page .lead { color: var(--muted); margin-bottom: 14px; }

/* 検索 */
.search { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; margin-bottom: 16px; }
.search .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search .row .field { min-width: 140px; flex: 1; }
.search .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.search .count { margin-left: auto; color: var(--muted); font-size: 13px; }

/* 物件カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pcard .thumb { position: relative; background: linear-gradient(180deg, #eef2f7, #e6ebf2); height: 170px; display: flex; align-items: center; justify-content: center; }
.pcard .thumb canvas { width: 100%; height: 100%; }
.pcard .thumb .kind { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--accent-2); box-shadow: var(--shadow); }
.pcard .thumb .fav { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,.95); box-shadow: var(--shadow); font-size: 16px; }
.pcard .thumb .fav.on { color: var(--pink); }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .price { font-size: 20px; font-weight: 800; color: var(--text); }
.pcard .price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pcard .name { font-weight: 700; }
.pcard .meta { color: var(--muted); font-size: 12px; }
.pcard .catch { font-size: 12px; color: #374151; }
.pcard .tags { line-height: 1.4; }
.pcard .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard .actions .btn { flex: 1; justify-content: center; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* 3Dステージ内 */
.stage-back { position: absolute; right: 12px; top: 12px; z-index: 6; }
.room-tabs { position: absolute; left: 12px; top: 232px; z-index: 5; display: flex; flex-direction: column; gap: 4px; max-height: calc(100% - 340px); overflow: auto; }
.room-tabs button { text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 12px; box-shadow: var(--shadow); }
.room-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.room-tabs button small { color: inherit; opacity: .7; margin-left: 4px; }
@media (max-width: 900px) {
  .room-tabs { top: 8px; left: 120px; right: 76px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-height: none; scrollbar-width: none; }
  .room-tabs::-webkit-scrollbar { display: none; }
  .room-tabs button { padding: 4px 8px; font-size: 11px; flex: none; }
  .stage-back { right: 8px; top: 8px; }
  .stage-back .btn { padding: 4px 8px; font-size: 11px; }
}

/* サイドパネル */
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.side-price { font-size: 22px; font-weight: 800; }
.side-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.side-actions .btn { flex: 1; justify-content: center; }
.roomlist { display: grid; gap: 4px; }
.roomlist button { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); text-align: left; }
.roomlist button.on { border-color: var(--accent); background: var(--accent-soft); }
.ai-sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--panel-2); }
.ai-sec .t { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ai-sec .t .ic { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.ai-sec ul { margin: 6px 0 0; padding-left: 18px; }
.ai-sec li { margin: 2px 0; }
.ai-note { font-size: 11px; color: var(--muted); }
.ai-ask { display: flex; gap: 6px; margin-top: 10px; }
.ai-ask input { flex: 1; }
.ai-loading { padding: 20px; text-align: center; color: var(--muted); }
.ai-loading::before { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pt-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pt-item .dot { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 13px; }
.pt-item .t { font-weight: 600; font-size: 13px; }
.pt-item .b { font-size: 12px; color: var(--muted); }

/* 比較表 */
.cmp-wrap { overflow-x: auto; }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--panel); }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; font-size: 13px; }
.cmp th { background: var(--panel-2); color: var(--muted); font-weight: 600; width: 120px; }
.cmp td.best { background: #ecfdf5; }
.cmp .pname { font-weight: 700; }
.cmp canvas { width: 160px; height: 110px; display: block; border-radius: 6px; border: 1px solid var(--line); }

/* 予約フォーム */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.reserve-summary { background: var(--panel-2); border-radius: 8px; padding: 10px; font-size: 13px; margin-bottom: 10px; }

/* 360°写真 */
.room-tabs button .cam { font-size: 10px; margin-left: 2px; }
.pcard .thumb .thumb-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.pcard .thumb .nphoto { position: absolute; right: 44px; top: 10px; font-size: 11px; background: rgba(31,36,48,.7); color: #fff; padding: 2px 7px; border-radius: 999px; }
.photo-groups { display: flex; flex-direction: column; gap: 4px; }
.room-tabs .lv-cap { font-size: 11px; color: var(--muted); padding: 2px 4px; }
@media (max-width: 760px) { .room-tabs .lv-cap { display: none; } .level-tabs { right: 8px; bottom: 100px; } }
.pano-badge { position: absolute; left: 12px; bottom: 74px; z-index: 5; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; max-width: min(360px, calc(100% - 24px)); box-shadow: 0 4px 16px rgba(20,30,60,.1); }
.pano-badge b { font-size: 13px; }
.pano-badge .small { color: var(--muted); }
@media (max-width: 760px) { .pano-badge { left: 8px; bottom: 104px; font-size: 11px; padding: 6px 10px; } .pano-badge .small { display: none; } }
