/* InfoSectionDetail2 & InfoSectionDetail4 - shared styles */
/* Nút Nội dung: ngoài col, position fixed, cạnh trái */
.isd2-fab-wrap {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
}
.isd2-toc-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  white-space: nowrap;
}
/* max-width 1790px: chỉ icon 3 gạch */
.isd2-toc-fab .isd2-toc-fab-text { display: none; margin-left: 6px; }
@media (min-width: 1791px) {
  .isd2-toc-fab { width: auto; height: 44px; border-radius: 22px; padding: 0 14px; }
  .isd2-toc-fab .isd2-toc-fab-text { display: inline; }
}
/* Điện thoại: TOC nút nằm trên thanh nav dưới, nhích lên để không bị che */
@media (max-width: 767px) {
  .isd2-fab-wrap {
    left: 12px;
    top: auto;
    bottom: 88px;
    transform: none;
  }
}
.destination-details .ds-text-toc-targets h2[id],
.content-body h2[id] { scroll-margin-top: 120px; }
.content-body img { max-width: 100%; height: auto; }
.content-body { line-height: 1.7; }

/* Cụm chia sẻ tin */
.info-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.info-share-label { font-weight: 500; color: #555; }
.info-share-btns { display: flex; gap: 8px; }
.info-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.info-share-btn:hover { opacity: .9; transform: scale(1.05); }
.info-share-fb { background: #1877f2; }
.info-share-zalo { background: #0068ff; }
.info-share-twitter { background: #1da1f2; }
.info-share-copy { background: #6c757d; border: none; cursor: pointer; }

/* TOC drawer: trượt từ trái */
.isd2-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}
.isd2-offcanvas.show {
  pointer-events: auto;
  visibility: visible;
}
.isd2-offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.isd2-offcanvas.show .isd2-offcanvas-backdrop { opacity: 1; }
.isd2-offcanvas-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.isd2-offcanvas.show .isd2-offcanvas-panel { transform: translateX(0); }
.isd2-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
}
.isd2-offcanvas-title { margin: 0; font-size: 1.1rem; }
.isd2-offcanvas-close {
  background: none;
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.isd2-offcanvas-close:hover { color: #000; }
.isd2-offcanvas-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  max-height: calc(100vh - 80px);
  scrollbar-color: #0CAE74 #f1f1f1;
  scrollbar-width: thin;
}
.isd2-offcanvas-body::-webkit-scrollbar { width: 8px; }
.isd2-offcanvas-body::-webkit-scrollbar-track { background: #f1f1f1; }
.isd2-offcanvas-body::-webkit-scrollbar-thumb {
  background: #0CAE74;
  border-radius: 4px;
}
.isd2-offcanvas-body::-webkit-scrollbar-thumb:hover { background: #015a35; }
/* Mục lục: số thứ tự để phân biệt các mục */
.toc-list {
  list-style: decimal;
  padding-left: 1.5rem;
}
.toc-list li {
  margin-bottom: 8px;
  line-height: 1.35;
}
.isd2-offcanvas-body .toc-list.list-unstyled {
  list-style: decimal;
  padding-left: 1.5rem;
}
