/* 照片輪播（包車頁、御居所頁共用；業主 2026-11-27「改成 16:9 相簿，可以左右滑動、點選放大瀏覽。照片說明放進燈箱下方」）。
   一次一張、CSS scroll-snap 水平捲動；箭頭只在桌機顯示，手機用滑的；說明只在燈箱（#room-lightbox）下方顯示。
   餐廳卡片（--cards）用同一套：手機一次露出約 1.1 張，桌機一次 3 張。程式在 /assets/photo-carousel.js。 */
.photo-carousel{position:relative;min-width:0;margin-top:26px}
.photo-carousel__viewport{position:relative;min-width:0}
.photo-carousel__track{display:flex;gap:0;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.photo-carousel__track::-webkit-scrollbar{display:none}
.photo-carousel__track:focus-visible{outline:3px solid #c9854d;outline-offset:3px}
.photo-carousel .photo-carousel__slide{position:static;flex:0 0 100%;min-width:0;height:auto;margin:0;overflow:visible;scroll-snap-align:start;scroll-snap-stop:always}
.photo-carousel--photos .photo-carousel__slide a{display:block;aspect-ratio:16/9;overflow:hidden;background:#e7e5db;cursor:zoom-in}
.photo-carousel--photos .photo-carousel__slide img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .2s ease}
.photo-carousel--photos .photo-carousel__slide a:hover img{transform:scale(1.02)}
.photo-carousel--photos .photo-carousel__slide a:focus-visible{outline:3px solid #c9854d;outline-offset:-3px}
.photo-carousel__btn{position:absolute;top:50%;z-index:1;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:#fffdf8eb;color:#1d2b2a;font:400 26px/1 Georgia,serif;box-shadow:0 2px 12px #0e1d1b33;transform:translateY(-50%);cursor:pointer}
.photo-carousel__btn--prev{left:10px}
.photo-carousel__btn--next{right:10px}
.photo-carousel__btn:disabled{opacity:0;pointer-events:none}
.photo-carousel__btn:focus-visible{outline:3px solid #c9854d;outline-offset:2px}
.photo-carousel__status{display:flex;justify-content:center;align-items:center;gap:10px;margin:10px 0 0;color:var(--muted,#5f6b64);font-size:13px;font-variant-numeric:tabular-nums;line-height:1.4}
.photo-carousel__dots{display:flex;gap:6px}
.photo-carousel__dots span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.28}
.photo-carousel__dots span.is-current{opacity:1}
.photo-carousel[data-static] .photo-carousel__btn,.photo-carousel[data-static] .photo-carousel__status{display:none}
/* 餐廳卡片：卡片內容與版型不動，只把清單排成水平輪播。 */
.photo-carousel--cards{margin-top:0}
.photo-carousel--cards .photo-carousel__track.restaurant-cards{display:flex;gap:14px;scroll-snap-type:x mandatory}
.photo-carousel--cards .photo-carousel__track>.restaurant-card{flex:0 0 88%;min-width:0;scroll-snap-align:start}
.photo-carousel--cards .photo-carousel__btn{top:calc(50% - 10px)}
@media (min-width:760px){
  .photo-carousel--cards .photo-carousel__track.restaurant-cards{gap:18px}
  .photo-carousel--cards .photo-carousel__track>.restaurant-card{flex-basis:calc((100% - 36px) / 3)}
  .photo-carousel--cards .photo-carousel__btn--prev{left:-8px}
  .photo-carousel--cards .photo-carousel__btn--next{right:-8px}
}
/* 桌機一次三張時卡片較窄：照片移到文字上方、單欄排列（內容不動）；手機維持左文右圖。 */
@media (min-width:768px){
  .photo-carousel--cards .restaurant-card{grid-template-columns:minmax(0,1fr);align-content:start;gap:12px}
  .photo-carousel--cards .restaurant-card__photo{grid-column:1;grid-row:1}
  .photo-carousel--cards .restaurant-card__body{grid-column:1;grid-row:2}
  .photo-carousel--cards .restaurant-card__photo img{aspect-ratio:16/9}
}
@media (max-width:759px){.photo-carousel__btn{display:none}}
@media (prefers-reduced-motion:reduce){.photo-carousel__track{scroll-behavior:auto}.photo-carousel--photos .photo-carousel__slide img{transition:none}}
