/* Destination directory and guides use the shared VietTripMap design tokens. */
.vtm-destinations,
.vtm-destination {
  --vtm-dest-muted: #4f665a;
  --vtm-dest-line: var(--vtm-line);
  --vtm-dest-radius: 18px;
  background: var(--vtm-paper);
  color: var(--vtm-forest);
  font-family: var(--vtm-font);
  line-height: 1.55;
}

.vtm-destinations :focus-visible,
.vtm-destination :focus-visible {
  outline: 2px solid var(--vtm-focus);
  outline-offset: 4px;
}

.vtm-destinations__intro {
  padding-block: clamp(var(--vtm-space-8), 5.5vw, var(--vtm-space-16));
  background: #edf2e9;
  border-bottom: 1px solid var(--vtm-dest-line);
}

.vtm-destinations__intro h1 {
  margin-bottom: var(--vtm-space-2);
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.vtm-destinations__intro p {
  max-width: 62ch;
  color: var(--vtm-dest-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.vtm-destinations__listing,
.vtm-destination__wrap {
  padding-block: var(--vtm-space-8) clamp(var(--vtm-space-8), 5vw, var(--vtm-space-16));
}

.vtm-destinations__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--vtm-space-3);
  margin-bottom: var(--vtm-space-6);
  padding: var(--vtm-space-4);
  border: 1px solid var(--vtm-dest-line);
  border-radius: var(--vtm-dest-radius);
  background: #fff;
}

.vtm-destinations__filter label {
  display: grid;
  gap: var(--vtm-space-1);
  flex: 0 1 12rem;
  font-size: .875rem;
  font-weight: 700;
}

.vtm-destinations__filter .vtm-destinations__query { flex: 1 1 14rem; }

.vtm-destinations__filter input,
.vtm-destinations__filter select {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--vtm-control-size);
  padding-inline: var(--vtm-space-3);
  border: 1px solid var(--vtm-dest-line);
  border-radius: var(--vtm-control-radius);
  background: var(--vtm-paper);
  color: var(--vtm-forest);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.vtm-destinations__summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vtm-space-3);
  margin-bottom: var(--vtm-space-4);
}

.vtm-destinations__summary a { color: inherit; }

.vtm-destinations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vtm-space-6);
}

.vtm-destinations__empty {
  padding: var(--vtm-space-6);
  border: 1px dashed var(--vtm-dest-line);
  border-radius: var(--vtm-dest-radius);
  color: var(--vtm-dest-muted);
}

.vtm-destination-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vtm-dest-line);
  border-radius: var(--vtm-dest-radius);
  background: #fff;
}

.vtm-destination-card:focus-within { outline: 2px solid var(--vtm-focus); }

.vtm-destination-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.vtm-destination-card__link:hover h2,
.vtm-destination-card__link:focus-visible h2 { text-decoration: underline; }

.vtm-destination-card__media { aspect-ratio: 16 / 10; }

.vtm-destination-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtm-destination-card__body { padding: var(--vtm-space-4); }

.vtm-destination-card__body h2 {
  margin-bottom: var(--vtm-space-1);
  font-size: clamp(1.35rem, 2.25vw, 1.85rem);
  font-weight: 760;
}

.vtm-destination-card__region,
.vtm-destinations__intro .vtm-destination__region {
  margin-bottom: var(--vtm-space-1);
  color: var(--vtm-dest-muted);
  font-size: .85rem;
  font-weight: 700;
}

.vtm-destination-card__time {
  display: inline-block;
  margin-top: var(--vtm-space-2);
  padding: var(--vtm-space-1) var(--vtm-space-2);
  border-radius: 6px;
  background: #edf2e9;
  font-size: .85rem;
  font-weight: 700;
}

.vtm-destinations .navigation.pagination { margin-top: var(--vtm-space-8); }
.vtm-destinations .pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--vtm-space-2); }
.vtm-destinations .page-numbers {
  display: inline-flex;
  min-width: var(--vtm-control-size);
  min-height: var(--vtm-control-size);
  align-items: center;
  justify-content: center;
  padding: 0 var(--vtm-space-2);
  border: 1px solid var(--vtm-dest-line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.vtm-destinations .page-numbers.current { background: var(--vtm-forest); color: #fff; }

.vtm-destination__back {
  display: inline-flex;
  gap: var(--vtm-space-2);
  margin-bottom: var(--vtm-space-4);
  color: inherit;
  text-decoration-color: var(--vtm-focus);
  text-underline-offset: 4px;
}

.vtm-destination__cover {
  overflow: hidden;
  margin-bottom: var(--vtm-space-6);
  border-radius: var(--vtm-dest-radius);
  background: #e3eae0;
}

.vtm-destination__cover img {
  height: clamp(200px, 38vw, 510px);
  object-position: 50% 54%;
}

.vtm-destination__cover figcaption {
  padding: var(--vtm-space-1) var(--vtm-space-3);
  background: #edf2e9;
  color: var(--vtm-dest-muted);
  font-size: .8rem;
}
.vtm-destination__cover a { color: inherit; }

.vtm-destination__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
  gap: var(--vtm-space-3);
  margin-bottom: var(--vtm-space-8);
}

.vtm-destination__facts div,
.vtm-destination__maps {
  padding: var(--vtm-space-4);
  border: 1px solid var(--vtm-dest-line);
  border-radius: var(--vtm-dest-radius);
  background: #fff;
}

.vtm-destination__facts dt { color: var(--vtm-dest-muted); font-size: .85rem; }
.vtm-destination__facts dd { margin: 0; font-weight: 700; }

.vtm-destination__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 280px);
  gap: clamp(var(--vtm-space-6), 5.5vw, var(--vtm-space-16));
  align-items: start;
}

.vtm-destination__layout--solo { grid-template-columns: minmax(0, 1fr); }

.vtm-destination__content {
  min-width: 0;
  max-width: 76ch;
  color: #263c33;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.vtm-destination__content > * + * { margin-top: var(--vtm-space-4); }
.vtm-destination__content > :is(h2, h3):not(:first-child) { margin-top: var(--vtm-space-8); }
.vtm-destination__content :is(h2, h3), .vtm-destination__maps h2, .vtm-destination__related > h2 {
  color: var(--vtm-forest);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 760;
  line-height: 1.25;
}

.vtm-destination__content h3 { font-size: 1.2rem; }
.vtm-destination__content a { color: var(--vtm-forest); text-underline-offset: 3px; }
.vtm-destination__content :is(ul, ol) { padding-inline-start: var(--vtm-space-6); }
.vtm-destination__content ul { list-style: disc; }
.vtm-destination__content ol { list-style: decimal; }
.vtm-destination__content li + li { margin-top: var(--vtm-space-2); }
.vtm-destination__content img { max-width: 100%; height: auto; }

.vtm-destination__maps {
  position: sticky;
  top: 126px;
}

.admin-bar .vtm-destination__maps { top: 162px; }
.vtm-destination__maps h2 { font-size: 1.15rem; }
.vtm-destination__maps li + li { margin-top: var(--vtm-space-2); }
.vtm-destination__maps .vtm-button { display: flex; justify-content: space-between; }

.vtm-destination__related { margin-top: var(--vtm-space-16); }
.vtm-destination__related > h2 { margin-bottom: var(--vtm-space-4); }

@media (max-width: 880px) {
  .vtm-destinations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .vtm-destination__layout { grid-template-columns: minmax(0, 1fr); }
  .vtm-destination__maps { position: static; grid-row: 1; }
}

@media (max-width: 560px) {
  .vtm-destinations__grid { grid-template-columns: minmax(0, 1fr); gap: var(--vtm-space-4); }
  .vtm-destinations__filter label { flex-basis: 100%; }
}

.vtm-destination-guide { margin-top: var(--vtm-space-12); }
.vtm-destination-guide > h2 { margin-bottom: var(--vtm-space-4); }
.vtm-destination-guide .vtm-destination-guide__items {
  display: grid;
  gap: var(--vtm-space-3);
  padding: 0;
  list-style: none;
}
.vtm-destination-guide__items > .vtm-destination-guide__item {
  display: grid;
  gap: var(--vtm-space-2);
  justify-items: start;
  margin: 0;
  padding: var(--vtm-space-4);
  border: 1px solid var(--vtm-line);
  border-radius: var(--vtm-dest-radius);
  background: #fff;
}
.vtm-destination-guide__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--vtm-control-radius);
}
.vtm-destination-guide__description p + p { margin-top: var(--vtm-space-2); }
.vtm-destination-guide__notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vtm-space-2) var(--vtm-space-6);
  padding-block: var(--vtm-space-1);
}
.vtm-destination-guide__notes dt { font-size: .8rem; color: var(--vtm-dest-muted); font-weight: 700; }
.vtm-destination-guide__notes dd { font-size: .9rem; }
.vtm-destination-guide__item .vtm-button--primary { color: #fff; }

.vtm-destination__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vtm-space-2);
  margin-top: var(--vtm-space-4);
}

.vtm-destination__actions [hidden] { display: none; }

.vtm-editorial-jumps ul { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 2rem; }
.vtm-editorial-jumps a { display:block; padding:.5rem .9rem; border:1px solid #bdd0c3; border-radius:999px; background:#edf4ee; color:var(--vtm-forest); text-decoration:none; font-weight:650; }
.vtm-editorial-jumps a:hover { background:#dfece2; }
.vtm-editorial-related { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; }
.vtm-editorial-related a { display:grid; gap:.45rem; padding:1rem; height:100%; box-sizing:border-box; border:1px solid #ccdcd0; border-radius:12px; background:#f7faf6; color:var(--vtm-forest); text-decoration:none; }
.vtm-editorial-related a:hover strong { text-decoration:underline; }
.vtm-editorial-related span { line-height:1.55; }
.vtm-destination__wrap :is(section,aside,h2)[id] { scroll-margin-top:7rem; }
.vtm-trip-start { padding:1.15rem 1.4rem; margin:0 0 1.25rem; border:1px solid #cfdfd3; background:#f2f7ef; border-radius:12px; }
.vtm-trip-start h2 { font-size:1.25rem; font-weight:750; margin-bottom:.5rem; }
.vtm-trip-start ol { padding-left:1.35em; list-style:decimal; }
.vtm-trip-start li + li { margin-top:.4rem; }
