/* G Date Tour 52Hz · Showcase v3.9.0
   Mặc định: bố cục lịch khởi hành gọn, ảnh/slider + lịch riêng từng tour.
   CSS chỉ tác động dưới .g52-showcase / .g52-tour-nav, không ảnh hưởng Flatsome chung. */
.g52-showcase{
  --g52-brand:#0079ae;--g52-ink:#173c52;--g52-surface:#fff;--g52-muted:#74818a;
  --g52-radius:6px;--g52-col:35%;--g52-gap:20px;--g52-tour-gap:12px;
  --g52-padding:10px;--g52-media-ratio:16 / 9;--g52-media-max:100%;--g52-fit:cover;
  --g52-day-height:29px;--g52-cal-offset:38px;--g52-title-size:24px;
  --g52-calendar-font:13px;--g52-weekend:#b62732;--g52-rule:#087db1;--g52-max-width:1320px;
  width:100%;max-width:var(--g52-max-width);margin:0 auto 14px;color:var(--g52-ink);
  font-family:inherit;isolation:isolate;
}
.g52-showcase,.g52-showcase *, .g52-showcase *::before,.g52-showcase *::after,.g52-tour-nav,.g52-tour-nav *{box-sizing:border-box}
.g52-showcase [hidden]{display:none!important}
.g52-showcase button,.g52-tour-nav button{font:inherit;text-transform:none;letter-spacing:normal;box-shadow:none;min-width:0;cursor:pointer}
.g52-showcase button:focus-visible,.g52-showcase select:focus-visible,.g52-showcase a:focus-visible,.g52-tour-nav button:focus-visible{outline:2px solid var(--g52-brand);outline-offset:2px}
.g52-showcase button:disabled{opacity:.34;cursor:default}
.g52-showcase button::after,.g52-tour-nav button::after{display:none}
.g52-showcase__heading{margin:0 0 10px}
.g52-showcase__heading .g52-showcase__eyebrow{font-size:10px;color:var(--g52-muted)}
.g52-showcase__heading h2{font-size:26px;margin:2px 0 0;color:var(--g52-brand)}
/* Top controls are two delicate rows, not a large boxed panel. Page hero stays in UX Builder. */
.g52-showcase__toolbar{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0 0 12px;padding:5px 0 8px;border:0;background:var(--g52-toolbar-bg,transparent);border-radius:0}
.g52-showcase__filters{display:flex;align-items:center;flex-wrap:wrap;gap:var(--g52-tab-gap,7px);min-width:0;padding:0;margin:0;overflow:visible}
.g52-showcase__filters button{
  display:inline-flex;align-items:center;justify-content:center;min-height:var(--g52-tab-height,32px);
  padding:var(--g52-tab-pad-y,5px) var(--g52-tab-pad-x,13px);color:var(--g52-tab-color,var(--g52-brand));
  font-size:var(--g52-tab-font,12px);line-height:1.25;font-weight:var(--g52-tab-weight,700);
  border:var(--g52-tab-border-width,1px) solid var(--g52-tab-border,#bfdce8);
  border-radius:var(--g52-tab-radius,4px);background:var(--g52-tab-bg,rgba(255,255,255,.86));white-space:normal;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.g52-showcase__filters button.is-active,.g52-showcase__filters button:hover{
  background:var(--g52-tab-active-bg,var(--g52-brand));color:var(--g52-tab-active-color,#fff);
  border-color:var(--g52-tab-active-bg,var(--g52-brand));
}
.g52-showcase__month,.g52-showcase__tour-nav-row{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0;min-width:0}
.g52-showcase__month{align-self:flex-start}
.g52-showcase__month button,.g52-showcase__month-select,.g52-showcase__tour-month,.g52-showcase__tour-month-select,.g52-showcase__tour-today{
  height:29px;min-height:29px;line-height:1.2;margin:0;padding:3px 7px;
  color:var(--g52-brand);border:1px solid #c5dde7;border-radius:3px;
  background:#fff;font-size:12px;font-weight:750;box-shadow:none;
}
.g52-showcase__month button,.g52-showcase__tour-month,.g52-showcase__tour-today{min-width:29px;display:grid;place-items:center}
.g52-showcase__month-select,.g52-showcase__tour-month-select{min-width:94px;max-width:115px;flex:0 0 auto;width:auto;padding:3px 21px 3px 8px;text-align:center;cursor:pointer}
.g52-showcase__month button:hover:not(:disabled),.g52-showcase__tour-month:hover:not(:disabled),.g52-showcase__tour-today:hover:not(:disabled){background:var(--g52-brand);color:#fff}
.g52-showcase__feedback{color:#a35f16;font-size:11px;line-height:1.4;margin:0 0 6px}
.g52-showcase__feedback:empty{display:none}
/* Each itinerary is a plain editorial row as in the 52Hz reference. */
.g52-showcase__tours{display:flex;flex-direction:column;gap:var(--g52-tour-gap)}
.g52-showcase__tour{
  display:grid;grid-template-columns:minmax(0,var(--g52-col)) minmax(0,1fr);
  grid-template-areas:'intro schedule' 'media schedule';
  grid-template-rows:auto auto;align-content:start;align-items:start;
  column-gap:var(--g52-gap);row-gap:5px;min-width:0;
  padding:var(--g52-padding);background:var(--g52-surface);border:0;border-radius:0;box-shadow:none;
}
.g52-showcase--has-caption .g52-showcase__tour{grid-template-areas:'intro schedule' 'media schedule' 'caption schedule';grid-template-rows:auto auto auto}
.g52-showcase--editorial .g52-showcase__tour{background:var(--g52-surface,transparent);border:0}
.g52-showcase--editorial .g52-showcase__tour+.g52-showcase__tour{padding-top:var(--g52-tour-gap)}
.g52-showcase--card .g52-showcase__tour{border:1px solid #deecf2;border-radius:var(--g52-radius);box-shadow:0 8px 24px rgba(17,72,93,.07)}
.g52-showcase--lines .g52-showcase__tour{border-bottom:1px solid #e1e9ed}
.g52-showcase--media-right .g52-showcase__tour,.g52-showcase--media-alternate .g52-showcase__tour:nth-child(even){
  grid-template-columns:minmax(0,1fr) minmax(0,var(--g52-col));
  grid-template-areas:'schedule intro' 'schedule media';
}
.g52-showcase--has-caption.g52-showcase--media-right .g52-showcase__tour,.g52-showcase--has-caption.g52-showcase--media-alternate .g52-showcase__tour:nth-child(even){grid-template-areas:'schedule intro' 'schedule media' 'schedule caption'}
.g52-showcase__intro{grid-area:intro;min-width:0;align-self:start;margin:0;padding:0}
.g52-showcase__intro .g52-showcase__eyebrow{display:block;font-size:10px;line-height:1.25;font-weight:500;letter-spacing:.02em;text-transform:none;color:#697c86}
.g52-showcase__intro h3{font-size:var(--g52-title-size);font-weight:750;line-height:1.15;letter-spacing:.01em;color:var(--g52-brand);margin:2px 0 0;overflow-wrap:break-word}
.g52-showcase__tour-link{display:inline-block;color:var(--g52-muted);font-size:11px;text-decoration:underline;text-underline-offset:2px;margin:3px 0 0}
.g52-showcase--editorial .g52-showcase__tour-link{display:none}
.g52-showcase__month-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:30px;margin:6px 0 2px}
.g52-showcase__month-label{margin:0;color:var(--g52-brand);font-weight:750;font-size:17px;line-height:1.2}
/* Media height is governed by 16:9; never inherit 100vh from G Slide / Flatsome. */
.g52-showcase__media{grid-area:media;position:relative;min-width:0;width:100%;max-width:var(--g52-media-max);margin:0;background:#edf4f6;border-radius:var(--g52-radius);overflow:hidden;isolation:isolate}
.g52-showcase--image-ratio .g52-showcase__media{aspect-ratio:var(--g52-media-ratio);height:auto}
.g52-showcase--image-ratio .g52-showcase__ux-block{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.g52-showcase--image-ratio .g52-showcase__ux-block>:first-child{height:100%;min-height:0;max-height:100%}
.g52-showcase--image-ratio .g52-showcase__ux-block .g-slide-shell{
  --g-slide-height:100%!important;--g-slide-height-tablet:100%!important;
  --g-slide-height-mobile:100%!important;--g-slide-min-height:0px!important;
  height:100%!important;min-height:0!important;max-height:100%!important
}
.g52-showcase--image-ratio .g52-showcase__ux-block .g-slide-stage,
.g52-showcase--image-ratio .g52-showcase__ux-block .g-slide-native,
.g52-showcase--image-ratio .g52-showcase__ux-block .slider-wrapper,
.g52-showcase--image-ratio .g52-showcase__ux-block .slider,
.g52-showcase--image-ratio .g52-showcase__ux-block .flickity-viewport,
.g52-showcase--image-ratio .g52-showcase__ux-block .flickity-slider{height:100%!important;min-height:0!important;max-height:100%!important}
.g52-showcase--image-ratio .g52-showcase__ux-block .slider>.img,
.g52-showcase--image-ratio .g52-showcase__ux-block .flickity-slider>.img,
.g52-showcase--image-ratio .g52-showcase__ux-block .flickity-slider>.banner{height:100%!important;min-height:0!important}
.g52-showcase--image-ratio .g52-showcase__ux-block .img-inner{height:100%!important;max-height:100%!important;padding-top:0!important}
.g52-showcase--image-ratio .g52-showcase__ux-block img{width:100%;height:100%;object-fit:var(--g52-fit)}
.g52-showcase--image-auto .g52-showcase__ux-block{width:100%;height:auto}
.g52-showcase__ux-block img{max-width:100%}
.g52-showcase__placeholder{position:absolute;inset:0;min-height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:20px;text-align:center;color:#174b60;background:linear-gradient(135deg,#deeff4,#8cbfcf)}
.g52-showcase__placeholder span{font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.g52-showcase__placeholder strong{font-size:20px}.g52-showcase__placeholder a{font-size:11px;text-decoration:underline;color:inherit}
.g52-showcase__caption{grid-area:caption;margin:0;text-align:center;font-size:10px;font-style:italic;line-height:1.3;color:var(--g52-muted)}
/* Calendar plain cells; colored bars ONLY for published departure dates. */
.g52-showcase__schedule{grid-area:schedule;min-width:0;align-self:start;padding:var(--g52-cal-offset) 0 0}
.g52-showcase__calendar{width:100%;min-width:0;padding:0}
.g52-showcase__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;min-width:0}
.g52-showcase__weekday{display:grid;place-items:center;min-width:0;padding:1px 0 5px;margin:0 1px 2px;border-bottom:2px solid var(--g52-rule);font-size:var(--g52-calendar-font);font-weight:800;line-height:1.2;color:var(--g52-brand)}
.g52-showcase__blank,.g52-showcase__day{display:grid;place-items:center;min-width:0;min-height:var(--g52-day-height);margin:0;padding:2px 0;border:0;border-radius:0;background:transparent;color:#233c4a;font-size:var(--g52-calendar-font);font-weight:450;line-height:1.2;text-align:center}
.g52-showcase__day{position:relative}
.g52-showcase__day.is-weekend{color:var(--g52-weekend)}
.g52-showcase__day.is-today:not(.has-trip)::after{content:'';position:absolute;bottom:1px;width:3px;height:3px;background:currentColor;border-radius:50%}
.g52-showcase__day.has-trip{color:#fff;background:var(--g52-brand);border-radius:1px;font-weight:800}
.g52-showcase__day.has-trip.is-full{color:#79531c;background:#faedca}
.g52-showcase__day.has-trip.is-closed{color:#788c96;background:#eef2f3;text-decoration:line-through}
.g52-showcase__day.has-trip:hover{filter:brightness(.94)}
.g52-showcase__day[aria-expanded=true]{outline:2px solid var(--g52-brand);outline-offset:1px;z-index:1}
.g52-showcase--calendar-boxed .g52-showcase__grid{gap:3px}
.g52-showcase--calendar-boxed .g52-showcase__day:not(.has-trip){background:#f4f8fa;border-radius:3px}
.g52-showcase__summary{margin:5px 0 0;text-align:right;color:var(--g52-muted);font-size:10px}
.g52-showcase__detail{margin-top:9px;padding:12px;border:1px solid #cbdfe9;border-radius:5px;background:#f4f9fc}
.g52-showcase__detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.g52-showcase__detail-head button{border:1px solid #c7deeb;border-radius:4px;background:#fff;padding:5px 10px;font-size:11px}
.g52-showcase__departure{padding:8px 0 0}.g52-showcase__departure+.g52-showcase__departure{border-top:1px solid #d2e5ed}
.g52-showcase__departure p{font-size:12px;margin:0 0 6px}.g52-showcase__availability{font-size:12px;color:var(--g52-brand);display:block;margin:0 0 7px}
.g52-showcase__note{color:var(--g52-muted)}
.g52-showcase__book{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 13px;text-decoration:none!important;border:0;border-radius:4px;background:var(--g52-brand);color:#fff!important;font-size:12px;font-weight:700}
.g52-showcase__updated{font-size:10px;text-align:center;color:var(--g52-muted);margin:10px auto 0}
.g52-showcase__empty{font-size:12px;color:var(--g52-muted);padding:10px 0}
.g52-showcase .gdt52-calendar-booking-inline{margin-top:12px;padding:14px;border:1px solid #d9e7ed;border-radius:6px;background:#f5fafc}
.g52-showcase .gdt52-calendar-booking-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.g52-showcase .gdt52-calendar-booking-head button{border:0;background:#e9f4f9;border-radius:4px;padding:5px 9px}
/* Optional tour selector positioned in a separate Flatsome banner UX Block. */
.g52-tour-nav{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:space-between;gap:9px;width:100%;margin:0 auto;padding:4px 0}
.g52-tour-nav__label{width:100%;color:inherit;font-size:12px;font-weight:700}
.g52-tour-nav button{
  display:inline-flex;align-items:center;justify-content:center;flex:1 1 110px;
  min-height:var(--g52-tab-height,38px);max-width:240px;
  padding:var(--g52-tab-pad-y,6px) var(--g52-tab-pad-x,10px);
  border:var(--g52-tab-border-width,1px) solid var(--g52-tab-border,rgba(255,255,255,.6));
  border-radius:var(--g52-tab-radius,4px);background:var(--g52-tab-bg,rgba(255,255,255,.48));
  color:var(--g52-tab-color,#174157);text-align:center;font-size:var(--g52-tab-font,12px);
  font-weight:var(--g52-tab-weight,700);line-height:1.25;white-space:normal;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.g52-tour-nav button.is-active,.g52-tour-nav button:hover{
  background:var(--g52-tab-active-bg,#0079ae);color:var(--g52-tab-active-color,#fff);
  border-color:var(--g52-tab-active-bg,#0079ae);
}
@media(max-width:849px){
  .g52-showcase{max-width:100%;padding:0 4px}
  .g52-showcase__toolbar{padding:4px 0;margin-bottom:9px;gap:7px}
  .g52-showcase__filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
  .g52-showcase__filters button{flex:0 0 auto;min-height:var(--g52-tab-height,34px);padding:var(--g52-tab-pad-y,6px) var(--g52-tab-pad-x,11px)}
  .g52-showcase__tour,.g52-showcase--media-right .g52-showcase__tour,.g52-showcase--media-alternate .g52-showcase__tour:nth-child(even){
    grid-template-columns:minmax(0,1fr);grid-template-areas:'intro' 'media' 'caption' 'schedule';grid-template-rows:auto;row-gap:9px;padding:8px 4px 12px;
  }
  .g52-showcase__intro h3{font-size:clamp(20px,4.7vw,var(--g52-title-size))}
  .g52-showcase__media{max-width:100%}
  .g52-showcase__schedule{padding:0}
  .g52-showcase__weekday{font-size:12px}
  .g52-showcase__day{font-size:13px;min-height:36px}
  .g52-tour-nav{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;gap:var(--g52-tab-gap,8px)}
  .g52-tour-nav button{flex:0 0 auto;min-width:112px;min-height:var(--g52-tab-height,37px)}
}
@media(max-width:480px){
  .g52-showcase__filters button{font-size:var(--g52-tab-font,11px)}
  .g52-showcase__tour{padding:7px 0 10px}
  .g52-showcase__month-row{gap:5px}
  .g52-showcase__day{min-height:34px;font-size:12px}
  .g52-showcase__weekday{font-size:11px}
  .g52-showcase__month-select,.g52-showcase__tour-month-select{min-width:91px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.g52-showcase *{scroll-behavior:auto!important;transition:none!important}}
@media print{.g52-showcase__toolbar,.g52-showcase__detail,.g52-showcase .gdt52-calendar-booking{display:none!important}.g52-showcase__tour{break-inside:avoid}}


/* v3.11.0: controls must work independently of the selected Showcase visual preset. */
.g52-showcase .g52-showcase__tour,
.g52-showcase.g52-showcase--editorial .g52-showcase__tour,
.g52-showcase.g52-showcase--card .g52-showcase__tour,
.g52-showcase.g52-showcase--lines .g52-showcase__tour{
  border:var(--g52-tour-border-width,0px) solid var(--g52-tour-border-color,#deecf2);
  box-shadow:var(--g52-tour-shadow,none);
}
/* Explicit height wins against Flatsome's generic button normalization. */
.g52-showcase .g52-showcase__filters button,
.g52-tour-nav button{
  box-sizing:border-box;
  height:var(--g52-tab-height,32px);
  min-height:var(--g52-tab-height,32px);
  padding:var(--g52-tab-pad-y,5px) var(--g52-tab-pad-x,13px);
  background-color:var(--g52-tab-bg,rgba(255,255,255,.85));
  border-width:var(--g52-tab-border-width,1px);
  border-style:solid;
  border-color:var(--g52-tab-border,#bfdce8);
}
.g52-showcase .g52-showcase__filters button.is-active,
.g52-tour-nav button.is-active{
  background-color:var(--g52-tab-active-bg,#0079ae);
  border-color:var(--g52-tab-active-bg,#0079ae);
}
/* A selected Tour must not pick up a hover color when the user sets 0% opacity. */
.g52-showcase .g52-showcase__filters button:not(.is-active):hover,
.g52-tour-nav button:not(.is-active):hover{background-color:var(--g52-tab-bg,rgba(255,255,255,.85));color:var(--g52-tab-color,#0079ae);border-color:var(--g52-tab-border,#bfdce8)}
@media(max-width:849px){
  .g52-showcase .g52-showcase__filters button,
  .g52-tour-nav button{height:var(--g52-tab-height,32px);min-height:var(--g52-tab-height,32px)}
}

/* Closed-tour content replaces calendar, UX Block remains untouched. */
.g52-showcase [hidden]{display:none!important}
.g52-showcase__closed{width:100%;padding:clamp(8px,1.2vw,14px) 0 0;color:var(--g52-ink);background:transparent;border-radius:0;line-height:1.6}
.g52-showcase__closed h3{margin:0 0 12px;font-size:clamp(19px,2vw,25px);line-height:1.35;color:var(--g52-ink)}
.g52-showcase__closed p{margin:0 0 10px}.g52-showcase__closed p:last-child{margin-bottom:0}
@media(max-width:549px){.g52-showcase__closed{padding:18px 14px}}

/* v3.16.2: desktop tour headings and iOS frosted glass filters. */
@media (min-width:850px){
  /* Keep tour title/link clean: no white pill, no panel shadow. */
  html body .g52-showcase .g52-showcase__intro h3{
    font-size:28px!important;
    color:var(--g52-brand,#0079ae)!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
    margin:2px 0 0!important;
    text-shadow:0 1px 2px rgba(255,255,255,.65)!important;
  }
  html body .g52-showcase .g52-showcase__tour-link{
    font-size:12px!important;
    font-weight:600!important;
    color:#172c39!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
    margin:4px 0 0!important;
    text-decoration:underline!important;
    text-underline-offset:2px;
    text-shadow:0 1px 2px rgba(255,255,255,.75);
  }
  html body .g52-showcase .g52-showcase__tour-link:hover{
    color:var(--g52-brand,#0079ae)!important;
  }

  /* More specific than existing Flatsome/Customizer 32px button rules. */
  html body .g52-showcase .g52-showcase__toolbar .g52-showcase__filters button,
  html body .g52-tour-nav button{
    height:var(--g52-tab-desktop-height,40px)!important;
    min-height:var(--g52-tab-desktop-height,40px)!important;
    font-size:var(--g52-tab-desktop-font,14px)!important;
    font-weight:700!important;
    line-height:1.25!important;
    padding:6px 14px!important;
    border:1px solid rgba(255,255,255,.54)!important;
    border-radius:6px!important;
    background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(255,255,255,.35))!important;
    color:var(--g52-tab-color,#0079ae)!important;
    -webkit-backdrop-filter:blur(14px) saturate(155%)!important;
    backdrop-filter:blur(14px) saturate(155%)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.73),0 5px 18px rgba(8,42,58,.12)!important;
    text-shadow:0 1px 0 rgba(255,255,255,.3);
    transition:background .16s ease,color .16s ease,box-shadow .16s ease!important;
  }
  /* Hover exactly matches selected state. */
  html body .g52-showcase .g52-showcase__toolbar .g52-showcase__filters button.is-active,
  html body .g52-showcase .g52-showcase__toolbar .g52-showcase__filters button:hover:not(:disabled),
  html body .g52-tour-nav button.is-active,
  html body .g52-tour-nav button:hover:not(:disabled){
    background:var(--g52-tab-active-bg,#0079ae)!important;
    color:var(--g52-tab-active-color,#fff)!important;
    border-color:var(--g52-tab-active-bg,#0079ae)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.23),0 6px 17px rgba(0,57,90,.18)!important;
    text-shadow:none!important;
  }
}
