/* 公司物件詳情頁 */
.prim-place{font-size:17px;color:#5f6b58;margin:-6px 0 22px}
.gallery-main{position:relative;border-radius:14px;overflow:hidden;background:#e9ebe4;aspect-ratio:4/3}
.gallery-main img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;background:#ffffffd9;color:#2f3a2e;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 4px 14px #0002}
.gallery-nav.prev{left:12px}.gallery-nav.next{right:12px}
.gallery-nav:focus-visible,.gallery-thumb:focus-visible{outline:3px solid #a9bf9e;outline-offset:2px}
.gallery-count{position:absolute;left:12px;bottom:12px;background:#2f3a2ecc;color:#fff;font-size:14px;padding:4px 12px;border-radius:20px}
.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 0 4px;scrollbar-width:thin}
.gallery-thumb{flex:0 0 88px;height:66px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#e9ebe4;cursor:pointer;opacity:.75}
.gallery-thumb.active{border-color:#46573b;opacity:1}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.prim-features ul{margin:12px 0 0;padding-left:1.3em;display:grid;gap:8px;font-size:17px;line-height:1.75;color:#364235}
.prim-facts .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:600px){.gallery-nav{width:38px;height:38px;font-size:24px}.gallery-thumb{flex-basis:70px;height:52px}.prim-features ul{font-size:15px}.prim-place{font-size:15px}}
.prim-detail .detail-grid>*{min-width:0}
.gallery,.gallery-thumbs{max-width:100%}

.prim-detail .detail-grid>*{min-width:0}
.gallery,.gallery-thumbs{max-width:100%}

/* ===== 物件卡片：左上原本白色標籤＋C 品牌紅配色 ===== */
.pcard{display:flex;flex-direction:column;padding:0;overflow:hidden}
.pcard .pc-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none}
.pcard .card-image{position:relative}
.pcard .pc-count{position:absolute;right:14px;bottom:14px;background:#1f1f1fb3;color:#fff;font-size:13px;line-height:1;padding:6px 10px;border-radius:6px}
.pc-nophoto{display:grid;place-items:center;width:100%;height:100%;min-height:200px;background:repeating-linear-gradient(135deg,#efeee8 0 12px,#e8e7e0 12px 24px);color:#7d7a70;font-size:15px;letter-spacing:2px}
.pc-nophoto.big{aspect-ratio:4/3;border-radius:14px;margin-bottom:8px}
.pcard .card-body{display:flex;flex-direction:column;flex:1}
.pcard .card-body h3{min-height:0;margin-bottom:6px}
.pcard .pc-feature{display:flex;align-items:flex-start;gap:6px;margin:0 0 14px;font-size:15px;line-height:1.6;color:#9a5a3c}
.pcard .pc-feature span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-star{flex:0 0 11px;width:11px;height:11px;margin-top:.45em;fill:#c46b4f}
.pcard .pc-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.pcard .pc-chip{font-size:14px;padding:5px 10px;border:1px solid #e5d6cf;border-radius:4px;background:#fff;color:#46473f}
.pcard .pc-price-row{margin-top:auto;padding-top:14px;border-top:1px solid #eee9e4;display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pcard .price{color:#b74742}
.pcard .pc-monthly{font-size:14px;color:#6c7068}
.pcard .pc-monthly b{color:#3a3a35}
.pc-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 24px 22px}
.pc-actions .pc-share,.pc-actions .pc-book{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none}
.pc-share{background:#fff;border:1px solid #d9c3b8;color:#9a4a40}
.pc-share:hover{background:#fbf3f0}
.pc-book{background:#06c755;border:1px solid #06c755;color:#fff}
.pc-book:hover{background:#05b14c}
.pc-share:focus-visible,.pc-book:focus-visible,.pcard .pc-link:focus-visible{outline:3px solid #a9bf9e;outline-offset:2px}
.pc-book-btn{background:#06c755!important;border-color:#06c755!important;color:#fff!important}

/* 物件列表工具列與分頁 */
.listing-tools{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin:4px 0 16px}
.listing-tools label{display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:700;color:#364235}
.listing-tools input,.listing-tools select{font:inherit;font-size:16px;font-weight:400;padding:11px 12px;border:1px solid #d7d4ce;border-radius:8px;background:#fff}
.pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:28px 0 8px}
.pager button{min-width:44px;height:44px;border:1px solid #d7d4ce;background:#fff;border-radius:8px;font:inherit;font-size:16px;cursor:pointer;color:#364235}
.pager button[aria-current="page"]{background:#b74742;border-color:#b74742;color:#fff;font-weight:700}
.pager button:disabled{opacity:.4;cursor:default}
.pager span{color:#8a877e}

/* 分享視窗 */
.share-dialog{width:min(460px,calc(100vw - 32px));border:0;border-radius:16px;padding:22px;box-shadow:0 20px 60px #0004}
.share-dialog::backdrop{background:#1f241ecc}
.share-head{display:flex;justify-content:space-between;align-items:center}
.share-head h2{margin:0;font-size:22px;color:#2f3a2e}
.share-x{width:40px;height:40px;border:0;border-radius:50%;background:#f1efe9;font-size:24px;cursor:pointer}
.share-item{display:flex;gap:12px;align-items:center;margin:16px 0;padding:12px;border:1px solid #eee9e4;border-radius:10px}
.share-item img{width:88px;height:66px;object-fit:cover;border-radius:6px}
.share-item strong{display:block;font-size:16px;color:#2f3a2e}
.share-item span{display:block;font-size:15px;color:#b74742;font-weight:700}
.share-item small{font-size:13px;color:#7a7a72}
.share-actions{display:grid;gap:8px}
.share-actions .btn{width:100%;justify-content:center;margin:0}
.share-status{min-height:20px;margin:8px 0 0;font-size:14px;color:#46573b}
.share-agent{display:flex;gap:16px;align-items:center;margin-top:12px;padding-top:16px;border-top:1px dashed #ddd6cc}
.share-qr{width:120px;height:120px;object-fit:contain;border:1px solid #eee;border-radius:8px;background:#fff;flex:0 0 120px}
.share-agent div{display:flex;flex-direction:column;gap:3px;font-size:14px;color:#5b5f56}
.share-agent strong{font-size:16px;color:#2f3a2e}
.share-agent a{color:#2f3a2e;font-weight:700;text-decoration:none}
.share-face{width:44px;height:52px;object-fit:cover;object-position:top;border-radius:22px 22px 8px 8px;margin-bottom:4px}
@media(max-width:600px){.listing-tools{grid-template-columns:1fr}.pc-actions{padding:0 16px 16px}.pcard .pc-feature{font-size:14px}.pcard .pc-chip{font-size:13px}.share-qr{width:96px;height:96px;flex-basis:96px}}

.share-actions .share-book{background:#06c755!important;border:1px solid #06c755!important;color:#fff!important;font-weight:700}
.share-actions .share-line{background:#fff!important;border:1px solid #06c755!important;color:#05a648!important;font-weight:700;box-shadow:none}

/* 卡片標籤固定一排 */
.pcard .pc-chips{flex-wrap:nowrap;overflow:hidden}
.pcard .pc-chip{white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.pcard .pc-chips{gap:5px}.pcard .pc-chip{padding:5px 8px}}
@media(min-width:601px) and (max-width:1199px){.pcard .pc-chips{gap:5px}.pcard .pc-chip{font-size:13px;padding:4px 7px;letter-spacing:-.2px}}

@media(min-width:601px) and (max-width:1023px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.pcard{container-type:inline-size}
@container (max-width:300px){.pc-age-label{display:none}.pcard .pc-chip{font-size:12.5px;padding:4px 6px}.pcard .pc-chips{gap:4px}}
.pcard .pc-chip{color:#9a5a3c}
