/* Hà Giang field guide. Palette and header follow the approved homepage. */
.hihi-guide {
  --purple: #8500ff;
  --purple-soft: #7b63f7;
  --lime: #e7f15a;
  --ink: #1d292c;
  --muted: #474e50;
  --paper: #f8f8f8;
  --white: #fff;
  --line: rgba(29, 41, 44, 0.16);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hihi-guide *, .hihi-guide *::before, .hihi-guide *::after { box-sizing: border-box; }
.hihi-guide [hidden] { display: none !important; }
.hihi-guide img { display: block; max-width: 100%; object-fit: cover; }
.hihi-guide a { color: inherit; text-decoration: none; }
.hihi-guide button, .hihi-guide input { color: inherit; font: inherit; }
.hihi-guide button, .hihi-guide summary { cursor: pointer; }
.hihi-guide button, .hihi-guide a { touch-action: manipulation; }
.hihi-guide button { border: 0; }
.hihi-guide h1, .hihi-guide h2, .hihi-guide h3, .hihi-guide p, .hihi-guide figure { margin: 0; }
.hihi-guide h1, .hihi-guide h2, .hihi-guide .brand { font-family: Phudu, sans-serif; }
.hihi-guide h1 { font-size: clamp(52px, 6.3vw, 86px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hihi-guide h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.hihi-guide h3 { font-size: 21px; line-height: 1.35; }
.hihi-guide p + p { margin-top: 10px; }
.hihi-guide :focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.hihi-guide ::selection { background: var(--lime); }
.hihi-guide .shell { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.hihi-guide section, .hihi-guide #itinerary-download { scroll-margin-top: 110px; }
.hihi-guide .skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 12px 20px; background: var(--lime); transform: translateY(-160%); }
.hihi-guide .skip-link:focus { transform: translateY(0); }

/* Same header system as the homepage: logo, section links, EN/VI pill. */
.hihi-guide .guide-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 248, 248, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.hihi-guide .header-inner { min-height: 88px; display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.hihi-guide .brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 48px; font-size: 26px; font-weight: 600; line-height: 1; }
.hihi-guide .brand img { width: 44px; height: 44px; object-fit: contain; }
.hihi-guide .header-inner nav { display: flex; gap: 32px; margin-left: auto; margin-right: 24px; }
.hihi-guide .header-inner nav a { position: relative; min-height: 48px; display: grid; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hihi-guide .header-inner nav a::after { position: absolute; bottom: 6px; left: 0; width: 100%; height: 2px; background: var(--purple); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms; }
.hihi-guide .header-inner nav a:hover::after, .hihi-guide .header-inner nav a[aria-current="location"]::after { transform: scaleX(1); }
.hihi-guide .language-switch { display: flex; flex-shrink: 0; padding: 4px; border: 1px solid var(--line); border-radius: 28px; }
.hihi-guide .language-switch a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; }
.hihi-guide .language-switch a[aria-current="page"] { color: var(--white); background: var(--ink); }

.hihi-guide .breadcrumbs { padding-top: 16px; font-size: 12px; }
.hihi-guide .hero { padding-block: 54px 28px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hihi-guide .eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hihi-guide .guide-descriptor { margin-block: 20px 12px; font-size: 13px; }
.hihi-guide .hero-intro { max-width: 440px; margin-top: 24px; font-size: 18px; line-height: 1.65; }
.hihi-guide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hihi-guide .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 22px; border-radius: 999px; font-weight: 600; transition: transform 180ms, background 180ms, box-shadow 180ms; }
.hihi-guide .button:hover { transform: translateY(-2px); }
.hihi-guide .primary { color: var(--white); background: var(--purple); }
.hihi-guide .primary:hover { box-shadow: 0 8px 24px rgba(133, 0, 255, 0.18); }
.hihi-guide .outline { border: 1px solid var(--ink); background: transparent; }
.hihi-guide .outline:hover { background: var(--lime); }
.hihi-guide .arrow-up-right { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hihi-guide .hero-photo { position: relative; min-height: 440px; align-self: stretch; overflow: hidden; border-radius: 140px 12px 12px 12px; }
.hihi-guide .hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hihi-guide .hero-photo figcaption { position: absolute; top: 24px; right: 20px; max-width: calc(100% - 40px); padding: 10px 16px; color: var(--ink); background: var(--lime); border-radius: 28px; font-size: 12px; font-weight: 600; }
.hihi-guide .trip-fit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.hihi-guide .trip-fit dt { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.hihi-guide .trip-fit dd { margin: 0; font-weight: 600; line-height: 1.45; }

.hihi-guide .section { padding-block: 76px; }
.hihi-guide .section-heading { max-width: 710px; margin-bottom: 30px; }
.hihi-guide .section-heading h2 { margin: 8px 0 16px; }
.hihi-guide .section-heading .button { margin-top: 20px; }
.hihi-guide .story-grid, .hihi-guide .highlight-grid, .hihi-guide .transport-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hihi-guide .story-card, .hihi-guide .highlight-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.hihi-guide .story-card { display: flex; flex-direction: column; }
.hihi-guide .story-card > img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.hihi-guide .card-copy { padding: 24px; }
.hihi-guide .story-card .card-copy { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.hihi-guide .story-card .card-copy h3, .hihi-guide .story-card .card-copy p { margin: 0; }
.hihi-guide .story-card .card-copy h3 span { color: var(--purple); }
.hihi-guide .story-actions { min-height: 48px; display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; }
.hihi-guide .story-actions details { width: 100%; padding: 0; border: 0; }
.hihi-guide .story-actions details summary { padding-block: 8px; }
.hihi-guide .text-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--purple); background: transparent; font-weight: 600; }
.hihi-guide .text-button:hover { text-decoration: underline; }
.hihi-guide .context-link { display: inline-flex; align-items: center; gap: 10px; padding-top: 24px; text-decoration: underline; text-underline-offset: 4px; }
.hihi-guide .wash { background: #f2f2f0; }
.hihi-guide .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hihi-guide .chips button { min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; }
.hihi-guide .chips button:hover { border-color: var(--purple); }
.hihi-guide .chips [aria-pressed="true"], .hihi-guide .chips [aria-selected="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.hihi-guide .photo-button { position: relative; width: 100%; display: block; overflow: hidden; padding: 0; }
.hihi-guide .photo-button img { width: 100%; height: auto; aspect-ratio: 3 / 2; transition: transform 220ms; }
.hihi-guide .photo-button:hover img { transform: scale(1.035); }
.hihi-guide .photo-arrow { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.hihi-guide .show-more { display: flex; margin: 28px auto 0; }

.hihi-guide .planning-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hihi-guide .plan-summary { min-height: 52px; margin-bottom: 24px; }
.hihi-guide .itinerary-view { display: grid; grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.hihi-guide .route-strip, .hihi-guide .budget-card { position: sticky; top: 112px; }
.hihi-guide .route-strip { display: grid; align-self: start; }
.hihi-guide .route-strip button { min-height: 58px; display: flex; gap: 14px; padding: 14px 18px; border-left: 2px solid var(--purple-soft); background: transparent; text-align: left; }
.hihi-guide .route-strip button[aria-current="step"] { background: #f9fbdf; border-color: var(--purple); }
.hihi-guide .route-strip span { color: var(--purple); font-weight: 700; }
.hihi-guide .day-tabs { display: flex; gap: 0; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.hihi-guide .day-tabs button { min-width: max-content; min-height: 48px; padding: 10px 14px; border-bottom: 3px solid transparent; background: transparent; font-size: 13px; font-weight: 600; }
.hihi-guide .day-tabs button:hover { color: var(--purple); }
.hihi-guide .day-tabs button[aria-selected="true"] { color: var(--purple); border-color: var(--purple); }
.hihi-guide .day-panel { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.hihi-guide .day-panel h3 { margin-bottom: 12px; }
.hihi-guide details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hihi-guide summary { min-height: 48px; padding-block: 12px; font-weight: 600; }
.hihi-guide details > div { padding-bottom: 16px; }
.hihi-guide .timeline { margin: 0; padding: 8px 0 0; list-style: none; }
.hihi-guide .timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hihi-guide .timeline time { color: var(--purple); font-weight: 600; }
.hihi-guide .download-card { margin-top: 24px; padding: 28px; border-radius: 12px; background: var(--lime); }
.hihi-guide .download-card p { margin-block: 12px 20px; }
.hihi-guide .budget-card { padding: 28px; border-radius: 12px; background: #f2f2f0; }
.hihi-guide .price { margin-top: 12px; color: var(--purple); font: 600 40px/1.3 Phudu, sans-serif; }
.hihi-guide .pricing-row { display: flex; gap: 12px; padding: 12px 0; cursor: pointer; }
.hihi-guide .pricing-row input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--purple); }
.hihi-guide .pricing-row small { display: block; color: var(--muted); font-size: 12px; }
.hihi-guide .muted { margin-top: 20px; color: var(--muted); font-size: 12px; }

.hihi-guide .weather-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.hihi-guide .weather-card { min-height: 205px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.hihi-guide .weather-current { display: flex; align-items: center; gap: 14px; margin-block: 14px 6px; }
.hihi-guide .weather-icon { width: 56px; height: 56px; object-fit: contain; }
.hihi-guide .temperature { font: 600 42px/1 Phudu, sans-serif; }
.hihi-guide .condition { min-height: 30px; }
.hihi-guide .weather-updated { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.hihi-guide .season-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; overflow: hidden; background: var(--white); border-radius: 12px; }
.hihi-guide .season-panel img { width: 100%; height: 300px; }
.hihi-guide .season-panel > div { padding: 28px; }
.hihi-guide .season-panel h3 { margin-bottom: 16px; }

.hihi-guide .gallery-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.hihi-guide .gallery-tile { position: relative; overflow: hidden; padding: 0; color: var(--white); background: var(--ink); border-radius: 12px; cursor: zoom-in; }
.hihi-guide .gallery-tile:first-child { grid-row: span 2; }
.hihi-guide .gallery-tile img { width: 100%; height: 100%; transition: transform 220ms; }
.hihi-guide .gallery-tile:hover img { transform: scale(1.035); }
.hihi-guide .gallery-tile > span { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 36px 16px 16px; background: linear-gradient(transparent, rgba(29, 41, 44, 0.92)); font-size: 12px; text-align: left; }
.hihi-guide .practical { padding-top: 0; }
.hihi-guide .practical #faqs { margin-top: 28px; }
.hihi-guide .transport-grid { margin-block: 16px; }
.hihi-guide .transport-grid img { width: 100%; height: auto; margin-bottom: 16px; aspect-ratio: 3 / 2; border-radius: 8px; }
.hihi-guide .transport-grid article > div { margin-block: 12px; }
.hihi-guide .guide-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.hihi-guide .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hihi-guide .footer-inner p { max-width: 540px; font-size: 12px; }
.hihi-guide .footer-inner > a { min-height: 48px; display: flex; align-items: center; gap: 10px; }

/* Up/down changes the current place photo. Left/right moves between places. */
.hihi-guide dialog { position: fixed; inset: 0; width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: auto; padding: 0; color: var(--ink); background: var(--paper); border: 0; border-radius: 16px; }
.hihi-guide #photo-dialog[open] { height: min(900px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr) minmax(0, 220px) auto; overflow: hidden; }
.hihi-guide dialog::backdrop { background: rgba(29, 41, 44, 0.8); }
.hihi-guide .dialog-toolbar, .hihi-guide .dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.hihi-guide .dialog-toolbar { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.hihi-guide .dialog-toolbar [data-dialog-close] { margin-left: auto; }
.hihi-guide .round-button { width: 48px; height: 48px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 24px; }
.hihi-guide .round-button:hover { background: var(--lime); }
.hihi-guide .photo-layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 16px; padding: 0 20px; }
.hihi-guide #dialog-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--ink); border-radius: 14px; touch-action: pan-y; }
.hihi-guide .thumbnail-rail { min-height: 0; display: grid; grid-template-rows: 40px minmax(0, 1fr) 40px; gap: 8px; }
.hihi-guide .thumbnail-rail .image-arrow { width: 40px; height: 40px; margin-inline: auto; font-size: 18px; }
.hihi-guide #photo-thumbnails { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; }
.hihi-guide .photo-thumbnail { flex: 0 0 76px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--ink); }
.hihi-guide .photo-thumbnail[aria-current="true"] { border-color: var(--ink); }
.hihi-guide .photo-thumbnail img { width: 100%; height: 76px; }
.hihi-guide .dialog-copy { overflow: auto; padding: 20px; line-height: 1.75; }
.hihi-guide #photo-description:not(:empty) { margin-top: 16px; }
.hihi-guide #photo-title { font-family: Phudu, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.hihi-guide .feedback-next { margin: 0 28px 28px; }
.hihi-guide.guide-modal-open, .hihi-guide.itinerary-feedback-open { overflow: hidden; }
.hihi-guide .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (min-width: 783px) {
  .admin-bar.hihi-guide .guide-header { top: 32px; }
}
@media (max-width: 1080px) {
  .hihi-guide .shell { width: calc(100% - 48px); }
  .hihi-guide .header-inner { gap: 20px; }
  .hihi-guide .header-inner nav { gap: 18px; margin-right: 10px; }
  .hihi-guide .hero { gap: 24px; }
  .hihi-guide .story-grid, .hihi-guide .highlight-grid { gap: 14px; }
  .hihi-guide .card-copy { padding: 18px; }
  .hihi-guide .planning-grid { grid-template-columns: 1fr; gap: 24px; }
  .hihi-guide .gallery-grid { grid-template-rows: 190px 190px; }
}
@media (max-width: 760px) {
  .hihi-guide .shell { width: calc(100% - 32px); }
  .hihi-guide .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .hihi-guide .brand span { display: none; }
  .hihi-guide .header-inner nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .hihi-guide .header-inner nav::-webkit-scrollbar { display: none; }
  .hihi-guide .header-inner nav a { min-height: 44px; }
  .hihi-guide .language-switch a { width: 42px; height: 42px; }
  .hihi-guide .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hihi-guide .hero h1 { max-width: 520px; }
  .hihi-guide .hero-photo { min-height: 300px; }
  .hihi-guide .hero-intro { font-size: 16px; }
  .hihi-guide .trip-fit { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hihi-guide .section { padding-block: 48px; }
  .hihi-guide .story-grid, .hihi-guide .highlight-grid, .hihi-guide .transport-grid, .hihi-guide .planning-grid, .hihi-guide .itinerary-view { grid-template-columns: 1fr; }
  .hihi-guide .route-strip, .hihi-guide .budget-card { position: static; }
  .hihi-guide .story-card > img { aspect-ratio: 3 / 2; }
  .hihi-guide .card-copy { padding: 22px; }
  .hihi-guide .weather-grid { grid-template-columns: 1fr; }
  .hihi-guide .weather-card { min-height: 175px; }
  .hihi-guide .season-panel { grid-template-columns: 1fr; gap: 0; }
  .hihi-guide .season-panel img { height: 230px; }
  .hihi-guide .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 190px 190px; }
  .hihi-guide .gallery-tile:first-child { grid-column: span 2; grid-row: auto; }
  .hihi-guide .footer-inner { align-items: flex-start; flex-direction: column; }
  .hihi-guide .timeline li { grid-template-columns: 54px 1fr; gap: 12px; }
  .hihi-guide .day-panel, .hihi-guide .budget-card, .hihi-guide .download-card { padding: 20px; }
  .hihi-guide .practical { padding-top: 0; }
  .hihi-guide #photo-dialog[open] { grid-template-rows: auto minmax(0, 1fr) minmax(0, 176px) auto; }
  .hihi-guide .photo-layout { grid-template: minmax(0, 1fr) 72px / 1fr; padding-inline: 12px; }
  .hihi-guide #dialog-image { height: 100%; }
  .hihi-guide .thumbnail-rail { grid-template: 72px / 40px minmax(0, 1fr) 40px; align-items: center; }
  .hihi-guide #photo-thumbnails { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .hihi-guide .photo-thumbnail { flex-basis: 64px; }
  .hihi-guide .photo-thumbnail img { height: 64px; }
  .hihi-guide .thumbnail-rail .image-arrow { transform: rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hihi-guide * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
