/* ===========================
   Layout lưới 1–4 cột
   =========================== */
.body {
    margin: 32px 0;
	width: 100%;
}


#dln-root.dln-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1040px) {
    #dln-root.dln-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
		
	.body {
		width: 100vw;
	}
}

@media (max-width: 992px) {
    #dln-root.dln-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
	
	.body {
		width: 100vw;
	}
}

@media (max-width: 768px) {
    #dln-root.dln-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

	.body {
		width: 100vw;
	}
}


/* ===========================
   Card cha (Du lịch / Văn hóa…)
   =========================== */
.dln-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Grid cards: tự chia cột theo số lượng + căn giữa */
#dln-root.dln-grid{
  display: grid;
  gap: 18px;
  justify-content: center;                 /* ✅ cả cụm card nằm giữa */
  grid-template-columns: repeat(auto-fit, minmax(320px, 360px)); 
  /* min = 320, max = 360: bạn chỉnh theo UI */
}

/* Card full width trong cột */
#dln-root .dln-card{
  width: 100%;
}

/* Responsive: mobile 1 cột */
@media (max-width: 576px){
  #dln-root.dln-grid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  
  	.body {
		width: 100vw;
	}
}


.dln-card-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(90deg, #0b63ce, #1c9aea);
    color: #fff;
    cursor: pointer;
}

.dln-card-header:hover {
    filter: brightness(1.05);
}

.dln-card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dln-card-body {
    padding: 10px 14px 12px;
    background: #f9fafb;
}

/* ===========================
   Tree nhiều cấp
   =========================== */
.dln-list,
.dln-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* cấp 1 trong card */
.dln-list > li {
    border-top: 1px solid #e5e7eb;
}
.dln-list > li:first-child {
    border-top: none;
}

/* dòng: link + nút xổ */
.dln-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* link cấp 1 */
.dln-list > li > .dln-row > a {
    display: block;
    padding: 8px 0;
    font-size: 18px;
    color: #0b63ce;
    text-decoration: none;
}

/* list các cấp sâu (>=2): ẨN MẶC ĐỊNH */
.dln-sublist {
    margin: 4px 0 4px 10px;
    padding-left: 10px;
    border-left: 1px dashed #d1d5db;.dln-list > li > .dln-row > a
}

/* link cấp sâu */
.dln-sublist .dln-row > a {
    padding: 4px 0;
    font-size: 16px;
    color: #2563eb;
}

.dln-list a:hover,
.dln-sublist a:hover {
    text-decoration: underline;
}

/* node có con làm đậm hơn chút */
.dln-level-1.has-children > .dln-row > a,
.dln-level-2.has-children > .dln-row > a {
    font-weight: 600;
}

/* Text "Chưa có mục con" */
.dln-list em {
    display: block;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* nút mũi tên xổ sub-list */
.dln-toggle-child {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 2px 4px;
    transform: rotate(-90deg); /* mặc định chỉ sang phải */
    transition: transform 0.18s ease;
    color: #4b5563;
}

.dln-toggle-child.open {
    transform: rotate(0deg);   /* đang mở: chỉ xuống */
}
