/* =========================================================
   vietisrael.com — Ha Giang Loop page styles
   Scoped to .hg-* / #hg-* only, so this file cannot affect any
   other page on the site.
   ========================================================= */

#hg-map{height:460px;width:100%;border-radius:var(--radius);box-shadow:var(--shadow);z-index:1;}
@media(max-width:600px){ #hg-map{height:360px;} }

/* Numbered map pins — centred exactly on each stop's coordinate.
   Replaces the old long permanent text tooltips, which drifted away from
   their own points once several stops sat close together. */
.hg-map-pin{background:none;border:none;}
.hg-map-pin-num{
  display:flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:50%;
  background:var(--green-darker);color:#fff;font-weight:700;font-size:13.5px;
  border:2.5px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35);
  font-family:'Rubik',Arial,sans-serif;cursor:pointer;
}

/* Route legend under the map — where the stop NAMES now live. */
.hg-map-legend{
  list-style:none;margin:18px auto 0;padding:0;max-width:900px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;
}
.hg-legend-item{
  display:flex;align-items:flex-start;gap:10px;background:var(--white);
  border:1px solid var(--border);border-radius:10px;padding:10px 12px;
}
.hg-legend-num{
  flex-shrink:0;width:24px;height:24px;border-radius:50%;background:var(--green-darker);
  color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;
}
.hg-legend-text{display:flex;flex-direction:column;line-height:1.45;}
.hg-legend-text strong{font-size:14.5px;color:var(--ink);}
.hg-legend-note{font-size:12.5px;color:var(--ink-soft);}

/* Inline mid-article CTA, so converting doesn't require scrolling to the
   bottom of a long guide. */
.hg-inline-cta{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  background:var(--green-50);border:1px solid var(--green-200);border-radius:var(--radius);
  padding:18px 22px;margin:26px 0;
}
.hg-inline-cta-text{display:flex;flex-direction:column;flex:1;min-width:220px;}
.hg-inline-cta-text strong{font-size:17px;color:var(--green-darker);margin-bottom:3px;}
.hg-inline-cta-text span{font-size:14px;color:var(--ink-soft);}

/* --- quick vehicle picker (moved up near the top, item 7 fix) --- */
.hg-quick-vehicle-card{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:22px;margin:26px 0;text-align:center;
}
.hg-quick-vehicle-card h2{font-size:20px;margin-bottom:6px;}
.hg-quick-vehicle-card p{color:var(--ink-soft);font-size:14.5px;margin-bottom:16px;}
.hg-quick-vehicle-card .hg-vehicle-options{max-width:640px;margin:0 auto;}
.hg-quick-vehicle-card .hg-vehicle-chip{background:none;font-family:inherit;}

/* --- quick facts strip --- */
.hg-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:26px 0 8px;
}
.hg-fact{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  padding:16px 14px;text-align:center;box-shadow:var(--shadow);
}
.hg-fact .hg-fact-icon{font-size:26px;display:block;margin-bottom:6px;}
.hg-fact .hg-fact-label{display:block;font-size:12.5px;color:var(--ink-soft);margin-bottom:3px;}
.hg-fact .hg-fact-value{display:block;font-weight:700;color:var(--green-darker);font-size:15.5px;}

/* --- day-by-day itinerary --- */
.hg-itinerary{margin:22px 0;padding:0;list-style:none;}
.hg-day{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  padding:18px 20px;margin-bottom:14px;position:relative;
}
.hg-day h3{font-size:18px;margin-bottom:6px;color:var(--green-darker);}
.hg-day .hg-day-badge{
  display:inline-block;background:var(--green-50);color:var(--green-darker);
  font-weight:700;font-size:12.5px;border-radius:999px;padding:4px 12px;margin-bottom:8px;
}
.hg-day p{margin:0;color:var(--ink-soft);font-size:15px;line-height:1.75;}
.hg-day ul{margin:8px 0 0;padding-inline-start:20px;color:var(--ink-soft);font-size:14.5px;}

/* --- image gallery --- */
.hg-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:22px 0;}
.hg-gallery figure{margin:0;}
.hg-gallery img{
  width:100%;height:200px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow);display:block;
}
.hg-gallery figcaption{font-size:12.5px;color:var(--ink-soft);margin-top:6px;text-align:center;}

/* --- vehicle comparison --- */
.hg-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:22px 0;}
.hg-compare-card{
  background:var(--white);border:2px solid var(--border);border-radius:var(--radius);padding:20px;
}
.hg-compare-card h3{font-size:19px;color:var(--green-darker);margin-bottom:4px;}
.hg-compare-card .hg-compare-sub{font-size:13px;color:var(--ink-soft);margin-bottom:12px;}
.hg-compare-card ul{margin:0;padding-inline-start:20px;font-size:14.5px;color:var(--ink-soft);line-height:1.85;}

/* --- lead form --- */
#hg-lead{background:var(--green-50);}
.hg-lead-card{
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:26px;max-width:660px;margin:0 auto;
}
.hg-lead-card h2{font-size:24px;margin-bottom:6px;}
.hg-lead-intro{color:var(--ink-soft);font-size:15px;margin-bottom:20px;}
.hg-field{margin-bottom:16px;}
.hg-field label{display:block;font-weight:700;font-size:14.5px;margin-bottom:6px;color:var(--ink);}
.hg-field .req{color:#b03434;}
.hg-field select,.hg-field input[type="number"],.hg-field textarea{
  width:100%;padding:12px;border-radius:8px;border:1px solid var(--border);
  font-family:inherit;font-size:15px;background:var(--white);color:var(--ink);
}
.hg-vehicle-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
@media(max-width:480px){ .hg-vehicle-options{grid-template-columns:1fr;} }
.hg-vehicle-chip{
  border:2px solid var(--border);border-radius:12px;padding:14px 12px;cursor:pointer;
  text-align:center;position:relative;transition:border-color .15s,background .15s;
}
.hg-vehicle-chip input{position:absolute;opacity:0;pointer-events:none;}
.hg-vehicle-chip .hg-chip-icon{font-size:24px;display:block;margin-bottom:4px;}
.hg-vehicle-chip .hg-chip-title{display:block;font-weight:700;font-size:14.5px;color:var(--ink);}
.hg-vehicle-chip .hg-chip-note{display:block;font-size:12px;color:var(--ink-soft);margin-top:2px;}
.hg-vehicle-chip:hover{border-color:var(--green-pastel);}
.hg-vehicle-chip.selected{border-color:var(--green-dark);background:var(--green-50);}
#hg-form-error{display:none;color:#b03434;font-size:13.5px;margin-bottom:12px;font-weight:600;}
#hg-form-success{
  display:none;margin-top:16px;background:var(--green-50);border-radius:12px;
  padding:16px;text-align:center;color:var(--green-darker);font-weight:600;font-size:14.5px;
}
.hg-lead-fineprint{font-size:12.5px;color:var(--ink-soft);text-align:center;margin-top:14px;}

/* --- callout variants --- */
.hg-warn{
  background:var(--warn-bg);border-inline-start:4px solid var(--warn-border);border-radius:10px;
  padding:16px 18px;margin:20px 0;font-size:14.5px;line-height:1.8;color:var(--warn-text);
}

/* =========================================================
   Mobile spacing pass (max-width:640px)
   ---------------------------------------------------------
   WHY THIS EXISTS: on a phone this page measured ~14,100px of scroll
   (~16.7 screens). The measurement showed the length is NOT one or two
   oversized margins: the 10 section paddings together were only ~860px
   (6%). The real weight is the NUMBER of stacked cards — 5 itinerary
   days, 7 map-legend rows, 3 comparison cards, 10 FAQ rows, the lead
   form and the guide text — each carrying its own padding + heading
   margin. So this block tightens the vertical rhythm of each of them
   rather than shrinking the page's outer frame.

   DELIBERATELY NOT DONE here:
   • no grid restructuring — gallery, map legend and vehicle chips keep
     their existing column counts (measured: forcing 2 columns would save
     only ~110px more, and it changes how the page looks, not its air);
   • no content hidden, reordered or removed — everything stays;
   • no shared chrome touched — the site header/footer and the hero keep
     their global styling, so this page's frame still matches every other
     page on the site;
   • font sizes essentially unchanged: only the bulkiest running text
     (guide paragraphs, itinerary day text, comparison lists) drops by
     HALF A POINT, which is the smallest step that is still legible.

   SCOPING: css/ha-giang.css is linked ONLY by attraction-ha-giang-loop.html,
   and everything below is inside a max-width media query, so desktop
   rendering and every other page on the site are untouched. */
@media(max-width:640px){
  /* --- outer rhythm (global default is 48px, a wide-screen value) --- */
  section{padding:24px 0;}
  .section-head{margin-bottom:10px;}

  /* --- guide text: heading margins were carrying 9×34px + 8×22px --- */
  .article-body p{font-size:15.5px;line-height:1.6;}
  .article-body h2{margin-top:20px;margin-bottom:8px;}
  .article-body h3{margin-top:14px;margin-bottom:5px;}

  /* --- day-by-day itinerary: 5 cards, ~220px of pure padding between them --- */
  .hg-itinerary{margin:14px 0;}
  .hg-day{padding:14px 15px;margin-bottom:10px;}
  .hg-day p{font-size:14.5px;line-height:1.6;}
  .hg-day ul{font-size:14px;line-height:1.6;}

  /* --- vehicle comparison: 3 cards --- */
  .hg-compare{gap:10px;margin:16px 0;}
  .hg-compare-card{padding:14px;}
  .hg-compare-card ul{font-size:14px;line-height:1.6;}

  /* --- gallery, quick-facts strip and map legend --- */
  .hg-gallery{gap:10px;margin:16px 0;}
  .hg-gallery img{height:160px;}
  .hg-facts{gap:10px;}
  .hg-fact{padding:12px 10px;}
  .hg-map-legend{margin-top:12px;gap:8px;}
  .hg-legend-item{padding:8px 10px;}
  #hg-map{height:300px;}

  /* --- CTAs and the lead form --- */
  .hg-quick-vehicle-card{padding:16px;margin:18px 0;}
  .hg-inline-cta{padding:14px 16px;margin:18px 0;}
  .hg-lead-card{padding:18px;}
  .hg-field{margin-bottom:12px;}
  .hg-vehicle-chip{padding:11px 10px;}

  /* --- callout + FAQ accordion --- */
  .hg-warn{padding:13px 15px;margin:16px 0;}
  .faq-item{margin-bottom:6px;}
  .faq-q{padding:13px 14px;}
}
