/* Popular tours: sidebar filters + 3-col main */
.dg-tours-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .dg-tours-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
  }
}

.dg-tours-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .dg-tours-sidebar {
    display: block;
    position: sticky;
    top: 6.5rem;
  }
}
.dg-tours-sidebar.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}
@media (min-width: 1024px) {
  .dg-tours-sidebar.is-open {
    position: sticky;
    inset: auto;
    padding: 0;
    background: transparent;
  }
}

.dg-tours-sidebar__inner {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.dg-tours-sidebar.is-open .dg-tours-sidebar__inner {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
@media (min-width: 1024px) {
  .dg-tours-sidebar.is-open .dg-tours-sidebar__inner {
    max-height: none;
    overflow: visible;
  }
}

.dg-tours-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.dg-tours-sidebar__head h3 {
  margin: 0;
  color: #1f354c;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dg-tours-sidebar__reset {
  border: 0;
  background: transparent;
  color: #11b6a3;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
}
.dg-tours-sidebar__reset:hover {
  text-decoration: underline;
}

.dg-tours-sidebar__group + .dg-tours-sidebar__group {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.dg-tours-sidebar__label {
  margin: 0 0 0.65rem;
  color: #1f354c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dg-tours-sidebar__options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dg-tours-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dg-tours-chip:hover {
  background: rgba(17, 182, 163, 0.08);
}
.dg-tours-chip:has(input:checked) {
  background: rgba(17, 182, 163, 0.12);
}
.dg-tours-chip input {
  width: 1rem;
  height: 1rem;
  accent-color: #11b6a3;
  flex-shrink: 0;
}
.dg-tours-chip__text {
  flex: 1;
  min-width: 0;
  color: #1f354c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}
.dg-tours-chip__count {
  margin-left: auto;
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.dg-tours-chip:has(input:checked) .dg-tours-chip__count {
  color: #0f766e;
}
/* Legacy chips that still use a bare <span> */
.dg-tours-chip > span:not(.dg-tours-chip__count):not(.dg-tours-chip__text) {
  flex: 1;
  color: #1f354c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.dg-tours-main {
  min-width: 0;
}
.dg-tours-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dg-tours-count {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}
.dg-tours-count span {
  color: #1f354c;
  font-weight: 800;
}
.dg-tours-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1f354c;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .dg-tours-filter-toggle { display: none; }
}

[data-dg-tour-card][hidden] {
  display: none !important;
}

.dg-tours-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 1rem;
}
