/* ==========================================================================
   OC THEME — Unit Slider (Tabbed: 2BR / 3BR …)
   Prefix .us-*  — KHÔNG ảnh hưởng craft-slider, facilities hay bất kỳ widget nào.
   ========================================================================== */

/* ── Section ──────────────────────────────────────────────────────────── */
.us-section {
  position: relative;
  padding: clamp(60px, 7vw, 120px) 0;
  overflow: hidden;
}
.us-container {
  width: 100%;
  overflow: hidden;
}

/* ── Header (title center + arrows right) ─────────────────────────────── */
.us-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 80px);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.us-header__text { flex: 1; text-align: center; }

.us-title {
  font-family: var(--font-display, 'CA SaygonText', serif);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-gold-light, #f3cba0);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.us-subtitle {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ── Arrow buttons ────────────────────────────────────────────────────── */
.us-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.us-arrow-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  background: #111314;
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 4px 16px rgba(0,0,0,.6);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.us-arrow-btn:hover {
  background: linear-gradient(90deg, #9D6340 0%, #F3CBA0 100%);
  color: var(--color-bg, #07090a);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.us-arrow-btn:focus-visible {
  outline: 2px solid var(--color-gold-light, #f3cba0);
  outline-offset: 3px;
}
.us-arrow-btn.swiper-button-disabled { opacity: .28; pointer-events: none; }

/* ── Tab nav — copy y chang .craft-tabs ───────────────────────────────── */
.us-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(28px, 4vw, 56px);
  align-self: flex-start;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 0 clamp(20px, 5vw, 80px) clamp(24px, 3vw, 44px);
}

.us-tab-btn {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 14px 6px 18px;
  margin: 0;
  font-family: var(--font-display, 'CA SaygonText', serif);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  cursor: pointer;
  transition: color .35s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Dot bullet */
.us-tab-btn::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transform: scale(.6);
  transition: transform .4s ease, background .4s ease, opacity .4s ease;
}

.us-tab-btn:hover { color: rgba(255,255,255,.85); }

.us-tab-btn.is-active { color: #f2c79a; }

.us-tab-btn.is-active::before {
  background: linear-gradient(135deg, #F3CBA0 0%, #9D6340 100%);
  opacity: 1;
  transform: scale(1);
}

/* Underline slide */
.us-tab-btn__underline {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: linear-gradient(90deg, #F3CBA0 0%, #9D6340 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.6,.05,.2,1);
}
.us-tab-btn.is-active .us-tab-btn__underline { transform: scaleX(1); }

.us-tab-btn:focus-visible {
  outline: 2px solid rgba(243,203,160,.6);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Tab panels — grid-stacked giống .craft-panels ───────────────────── */
.us-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.us-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0; min-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.us-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;
}

/* ── Swiper ───────────────────────────────────────────────────────────── */
.us-swiper {
  width: 100%;
  overflow: visible;
  padding: 24px 0 0;
}

/* Scale effect giống facilities */
.us-swiper .swiper-slide {
  padding: 0 2.5px;
  transform: scale(.9);
  opacity: .4;
  transition: transform .6s var(--ease-out, cubic-bezier(.16,1,.3,1)),
              opacity   .6s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.us-swiper .swiper-slide-prev  { transform-origin: right bottom; }
.us-swiper .swiper-slide-next  { transform-origin: left bottom; }
.us-swiper .swiper-slide-active {
  transform: scale(1);
  transform-origin: center bottom;
  opacity: 1;
  z-index: 2;
}

/* ── Card — border + padding giống facility-card ─────────────────────── */
.us-card {
  display: block; margin: 0;
  width: 100%; padding: 10px;
  position: relative;
  background: var(--color-bg-alt, #0d0f10);
  border: 1px solid rgba(212,153,104,.6);
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
}
.us-card:focus-visible {
  outline: 2px solid var(--color-gold-light, #f3cba0);
  outline-offset: 3px;
}

/* 4:3 aspect ratio */
.us-card__media {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 6px; background: #111;
}
.us-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform .5s ease;
}
.us-card:hover .us-card__media img { transform: scale(1.04); }

/* Zoom overlay */
.us-card__zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,9,10,.38);
  color: var(--color-gold-light, #f3cba0);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none; border-radius: 6px;
}
.us-card:hover .us-card__zoom { opacity: 1; }

/* ── Pagination ───────────────────────────────────────────────────────── */
.us-pagination {
  position: relative !important; bottom: auto !important; left: auto !important;
  margin-top: 28px; text-align: center;
}
.us-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: rgba(255,255,255,.28); opacity: 1;
  transition: background .3s, width .3s; margin: 0 3px;
}
.us-pagination .swiper-pagination-bullet-active {
  background: var(--color-gold-light, #f3cba0);
  width: 20px; border-radius: 3px;
}

/* ==========================================================================
   LIGHTBOX  #oc-unit-lb
   ========================================================================== */
#oc-unit-lb {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  background: #08090a;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
#oc-unit-lb.is-open { opacity: 1; visibility: visible; }

.oc-lb__topbar {
  position: relative; flex-shrink: 0; height: 52px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 60px;
}
.oc-lb__counter {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.4);
}
.oc-lb__close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  background: transparent; color: rgba(255,255,255,.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
}
.oc-lb__close:hover { background: var(--color-gold-light,#f3cba0); color:#07090a; border-color:transparent; }

.oc-lb__stage {
  position: relative; flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 68px;
}
.oc-lb__img-wrap {
  position: relative; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.oc-lb__img {
  max-width: 100%; max-height: calc(100vh - 200px);
  width: auto; height: auto; object-fit: contain; display: block;
  border-radius: 4px; transition: opacity .3s ease;
}
.oc-lb__img.is-loading { opacity: 0; }

.oc-lb__caption {
  position: absolute; bottom:0; left:0; right:0;
  padding: 36px 20px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  font-size: 13px; color: rgba(255,255,255,.75); letter-spacing:.04em;
  pointer-events: none; border-radius: 0 0 4px 4px; min-height: 16px;
}

.oc-lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  background: rgba(8,9,10,.55); color: rgba(255,255,255,.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s; z-index: 2;
}
.oc-lb__nav:hover { background: var(--color-gold-light,#f3cba0); color:#07090a; border-color:transparent; }
.oc-lb__nav--prev { left: 12px; }
.oc-lb__nav--next { right: 12px; }
.oc-lb__nav.is-hidden { opacity: 0; pointer-events: none; }

.oc-lb__spinner {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 28px; height: 28px;
  border: 2px solid rgba(243,203,160,.15);
  border-top-color: var(--color-gold-light,#f3cba0);
  border-radius: 50%; animation: oc-lb-spin .7s linear infinite; display: none;
}
.oc-lb__spinner.is-active { display: block; }
@keyframes oc-lb-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Filmstrip */
.oc-lb__thumbs {
  flex-shrink: 0; height: 90px;
  display: flex; align-items: center; padding: 8px 16px; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(243,203,160,.3) transparent;
  background: rgba(0,0,0,.4); border-top: 1px solid rgba(255,255,255,.06);
}
.oc-lb__thumbs::-webkit-scrollbar { height: 3px; }
.oc-lb__thumbs::-webkit-scrollbar-thumb { background: rgba(243,203,160,.3); border-radius: 2px; }

.oc-lb__thumb {
  flex-shrink: 0; width: 112px; height: 70px;
  border-radius: 4px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .25s, opacity .25s;
  opacity: .5; background: none; padding: 0;
}
.oc-lb__thumb img { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.oc-lb__thumb:hover { opacity: .8; }
.oc-lb__thumb.is-active { border-color: var(--color-gold-light,#f3cba0); opacity: 1; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .us-header { padding: 0 clamp(16px,4vw,48px); }
  .us-header__text { text-align: left; }
  .us-tabs { margin-left: clamp(16px,4vw,48px); margin-right: clamp(16px,4vw,48px); }
}

@media (max-width: 768px) {
  .us-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 16px; }
  .us-header__text { text-align: left; }
  .us-arrows { align-self: flex-end; }
  .us-arrow-btn { width: 40px; height: 40px; }
  .us-tabs { width: calc(100% - 32px); justify-content: flex-start; gap: clamp(18px,8vw,36px); margin: 0 16px clamp(20px,3vw,36px); }
  .us-tab-btn { padding: 12px 4px 14px; font-size: 13px; letter-spacing: .18em; }
  .us-card__media { aspect-ratio: 4 / 3; }
  .oc-lb__stage { padding: 0 44px; }
  .oc-lb__nav--prev { left: 4px; } .oc-lb__nav--next { right: 4px; }
  .oc-lb__nav { width: 36px; height: 36px; }
  .oc-lb__img { max-height: calc(100vh - 180px); }
  .oc-lb__thumb { width: 80px; height: 52px; }
  .oc-lb__thumbs { height: 70px; padding: 6px 10px; }
}
