/* CHG Hostel Accommodation — scoped styles */
.chg-hostel{
 --chg-primary:var(--e-global-color-primary, #071a8c);--chg-body:var(--e-global-color-text, #65749a);--chg-accent:var(--e-global-color-accent, #f5a000);--chg-panel:#f5faff;--chg-card:#fff;--chg-border:#d8eafe;--chg-cta:#eaf7ff;--chg-button:var(--e-global-color-primary, #071a8c);--chg-button-text:#fff;
 width:100%;margin-inline:auto;box-sizing:border-box;color:var(--chg-body);font-family:inherit;line-height:1.5
}
.chg-hostel *{box-sizing:border-box}
.chg-hostel h2{color:var(--chg-primary);font-size:clamp(21px,2vw,30px);line-height:1.2;font-weight:700;margin:0 0 5px}
.chg-hostel p{color:var(--chg-body);font-size:16px;line-height:1.55;margin:0}
.chg-hostel-accent{display:block;width:44px;height:4px;background:var(--chg-accent);margin:0 0 13px}
.chg-hostel-eyebrow,.chg-hostel-gallery-label{font-size:12px;letter-spacing:.11em;font-weight:700;color:var(--chg-body);margin:0 0 4px}
.chg-hostel-overview{display:flex;align-items:center;gap:36px;margin-bottom:var(--chg-gap,18px)}
.chg-hostel-overview-copy{flex:1 1 54%;min-width:0}
.chg-hostel-overview-media{flex:1 1 46%;min-width:0}
.chg-hostel-overview-image{display:block;width:100%;height:230px;object-fit:cover;border-radius:7px}
.chg-hostel-gallery-section{margin-bottom:var(--chg-gap,18px)}
.chg-hostel-gallery-label{margin:0 0 9px}
.chg-hostel-gallery-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,minmax(100px,1fr));gap:10px}
.chg-hostel-gallery-thumb{position:relative;display:block;min-width:0;height:140px;overflow:hidden;border-radius:7px;background:var(--chg-panel);text-decoration:none}
.chg-hostel-gallery-thumb.is-featured{grid-row:span 2;height:100%;min-height:220px}
.chg-hostel-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.chg-hostel-gallery-thumb:hover img{transform:scale(1.035)}
.chg-hostel-gallery-thumb.is-hidden{display:none}
.chg-hostel-gallery-grid.gallery-layout-mixed .chg-hostel-gallery-thumb:not(.is-featured):nth-child(4n){grid-row:span 2;height:100%;min-height:180px}
.chg-hostel-gallery-grid.gallery-layout-mixed .chg-hostel-gallery-thumb:not(.is-featured):nth-child(4n+2){aspect-ratio:4/3}
.chg-hostel-view-more{display:block;margin:12px auto 0}
.chg-hostel-main-cards{display:grid;grid-template-columns:minmax(0,var(--chg-room-col,60%)) minmax(0,1fr);gap:16px;margin-bottom:var(--chg-gap,18px);align-items:stretch}
.chg-hostel-panel{background:var(--chg-panel);border:1px solid var(--chg-border);border-radius:14px;padding:18px;min-width:0}
.chg-hostel-panel>.chg-hostel-accent{margin-bottom:10px}
.chg-hostel-panel h2{font-size:clamp(21px,2vw,28px)}
.chg-hostel-panel>p{margin-bottom:10px}
.chg-hostel-studio-image{display:block;width:100%;height:180px;object-fit:cover;border-radius:7px;margin-top:12px}
.chg-hostel-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px;min-width:0}
.chg-hostel-item{background:var(--chg-card);border:1px solid var(--chg-border);border-radius:9px;padding:14px 10px;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px}
.chg-hostel-icon-wrap{width:64px;height:64px;flex:0 0 auto;border-radius:50%;background:#edf7ff;display:flex;align-items:center;justify-content:center;margin:0 auto 3px;color:var(--chg-primary)}
.chg-hostel-icon{font-size:36px;line-height:1;color:var(--chg-primary)}
.chg-hostel-custom-icon{display:block;width:36px;height:36px;object-fit:contain}
.chg-hostel-item-title{font-size:14px;font-weight:700;line-height:1.3;color:var(--chg-primary);overflow-wrap:anywhere}
.chg-hostel-item-desc{font-size:13px;line-height:1.4;color:var(--chg-body);overflow-wrap:anywhere}
.chg-hostel-amenities.is-scroller{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:5px}
.chg-hostel-amenities.is-scroller .chg-hostel-item{flex:0 0 calc((100% - 36px)/4);scroll-snap-align:start}
.chg-hostel-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--chg-cta);border-radius:9px;padding:18px 24px}
.chg-hostel-cta h2{font-size:clamp(18px,1.8vw,24px);margin:0 0 4px}
.chg-hostel-cta p{font-size:14px}
.chg-hostel-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--chg-button);color:var(--chg-button-text)!important;border:0;border-radius:40px;padding:12px 24px;text-decoration:none!important;font:inherit;font-weight:600;line-height:1.25;cursor:pointer;white-space:nowrap;transition:opacity .2s ease,transform .2s ease}
.chg-hostel-button:hover{opacity:.9;transform:translateY(-1px)}
.chg-hostel-lightbox{display:none!important;position:fixed;z-index:999999;inset:0;background:rgba(4,9,35,.92);align-items:center;justify-content:center;padding:50px 70px}
.chg-hostel-lightbox.is-open{display:flex!important}
.chg-hostel-lightbox img{display:block!important;max-width:min(100%,1200px)!important;max-height:82vh!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:5px!important;flex:0 1 auto!important}
.chg-hostel-lightbox{isolation:isolate}
.chg-hostel-panel-inner{max-width:100%;min-width:0}
.chg-hostel-room-inner,.chg-hostel-studio-inner{box-sizing:border-box}
.chg-hostel-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;width:44px;height:44px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}
.chg-hostel-lightbox-close{top:20px;right:20px}
.chg-hostel-lightbox-prev{left:18px;top:50%;transform:translateY(-50%)}
.chg-hostel-lightbox-next{right:18px;top:50%;transform:translateY(-50%)}
.chg-hostel-lightbox-caption{position:absolute;bottom:18px;left:15px;right:15px;text-align:center;color:#fff;font-size:14px}
@media(max-width:1024px){
 .chg-hostel-overview{gap:22px}
 .chg-hostel-overview-image{height:210px}
 .chg-hostel-main-cards{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 .chg-hostel-items{grid-template-columns:repeat(2,minmax(0,1fr))}
 .chg-hostel-amenities.is-scroller .chg-hostel-item{flex-basis:calc((100% - 24px)/3)}
}
@media(max-width:767px){
 .chg-hostel-overview{flex-direction:column;align-items:stretch;gap:14px}
 .chg-hostel-overview-copy,.chg-hostel-overview-media{flex-basis:auto;width:100%}
 .chg-hostel-overview-image{height:auto;aspect-ratio:16/9}
 .chg-hostel-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:8px}
 .chg-hostel-gallery-thumb,.chg-hostel-gallery-thumb.is-featured{grid-row:auto;height:auto;min-height:0;aspect-ratio:1/1}
 .chg-hostel-gallery-thumb.is-featured{grid-column:span 2;aspect-ratio:16/9}.chg-hostel-gallery-grid.gallery-layout-mixed .chg-hostel-gallery-thumb:not(.is-featured){grid-row:auto;height:auto;min-height:0;aspect-ratio:1/1}
 .chg-hostel-main-cards{grid-template-columns:minmax(0,1fr);gap:14px}
 .chg-hostel-panel{padding:16px}
 .chg-hostel-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .chg-hostel-item{padding:12px 8px}
 .chg-hostel-icon-wrap{width:54px;height:54px}
 .chg-hostel-icon{font-size:30px}
 .chg-hostel-amenities.is-scroller .chg-hostel-item{flex-basis:calc((100% - 8px)/2)}
 .chg-hostel-studio-image{height:auto;aspect-ratio:16/9}
 .chg-hostel-cta{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}
 .chg-hostel-cta .chg-hostel-button{align-self:flex-start}
 .chg-hostel-lightbox{padding:50px 12px}
 .chg-hostel-lightbox-prev{left:6px}
 .chg-hostel-lightbox-next{right:6px}
}
@media(prefers-reduced-motion:reduce){.chg-hostel *{scroll-behavior:auto!important;transition:none!important}}

/* v1.0.5 gallery system */
.chg-hostel-gallery-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}
.chg-hostel-gallery-featured{aspect-ratio:2.1/1;height:auto;min-height:0}
.chg-hostel-gallery-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.chg-hostel-gallery-side-thumb{height:auto;min-height:0;aspect-ratio:2.05/1}
.chg-hostel-gallery-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.chg-hostel-gallery-more-grid[hidden]{display:none!important}
.chg-hostel-gallery-extra{height:auto;aspect-ratio:1/1;min-height:0}
.chg-hostel-view-more{margin:16px auto 0;min-width:150px}
.chg-hostel-room-inner,.chg-hostel-studio-inner{width:100%;margin-inline:auto}
.chg-hostel-room-inner>p,.chg-hostel-studio-inner>p{width:100%}
.chg-hostel-amenities[data-layout="grid"]{display:grid!important;overflow:visible!important}
.chg-hostel-amenities[data-layout="scroller"]{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory}
.chg-hostel-amenities[data-layout="scroller"] .chg-hostel-item{flex:0 0 180px;scroll-snap-align:start}
@media(max-width:1024px){
 .chg-hostel-gallery-hero{gap:8px}
 .chg-hostel-gallery-side{gap:8px}
 .chg-hostel-gallery-more-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
}
@media(max-width:767px){
 .chg-hostel-gallery-hero{grid-template-columns:minmax(0,1fr);gap:8px}
 .chg-hostel-gallery-featured{width:100%;aspect-ratio:16/9;grid-column:auto}
 .chg-hostel-gallery-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
 .chg-hostel-gallery-side-thumb{aspect-ratio:1/1}
 .chg-hostel-gallery-more-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .chg-hostel-gallery-extra{aspect-ratio:1/1}
}

/* Responsive column widths set from Elementor controls */
.chg-hostel-main-cards{grid-template-columns:minmax(0,var(--chg-rooms-col,60%)) minmax(0,var(--chg-studio-col,40%));}
@media(max-width:767px){.chg-hostel-main-cards{grid-template-columns:minmax(0,1fr);}}


/* v1.0.6 — harden gallery sizing against theme/Elementor global styles */
.chg-hostel .chg-hostel-gallery-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
}
.chg-hostel .chg-hostel-gallery-hero > *,
.chg-hostel .chg-hostel-gallery-side,
.chg-hostel .chg-hostel-gallery-more-grid{
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
}
.chg-hostel .chg-hostel-gallery-hero > .chg-hostel-gallery-featured{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  align-self:stretch!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  grid-row:auto!important;
}
.chg-hostel .chg-hostel-gallery-featured img,
.chg-hostel .chg-hostel-gallery-side-thumb img,
.chg-hostel .chg-hostel-gallery-extra img{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  object-fit:cover!important;
}
.chg-hostel .chg-hostel-gallery-side{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-content:stretch!important;
}
.chg-hostel .chg-hostel-gallery-side-thumb{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:auto!important;
}
.chg-hostel .chg-hostel-gallery-more-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
.chg-hostel .chg-hostel-gallery-more-grid[hidden]{display:none!important}
.chg-hostel .chg-hostel-gallery-more-grid > .chg-hostel-gallery-extra{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1/1!important;
  justify-self:stretch!important;
  align-self:stretch!important;
}
.chg-hostel .chg-hostel-view-more{
  display:flex!important;
  width:max-content!important;
  max-width:100%!important;
  justify-content:center!important;
  align-items:center!important;
  margin:16px auto 0!important;
  float:none!important;
}
@media(max-width:1024px){
  .chg-hostel .chg-hostel-gallery-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .chg-hostel .chg-hostel-gallery-side{gap:8px!important}
  .chg-hostel .chg-hostel-gallery-hero{gap:8px!important}
}
@media(max-width:767px){
  .chg-hostel .chg-hostel-gallery-hero{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .chg-hostel .chg-hostel-gallery-hero > .chg-hostel-gallery-featured{
    grid-column:auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
  }
  .chg-hostel .chg-hostel-gallery-side{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:auto!important;
    gap:8px!important;
  }
  .chg-hostel .chg-hostel-gallery-side-thumb{height:auto!important;aspect-ratio:1/1!important}
  .chg-hostel .chg-hostel-gallery-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .chg-hostel .chg-hostel-gallery-more-grid > .chg-hostel-gallery-extra{height:auto!important;aspect-ratio:1/1!important}
}


/* v1.4.3: retain only the full-width Hostel Rooms panel */
.chg-hostel .chg-hostel-main-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.chg-hostel .chg-hostel-room-panel {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.chg-hostel .chg-hostel-room-inner {
  width: 100%;
  max-width: none;
}
