/* =========================================================
   Travelia Tours -- theme compatibility layer (1.6.0)
   Replaces the global Bootstrap CSS. Everything here is either
   namespaced (.tt-*) or scoped under .tt-scope, so it can never
   restyle the active theme, and the theme can never break the
   plugin's grid. Low-specificity (:where) resets: plugin classes
   always win, and the theme's own rules for its own markup are
   untouched.
   ========================================================= */

/* ---------- Scoped reset ---------- */
.tt-scope,
.tt-scope *,
.tt-scope *::before,
.tt-scope *::after {
  box-sizing: border-box;
}

:where(.tt-scope) {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

:where(.tt-scope) img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

:where(.tt-scope) h1,
:where(.tt-scope) h2,
:where(.tt-scope) h3,
:where(.tt-scope) h4,
:where(.tt-scope) h5,
:where(.tt-scope) h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  line-height: 1.2;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

:where(.tt-scope) p {
  margin-top: 0;
  margin-bottom: 1rem;
}

:where(.tt-scope) ul,
:where(.tt-scope) ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

:where(.tt-scope) button,
:where(.tt-scope) input,
:where(.tt-scope) select,
:where(.tt-scope) textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}

:where(.tt-scope) label {
  display: inline-block;
}

:where(.tt-scope) table {
  border-collapse: collapse;
}

.tt-scope [hidden] {
  display: none !important;
}

/* ---------- Layout wrapper that sits inside the theme ---------- */
.tt-main {
  display: block;
  width: 100%;
  clear: both;
}

/* ---------- Container ---------- */
.tt-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 576px) {
  .tt-container { max-width: 540px; }
}

@media (min-width: 768px) {
  .tt-container { max-width: 720px; }
}

@media (min-width: 992px) {
  .tt-container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .tt-container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .tt-container { max-width: 1320px; }
}

/* ---------- Row / columns (flex grid, same behaviour as before) ---------- */
.tt-row {
  --tt-gx: 1.5rem;
  --tt-gy: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--tt-gy) * -1);
  margin-right: calc(var(--tt-gx) * -.5);
  margin-left: calc(var(--tt-gx) * -.5);
}

.tt-row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--tt-gy);
  padding-right: calc(var(--tt-gx) * .5);
  padding-left: calc(var(--tt-gx) * .5);
}

.tt-g-4 { --tt-gx: 1.5rem; --tt-gy: 1.5rem; }
.tt-g-5 { --tt-gx: 3rem;   --tt-gy: 3rem; }

.tt-py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .tt-col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
  .tt-col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .tt-col-lg-3 { flex: 0 0 auto; width: 25%; }
  .tt-col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .tt-col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .tt-col-lg-9 { flex: 0 0 auto; width: 75%; }
}

/* ---------- Full-bleed safety inside narrow theme content areas ---------- */
.tt-listing,
.tt-main {
  max-width: 100%;
}
