/* Laguna InTourOnline presentation layer — 2026-10-17.
 * Opt in ONLY the standalone layout with body.lg-ito-standalone.
 * Do not add this class to /frame: the WordPress widget has its own stylesheet.
 * Keep the provider bundles, field validation, visibility and booking rules intact.
 * Scoped specificity intentionally beats the legacy Custom style and the late
 * styles-tour-search-tp.css link. No availability/status colors are remapped.
 */

body.lg-ito-standalone {
  --lg-ito-ink: #302824;
  --lg-ito-muted: #695b55;
  --lg-ito-brand: #b62e25;
  --lg-ito-brand-hover: #92241e;
  --lg-ito-burgundy: #411c21;
  --lg-ito-gold: #d8b170;
  --lg-ito-line: #d9cec6;
  --lg-ito-wash: #f7f4ef;
  --lg-ito-surface: #fff;
  --lg-ito-focus: #8d261f;
  --color-primary: #b62e25;
  --color-on-primary: #fff;
  --color-secondary: #411c21;
  --color-on-secondary: #fff;
  margin: 0;
  background: var(--lg-ito-wash);
  color: var(--lg-ito-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body.lg-ito-standalone :is(.MuiTypography-root, .MuiButton-root,
  .MuiInputBase-root, .MuiListItemText-primary, .MuiInputLabel-root,
  .MuiFormLabel-root, .MuiFormControlLabel-label, .MuiTableCell-root) {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
}

body.lg-ito-standalone :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--lg-ito-focus);
  outline-offset: 3px;
}

body.lg-ito-standalone :is(input, select, textarea) { accent-color: var(--lg-ito-brand); }
body.lg-ito-standalone :is(.header, .footer) :is(a, button):focus-visible {
  outline-color: var(--lg-ito-gold);
}

/* Existing Bootstrap header/offcanvas: do not replace its event handlers. */
body.lg-ito-standalone > .container-full > .header {
  border-top: 4px solid var(--lg-ito-gold);
  background: #fff;
  box-shadow: 0 3px 15px rgb(48 40 36 / 5%);
}
body.lg-ito-standalone .header .navbar-default,
body.lg-ito-standalone .header .navbar-header {
  background: #fff;
  border: 0;
  border-radius: 0;
}
body.lg-ito-standalone .header .navbar-default { margin-bottom: 0; }
body.lg-ito-standalone .header .navbar-header { padding: 14px 0; }
body.lg-ito-standalone .header .navbar-brand {
  width: auto;
  height: auto;
  padding: 0;
  line-height: 1;
}
body.lg-ito-standalone .header .navbar-brand img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 52px !important;
  object-fit: contain;
}
body.lg-ito-standalone .header .top-menu { margin: 0 0 0 36px; }
body.lg-ito-standalone .header .top-menu > li > a {
  min-height: 44px;
  padding: 24px 14px;
  color: var(--lg-ito-ink);
  font-size: 14px;
  font-weight: 600;
}
body.lg-ito-standalone .header .top-menu > li > a:hover {
  color: var(--lg-ito-brand);
  background: var(--lg-ito-wash);
}
body.lg-ito-standalone .header #currency-board { color: var(--lg-ito-muted); }
body.lg-ito-standalone .header #currency-board .brand-violet { color: var(--lg-ito-brand); }
body.lg-ito-standalone .header .main-menu { background: var(--lg-ito-burgundy); }
body.lg-ito-standalone .header .main-menu > .container > .row > * {
  min-height: 48px;
  height: auto;
}
body.lg-ito-standalone .header .main-menu ul li a {
  min-height: 48px;
  padding: 13px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-transform: none;
}
body.lg-ito-standalone .header .main-menu ul li.active,
body.lg-ito-standalone .header .main-menu ul li:hover,
body.lg-ito-standalone .header .main-menu ul li.open,
body.lg-ito-standalone .header .main-menu ul li.user-link a:hover,
body.lg-ito-standalone .header .main-menu ul li.logout a:hover {
  background: #632a2c;
}
body.lg-ito-standalone .header .main-menu .sub-menu li.active {
  box-shadow: inset 0 -3px 0 var(--lg-ito-gold);
}
body.lg-ito-standalone .header .main-menu .global-controls {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.lg-ito-standalone .header .main-menu .global-controls > *:not(:last-child) {
  border-color: rgb(255 255 255 / 20%);
}
body.lg-ito-standalone .header .main-menu .global-controls ul.dropdown-menu > li {
  height: auto;
}
body.lg-ito-standalone .header .main-menu .global-controls .dropdown-menu a {
  min-height: 44px;
  color: var(--lg-ito-ink);
}
body.lg-ito-standalone .header .navbar-toggle,
body.lg-ito-standalone #offcanvas-menu .js-offcanvas-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--lg-ito-line);
  border-radius: 10px;
  background: #fff;
  color: var(--lg-ito-burgundy);
}
body.lg-ito-standalone .header .navbar-toggle .icon-bar {
  background: var(--lg-ito-burgundy);
}
body.lg-ito-standalone #offcanvas-menu { background: #fff; color: var(--lg-ito-ink); }
body.lg-ito-standalone #offcanvas-menu :is(.sub-menu, .top-menu, .userlogin) a {
  min-height: 44px;
  padding-block: 12px;
  color: var(--lg-ito-burgundy);
  font-weight: 600;
  text-transform: none;
}

/* Progressive-enhancement hooks; content/order are supplied by the companion JS. */
body.lg-ito-standalone .lg-ito-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 20px;
  /* Vendor .container resets horizontal padding with !important. */
  padding-inline: 24px !important;
}
body.lg-ito-standalone .lg-ito-eyebrow {
  margin: 0 0 7px;
  color: var(--lg-ito-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.lg-ito-standalone .lg-ito-intro h1 {
  margin: 0 0 8px;
  color: var(--lg-ito-burgundy);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
body.lg-ito-standalone :is(.lg-ito-help, .lg-ito-filter-summary, .lg-ito-results-hint) {
  margin: 0;
  max-width: 72ch;
  color: var(--lg-ito-muted);
  font-size: 14px;
  line-height: 1.55;
}
body.lg-ito-standalone .lg-ito-filter-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--lg-ito-line);
  border-radius: 10px;
  background: #fff;
  color: var(--lg-ito-burgundy);
  font: 600 14px/1.4 Arial, sans-serif;
  cursor: pointer;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
body.lg-ito-standalone .lg-ito-filter-toggle::after {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
body.lg-ito-standalone .lg-ito-filter-toggle[aria-expanded="true"]::after {
  top: calc(50% - 2px);
  transform: rotate(225deg);
}
body.lg-ito-standalone .lg-ito-filter-toggle .lg-ito-filter-summary {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}
body.lg-ito-standalone .lg-ito-filter-toggle:hover { background: var(--lg-ito-wash); }
body.lg-ito-standalone .lg-ito-filter-toggle[aria-expanded="true"] {
  border-color: var(--lg-ito-brand);
  background: #fcf0ec;
}
body.lg-ito-standalone #tp-filters-main-container .lg-ito-filter-list[hidden] { display: none !important; }
body.lg-ito-standalone .lg-ito-results-hint { margin: 16px 0 10px; }
body.lg-ito-standalone .lg-ito-skip {
  position: absolute;
  z-index: 20000;
  top: 8px;
  left: 12px;
  transform: translateY(-180%);
  padding: 12px 18px;
  border: 2px solid var(--lg-ito-gold);
  border-radius: 8px;
  background: #fff;
  color: var(--lg-ito-burgundy);
  font-weight: 700;
}
body.lg-ito-standalone .lg-ito-skip:focus { transform: translateY(0); }

/* Restore independent, compact surfaces without repainting availability badges. */
body.lg-ito-standalone #new-tour-search { padding: 0 24px 32px; }
body.lg-ito-standalone #tp-filters-main-container {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
}
body.lg-ito-standalone #tp-filters-main-container > .MuiPaper-root {
  border: 1px solid var(--lg-ito-line);
  border-top: 3px solid var(--lg-ito-gold);
  border-radius: 16px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgb(48 40 36 / 5%);
  color: var(--lg-ito-ink);
}
body.lg-ito-standalone #tp-filters-main-container > .MuiPaper-root > .MuiBox-root {
  padding: 24px;
}
body.lg-ito-standalone #tp-filters-main-container .MuiContainer-root header {
  min-height: 0;
  border-radius: 0;
}
body.lg-ito-standalone #tp-filters-main-container .MuiToolbar-dense {
  min-height: 0;
  padding: 0 !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiGrid-container {
  justify-content: flex-start;
}
body.lg-ito-standalone #tp-filters-main-container .MuiGrid-item { min-width: 0; }
body.lg-ito-standalone #tp-filters-main-container .MuiFormControl-root {
  max-width: 100%;
  min-width: 0;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFormLabel-root {
  color: var(--lg-ito-muted);
  font-size: 14px !important;
  line-height: 1.4;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFormLabel-root.Mui-focused {
  color: var(--lg-ito-brand);
}
body.lg-ito-standalone #tp-filters-main-container .MuiInputLabel-filled.MuiInputLabel-shrink {
  margin-top: 0;
  font-size: 14px !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiTypography-body1,
body.lg-ito-standalone #tp-filters-main-container .MuiListItemText-primary {
  font-size: 14px !important;
  line-height: 1.5;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFormControlLabel-root {
  min-height: 44px;
  margin-block: 0;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFormControlLabel-label {
  font-size: 14px;
  line-height: 1.4;
}

/* Neutralise only legacy fake labels, icons and duplicate inner borders.
 * Keep actual MUI labels, validation classes, native attributes and dropdowns.
 */
body.lg-ito-standalone #tp-filters-main-container div#city-from,
body.lg-ito-standalone #tp-filters-main-container div#hotel-or-city-or-tour,
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd {
  padding-top: 0;
}
body.lg-ito-standalone #tp-filters-main-container div#city-from::before,
body.lg-ito-standalone #tp-filters-main-container div#city-from::after,
body.lg-ito-standalone #tp-filters-main-container div#hotel-or-city-or-tour::before,
body.lg-ito-standalone #tp-filters-main-container div#hotel-or-city-or-tour::after,
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd::before,
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd::after {
  content: none;
  background-image: none;
}
body.lg-ito-standalone #tp-filters-main-container div#city-from > div,
body.lg-ito-standalone #tp-filters-main-container div#hotel-or-city-or-tour > div {
  padding: 0 40px 0 10px;
}
body.lg-ito-standalone #tp-filters-main-container :is(.MuiOutlinedInput-root, .MuiFilledInput-root, .tp-input-root) {
  min-height: 48px;
  border-radius: 9px !important;
  background: #fff;
  color: var(--lg-ito-ink);
}
body.lg-ito-standalone #tp-filters-main-container :is(.MuiFilledInput-root, .tp-input-root) {
  border: 1px solid #b9aaa0 !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiOutlinedInput-notchedOutline {
  border-color: #b9aaa0;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFilledInput-root::before,
body.lg-ito-standalone #tp-filters-main-container .MuiFilledInput-root::after {
  border-bottom: 0;
}
body.lg-ito-standalone #tp-filters-main-container :is(.MuiInputBase-input, .MuiNativeSelect-root) {
  min-width: 0;
  color: var(--lg-ito-ink);
  font-size: 16px !important;
  line-height: 1.5;
}
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd > input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 11px 8px !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiFilledInput-root > .MuiInputBase-input {
  padding: 24px 12px 8px !important;
}
body.lg-ito-standalone #tp-filters-main-container :is(.tp-input-root, .MuiFilledInput-root):focus-within {
  border-color: var(--lg-ito-brand) !important;
  box-shadow: 0 0 0 2px rgb(182 46 37 / 13%);
}
body.lg-ito-standalone #tp-filters-main-container .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--lg-ito-brand);
}
/* Preserve errors; brand focus must never suppress provider validation. */
body.lg-ito-standalone #tp-filters-main-container :is(.tp-input-root, .MuiFilledInput-root).Mui-error,
body.lg-ito-standalone #tp-filters-main-container .tp-input-root.tp-input-error {
  border-color: #b42318 !important;
  border-width: 2px !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-root.Mui-disabled {
  background: #eeeae6;
}
body.lg-ito-standalone #tp-filters-main-container input::placeholder {
  color: #75675e;
  opacity: 1;
}
body.lg-ito-standalone #new-tour-search .MuiSvgIcon-root.MuiSvgIcon-fontSizeSmall {
  display: inline-block;
}
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd svg.MuiSvgIcon-colorSecondary {
  display: inline-block !important;
}
body.lg-ito-standalone #tp-filters-main-container .MuiInputBase-adornedStart.MuiInputBase-adornedEnd > svg:last-child {
  position: static;
  flex-shrink: 0;
  right: auto;
}
body.lg-ito-standalone #tp-filters-main-container .tp-dropdown-arrow { color: var(--lg-ito-muted); }

/* Brand actions, not status indicators or destructive buttons. */
body.lg-ito-standalone :is(#new-tour-search, #cart-section, .booking-form, .login-form, .registration-form) .MuiButton-root {
  min-height: 44px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: none;
}
body.lg-ito-standalone :is(#new-tour-search, #cart-section, .booking-form) .MuiButton-containedPrimary,
body.lg-ito-standalone #tp-filters-main-container .tp-filter-search-button,
body.lg-ito-standalone .lg-ito-primary,
body.lg-ito-standalone :is(#cart-section, .booking-form, .login-form, .registration-form) .btn-primary {
  min-height: 46px;
  border-color: var(--lg-ito-brand);
  border-radius: 9px;
  background: var(--lg-ito-brand) !important;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
body.lg-ito-standalone :is(#new-tour-search, #cart-section, .booking-form) .MuiButton-containedPrimary:not(.Mui-disabled):hover,
body.lg-ito-standalone #tp-filters-main-container .tp-filter-search-button:not(.Mui-disabled):hover,
body.lg-ito-standalone .lg-ito-primary:hover,
body.lg-ito-standalone :is(#cart-section, .booking-form, .login-form, .registration-form) .btn-primary:not(:disabled):hover {
  background: var(--lg-ito-brand-hover) !important;
}
body.lg-ito-standalone :is(#new-tour-search, #cart-section, .booking-form) .MuiButton-containedPrimary.Mui-disabled {
  background: #e6dfd9 !important;
  color: #71655e;
}
body.lg-ito-standalone #tp-filters-main-container .tp-filter-reset-button {
  min-height: 44px;
  color: var(--lg-ito-muted);
}
body.lg-ito-standalone :is(#new-tour-search, #cart-section) .fa-plane::before { content: "\f072" !important; }

/* Table remains a real table. controlsType=4 provides its own mobile cards.
 * Never force rows into CSS cards: grouped hotels use rowspan in provider data.
 */
body.lg-ito-standalone #new-tour-search .tp-search-result-container {
  min-width: 0;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-paper {
  max-width: 100%;
  border: 1px solid var(--lg-ito-line);
  border-radius: 14px;
  background: #fff !important;
  color: var(--lg-ito-ink);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #a38a78 #f0e9e3;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-paper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: #f0e9e3;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-paper::-webkit-scrollbar-thumb {
  border: 2px solid #f0e9e3;
  border-radius: 6px;
  background: #a38a78;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-cell {
  padding: 12px 10px;
  border-color: #e8dfd8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  vertical-align: top;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-header-cell {
  background: #f6eee6;
  color: #4b342b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
body.lg-ito-standalone #new-tour-search :is(.tp-search-result-cell-tour, .tp-search-result-cell-hotel) {
  min-width: 160px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: break-word;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-cell-tour-condition {
  max-width: 200px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-cell-price { min-width: 156px; }
body.lg-ito-standalone #new-tour-search .tp-search-result-cell .subtext {
  color: var(--lg-ito-muted);
  font-size: 12px;
  line-height: 1.45;
}
body.lg-ito-standalone #new-tour-search .tp-search-result-cell :is(a.tour-url, .tp-price-main) {
  font-weight: 700;
}
body.lg-ito-standalone #new-tour-search .tp-price-cart-wrap {
  width: 44px;
  height: 44px;
}
body.lg-ito-standalone #new-tour-search .tp-price-with-cart { padding-right: 48px; }
body.lg-ito-standalone #new-tour-search .tp-price-cart-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  fill: var(--lg-ito-brand) !important;
}

/* Provider mobile cards: keep real photos and availability colors intact.
 * The empty min-height box is the observed no-photo placeholder, not an image.
 */
body.lg-ito-standalone #new-tour-search a[href*="/view/"] > .MuiBox-root:empty[style*="min-height"] {
  display: none;
}
body.lg-ito-standalone #new-tour-search h5 a.MuiTypography-colorPrimary,
body.lg-ito-standalone #new-tour-search h4.MuiTypography-colorPrimary {
  color: var(--lg-ito-brand);
  font-weight: 700;
}
body.lg-ito-standalone #new-tour-search a[href*="/view/"] .MuiButton-containedSecondary {
  color: var(--lg-ito-brand);
  background: #fff;
  border: 1px solid var(--lg-ito-brand);
  box-shadow: none;
}

/* Shared forms: do not target error colors, hidden controls, fees or rules. */
body.lg-ito-standalone :is(.booking-form form, .registration-form > div, .login-form, .login-card, .lk-body) {
  border: 1px solid var(--lg-ito-line);
  border-radius: 14px;
  background: #fff !important;
  color: var(--lg-ito-ink);
}
body.lg-ito-standalone :is(#cart-section, .booking-form, .login-form, .registration-form) .form-control {
  min-height: 44px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: none;
}
body.lg-ito-standalone :is(#cart-section, .booking-form, .login-form, .registration-form) .form-control:focus {
  border-color: var(--lg-ito-brand);
  box-shadow: 0 0 0 2px rgb(182 46 37 / 13%);
}
body.lg-ito-standalone :is(#cart-section, .booking-form) :is(label, .label) {
  font-size: 14px;
  line-height: 1.45;
}
body.lg-ito-standalone #cart-section { padding: 24px 0 36px; }
body.lg-ito-standalone #cart-section .hotel-body {
  padding: 24px;
  border: 1px solid var(--lg-ito-line);
  border-radius: 14px;
  background: #fff;
}
body.lg-ito-standalone #cart-section .hotel-body:first-child { padding-top: 24px; }
body.lg-ito-standalone #cart-section .steps { padding-top: 0; text-align: center; }
body.lg-ito-standalone #cart-section .steps ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
}
body.lg-ito-standalone #cart-section .steps ul li {
  width: auto;
  min-width: 0;
  padding: 0;
}
body.lg-ito-standalone #cart-section .steps ul li::after { display: none; }
body.lg-ito-standalone #cart-section .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 7px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
body.lg-ito-standalone #cart-section .step-text {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
body.lg-ito-standalone #cart-section .tourist-form .row > [class*="col-"] > .form-group {
  min-height: 76px;
}
body.lg-ito-standalone #cart-section .tourist-form .error-msg {
  font-size: 12px;
  line-height: 1.4;
}

/* Footer preserves provider copyright and all existing contact destinations. */
body.lg-ito-standalone .footer {
  padding: 28px 0;
  border-top: 3px solid var(--lg-ito-gold);
  background: var(--lg-ito-burgundy);
  color: #fff;
}
body.lg-ito-standalone .footer :is(a, .contact-wrap, .copyright) { color: #fff; }
body.lg-ito-standalone .footer .footer-links { margin-bottom: 10px; }
body.lg-ito-standalone .footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 14px;
}
body.lg-ito-standalone .footer .contact-wrap {
  font-size: 13px;
  line-height: 1.7;
}
body.lg-ito-standalone .footer .contact-wrap :is(.tel, .mail) {
  min-height: 36px;
  padding-block: 6px;
}
body.lg-ito-standalone .footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 6px;
  vertical-align: middle;
}
body.lg-ito-standalone .footer .socials a img {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  object-fit: contain;
}
body.lg-ito-standalone .footer .copyright {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  body.lg-ito-standalone .header .navbar-toggle { display: block; }
  body.lg-ito-standalone .header .navbar-header { width: 100%; float: none; }
  body.lg-ito-standalone .header #main-menu { display: none !important; }
  body.lg-ito-standalone .header .top-menu { margin-left: 12px; }
  body.lg-ito-standalone .header .top-menu > li > a { padding-inline: 9px; }
  body.lg-ito-standalone .header .main-menu ul li a { padding-inline: 10px; }
  body.lg-ito-standalone #new-tour-search { padding-inline: 16px; }
}

@media (max-width: 767px) {
  body.lg-ito-standalone .header .navbar-header { padding: 10px 0; }
  body.lg-ito-standalone .header .navbar-brand img { height: 44px !important; max-width: 160px; }
  body.lg-ito-standalone .header .navbar-toggle { margin: 0 0 0 12px; }
  body.lg-ito-standalone .header .main-menu > .container > .row > * { min-height: 44px; }
  body.lg-ito-standalone .header .main-menu ul li a {
    min-height: 44px;
    padding: 11px 9px;
    font-size: 12px;
  }
  body.lg-ito-standalone .lg-ito-intro {
    padding: 22px 16px 16px;
    padding-inline: 16px !important;
  }
  body.lg-ito-standalone .lg-ito-intro h1 { font-size: 27px; }
  body.lg-ito-standalone .lg-ito-help { font-size: 13px; }
  body.lg-ito-standalone #tp-filters-main-container > .MuiPaper-root { border-radius: 12px; }
  body.lg-ito-standalone #tp-filters-main-container > .MuiPaper-root > .MuiBox-root { padding: 16px; }
  body.lg-ito-standalone #tp-filters-main-container .MuiGrid-root.MuiGrid-item.MuiGrid-grid-xs-12 {
    padding-bottom: 8px !important;
  }
  body.lg-ito-standalone #cart-section { padding: 16px 0 24px; }
  body.lg-ito-standalone #cart-section .hotel-body,
  body.lg-ito-standalone #cart-section .hotel-body:first-child { padding: 16px; }
  body.lg-ito-standalone #cart-section .steps ul { gap: 8px; }
  body.lg-ito-standalone #cart-section .step-text { font-size: 12px; }
  body.lg-ito-standalone .footer { padding: 20px 0; }
  body.lg-ito-standalone .footer > .container > .row > [class*="col-"] { width: 100%; }
  /* Restore only footer navigation/attribution hidden by legacy mobile CSS. */
  body.lg-ito-standalone .footer .bottom-menu { display: block !important; }
  body.lg-ito-standalone .footer .footer-links {
    display: flex !important;
    flex-wrap: wrap;
    column-gap: 18px;
    margin: 0 0 4px;
    padding-top: 0;
  }
  body.lg-ito-standalone .footer .footer-links li { padding: 0; }
  body.lg-ito-standalone .footer .copyright { display: block !important; margin-top: 4px; }
  body.lg-ito-standalone .footer .socials { padding-top: 12px; }
  body.lg-ito-standalone .footer .contact-wrap { padding-top: 8px; }
  body.lg-ito-standalone .footer .contact-wrap :is(.tel, .mail) { min-height: 44px; }
}

@media (max-width: 599px) {
  /* Observed controlsType=4 DOM: the adjacent md-6 groups are the two
   * filter columns; only items 4/5 of the second column are adults/children.
   * The sm-6 guard excludes dates and safely no-ops if the vendor changes it.
   * Do not move nodes or alter the adults/children values and age controls.
   */
  body.lg-ito-standalone #tp-filters-main-container
    .MuiGrid-container.MuiGrid-grid-md-6 + .MuiGrid-container.MuiGrid-grid-md-6
    > .MuiGrid-item.MuiGrid-grid-xs-12.MuiGrid-grid-sm-6:is(:nth-child(4), :nth-child(5)) {
    box-sizing: border-box;
    flex-basis: 50%;
    width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 359px) {
  body.lg-ito-standalone #new-tour-search { padding-inline: 10px; }
  body.lg-ito-standalone #tp-filters-main-container > .MuiPaper-root > .MuiBox-root { padding: 12px; }
  body.lg-ito-standalone .lg-ito-intro { padding-inline: 12px !important; }
  body.lg-ito-standalone .lg-ito-intro h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.lg-ito-standalone :is(.lg-ito-filter-toggle, .lg-ito-primary, .header a,
    #tp-filters-main-container .MuiButton-root, #cart-section .btn) {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.lg-ito-standalone :is(.lg-ito-filter-toggle, .lg-ito-primary, .header a,
    #tp-filters-main-container .MuiButton-root, #cart-section .btn, .tp-dropdown-arrow) {
    transition: none !important;
  }
}
