/*
Theme Name: Vietnam Guide
Description: Child theme for Vietnam Guide – mobile-first travel, expat & retirement site
Template: astra
Version: 1.0.0
*/

/* ── Reset / Base – Mobile First ─────────────────────────────────────── */

:root {
  --vg-red:       #c96a2c;
  --vg-gold:      #e6a817;
  --vg-green:     #1a6b3a;
  --vg-dark:      #1a1a2e;
  --vg-grey:      #f5f5f5;
  --vg-text:      #333;
  --vg-muted:     #666;
  --vg-radius:    8px;
  --vg-shadow:    0 2px 8px rgba(0,0,0,.10);
  --vg-tap-min:   44px;      /* iOS tap target minimum */
}

* { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--vg-text);
}

a { color: var(--vg-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Typography – readable on small screens ──────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--vg-dark);
  margin-top: 1.25em;
  margin-bottom: .5em;
}

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }

p { margin: 0 0 1em; }

/* ── Header ──────────────────────────────────────────────────────────── */

/* Header — white background so the logo sits naturally */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .site-primary-header-wrap,
#masthead .main-header-bar {
  background-color: #fff !important;
  background: #fff !important;
  border-bottom: 1px solid #ebebeb;
}

/* Keep header above all sticky subnavs (which sit at z-index 100–200) */
#masthead {
  position: relative;
  z-index: 9999;
}

/* Logo sizing */
.custom-logo {
  max-height: 52px;
  width: auto;
  max-width: 180px;
}

@media (max-width: 768px) {
  .custom-logo { max-height: 40px; max-width: 140px; }
}

/* Hide site name and tagline — logo replaces them */
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.ast-site-identity .tagline { display: none !important; }

/* Nav links — dark on white, terracotta on hover */
#masthead .main-navigation a,
#masthead .main-header-menu a,
#masthead .main-header-menu .menu-link,
.ast-primary-header-bar .main-navigation a,
.main-header-menu a {
  min-height: var(--vg-tap-min);
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--vg-dark) !important;
  font-size: .9rem;
  font-weight: 600;
}

#masthead .main-header-menu > .menu-item > a:hover,
#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-header-menu > .menu-item.current-menu-item > a,
#masthead .main-header-menu > .menu-item.current-menu-ancestor > a {
  color: var(--vg-red) !important;
}

/* Dropdown sub-menus */
#masthead .main-header-menu .sub-menu,
.main-header-menu .sub-menu {
  background-color: #fff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border-top: 2px solid var(--vg-red);
}

#masthead .main-header-menu .sub-menu a,
#masthead .main-header-menu .sub-menu .menu-link,
.main-header-menu .sub-menu a {
  color: var(--vg-dark) !important;
  font-size: .85rem;
  font-weight: 500;
  min-height: 40px;
  border-bottom: 1px solid #f0f0f0;
}

#masthead .main-header-menu .sub-menu a:hover,
.main-header-menu .sub-menu a:hover {
  color: var(--vg-red) !important;
  background-color: #fdf8f5 !important;
}

/* Mobile menu button — dark icon on white header */
.ast-mobile-header-wrap .ast-button-wrap button,
#astra-mobile-menu-icon,
.ast-mobile-menu-trigger-wrapper .ast-mobile-menu-trigger {
  color: var(--vg-dark) !important;
  min-width: var(--vg-tap-min);
  min-height: var(--vg-tap-min);
}

/* Mobile nav overlay — dark bg with white links */
#masthead .ast-mobile-header-wrap .main-navigation,
.ast-mobile-header-wrap .main-navigation {
  background-color: var(--vg-dark) !important;
}

#masthead .ast-mobile-header-wrap .main-navigation a,
.ast-mobile-header-wrap .main-navigation a {
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 20px;
  min-height: var(--vg-tap-min);
}

/* ── Navigation top bar accent ───────────────────────────────────────── */

.ast-above-header,
.ast-below-header { background: var(--vg-red); }

/* ── Hero / Entry Header ─────────────────────────────────────────────── */

.ast-single-post .entry-header,
.ast-archive-header {
  padding: 24px 16px 16px;
}

/* ── Content area: comfortable on mobile ────────────────────────────── */

.ast-container,
.entry-content,
.site-content .ast-container {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .ast-container,
  .entry-content {
    padding-inline: 24px;
  }
}

/* ── Cards: destination + post listing ──────────────────────────────── */

.vg-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 0;
}

@media (min-width: 600px) {
  .vg-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .vg-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.vg-card {
  border-radius: var(--vg-radius);
  overflow: hidden;
  box-shadow: var(--vg-shadow);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.vg-card:active { transform: scale(.98); }

@media (hover: hover) {
  .vg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
  }
}

.vg-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.vg-card__body { padding: 14px 16px; }
.vg-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--vg-dark); }
.vg-card__meta  { font-size: .8rem; color: var(--vg-muted); }

/* ── Destination At-a-Glance Info Card ───────────────────────────────── */

.vg-dest-info-card {
  background: var(--vg-grey);
  border-left: 4px solid var(--vg-red);
  border-radius: 0 var(--vg-radius) var(--vg-radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.vg-dest-info-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vg-red);
  margin: 0 0 12px;
}

.vg-dest-info-card__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}

.vg-dest-info-card__list dt {
  font-weight: 600;
  font-size: .875rem;
  color: var(--vg-muted);
  white-space: nowrap;
}

.vg-dest-info-card__list dd {
  margin: 0;
  font-size: .875rem;
}

/* ── Post Type Badges ────────────────────────────────────────────────── */

.vg-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.vg-badge--official    { background: var(--vg-red);   color: #fff; }
.vg-badge--contributor { background: var(--vg-green);  color: #fff; }
.vg-badge--nomad       { background: #0077b6;           color: #fff; }
.vg-badge--expat       { background: #6a0dad;           color: #fff; }
.vg-badge--retire      { background: var(--vg-gold);    color: var(--vg-dark); }

/* ── Contributor Byline ──────────────────────────────────────────────── */

.vg-contributor-byline {
  background: var(--vg-grey);
  border-radius: var(--vg-radius);
  padding: 16px;
  margin: 32px 0 24px;
  font-size: .9rem;
}

.vg-contributor-byline__label { color: var(--vg-muted); }

.vg-contributor-byline__name {
  font-weight: 700;
  color: var(--vg-dark);
  text-decoration: none;
}
.vg-contributor-byline__name:hover { text-decoration: underline; }

.vg-contributor-byline__bio {
  color: var(--vg-muted);
  font-size: .85rem;
  margin: 6px 0 4px;
}

.vg-contributor-byline__twitter { font-size: .8rem; color: #1da1f2; }

/* ── Category Colour Strips (hero area) ─────────────────────────────── */

.category-expat-life     .entry-header { border-top: 4px solid #6a0dad; }
.category-digital-nomad  .entry-header { border-top: 4px solid #0077b6; }
.category-retire-vietnam .entry-header { border-top: 4px solid var(--vg-gold); }
.category-travel-tips    .entry-header { border-top: 4px solid var(--vg-green); }

/* ── Buttons – large tap targets ────────────────────────────────────── */

.wp-block-button__link,
.ast-button,
button,
input[type="submit"] {
  min-height: var(--vg-tap-min);
  padding: 10px 22px;
  border-radius: var(--vg-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.wp-block-button__link { background: var(--vg-red); color: #fff; }
.wp-block-button__link:hover { background: #a93226; color: #fff; }

/* ── Mobile nav overlay ──────────────────────────────────────────────── */

.ast-mobile-header-wrap .main-navigation {
  background: var(--vg-dark);
}

.ast-mobile-header-wrap .main-navigation a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: var(--vg-tap-min);
}

/* ── Featured Image – cover on single post ───────────────────────────── */

.ast-featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--vg-dark);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  padding: 24px 16px;
  text-align: center;
}

.site-footer a { color: var(--vg-gold); }

/* ── Destination archive index ───────────────────────────────────────── */

.vg-destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 480px) {
  .vg-destinations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .vg-destinations-grid { grid-template-columns: repeat(3, 1fr); }
}

.vg-dest-tile {
  position: relative;
  border-radius: var(--vg-radius);
  overflow: hidden;
  min-height: 120px;
  background: var(--vg-dark);
  display: flex;
  align-items: flex-end;
}

.vg-dest-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .65;
  transition: opacity .2s;
}
.vg-dest-tile:hover .vg-dest-tile__bg { opacity: .5; }

.vg-dest-tile__name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ── FAQ Landing Page ────────────────────────────────────────────────────── */

/* Let .vg-faq-wrap own its layout; strip Astra container constraints */
.ast-container:has(.vg-faq-wrap),
.site-content:has(.vg-faq-wrap) {
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

.vg-faq-wrap {
  font-size: 1rem;
  width: 100%;
}

/* Hero */
.vg-faq-hero {
  background: var(--vg-dark);
  color: #fff;
  text-align: center;
  padding: 40px 20px 32px;
}

.vg-faq-hero__title {
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 10px;
}

.vg-faq-hero__sub {
  color: rgba(255,255,255,.75);
  font-size: clamp(.9rem, 3vw, 1.05rem);
  max-width: 540px;
  margin: 0 auto;
}

/* Category subnav - horizontal scroll on mobile */
.vg-faq-subnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vg-faq-subnav::-webkit-scrollbar { display: none; }

.vg-faq-subnav__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: max-content;
}

.vg-faq-subnav__item {
  display: block;
  padding: 12px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--vg-text);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

.vg-faq-subnav__item:hover,
.vg-faq-subnav__item.is-active {
  color: var(--cat-color, var(--vg-red));
  border-bottom-color: var(--cat-color, var(--vg-red));
  text-decoration: none;
}

/* Sections wrapper */
.vg-faq-sections {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

@media (min-width: 768px) {
  .vg-faq-sections { padding-inline: 24px; }
}

/* Category accordion */
.vg-cat {
  margin-top: 10px;
  border-radius: var(--vg-radius);
  overflow: hidden;
  box-shadow: var(--vg-shadow);
  scroll-margin-top: 58px;
}

.vg-cat__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  background: var(--cat-color, var(--vg-dark));
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  min-height: 60px;
  transition: filter .15s;
}

.vg-cat__summary::-webkit-details-marker { display: none; }
.vg-cat__summary::marker { display: none; }

.vg-cat__summary:hover { filter: brightness(1.12); }

.vg-cat__label {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.vg-cat__count {
  font-size: .75rem;
  font-weight: 500;
  opacity: .75;
  white-space: nowrap;
}

/* Chevron icon — rotates when open */
.vg-cat__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform .25s ease;
}
.vg-cat__chevron::before,
.vg-cat__chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 9px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .25s ease;
}
.vg-cat__chevron::before { left: 1px;  transform: translateY(-50%) rotate( 45deg); }
.vg-cat__chevron::after  { right: 1px; transform: translateY(-50%) rotate(-45deg); }

.vg-cat[open] .vg-cat__chevron::before { transform: translateY(-50%) rotate(-45deg); }
.vg-cat[open] .vg-cat__chevron::after  { transform: translateY(-50%) rotate( 45deg); }

/* Category body */
.vg-cat__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
  background: #fff;
}

/* No-JS fallback */
.vg-cat[open] > .vg-cat__body:not([style]) {
  max-height: none;
}

.vg-cat__body .vg-acc:last-child {
  border-bottom: none;
}

/* Indent inner accordions */
.vg-cat__body .vg-acc__q { padding-left: 20px; padding-right: 20px; }
.vg-cat__body .vg-acc__a p { padding-left: 20px; padding-right: 20px; }

/* Q&A Accordion */
.vg-acc {
  border-bottom: 1px solid #ebebeb;
}
.vg-acc:first-child {
  border-top: none; /* category card background provides top edge */
}

.vg-acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 16px 4px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--vg-dark);
  user-select: none;
  -webkit-user-select: none;
  min-height: var(--vg-tap-min);
  line-height: 1.4;
}

.vg-acc__q::-webkit-details-marker { display: none; }
.vg-acc__q::marker { display: none; }

/* Plus/minus icon */
.vg-acc__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  position: relative;
  transition: background .15s, transform .25s;
}
.vg-acc__icon::before,
.vg-acc__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--vg-muted);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.vg-acc__icon::before { width: 10px; height: 2px; }
.vg-acc__icon::after  { width: 2px; height: 10px; }

.vg-acc[open] .vg-acc__icon {
  background: var(--vg-red);
}
.vg-acc[open] .vg-acc__icon::before,
.vg-acc[open] .vg-acc__icon::after {
  background: #fff;
}
.vg-acc[open] .vg-acc__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Answer body */
.vg-acc__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.vg-acc[open] > .vg-acc__a:not([style]) {
  max-height: none;
}

.vg-acc__a p {
  padding: 0 4px 18px;
  font-size: .92rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.vg-acc__a strong { color: var(--vg-dark); }
.vg-acc__a em     { font-style: italic; color: var(--vg-muted); font-size: .88rem; }

/* CTA block */
.vg-faq-cta {
  background: var(--vg-dark);
  color: #fff;
  text-align: center;
  padding: 36px 20px;
  margin-top: 16px;
}

.vg-faq-cta p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 20px;
}

.vg-faq-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.vg-faq-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--vg-radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  min-height: var(--vg-tap-min);
  line-height: 1.2;
}

.vg-faq-cta__btn--primary {
  background: var(--vg-red);
  color: #fff;
}
.vg-faq-cta__btn--primary:hover {
  background: #a93226;
  color: #fff;
  text-decoration: none;
}

.vg-faq-cta__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.vg-faq-cta__btn--secondary:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ── FAQ partner / affiliate CTAs ────────────────────────────────────── */

.vg-faq-partners {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #e8e8e8;
}

.vg-faq-partner-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border-radius: var(--vg-radius);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  min-height: var(--vg-tap-min);
  white-space: nowrap;
  transition: opacity .15s;
}
.vg-faq-partner-btn:hover { opacity: .85; text-decoration: none; }

.vg-faq-partner-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.vg-faq-partner-btn--booking {
  background: var(--vg-dark);
  color: #fff;
}

/* ── Destination page — month-by-month guide grid ───────────────────── */

.vg-month-guide {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.vg-month-guide__label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--vg-muted);
  margin: 0 0 .75rem;
}

.vg-month-guide__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vg-month-guide__item {
  display: block;
  padding: .5rem .5rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 500;
  color: var(--vg-muted);
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: var(--vg-radius);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.vg-month-guide__item.is-live {
  color: var(--vg-red);
  background: #fff;
  border-color: var(--vg-red);
  font-weight: 600;
}

.vg-month-guide__item:hover {
  background: var(--vg-red);
  color: #fff;
  border-color: var(--vg-red);
  text-decoration: none;
}

@media (max-width: 680px) {
  .vg-month-guide__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .vg-month-guide__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Destination page — tour partner CTA ────────────────────────────── */

.vg-tour-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f0faf4;
  border: 1px solid #b7e4c7;
  border-radius: var(--vg-radius);
}

.vg-tour-cta__body { flex: 1; }

.vg-tour-cta__heading {
  font-weight: 600;
  font-size: 1rem;
  color: var(--vg-dark);
  margin: 0 0 .3rem;
}

.vg-tour-cta__desc {
  font-size: .88rem;
  color: var(--vg-muted);
  margin: 0;
  line-height: 1.55;
}

.vg-tour-cta__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: .65rem 1.25rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--vg-radius);
  text-decoration: none;
  white-space: nowrap;
}
.vg-tour-cta__btn:hover { opacity: .85; text-decoration: none; color: #fff; }

@media (max-width: 600px) {
  .vg-tour-cta { flex-direction: column; align-items: flex-start; }
  .vg-tour-cta__btn { width: 100%; text-align: center; }
}

/* ── Affiliate disclosure ─────────────────────────────────────────────── */

.vg-faq-disclosure {
  font-size: .75rem;
  color: var(--vg-muted);
  text-align: center;
  padding: .75rem 1.25rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  font-style: italic;
}

/* ── Utility ─────────────────────────────────────────────────────────── */

.vg-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.vg-text-muted  { color: var(--vg-muted); }
.vg-text-center { text-align: center; }

/* ── Tablet / Desktop overrides ─────────────────────────────────────── */

@media (min-width: 768px) {
  :root { --vg-tap-min: 40px; }

  .ast-container {
    max-width: 900px;
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .ast-container { max-width: 1100px; }
}

/* ── Archive/hub full-width container override ───────────────────────── */
/*
 * Astra sets display:flex on .site-content .ast-container at ≥922px,
 * expecting a #primary child with width:100%. Our templates skip #primary,
 * so we reset to block and let the inner wrappers handle their own width.
 */
.ast-container:has(.vg-places-wrap),
.ast-container:has(.vg-interest-page-wrap),
.ast-container:has(.vg-interest-wrap),
.ast-container:has(.vg-archive-wrap),
.ast-container:has(.vg-dest-wrap),
.ast-container:has(.vg-faq-wrap),
.ast-container:has(.vg-og-wrap) {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Wrappers must fill the full container width */
.vg-places-wrap,
.vg-interest-page-wrap,
.vg-archive-wrap,
.vg-dest-wrap,
.vg-faq-wrap,
.vg-og-wrap {
  width: 100%;
  min-width: 0;
}

/* ── Official Guide Photo Banner ─────────────────────────────────────── */

.vg-og-hero {
  position: relative;
  min-height: 460px;
  background: linear-gradient(145deg, #1a0800 0%, #4a2200 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Dark gradient overlay for text legibility over photo */
.vg-og-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.82) 100%
  );
}

.vg-og-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.vg-og-hero__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vg-gold);
  margin: 0 0 .6rem;
}

.vg-og-hero__title {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 .75rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.vg-og-hero__summary {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  max-width: 58ch;
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.vg-og-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.vg-og-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.vg-og-chip__icon { font-style: normal; opacity: .85; }

@media (min-width: 768px) {
  .vg-og-hero        { min-height: 540px; }
  .vg-og-hero__inner { padding: 3.5rem 2rem; }
}

/* Destination-specific gradient fallbacks (shown when no featured image is set) */
.vg-dest-hanoi          .vg-og-hero { background: linear-gradient(145deg, #8B1C1C 0%, #C47820 100%); }
.vg-dest-ha-long        .vg-og-hero,
.vg-dest-ha-long-bay    .vg-og-hero { background: linear-gradient(145deg, #0D2B45 0%, #1A6EA8 100%); }
.vg-dest-ninh-binh      .vg-og-hero { background: linear-gradient(145deg, #183A2F 0%, #4D7C5E 100%); }
.vg-dest-sapa           .vg-og-hero { background: linear-gradient(145deg, #1B3E2E 0%, #567A5A 60%, #8BA888 100%); }
.vg-dest-ha-giang       .vg-og-hero { background: linear-gradient(145deg, #1F3A1A 0%, #4A7A30 100%); }
.vg-dest-hue            .vg-og-hero { background: linear-gradient(145deg, #3D0070 0%, #8B44B8 60%, #B8860B 100%); }
.vg-dest-da-nang        .vg-og-hero { background: linear-gradient(145deg, #0A3252 0%, #1877B5 100%); }
.vg-dest-hoi-an         .vg-og-hero { background: linear-gradient(145deg, #8B3A10 0%, #D4891A 100%); }
.vg-dest-nha-trang      .vg-og-hero { background: linear-gradient(145deg, #005C7A 0%, #3AB5D0 100%); }
.vg-dest-phu-quoc       .vg-og-hero { background: linear-gradient(145deg, #0A4A52 0%, #25A5A0 100%); }
.vg-dest-phong-nha      .vg-og-hero { background: linear-gradient(145deg, #0A2E2E 0%, #146060 100%); }
.vg-dest-mui-ne         .vg-og-hero { background: linear-gradient(145deg, #7A4A10 0%, #C88B20 60%, #D4703A 100%); }
.vg-dest-da-lat         .vg-og-hero { background: linear-gradient(145deg, #1A3D28 0%, #4E8A5A 100%); }
.vg-dest-mekong-delta   .vg-og-hero { background: linear-gradient(145deg, #2E3D10 0%, #7A9A28 60%, #B89A10 100%); }
.vg-dest-ho-chi-minh    .vg-og-hero,
.vg-dest-hcmc           .vg-og-hero { background: linear-gradient(145deg, #7A1A00 0%, #C84A10 100%); }
.vg-dest-quy-nhon       .vg-og-hero { background: linear-gradient(145deg, #0A3060 0%, #1A6AA0 100%); }
.vg-dest-pu-luong       .vg-og-hero { background: linear-gradient(145deg, #1A3020 0%, #456040 100%); }
.vg-dest-con-dao        .vg-og-hero { background: linear-gradient(145deg, #0A2840 0%, #0A5080 100%); }

/* ── Official Guide content column ──────────────────────────────────── */

.vg-og-content {
  padding: 2.5rem 1.25rem;
}

.vg-og-content__inner {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vg-og-content { padding: 3rem 2rem; }
}

/* ── Destination master page hero ────────────────────────────────────── */

.vg-dest-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(145deg, #1a0800 0%, #4a2200 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

/* Dark gradient overlay so text stays legible over any photo */
.vg-dest-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.82) 100%
  );
}

.vg-dest-hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.vg-dest-hero__title {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 900;
  margin: 0 0 .7rem;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.vg-dest-hero__desc {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  margin: 0;
  max-width: 60ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

@media (min-width: 768px) {
  .vg-dest-hero          { min-height: 500px; }
  .vg-dest-hero__content { padding: 3.5rem 2rem; }
}

/* Per-destination gradient fallbacks (shown when no featured image is set) */
.term-hanoi      .vg-dest-hero { background: linear-gradient(145deg, #8B1C1C 0%, #C47820 100%); }
.term-ha-long    .vg-dest-hero { background: linear-gradient(145deg, #0D2B45 0%, #1A6EA8 100%); }
.term-ninh-binh  .vg-dest-hero { background: linear-gradient(145deg, #183A2F 0%, #4D7C5E 100%); }
.term-sapa       .vg-dest-hero { background: linear-gradient(145deg, #1B3E2E 0%, #567A5A 60%, #8BA888 100%); }
.term-ha-giang   .vg-dest-hero { background: linear-gradient(145deg, #1F3A1A 0%, #4A7A30 100%); }
.term-hue        .vg-dest-hero { background: linear-gradient(145deg, #3D0070 0%, #8B44B8 60%, #B8860B 100%); }
.term-da-nang    .vg-dest-hero { background: linear-gradient(145deg, #0A3252 0%, #1877B5 100%); }
.term-hoi-an     .vg-dest-hero { background: linear-gradient(145deg, #8B3A10 0%, #D4891A 100%); }
.term-nha-trang  .vg-dest-hero { background: linear-gradient(145deg, #005C7A 0%, #3AB5D0 100%); }
.term-phu-quoc   .vg-dest-hero { background: linear-gradient(145deg, #0A4A52 0%, #25A5A0 100%); }
.term-phong-nha  .vg-dest-hero { background: linear-gradient(145deg, #0A2E2E 0%, #146060 100%); }
.term-mui-ne     .vg-dest-hero { background: linear-gradient(145deg, #7A4A10 0%, #C88B20 60%, #D4703A 100%); }
.term-da-lat     .vg-dest-hero { background: linear-gradient(145deg, #1A3D28 0%, #4E8A5A 100%); }
.term-mekong-delta .vg-dest-hero { background: linear-gradient(145deg, #2E3D10 0%, #7A9A28 60%, #B89A10 100%); }
.term-quy-nhon   .vg-dest-hero { background: linear-gradient(145deg, #0A3060 0%, #1A6AA0 100%); }
.term-pu-luong   .vg-dest-hero { background: linear-gradient(145deg, #1A3020 0%, #456040 100%); }
.term-con-dao    .vg-dest-hero { background: linear-gradient(145deg, #0A2840 0%, #0A5080 100%); }

/* ── Sticky subnav ───────────────────────────────────────────────────── */

.vg-dest-subnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 2px solid #ebebeb;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vg-dest-subnav::-webkit-scrollbar { display: none; }

.vg-dest-subnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  white-space: nowrap;
  gap: 0;
}

.vg-dest-subnav__link {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--vg-dark);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  min-height: var(--vg-tap-min);
}
.vg-dest-subnav__link:hover,
.vg-dest-subnav__link.is-active {
  color: var(--vg-red);
  border-bottom-color: var(--vg-red);
}

/* ── Section layout ──────────────────────────────────────────────────── */

.vg-dest-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #ebebeb;
}
.vg-dest-section--alt { background: #f8f8f8; }

.vg-dest-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.vg-dest-section__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vg-dark);
  margin: 0 0 .3rem;
  position: relative;
  padding-left: .85rem;
}
.vg-dest-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .1em;
  width: 4px;
  background: var(--vg-red);
  border-radius: 2px;
}

.vg-dest-section__subtitle {
  font-size: .88rem;
  color: var(--vg-muted);
  margin: 0 0 1.25rem;
}

.vg-dest-section__empty {
  font-size: .9rem;
  color: var(--vg-muted);
  font-style: italic;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: var(--vg-radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin: 0;
}
.vg-dest-section--alt .vg-dest-section__empty { background: #f8f8f8; }

.vg-dest-section__blurb {
  margin: 0 0 1.75rem;
  line-height: 1.75;
  color: var(--vg-dark);
}
.vg-dest-section__blurb p { margin: 0 0 1rem; }
.vg-dest-section__blurb p:last-child { margin-bottom: 0; }
.vg-dest-section__blurb strong { font-weight: 600; }

/* ── Interest index inside destination page ──────────────────────────── */

.vg-interest-index--dest {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Desktop tweaks ──────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .vg-dest-subnav__link { padding: .75rem 1.25rem; font-size: .875rem; }
  .vg-dest-section { padding: 3rem 0; }
  .vg-dest-section__title { font-size: 1.6rem; }
}

/* ── Shared hero (places, interest, archive) ─────────────────────────── */

.vg-places-hero,
.vg-archive-hero {
  background: var(--vg-dark);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
}

.vg-places-hero__title,
.vg-archive-hero__title {
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 .75rem;
  line-height: 1.15;
}

.vg-places-hero__intro,
.vg-archive-hero__desc {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 .75rem;
  opacity: .9;
  max-width: 68ch;
}

.vg-places-hero__intro + .vg-places-hero__intro { margin-top: .5rem; }

.vg-archive-hero__breadcrumb {
  font-size: .8rem;
  opacity: .7;
  margin-bottom: .75rem;
}
.vg-archive-hero__breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

/* ── Archive section wrapper ─────────────────────────────────────────── */

.vg-archive-section {
  padding: 2rem 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.vg-archive-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vg-dark);
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--vg-red);
  display: inline-block;
}

/* ── Regions layout (/places/) ───────────────────────────────────────── */

.vg-regions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vg-region {
  border-top: 3px solid var(--region-color, var(--vg-red));
  padding: 1.5rem 1.25rem;
}

.vg-region__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vg-region__hd-text { flex: 1 1 auto; }

.vg-region__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}
.vg-region__title a {
  color: var(--region-color, var(--vg-dark));
  text-decoration: none;
}
.vg-region__title a:hover { text-decoration: underline; }

.vg-region__desc {
  font-size: .9rem;
  color: var(--vg-muted);
  margin: 0;
  line-height: 1.5;
}

.vg-region__cta {
  flex: 0 0 auto;
  background: var(--region-color, var(--vg-red));
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: var(--vg-radius);
  white-space: nowrap;
  min-height: var(--vg-tap-min);
  display: flex;
  align-items: center;
}

.vg-region__destinations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
}

.vg-region__dest-link {
  display: inline-block;
  padding: .35rem .75rem;
  background: #f5f5f5;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--vg-dark);
  text-decoration: none;
  border: 1px solid #e0e0e0;
}
.vg-region__dest-link:hover {
  background: var(--region-color, var(--vg-red));
  color: #fff;
  border-color: transparent;
}
.vg-region__dest-link--empty {
  opacity: .45;
  font-style: italic;
}

/* ── Destination card grid ───────────────────────────────────────────── */

.vg-dest-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.vg-dest-card {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: var(--vg-radius);
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--vg-dark);
  gap: .25rem;
  min-height: var(--vg-tap-min);
}
.vg-dest-card:hover { border-color: var(--vg-red); background: #fff; }

.vg-dest-card__name { font-weight: 700; font-size: .95rem; }
.vg-dest-card__desc { font-size: .8rem; color: var(--vg-muted); }
.vg-dest-card__arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: .85rem;
  color: var(--vg-red);
}

/* ── Post card grid ──────────────────────────────────────────────────── */

.vg-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vg-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--vg-radius);
  overflow: hidden;
}

.vg-post-card__img-wrap { display: block; }
.vg-post-card__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.vg-post-card__body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.vg-post-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.vg-post-card__title a { color: var(--vg-dark); text-decoration: none; }
.vg-post-card__title a:hover { color: var(--vg-red); }

.vg-post-card__excerpt {
  font-size: .85rem;
  color: var(--vg-muted);
  margin: 0;
  line-height: 1.5;
}

.vg-post-card__dest {
  font-size: .75rem;
  font-weight: 600;
  color: var(--vg-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Official guide banner ───────────────────────────────────────────── */

.vg-guide-banner {
  background: linear-gradient(135deg, var(--vg-dark) 0%, #2a2a4a 100%);
  color: #fff;
  border-radius: var(--vg-radius);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.vg-guide-banner__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}
.vg-guide-banner__title a { color: #fff; text-decoration: none; }
.vg-guide-banner__title a:hover { text-decoration: underline; }

.vg-guide-banner__excerpt {
  font-size: .9rem;
  opacity: .85;
  margin: 0;
  line-height: 1.55;
}

.vg-guide-banner__btn {
  align-self: flex-start;
  background: var(--vg-red);
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border-radius: var(--vg-radius);
  min-height: var(--vg-tap-min);
  display: flex;
  align-items: center;
}
.vg-guide-banner__btn:hover { background: #a85a22; color: #fff; text-decoration: none; }

/* ── Interest pills (on city archive pages) ──────────────────────────── */

.vg-interest-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.vg-interest-pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem .9rem;
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--vg-dark);
  text-decoration: none;
  min-height: var(--vg-tap-min);
}
.vg-interest-pill:hover {
  background: var(--vg-red);
  color: #fff;
  border-color: var(--vg-red);
}

/* ── Interest index cards (/interest/) ───────────────────────────────── */

.vg-interest-index {
  max-width: 1100px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

.vg-interest-index__card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 2px solid var(--int-color, var(--vg-red));
  border-radius: var(--vg-radius);
  text-decoration: none;
  color: var(--vg-dark);
}
.vg-interest-index__card:hover {
  background: var(--int-color, var(--vg-red));
  color: #fff;
}
.vg-interest-index__card:hover .vg-interest-index__desc,
.vg-interest-index__card:hover .vg-interest-index__count {
  color: rgba(255,255,255,.8);
}

.vg-interest-index__name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
}
.vg-interest-index__desc {
  font-size: .78rem;
  color: var(--vg-muted);
  line-height: 1.4;
}
.vg-interest-index__count {
  font-size: .75rem;
  color: var(--vg-muted);
  margin-top: auto;
}

/* ── Sub-category card grid (category hubs) ──────────────────────────── */

.vg-subcat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.vg-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding: .9rem 1rem;
  background: #f9f9f9;
  border: 1px solid #e4e4e4;
  border-radius: var(--vg-radius);
  text-decoration: none;
  color: var(--vg-dark);
  min-height: var(--vg-tap-min);
}
.vg-subcat-card:hover { border-color: var(--vg-red); background: #fff; }

.vg-subcat-card__icon { font-size: 1.4rem; line-height: 1; }
.vg-subcat-card__name { font-weight: 700; font-size: .9rem; }
.vg-subcat-card__count { font-size: .75rem; color: var(--vg-muted); }

/* ── Empty state ─────────────────────────────────────────────────────── */

.vg-archive-empty {
  font-size: .95rem;
  color: var(--vg-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* ── Tablets: 2 columns for post grid ───────────────────────────────── */

@media (min-width: 600px) {
  .vg-post-grid { grid-template-columns: repeat(2, 1fr); }
  .vg-dest-card-grid { grid-template-columns: repeat(3, 1fr); }
  .vg-interest-index { grid-template-columns: repeat(3, 1fr); }
  .vg-subcat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .vg-post-grid { grid-template-columns: repeat(3, 1fr); }
  .vg-interest-index { grid-template-columns: repeat(4, 1fr); }
  .vg-regions { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .vg-region { flex: 1 1 30%; min-width: 260px; }
  .vg-guide-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .vg-guide-banner__text { flex: 1 1 auto; }
  .vg-guide-banner__btn { flex: 0 0 auto; align-self: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTEREST TAXONOMY PAGE  (.vg-interest-wrap)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vg-interest-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.vg-interest-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%);
}

.vg-interest-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.vg-interest-hero__icon {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .75rem;
}

.vg-interest-hero__title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 .6rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.vg-interest-hero__sub {
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  color: rgba(255,255,255,.85);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ── About ────────────────────────────────────────────────────────────────── */
.vg-interest-about {
  background: #fff;
  border-bottom: 1px solid #ede9e2;
}

.vg-interest-about__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.vg-interest-about__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.vg-interest-about__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* ── Posts ────────────────────────────────────────────────────────────────── */
.vg-interest-posts {
  background: #f8f6f2;
  padding: 3rem 0;
}

.vg-interest-posts__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.vg-interest-posts__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
}

.vg-interest-empty {
  color: #666;
  font-size: 1rem;
  padding: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE  (.vg-hp)
   ═══════════════════════════════════════════════════════════════════════════ */

.ast-container:has(.vg-hp) {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.vg-hp {
  --hp-max: 1060px;
  --hp-pad: 1.25rem;
  --hp-bg: #f5f4f0;
  background: var(--hp-bg);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vg-hp-hero {
  position: relative;
  background: var(--hp-bg) url('/wp-content/themes/vietnam-guide-child/images/hoi-an-hero.jpg') center/cover no-repeat;
  padding: 4rem var(--hp-pad) 3rem;
  text-align: center;
}

/* Dark gradient overlay so white text stays readable */
.vg-hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.vg-hp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hp-max);
  margin: 0 auto;
}

.vg-hp-hero__title {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .6rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.vg-hp-hero__sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.88);
  margin: 0 0 1.8rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.vg-hp-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 0 1.1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vg-hp-search:focus-within {
  border-color: #aaa;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

.vg-hp-search__icon {
  color: #999;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.vg-hp-search__input {
  flex: 1;
  padding: .85rem .6rem;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
}
.vg-hp-search__input::placeholder { color: #999; }

/* ── Ad slots ─────────────────────────────────────────────────────────────── */
.vg-ad-slot {
  background: #f0ede8;
  border-top: 1px solid #e5e1db;
  border-bottom: 1px solid #e5e1db;
  text-align: center;
  padding: .5rem var(--hp-pad);
}

.vg-ad-slot__label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: .35rem;
}

.vg-ad-slot--leaderboard .vg-ad-slot__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  border: 1.5px dashed #ccc;
  border-radius: 4px;
  background: #fff;
  color: #bbb;
  font-size: .8rem;
}

.vg-ad-slot--leaderboard .vg-ad-slot__placeholder::after {
  content: '728 × 90';
  font-size: .75rem;
  color: #ccc;
  letter-spacing: .05em;
}

@media (max-width: 728px) {
  .vg-ad-slot--leaderboard .vg-ad-slot__placeholder {
    max-width: 100%;
    height: 60px;
  }
  .vg-ad-slot--leaderboard .vg-ad-slot__placeholder::after {
    content: '320 × 60';
  }
}

/* ── Shared section shell ────────────────────────────────────────────────── */
.vg-hp-section {
  padding: 2.5rem 0;
  background: #fff;
}

.vg-hp-section + .vg-hp-section {
  border-top: 1px solid #ede9e2;
}

.vg-hp-section__inner {
  max-width: var(--hp-max);
  margin: 0 auto;
  padding: 0 var(--hp-pad);
}

.vg-hp-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #888;
  margin: 0 0 1rem;
}

.vg-hp-section__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1.25rem;
}

/* ── Start your trip cards ───────────────────────────────────────────────── */
.vg-hp-start-section {
  background: var(--hp-bg);
  border-top: 1px solid #e8e5df;
}

.vg-hp-start-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.vg-hp-start-card {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.1rem 1.1rem 1.1rem;
  background: #fff;
  border: 1.5px solid #e0ddd7;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vg-hp-start-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  text-decoration: none;
}

.vg-hp-start-card__icon {
  color: #555;
  margin-bottom: .4rem;
  display: flex;
}

.vg-hp-start-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.vg-hp-start-card__sub {
  font-size: .83rem;
  color: #777;
}

/* ── Region cards ────────────────────────────────────────────────────────── */
.vg-hp-regions-section { background: #fff; }

.vg-hp-region-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.vg-hp-region-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: box-shadow .15s ease, transform .15s ease;
}
.vg-hp-region-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.vg-hp-region-card__top {
  background: var(--rc, #ccc);
  padding: 1.5rem 1.1rem 2rem;
}

.vg-hp-region-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.vg-hp-region-card__cities {
  background: #fff;
  border: 1.5px solid #e0ddd7;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin: 0;
  padding: .85rem 1.1rem;
  font-size: .83rem;
  color: #555;
}

/* ── Interest pills ──────────────────────────────────────────────────────── */
.vg-hp-interests-section { background: #fff; }

.vg-hp-interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.vg-hp-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1.5px solid #d5d0c8;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: #fff;
  transition: border-color .14s ease, background .14s ease;
}
.vg-hp-pill:hover {
  border-color: #888;
  background: #faf9f6;
  text-decoration: none;
  color: #1a1a1a;
}

.vg-hp-pill__icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Month callout ───────────────────────────────────────────────────────── */
.vg-hp-month-callout {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: #eaf1fd;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: background .14s ease;
}
.vg-hp-month-callout:hover {
  background: #dce8fc;
  text-decoration: none;
}

.vg-hp-month-callout__sun {
  color: #3a6fd8;
  flex-shrink: 0;
  margin-top: .15rem;
  display: flex;
}

.vg-hp-month-callout__title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #2a52a8;
  margin-bottom: .2rem;
}

.vg-hp-month-callout__desc {
  font-size: .85rem;
  color: #4a68aa;
}

/* ── Itinerary cards ─────────────────────────────────────────────────────── */
.vg-hp-itineraries-section { background: #fff; }

.vg-hp-itin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.vg-hp-itin-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem;
  background: #fff;
  border: 1.5px solid #e0ddd7;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vg-hp-itin-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  text-decoration: none;
}

.vg-hp-itin-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.vg-hp-itin-card__sub {
  font-size: .83rem;
  color: #777;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* "By time" becomes the large top card; destination + interest sit below */
  .vg-hp-start-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .vg-hp-start-card:nth-child(3) {
    order: -1;
    grid-column: 1 / -1;
  }

  .vg-hp-region-cards {
    grid-template-columns: 1fr;
  }
  .vg-hp-itin-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .vg-hp-itin-card__title {
    font-size: .88rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER  (.vg-footer)
   ═══════════════════════════════════════════════════════════════════════════ */

.vg-footer {
  background: #1c1c1c;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

/* shared inner max-width */
.vg-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Main grid ────────────────────────────────────────────────────────────── */
.vg-footer__main {
  padding: 3.5rem 0 2.5rem;
}

.vg-footer__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

/* Bottom bar overrides the grid to flex */
.vg-footer__bottom .vg-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.vg-footer__col {
  /* column in the 5-col grid */
}

/* ── Headings ─────────────────────────────────────────────────────────────── */
.vg-footer__heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .85rem;
}
.vg-footer__heading a {
  color: #fff;
  text-decoration: none;
}
.vg-footer__heading a:hover {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.vg-footer__heading--spaced {
  margin-top: 1.75rem;
}

/* ── Link lists ───────────────────────────────────────────────────────────── */
.vg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.vg-footer__links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .14s ease;
  line-height: 1.4;
}
.vg-footer__links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Bottom bar ───────────────────────────────────────────────────────────── */
.vg-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
}

.vg-footer__copy {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.vg-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vg-footer__bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .14s ease;
}
.vg-footer__bottom-links a:hover {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.vg-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Social icons ─────────────────────────────────────────────────────────── */
.vg-footer__social {
  display: flex;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vg-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.vg-footer__social a:hover {
  background: #1877f2;
  color: #fff;
  text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vg-footer__main .vg-footer__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .vg-footer__main .vg-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .vg-footer__bottom .vg-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Single post — 7:3 two-column layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override Astra container so we can use our own full-width wrapper */
.ast-container:has(.vg-single-wrap) {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.vg-single-wrap {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  align-items: start;
}

/* ── Main content column ─────────────────────────────────────────────────── */
.vg-single-main {
  min-width: 0; /* prevent grid blowout */
}

.vg-single-main .entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.vg-single-main .entry-content p { margin-bottom: 1.25em; }
.vg-single-main .entry-content h2 { margin-top: 2em; }
.vg-single-main .entry-content h3 { margin-top: 1.5em; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.vg-single-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
}

.vg-sidebar-block {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--vg-radius);
  overflow: hidden;
}

/* Ad placeholder */
.vg-sidebar-ad__label {
  display: block;
  font-size: .6875rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  padding: .4rem 0 .25rem;
  border-bottom: 1px solid #f0f0f0;
}

.vg-sidebar-ad__placeholder {
  width: 300px;
  height: 250px;
  max-width: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: .8125rem;
}

.vg-sidebar-ad__placeholder::after {
  content: '300 × 250';
}

/* CTA block */
.vg-sidebar-cta {
  padding: 1.25rem;
}

.vg-sidebar-cta__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--vg-dark);
}

.vg-sidebar-cta__body {
  font-size: .875rem;
  color: var(--vg-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.vg-sidebar-cta__btn {
  display: block;
  text-align: center;
  padding: .65rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: .6rem;
  background: #c05a1a;
  color: #fff;
  transition: background .15s;
}

.vg-sidebar-cta__btn:hover { background: #9e4912; text-decoration: none; }

.vg-sidebar-cta__btn--outline {
  background: transparent;
  border: 2px solid #c05a1a;
  color: #c05a1a;
}

.vg-sidebar-cta__btn--outline:hover {
  background: #c05a1a;
  color: #fff;
}

/* Related posts */
.vg-sidebar-related {
  padding: 1.25rem;
}

.vg-sidebar-related__title {
  font-size: .9375rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--vg-dark);
}

.vg-sidebar-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.vg-sidebar-related__list li {
  padding-bottom: .5rem;
  border-bottom: 1px solid #f0f0f0;
}

.vg-sidebar-related__list li:last-child { border-bottom: none; padding-bottom: 0; }

.vg-sidebar-related__list a {
  font-size: .875rem;
  color: var(--vg-text);
  line-height: 1.4;
}

.vg-sidebar-related__list a:hover { color: #c05a1a; text-decoration: none; }

/* ── Single post responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vg-single-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .vg-single-sidebar {
    position: static;
  }
  /* On mobile, show sidebar after content (natural order) */
}

