/* =====================================================
   detail.css — RgintanaVO Product Detail Pages
   Dipakai oleh: coworking_detail, paket_detail,
                 meeting_room_detail
   Depends on: base.css (CSS variables)
===================================================== */

/* ─────────────────────────────────────────
   BREADCRUMB BAR
───────────────────────────────────────── */
.dtl-breadcrumb-bar {
  background: var(--bvo-white);
  border-bottom: 1px solid rgba(30, 42, 94, 0.07);
  padding: 0.75rem 0;
}

.dtl-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dtl-breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.dtl-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--bvo-text-muted);
}

.dtl-breadcrumb li i { font-size: 0.7rem; color: var(--bvo-text-muted); }

.dtl-breadcrumb a {
  color: var(--bvo-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.dtl-breadcrumb a:hover { color: var(--bvo-blue); }

.dtl-breadcrumb .active {
  color: var(--bvo-navy);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   MAIN SECTION
───────────────────────────────────────── */
.dtl-section {
  padding: 3rem 0 5rem;
  background: var(--bvo-bg);
}

.dtl-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dtl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ─────────────────────────────────────────
   LEFT: MEDIA
───────────────────────────────────────── */
.dtl-media {
  position: sticky;
  top: calc(var(--bvo-nav-height) + 1.5rem);
}

.dtl-img-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bvo-navy-mid);
  box-shadow: var(--bvo-shadow-lg);
  aspect-ratio: 4 / 3;
}

.dtl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.dtl-img-wrap:hover .dtl-img { transform: scale(1.03); }

.dtl-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--bvo-navy-deep), var(--bvo-navy-mid), var(--bvo-blue));
}
.dtl-benefit-list__warning{
  color: #dc3545 !important;
  font-weight: 600;
}
.dtl-benefit-list__warning i {
  color: #dc3545 !important;
}
/* Floating wifi badge */
.dtl-img-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 20, 55, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 195, 247, 0.25);
  color: var(--bvo-electric);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.dtl-img-badge i { margin-right: 6px; }

/* Type chip top-left */
.dtl-img-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bvo-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.dtl-img-chip i { margin-right: 5px; }

/* Trust row */
.dtl-trust-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dtl-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--bvo-white);
  border: 1px solid rgba(30, 42, 94, 0.07);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bvo-navy);
  text-align: center;
}
.dtl-trust-item i {
  font-size: 1rem;
  color: var(--bvo-blue);
}

/* ─────────────────────────────────────────
   RIGHT: INFO
───────────────────────────────────────── */
.dtl-info {
  background: var(--bvo-white);
  border-radius: 22px;
  padding: 2.2rem;
  border: 1px solid rgba(30, 42, 94, 0.07);
  box-shadow: var(--bvo-shadow);
}

/* Header: title + price */
.dtl-info-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(30, 42, 94, 0.08);
}

.dtl-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--bvo-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.dtl-price-wrap { display: flex; align-items: baseline; gap: 0.5rem; }

.dtl-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.dtl-price__currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bvo-navy);
}
.dtl-price__amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bvo-navy);
  line-height: 1;
}
.dtl-price__period {
  font-size: 0.9rem;
  color: var(--bvo-text-muted);
  font-weight: 400;
}

/* Info blocks */
.dtl-block {
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(30, 42, 94, 0.07);
}
.dtl-block:last-of-type { border-bottom: none; margin-bottom: 0; }

.dtl-block__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bvo-navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.9rem;
}

.dtl-block__body { font-size: 0.93rem; color: var(--bvo-text-muted); line-height: 1.8; }

.dtl-desc p { margin-bottom: 0.6rem; }
.dtl-desc p:last-child { margin-bottom: 0; }

/* Benefit list */
.dtl-benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dtl-benefit-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--bvo-text);
}

.dtl-benefit-list i {
  color: #22c55e;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Chips row */
.dtl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.dtl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bvo-bg-2);
  border: 1px solid rgba(30, 42, 94, 0.09);
  color: var(--bvo-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}
.dtl-chip i { color: var(--bvo-blue); font-size: 0.75rem; }

/* CTA buttons */
.dtl-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dtl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
  white-space: nowrap;
}

.dtl-btn--primary {
  flex: 1;
  background: linear-gradient(135deg, var(--bvo-navy), var(--bvo-blue));
  color: var(--bvo-white);
  box-shadow: 0 6px 20px rgba(30, 42, 94, 0.28);
}
.dtl-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 42, 94, 0.42);
  color: var(--bvo-white);
}

.dtl-btn--wa {
  background: #25d366;
  color: var(--bvo-white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.dtl-btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  color: var(--bvo-white);
}

/* ─────────────────────────────────────────
   RELATED PRODUCTS
───────────────────────────────────────── */
.dtl-related {
  padding: 4rem 0 5rem;
  background: var(--bvo-bg);
  border-top: 1px solid rgba(30, 42, 94, 0.07);
}

.dtl-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dtl-related-title {
  font-size: 1.5rem;
  color: var(--bvo-navy);
  margin-bottom: 0.25rem;
}
.dtl-related-sub {
  font-size: 0.88rem;
  color: var(--bvo-text-muted);
  margin: 0;
}
.dtl-related-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bvo-blue);
  white-space: nowrap;
  transition: gap 0.2s;
}
.dtl-related-all:hover { gap: 10px; color: var(--bvo-navy); }
.dtl-related-all i { font-size: 0.75rem; }

/* Related cards grid */
.dtl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
}

/* Related card */
.dtl-rel-card {
  background: var(--bvo-white);
  border-radius: var(--bvo-radius);
  overflow: hidden;
  border: 1px solid rgba(30, 42, 94, 0.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dtl-rel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bvo-shadow-lg);
  color: inherit;
}

.dtl-rel-card__img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.dtl-rel-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dtl-rel-card:hover .dtl-rel-card__img-wrap img { transform: scale(1.04); }

.dtl-rel-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bvo-navy-mid), var(--bvo-blue), var(--bvo-electric));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.35);
}

.dtl-rel-card__chip {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(14, 20, 55, 0.75);
  backdrop-filter: blur(6px);
  color: var(--bvo-electric);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.dtl-rel-card__body {
  padding: 1.1rem 1.2rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dtl-rel-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--bvo-navy);
  margin-bottom: 0.3rem;
}
.dtl-rel-card__desc {
  font-size: 0.82rem;
  color: var(--bvo-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.8rem;
}
.dtl-rel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(30, 42, 94, 0.07);
  gap: 0.5rem;
}
.dtl-rel-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bvo-navy);
}
.dtl-rel-card__price em {
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--bvo-text-muted);
  font-weight: 400;
}
.dtl-rel-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bvo-blue);
  transition: gap 0.2s;
}
.dtl-rel-card:hover .dtl-rel-card__cta { gap: 8px; }
.dtl-rel-card__cta i { font-size: 0.68rem; }

/* Empty state */
.dtl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--bvo-text-muted);
}
.dtl-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.7rem; opacity: 0.35; }
.dtl-empty p { font-size: 0.92rem; font-style: italic; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .dtl-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .dtl-media { position: static; }
  .dtl-img-wrap { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .dtl-section { padding: 2rem 0 3rem; }
  .dtl-inner { padding: 0 1rem; }
  .dtl-info { padding: 1.5rem; }
  .dtl-price__amount { font-size: 1.8rem; }
  .dtl-cta { flex-direction: column; }
  .dtl-btn--primary { flex: none; width: 100%; }
  .dtl-btn--wa { width: 100%; }
  .dtl-related-grid { grid-template-columns: 1fr 1fr; }
  .dtl-trust-row { gap: 0.4rem; }
}

@media (max-width: 480px) {
  .dtl-related-grid { grid-template-columns: 1fr; }
  .dtl-related-header { flex-direction: column; align-items: flex-start; }
  .dtl-chips { gap: 0.4rem; }
}