/* Carousel + lightbox for /concepts/<slug> detail pages — see concept-detail.js.
   Shared across all 50 generated pages (build-sabohub-concepts.mjs), not inlined per
   page, so a future fix only touches one file. */

/* Frame matches flagship/index.html's .glass card exactly (same border-radius, border,
   shadow, backdrop-blur) — var() with the same fallbacks so this still looks right if a
   page's own :root ever falls out of sync with flagship's tokens. */
.shot-carousel { position: relative; }
.shot-carousel-track {
  position: relative;
  display: grid;
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface, #fff) 82%, transparent);
  border: 1px solid var(--line, rgba(16, 24, 48, 0.1));
  box-shadow: 0 50px 100px -50px rgba(16, 24, 48, 0.5), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(10px);
}
.shot-carousel-slide {
  grid-area: 1 / 1;
  display: none;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot-carousel-slide.is-active { display: block; }
.shot-carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.shot-carousel--web { max-width: 760px; margin: 0 auto; }
.shot-carousel--web .shot-carousel-track { aspect-ratio: 16 / 9; }
.shot-carousel--mobile .shot-carousel-track { aspect-ratio: 9 / 16; }

.shot-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shot-carousel-arrow:hover { background: rgba(15, 23, 42, 0.9); }
.shot-carousel-arrow.prev { left: 10px; }
.shot-carousel-arrow.next { right: 10px; }

.shot-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.shot-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 24, 48, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.15s, border-radius 0.15s, background 0.15s;
}
.shot-carousel-dot.is-active { background: var(--accent, #4f46e5); width: 18px; border-radius: 4px; }

/* Lightbox — single instance injected by concept-detail.js, shared by every carousel */
.shot-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.shot-lightbox.is-open { display: flex; }
.shot-lightbox-img { max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.shot-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.shot-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.shot-lightbox-arrow.prev { left: 24px; }
.shot-lightbox-arrow.next { right: 24px; }
.shot-lightbox-close:hover,
.shot-lightbox-arrow:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 640px) {
  .shot-lightbox { padding: 16px; }
  .shot-lightbox-arrow { width: 38px; height: 38px; font-size: 20px; }
  .shot-lightbox-close { top: 10px; right: 10px; }
}

/* Lead modal — "Liên hệ ngay", in-page instead of navigating to sabo.com.vn/booking.
   Panel uses the same .glass card language as flagship/index.html (see
   build-sabohub-concepts.mjs :root tokens each page defines). */
.lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}
.lead-modal.is-open { display: flex; }
.lead-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface, #fff) 96%, transparent);
  border: 1px solid var(--line, rgba(16, 24, 48, 0.1));
  box-shadow: 0 50px 100px -50px rgba(16, 24, 48, 0.5), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(10px);
  padding: 28px 26px 26px;
}
.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 24, 48, 0.06);
  color: var(--ink, #050810);
  font-size: 18px;
  cursor: pointer;
}
.lead-modal-close:hover { background: rgba(16, 24, 48, 0.12); }
.lead-modal-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--ink, #050810); }
.lead-modal-niche { margin: 0 0 18px; font-size: 13.5px; color: var(--accent, #4f46e5); font-family: 'JetBrains Mono', monospace; }
.lead-modal-form { display: grid; gap: 14px; }
.lead-modal-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted, #334155); }
.lead-modal-form input {
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(16, 24, 48, 0.14));
  background: #fff;
  color: var(--ink, #050810);
}
.lead-modal-form input:focus { outline: 2px solid var(--accent, #4f46e5); outline-offset: 1px; }
.lead-modal-hint { margin: -6px 0 0; font-size: 12px; color: var(--muted, #64748b); }
.lead-modal-error { margin: 0; font-size: 13px; color: #dc2626; }
.lead-modal-submit {
  margin-top: 4px;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: var(--ink, #0f172a);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}
.lead-modal-submit:hover { opacity: 0.9; }
.lead-modal-submit:disabled { opacity: 0.6; cursor: default; }
.lead-modal-success { text-align: center; padding: 12px 0; font-size: 15px; color: var(--ink, #050810); }
