/* KD Tour & Travels — site integrity/accessibility corrections */
.kd-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Retain the original H4 visual treatment after correcting heading outline. */
h3.kd-heading-visual-h4 {
  font-size: var(--h4-font-size, 24px) !important;
  font-weight: var(--h4-font-weight, 600) !important;
}

/* Retain the original H3 visual treatment when promoting an H3 to H2. */
h2.kd-heading-visual-h3 {
  font-size: var(--h3-font-size, 34px) !important;
  font-weight: var(--h3-font-weight, 600) !important;
}

/* The new semantic main landmark sits between the shared header and footer.
   Mirror the original direct-child spacing selectors so section layout remains
   visually identical after wrapping the page content in <main>. */
html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) {
  position: relative;
  display: flow-root;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin-block: 0 !important;
  padding-block: clamp(36px, 3.7vw, 52px) !important;
}
html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) > .container,
html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) > .auto-container,
html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) > .kd-service-container {
  min-width: 0;
}
html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) .sec-title {
  margin-bottom: clamp(18px, 2vw, 26px);
}
@media (max-width: 767.98px) {
  html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) {
    padding-block: 28px 32px !important;
  }
  html.kd-type-system-v1 body .page-wrapper > main#main-content > section:not(.page-title):not(.kd-home-hero):not(.testimonial-section-three):not(.map-section):not(.kd-destination-page) .sec-title {
    margin-bottom: 16px;
  }
}

/* Preserve the approved header-to-hero flush alignment under the main landmark. */
body.kd-header-flow-page .page-wrapper > main#main-content > .page-title,
body.kd-header-flow-page .page-wrapper > main#main-content > section.page-title {
  position: relative !important;
  top: auto !important;
  margin-top: 0 !important;
}
