/* ==========================================================================
   ABC Tour — region pages (/regions/*.php).
   Builds on base.css + components.css; only region-specific layout lives here.
   ========================================================================== */

/* ---------- Hero ---------- */
.region-hero .breadcrumb ol { padding-left: 0; }   /* shared breadcrumb <ol> has no class, so it keeps the UA list indent */
.region-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(20px, 3vw, 36px);
}
.region-hero__copy .page-hero__title { margin-top: 0; }   /* first item in the column — nothing sits above it */
.region-hero__states {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink-2);
}
.region-hero__states .icon { width: 20px; height: 20px; color: var(--accent); }
.region-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.region-hero__facts .tag { padding: 8px 14px; font-size: .74rem; }
.region-hero__facts .tag .icon { width: 16px; height: 16px; }
.region-hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }

.region-hero__media { position: relative; isolation: isolate; }
.region-hero__media::before {           /* soft violet orb behind the frame (reference weather-card circle) */
  content: ""; position: absolute; z-index: -1; top: -34px; right: 6%;
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(142 60 255 / .32), rgb(45 91 255 / .12) 55%, transparent 72%);
}
.region-hero__media .frame { position: relative; }
.region-hero__media .frame > img { aspect-ratio: 480 / 300; }
.region-hero__season {
  position: absolute; left: 30px; bottom: 30px; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: var(--pill); background: rgb(37 42 80 / .92); color: var(--on-panel);
  box-shadow: 0 14px 30px -12px rgb(16 18 50 / .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.region-hero__season-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; box-shadow: 0 0 18px rgb(142 60 255 / .55);
}
.region-hero__season-icon .icon { width: 20px; height: 20px; }
.region-hero__season small {
  display: block; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-panel-2); line-height: 1.3;
}
.region-hero__season strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; line-height: 1.25; }

/* ---------- Grids (destinations + packages) ---------- */
.region-hero { padding-bottom: clamp(20px, 3vw, 36px); }
.region-dests { padding-top: clamp(44px, 5vw, 64px); }
.region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* "… in Northern Peninsular Malaysia" headings balance onto 3 lines at the shared 720px cap — give them room for 2 */
.region-dests .section-head__text, .region-packages .section-head__text { max-width: 880px; }

/* Shared pkg-card has no dark-variant colour for the destination line — scoped fix */
.pkg-card--dark .pkg-card__dest { color: var(--on-panel-2); }
.pkg-card--dark .pkg-card__dest .icon { color: var(--cyan); }
.pkg-card--dark .pkg-card__dest a { color: #fff; }
.pkg-card--dark .pkg-card__dest a:hover { color: var(--cyan); }
/* The shared pkg-card destination line is a flex row, so its gap splits "Langkawi , Kedah" around the comma — let it flow as text */
.region-grid .pkg-card__dest { display: block; }
.region-grid .pkg-card__dest .icon { display: inline-block; margin-right: 6px; vertical-align: -3px; }

/* "Lighter or more lavish?" — Essential / Premium shortcuts */
.region-tiers { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 2.6vw, 32px); }
.region-tiers--wide { margin-top: clamp(28px, 3.5vw, 44px); }
.region-tiers__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.region-tiers__head > div { flex: 1 1 260px; }
.region-tiers__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); color: var(--accent); box-shadow: var(--raise-sm);
}
.region-tiers__icon .icon { width: 24px; height: 24px; }
.region-tiers__title { font-size: 1.2rem; font-weight: 800; }
.region-tiers__text { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }
.region-tiers__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px 26px; }
.region-tiers__item { display: grid; gap: 10px; align-content: start; }
.region-tiers__dest { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.region-tiers__dest .icon { width: 16px; height: 16px; color: var(--accent); }
.region-tiers__link {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 16px;
  border-radius: var(--pill); background: var(--surface); box-shadow: var(--inset-sm);
  font-size: var(--fs-sm); color: var(--ink-2);
  transition: box-shadow .2s var(--ease), color .2s;
}
.region-tiers__link > .icon:first-child { width: 18px; height: 18px; color: var(--accent); }
.region-tiers__link > .icon:last-child { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.region-tiers__tier { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); }
.region-tiers__tier small { margin-left: 4px; font-weight: 600; color: var(--ink-3); }
.region-tiers__link strong { font-family: var(--font-display); font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.region-tiers__link:hover { box-shadow: var(--raise-sm); color: var(--ink); }
.region-tiers__link:hover > .icon:last-child { transform: translateX(2px); color: var(--accent); }

/* ---------- When to go ---------- */
.region-when__grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.region-when__intro { display: grid; gap: 14px; align-content: start; }
.region-when__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.region-when__legend li { display: inline-flex; align-items: center; gap: 10px; }
.region-when__swatch { width: 12px; height: 26px; border-radius: var(--pill); background: var(--panel-3); box-shadow: inset 0 0 0 3px var(--panel); }
.region-when__swatch--best { background: linear-gradient(0deg, #2d5bff, #8e3cff); box-shadow: inset 0 0 0 3px var(--panel), 0 0 10px rgb(91 77 255 / .45); }

.region-when__card { padding: clamp(10px, 2vw, 18px) clamp(20px, 3vw, 36px); }
.region-when__row {
  display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 14px 32px; align-items: center;
  padding-block: clamp(18px, 2.2vw, 24px);
}
.region-when__row + .region-when__row { border-top: 1.5px dashed rgb(var(--shadow-dark)); }
.region-when__name { font-size: 1.15rem; font-weight: 800; }
.region-when__name a:hover { color: var(--accent-text); }
.region-when__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.region-when__meta span { display: inline-flex; align-items: center; gap: 6px; }
.region-when__meta .icon { width: 16px; height: 16px; color: var(--accent); }

/* Mini best-month bars */
.month-bars.month-bars--mini { --bar-h: 64px; gap: clamp(4px, .8vw, 10px); }
.month-bars--mini .month-bars__col { gap: 7px; }
.month-bars--mini .month-bars__track { max-width: 18px; box-shadow: 3px 4px 8px -3px rgb(37 42 80 / .5), -3px -3px 7px rgb(var(--shadow-light)); }
.month-bars--mini .month-bars__fill { left: 3px; right: 3px; bottom: 3px; }
.month-bars--mini .is-best .month-bars__fill { height: calc(88% - 6px); box-shadow: 0 0 8px rgb(91 77 255 / .5); }
.month-bars--mini .month-bars__knob { display: none; }
.month-bars--mini .month-bars__m { font-size: .62rem; letter-spacing: .02em; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-when__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .region-hero__grid { grid-template-columns: 1fr; }
  .region-hero__media { max-width: 640px; }
}
@media (max-width: 660px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-when__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .region-hero__season { left: 22px; bottom: 22px; padding: 8px 14px 8px 8px; gap: 10px; }
  .region-hero__season-icon { width: 34px; height: 34px; }
  .region-hero__season strong { font-size: .95rem; }
  .region-hero__cta .btn { flex: 1 1 auto; }
  .month-bars.month-bars--mini { --bar-h: 56px; gap: 4px; }
  .month-bars--mini .month-bars__m { font-size: .54rem; letter-spacing: 0; }
}
