/* HOTELLIX design system: photo viewer. Colours, sizes and spacing come from tokens.css. */
.cfv .modal-content { background: var(--ds-night, #0d1719); color: var(--ds-text-on-night, #f3f6f6); border: 0; border-radius: 0; }
.cfv .cfv-head { gap: 12px; padding: 10px 16px; border-block-end: 1px solid var(--ds-border-night, rgba(255, 255, 255, .14)); }
.cfv .modal-title { min-inline-size: 0; margin: 0; overflow: hidden; color: inherit; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.cfv .cfv-count { flex: none; margin-inline-start: auto; padding: 4px 10px; border-radius: 999px; background: var(--ds-night-raised, rgba(255, 255, 255, .12)); font-size: 13px; font-variant-numeric: tabular-nums; direction: ltr; }
.cfv .cfv-count + .btn-close { margin-inline-start: 0; }
.cfv .btn-close { flex: none; inline-size: 44px; block-size: 44px; margin: 0; padding: 0; background-size: 14px; opacity: .85; }
.cfv .btn-close:hover { opacity: 1; }

.cfv .cfv-body { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-block-size: 0; padding: 0; overflow: hidden; }
.cfv .cfv-stage { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-block-size: 0; padding: 12px; outline: none; touch-action: pan-y; }
.cfv .cfv-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--ds-highlight, #e2b04a); }
.cfv .cfv-img { display: block; max-inline-size: 100%; max-block-size: 100%; inline-size: auto; block-size: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.cfv .cfv-img[hidden], .cfv .cfv-img.is-loading { visibility: hidden; }

.cfv .cfv-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cfv .cfv-spin[hidden], .cfv .cfv-fail[hidden] { display: none; }
.cfv .cfv-spin::before { content: ""; inline-size: 36px; block-size: 36px; border: 3px solid rgba(255, 255, 255, .25); border-block-start-color: #fff; border-radius: 50%; animation: cfv-turn .8s linear infinite; }
@keyframes cfv-turn { to { transform: rotate(360deg); } }
.cfv .cfv-fail { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.cfv .cfv-fail p { margin: 0; }
.cfv .cfv-retry { min-block-size: 44px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: inherit; font-weight: 600; }
.cfv .cfv-retry:hover { background: rgba(255, 255, 255, .1); }

.cfv .cfv-nav { position: absolute; inset-block-start: 50%; display: flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 30px; line-height: 1; }
.cfv .cfv-nav span { display: block; margin-block-start: -4px; }
.cfv .cfv-nav:hover { background: rgba(0, 0, 0, .8); }
.cfv .cfv-prev { inset-inline-start: 12px; }
.cfv .cfv-next { inset-inline-end: 12px; }
[dir="rtl"] .cfv .cfv-nav span { transform: scaleX(-1); }
.cfv .cfv-nav:focus-visible, .cfv .cfv-retry:focus-visible, .cfv .cfv-thumb:focus-visible, .cfv .btn-close:focus-visible { outline: 2px solid var(--ds-highlight, #e2b04a); outline-offset: 2px; box-shadow: none; }

.cfv .cfv-strip { display: flex; flex: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; border-block-start: 1px solid var(--ds-border-night, rgba(255, 255, 255, .14)); }
.cfv .cfv-thumb { flex: none; inline-size: 96px; block-size: 72px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, .08); opacity: .6; }
.cfv .cfv-thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.cfv .cfv-thumb:hover { opacity: .9; }
.cfv .cfv-thumb[aria-selected="true"] { border-color: var(--ds-highlight, #e2b04a); opacity: 1; }

@media (max-width: 575.98px) {
  .cfv .cfv-stage { padding: 0; }
  .cfv .cfv-img { border-radius: 0; }
  .cfv .cfv-nav { inline-size: 44px; block-size: 44px; font-size: 26px; }
  .cfv .cfv-prev { inset-inline-start: 6px; }
  .cfv .cfv-next { inset-inline-end: 6px; }
  .cfv .cfv-thumb { inline-size: 72px; block-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfv .cfv-spin::before { animation-duration: 2.4s; }
  .cfv.fade { transition: none; }
}

/* ---------------------------------------------------------------- part 2: category chips, caption, room photo button */
.cfv .cfv-chips { display: flex; flex: none; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; border-block-end: 1px solid var(--ds-border-night, rgba(255, 255, 255, .14)); }
.cfv .cfv-chips[hidden], .cfv .cfv-strip[hidden], .cfv .cfv-nav[hidden], .cfv .cfv-count[hidden], .cfv .cfv-cap[hidden] { display: none; }
.cfv .cfv-chips::-webkit-scrollbar { display: none; }
.cfv .cfv-chip { flex: none; min-block-size: 36px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: inherit; font-size: 13.5px; white-space: nowrap; }
.cfv .cfv-chip:hover { background: rgba(255, 255, 255, .1); }
.cfv .cfv-chip[aria-pressed="true"] { border-color: #fff; background: #fff; color: #0d1719; font-weight: 600; }
.cfv .cfv-chip:focus-visible { outline: 2px solid var(--ds-highlight, #e2b04a); outline-offset: 2px; }
.cfv .cfv-cap { position: absolute; inset-block-end: 20px; inset-inline-start: 50%; max-inline-size: calc(100% - 32px); padding: 5px 12px; transform: translateX(-50%); overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
[dir="rtl"] .cfv .cfv-cap { transform: translateX(50%); }
@media (pointer: coarse) { .cfv .cfv-chip { min-block-size: 44px; } }

/* hotel page → room card: "3 photos" button with a small picture */
.cfh-room-photos { display: inline-flex; gap: 8px; align-items: center; margin-block-start: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: zoom-in; }
.cfh-room-photos img { display: block; inline-size: 56px; block-size: 42px; border-radius: 6px; object-fit: cover; }
.cfh-room-photos:focus-visible { outline: 2px solid var(--ds-highlight, #e2b04a); outline-offset: 3px; }
