/* =====================================================================
   FUTURE CARATS — SHOWROOM GALLERY (homepage "virtual_tour" section)
   Loaded by views/site/partials/_virtual_tour.php when photos exist.
   ===================================================================== */
.fc-showroom { position: relative; overflow: hidden; padding: var(--fc-sec-y, clamp(3.5rem, 7vw, 6.5rem)) 0; background: var(--sec-bg, var(--fc-primary-dark)); color: var(--fc-on-dark); isolation: isolate; }
.fc-sr-glow { position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; pointer-events: none;
    background: radial-gradient(40% 60% at 20% 30%, rgba(var(--fc-accent-d-rgb, 241, 214, 208), .16), transparent 70%), radial-gradient(35% 55% at 85% 10%, rgba(194, 24, 91, .18), transparent 70%); }

.fc-sr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.fc-sr-head .fc-eyebrow { justify-content: flex-start; color: var(--fc-accent-d); }
.fc-sr-head .fc-eyebrow::after { display: none; }
.fc-sr-head .fc-title { margin: 0; color: var(--fc-on-dark); }
.fc-sr-head .fc-lede { margin: 12px 0 0; color: rgba(var(--fc-on-dark-rgb), .75); text-align: left; }
.fc-sr-controls { display: flex; align-items: center; gap: 10px; }
.fc-sr-count { margin-right: 6px; font-size: 13px; letter-spacing: .08em; color: rgba(var(--fc-on-dark-rgb), .6); font-variant-numeric: tabular-nums; }
.fc-sr-count b { color: var(--fc-on-dark); font-weight: 700; }
.fc-sr-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(var(--fc-on-dark-rgb), .3); background: transparent; color: var(--fc-on-dark); display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--fc-ease-luxe); }
.fc-sr-arrow:hover { background: var(--fc-on-dark); color: var(--fc-primary-dark); border-color: var(--fc-on-dark); transform: translateY(-2px); }

/* Card rail: starts aligned with the page container and bleeds off the right edge */
.fc-sr-viewport { overflow: hidden; padding: 6px 0 14px; touch-action: pan-y; cursor: grab; }
.fc-sr-viewport:active { cursor: grabbing; }
.fc-sr-track { display: flex; gap: clamp(14px, 2vw, 26px); padding-left: max(var(--fc-gutter, 16px), calc((100vw - 1320px) / 2 + 12px)); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
@media (max-width: 1399.98px) { .fc-sr-track { padding-left: max(var(--fc-gutter, 16px), calc((100vw - 1140px) / 2 + 12px)); } }
@media (max-width: 1199.98px) { .fc-sr-track { padding-left: max(var(--fc-gutter, 16px), calc((100vw - 960px) / 2 + 12px)); } }
@media (max-width: 991.98px) { .fc-sr-track { padding-left: max(var(--fc-gutter, 16px), calc((100vw - 720px) / 2 + 12px)); } }
@media (max-width: 767.98px) { .fc-sr-track { padding-left: 16px; } }

.fc-sr-card { position: relative; flex: 0 0 clamp(270px, 34vw, 520px); aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--fc-r-lg, 22px); overflow: hidden; background: rgba(255, 255, 255, .06); cursor: zoom-in; text-align: left; isolation: isolate;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .9s var(--fc-ease-luxe), transform .9s var(--fc-ease-luxe), box-shadow .5s; }
.fc-showroom.is-visible .fc-sr-card { opacity: 1; transform: none; }
.fc-showroom.is-visible .fc-sr-card:nth-child(2) { transition-delay: .08s; }
.fc-showroom.is-visible .fc-sr-card:nth-child(3) { transition-delay: .16s; }
.fc-showroom.is-visible .fc-sr-card:nth-child(4) { transition-delay: .24s; }
.fc-sr-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); user-select: none; }
.fc-sr-card.is-current img { transform: scale(1.04); }
.fc-sr-card:hover img, .fc-sr-card:focus-visible img { transform: scale(1.09); }
.fc-sr-card:focus-visible { outline: 2px solid var(--fc-accent-d); outline-offset: 4px; }
.fc-sr-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 6, 9, .78) 0%, rgba(14, 6, 9, .15) 45%, transparent 70%); transition: opacity .5s; }
.fc-sr-cap { position: absolute; left: 0; right: 70px; bottom: 0; z-index: 2; padding: clamp(16px, 2vw, 24px); color: #fff; transform: translateY(6px); transition: transform .6s var(--fc-ease-luxe); }
.fc-sr-cap strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.fc-sr-cap small { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--fc-ease-luxe); }
.fc-sr-card:hover .fc-sr-cap, .fc-sr-card.is-current .fc-sr-cap { transform: none; }
.fc-sr-card:hover .fc-sr-cap small, .fc-sr-card.is-current .fc-sr-cap small { opacity: 1; transform: none; }
.fc-sr-expand { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: all .45s var(--fc-ease-luxe); }
.fc-sr-card:hover .fc-sr-expand { background: #fff; color: var(--fc-primary-dark); transform: rotate(90deg) scale(1.05); }

/* Story-style progress segments */
.fc-sr-progress { display: flex; gap: 6px; margin-top: 22px; max-width: 520px; }
.fc-sr-progress span { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(var(--fc-on-dark-rgb), .18); overflow: hidden; }
.fc-sr-progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--fc-accent-d); border-radius: inherit; }
.fc-sr-progress span.is-done i { transform: scaleX(1); }
.fc-sr-progress span.is-active i { transform: scaleX(1); transition: none; }
.fc-showroom.is-playing .fc-sr-progress span.is-active i { transform: scaleX(0); animation: fcSrFill var(--sr-interval, 4000ms) linear forwards; }
@keyframes fcSrFill { to { transform: scaleX(1); } }

.fc-sr-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(24px, 3.5vw, 36px); }
.fc-sr-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(var(--fc-on-dark-rgb), .82); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(var(--fc-on-dark-rgb), .35); padding-bottom: 3px; }
.fc-sr-link:hover { color: var(--fc-on-dark); border-color: var(--fc-on-dark); }
.fc-showroom .fc-btn-outline { color: var(--fc-on-dark); border-color: rgba(var(--fc-on-dark-rgb), .5); }
.fc-showroom .fc-btn-outline:hover { background: var(--fc-on-dark); color: var(--fc-primary-dark); }

/* ---------- Full-screen viewer ---------- */
body.fc-lb-lock { overflow: hidden; }
.fc-lb { position: fixed; inset: 0; z-index: 2050; background: rgba(10, 4, 6, .985); color: #fff; opacity: 0; transition: opacity .35s ease; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fc-lb.is-open { opacity: 1; }
.fc-lb-stage { position: absolute; inset: 70px clamp(16px, 7vw, 110px) 190px; }
.fc-lb-slide { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.fc-lb-slide.is-active { opacity: 1; pointer-events: auto; }
.fc-lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); transform: scale(1); }
.fc-lb.is-playing .fc-lb-slide.is-active img { animation: fcKenBurns calc(var(--sr-interval, 4000ms) + 1.6s) ease-out forwards; }
@keyframes fcKenBurns { from { transform: scale(1); } to { transform: scale(1.05); } }
.fc-lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 3vw, 28px); }
.fc-lb-count { font-size: 13px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.fc-lb-count b { color: #fff; }
.fc-lb-actions { display: flex; gap: 8px; }
.fc-lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s; }
.fc-lb-btn:hover { background: #fff; color: #1B1416; }
.fc-lb-nav { position: absolute; top: calc(50% - 60px); width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .3s var(--fc-ease-luxe); z-index: 2; }
.fc-lb-nav:hover { background: #fff; color: #1B1416; transform: scale(1.06); }
.fc-lb-nav.is-prev { left: clamp(10px, 2vw, 30px); }
.fc-lb-nav.is-next { right: clamp(10px, 2vw, 30px); }
.fc-lb-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(16px, 3vw, 28px) calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info consult" "bar bar" "thumbs thumbs"; align-items: end; gap: 12px 20px; }
.fc-lb-info { grid-area: info; position: relative; min-height: 48px; }
.fc-lb-text { position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--fc-ease-luxe); pointer-events: none; }
.fc-lb-text.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.fc-lb-text strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.fc-lb-text span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.fc-lb-text a { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--fc-accent-d, #F1D6D0); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fc-lb-consult { grid-area: consult; }
.fc-lb-bar { grid-area: bar; height: 2px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.fc-lb-bar i { display: block; height: 100%; width: 0; background: var(--fc-accent-d, #F1D6D0); }
.fc-lb.is-playing .fc-lb-bar i { animation: fcLbBar calc(var(--sr-interval, 4000ms) + 600ms) linear forwards; }
.fc-lb-stage:hover ~ .fc-lb-bottom .fc-lb-bar i { animation-play-state: paused; }
@keyframes fcLbBar { to { width: 100%; } }
.fc-lb-thumbs { grid-area: thumbs; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fc-lb-thumbs::-webkit-scrollbar { display: none; }
.fc-lb-thumbs button { flex: 0 0 76px; height: 50px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; background: rgba(255, 255, 255, .08); }
.fc-lb-thumbs button:hover { opacity: .8; }
.fc-lb-thumbs button.is-active { opacity: 1; outline-color: var(--fc-accent-d, #F1D6D0); }
.fc-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767.98px) {
    .fc-sr-head { align-items: flex-start; }
    .fc-sr-controls { width: 100%; justify-content: space-between; }
    .fc-sr-card { flex-basis: 82vw; }
    .fc-sr-expand { width: 38px; height: 38px; right: 12px; bottom: 12px; }
    .fc-sr-cta .fc-btn { flex: 1 1 auto; }
    .fc-lb-stage { inset: 64px 8px 210px; }
    .fc-lb-nav { display: none; }
    .fc-lb-bottom { grid-template-columns: 1fr; grid-template-areas: "info" "bar" "thumbs" "consult"; }
    .fc-lb-consult { width: 100%; }
    .fc-lb-thumbs button { flex-basis: 60px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-sr-track, .fc-sr-card, .fc-sr-card img, .fc-lb-slide { transition: none !important; }
    .fc-lb.is-playing .fc-lb-slide.is-active img { animation: none; }
}
