/*
 * India Bon Voyage - single tour page LAYOUT (templates/single-trip.php).
 * The widgets themselves are unchanged; this arranges them like Viator:
 * title row, photo grid, sticky section tabs, content column + sticky booking column.
 */
.ibv-trip{background:var(--ibv-bg);color:var(--ibv-ink)}
.ibv-wrap{max-width:1240px;margin:0 auto;padding:18px 20px 70px}

/* ---------- top: breadcrumb, title, rating ---------- */
.ibv-crumbs{font-size:13px;color:var(--ibv-muted);margin-bottom:6px}
.ibv-crumbs .elementor-widget{margin:0}
.ibv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.ibv-title{flex:1;min-width:0}
.ibv-title .elementor-widget,.ibv-meta .elementor-widget,.ibv-actions .elementor-widget{margin:0 !important;width:auto;max-width:100%}
.ibv-title h1,.ibv-title .togo-st-heading,.ibv-title [class*="heading"]{font-size:clamp(26px,3.2vw,38px);line-height:1.15;letter-spacing:-.02em;font-weight:800;margin:0}
.ibv-actions{display:flex;gap:10px;flex:none;padding-top:6px}
.ibv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin:8px 0 18px;font-size:14px}

/* ---------- photo grid ---------- */
.ibv-gallery{position:relative;margin-bottom:6px}
.ibv-gallery .elementor-widget{margin:0}
.ibv-gallery .togo-st-gallery{border-radius:var(--ibv-radius);overflow:hidden}
.ibv-gallery .togo-st-gallery img{object-fit:cover;width:100%;height:100%;cursor:pointer;transition:filter .2s}
.ibv-gallery .togo-st-gallery img:hover{filter:brightness(.92)}
.ibv-gallery .togo-st-gallery-show-all{
  position:absolute;right:16px;bottom:16px;background:#fff;color:var(--ibv-ink);border-radius:10px;
  padding:9px 14px;font-weight:700;font-size:14px;box-shadow:var(--ibv-shadow);display:inline-flex;gap:8px;align-items:center
}
.ibv-gallery-alt{display:none}

/* ---------- two columns ---------- */
.ibv-cols{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:36px;margin-top:22px;align-items:start}
.ibv-main{min-width:0}

/* sticky section tabs */
.ibv-tabs{
  position:sticky;top:0;z-index:30;display:flex;gap:26px;overflow-x:auto;white-space:nowrap;
  background:var(--ibv-bg);border-bottom:1px solid var(--ibv-line);margin-bottom:18px;scrollbar-width:none
}
.ibv-tabs::-webkit-scrollbar{display:none}
.ibv-tabs a{padding:14px 0;font-weight:700;font-size:15px;color:var(--ibv-muted);border-bottom:3px solid transparent;text-decoration:none}
.ibv-tabs a:hover,.ibv-tabs a.is-active{color:var(--ibv-ink);border-bottom-color:var(--ibv-brand)}

.ibv-sec{margin-bottom:20px;scroll-margin-top:90px}
.ibv-sec:empty{display:none}
.ibv-sec .elementor-widget{margin:0}
.ibv-sec-availability:empty{display:none}

/* booking column */
.ibv-side{min-width:0}
.ibv-side .elementor-widget{margin-bottom:16px}
@media (min-width:1001px){
  .ibv-side .elementor-widget-togo-st-form-booking{position:sticky;top:84px;z-index:5}
}

/* ---------- related tours ---------- */
.ibv-related{margin-top:44px}
.ibv-related .elementor-widget{margin-bottom:14px}

/* ---------- mobile ---------- */
.ibv-mobile-bar{display:none}
@media (max-width:1000px){
  .ibv-cols{grid-template-columns:minmax(0,1fr);gap:20px}
  .ibv-side .elementor-widget-togo-st-form-booking{position:static}
  .ibv-head{flex-direction:column;gap:6px}
  .ibv-actions{padding-top:0}
  .ibv-mobile-bar{
    display:flex;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:#fff;border-top:1px solid var(--ibv-line);padding:10px 14px;box-shadow:0 -8px 22px rgba(0,0,0,.12)
  }
  .ibv-mobile-bar .elementor-widget-button{flex:1;margin:0}
  .ibv-mobile-bar .elementor-widget-button .elementor-button{width:100%;border-radius:10px;font-weight:800;background:var(--ibv-brand);color:#fff;padding:14px}
  .ibv-mobile-bar .elementor-widget{margin:0}
  .ibv-trip{padding-bottom:76px}
}

/* ---------- photo grid: one large photo on the left spanning two rows + four small ones ---------- */
.ibv-gallery .togo-st-gallery.grid{
  display:grid !important;grid-template-columns:2fr 1fr 1fr;grid-template-rows:212px 212px;gap:8px;height:432px;
  border-radius:var(--ibv-radius);overflow:hidden
}
.ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item{
  width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important;
  overflow:hidden;position:relative;min-height:0
}
.ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item:first-child{grid-column:1 / 2 !important;grid-row:1 / 3 !important}
.ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item:not(:first-child){grid-column:auto !important;grid-row:auto !important}
.ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item:nth-child(n+6){display:none}
.ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (max-width:1000px){
  .ibv-gallery .togo-st-gallery.grid{grid-template-columns:1fr 1fr;grid-template-rows:230px 120px;height:358px}
  .ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item:first-child{grid-column:1 / 3 !important;grid-row:1 / 2 !important}
  .ibv-gallery .togo-st-gallery.grid .togo-st-gallery-item:nth-child(n+4){display:none}
}

/* ---- no sideways page scroll: keep sliders (reviews, related tours) inside their own box ---- */
.ibv-trip{overflow-x:clip;max-width:100vw}
.ibv-side,.ibv-main,.ibv-related,.ibv-sec{min-width:0;max-width:100%}
.ibv-side [class*="trustindex"],.ibv-side .ti-widget,.ibv-side .ti-reviews-container,.ibv-side .ti-reviews-container-wrapper,.ibv-sec .ti-widget,.ibv-sec .ti-reviews-container{max-width:100% !important;overflow:hidden}
.ibv-related .elementor-widget{max-width:100%;overflow:hidden}
.ibv-trip .add-to-cart,.ibv-trip a.togo-button.add-to-cart{display:none !important}

/* ---- sidebar: hide "Got a Question?" and "Why booking with Us?" boxes (kept in the page HTML, just not shown) ---- */
.ibv-side .elementor-element-b61f3fc,.ibv-side .elementor-element-a461c8d,
.ibv-side .elementor-widget-icon-box,.ibv-side .elementor-widget-togo-icon-list,.ibv-side .elementor-element-ea0e51a{display:none !important}

/* sidebar: hide the Tripadvisor "Reviews" box too (kept in the page, not shown) */
.ibv-side .elementor-element-58dde4a,.ibv-side [id^="TA_selfserve"],.ibv-side .TA_selfserveprop{display:none !important}

/* Have booking questions? */
.ibv-help{margin-top:14px;padding:16px 18px;background:#f6f7f9;border:1px solid var(--ibv-line,#e6e8ee);border-radius:14px}
.ibv-help__t{margin:0 0 10px;font-size:15px;font-weight:700;color:#111827}
.ibv-help__row{display:flex;flex-wrap:wrap;gap:8px 20px}
.ibv-help__a{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#111827;text-decoration:underline;text-underline-offset:3px}
.ibv-help__a:hover{color:var(--ibv-brand)}

/* Photo popup */
.ibv-lb{position:fixed;inset:0;z-index:2147483000;background:rgba(10,12,18,.96);display:none;flex-direction:column;color:#fff}
.ibv-lb.is-open{display:flex}
.ibv-lb-lock{overflow:hidden}
.ibv-lb__bar{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;padding:12px 16px;flex:0 0 auto}
.ibv-lb__cnt{font-size:14px;font-weight:600;opacity:.9}
.ibv-lb__close{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.ibv-lb__close:hover{background:rgba(255,255,255,.22)}
.ibv-lb__stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:0 64px}
.ibv-lb__img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;display:block}
.ibv-lb__nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:30px;line-height:1;cursor:pointer;padding:0 0 4px}
.ibv-lb__nav:hover{background:rgba(255,255,255,.26)}
.ibv-lb__prev{left:12px}.ibv-lb__next{right:12px}
.ibv-lb__thumbs{flex:0 0 auto;display:flex;gap:8px;overflow-x:auto;padding:12px 16px 16px;justify-content:center;scrollbar-width:thin}
.ibv-lb__th{flex:0 0 auto;width:72px;height:54px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;opacity:.55;cursor:pointer;background:#222}
.ibv-lb__th img{width:100%;height:100%;object-fit:cover;display:block}
.ibv-lb__th.is-on{opacity:1;border-color:#fff}
@media (max-width:700px){.ibv-lb__stage{padding:0 8px}.ibv-lb__nav{width:36px;height:36px;font-size:24px}.ibv-lb__prev{left:6px}.ibv-lb__next{right:6px}.ibv-lb__th{width:56px;height:42px}.ibv-lb__thumbs{justify-content:flex-start}}

/* Rating + reviews summary */
.ibv-loved{background:#fff;border:1px solid var(--ibv-line,#e6e8ee);border-radius:16px;padding:16px 24px;margin:0 0 18px}
.ibv-loved__sum{display:flex;gap:56px;align-items:flex-start}
.ibv-loved__sum b{display:block;font-size:22px;line-height:1.2;color:#111827}
.ibv-loved__sum span{display:block;font-size:13px;color:#6b7280}
.ibv-stars{display:inline-flex !important;gap:2px;color:#00a680 !important}
@media (max-width:700px){.ibv-loved{padding:14px 16px}.ibv-loved__sum{gap:40px}}
