/*
 * 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}
