
:root {
  --c-orange: #ff6a28; /* buttons, highlights */
  --c-orange-line: #ff5100; /* section title underlines */
  --c-brand-from: #cf3029;
  --c-brand-to: #d9662e;
  --c-hero-overlay: #444d5d;
  --c-page-bg: #f8f8f9;
  --c-text: #212529;
  --c-text-body: #000000;
  --c-text-muted: #444d5d;
  --c-border: #c6c9ce;
  --c-border-light: #f4f4f4;
  --c-support-bg: #f7e8df;
  --font-main: "Plus Jakarta Sans", "Open Sans", Arial, sans-serif;
  --font-hero: "Source Sans Pro", "Open Sans", Arial, sans-serif;
  --container-max: 1238px;
  --radius-sm: 5px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

body.white-color {
  padding-top: 0 !important;
  background: var(--c-page-bg) !important;
  font-family: var(--font-main);
  color: var(--c-text);
}

.mainConfirm {
  font-family: var(--font-main);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
  background: var(--c-page-bg);
}

.mainConfirm a {
  text-decoration: none;
}
.mainConfirm a:hover {
  text-decoration: none;
}

.confirm-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.confirm-section-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 24px;
  line-height: 30px;
  color: var(--c-text);
  margin: 0 0 6px 0;
}

.confirm-section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--c-orange-line);
  margin-top: 10px;
}

.confirm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 51px;
  padding: 0 20px;
  background: var(--c-orange);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s;
}

.confirm-btn-primary:hover,
.confirm-btn-primary:focus {
  background: #e55c20;
  color: #ffffff !important;
}

.confirm-btn-primary:disabled,
.confirm-btn-primary.disabled {
  background: #a0a0a0;
  cursor: not-allowed;
}

.confirm-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.confirm-btn-arrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* HEADER — hero-style (1600x324 in Figma) */

.confirm-header {
  position: relative;
  z-index: 100;
}

.confirm-header__brand-bar {
  height: 18px;
  background: linear-gradient(to right, var(--c-brand-from), var(--c-brand-to));
}

.confirm-header__hero {
  position: relative;
  min-height: 306px;
  background: var(--c-hero-overlay)
    url("../../from2/images/moventis/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.confirm-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(68, 77, 93, 0.7);
}

/* Nav row */
.confirm-header__nav {
  position: relative;
  z-index: 1;
  padding: 18px 0;
}

.confirm-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.confirm-header__logo img {
  height: 56px;
  width: auto;
  display: block;
}

.confirm-header__menu {
  display: flex;
  align-items: center;
  flex: 1;
  /* nav-list toma el espacio sobrante y centra sus items;
       actions queda al final sin encogerse */
  gap: 0;
}

.confirm-header__nav-list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; /* centra los items en el espacio disponible */
  gap: 49px; /* Figma spec */
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainConfirm .confirm-header__nav-list li {
  list-style: none;
}

.confirm-header__nav-list a {
  font-weight: 800;
  font-size: 16px;
  line-height: 50px;
  letter-spacing: -0.8px;
  color: #ffffff;
  transition: opacity 0.15s;
}

.confirm-header__nav-list a:hover {
  opacity: 0.8;
}

.confirm-header__actions {
  display: flex;
  align-items: center;
  gap: 14px; /* Figma spec */
  flex-shrink: 0;
}

.confirm-header__checkin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.7px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.confirm-header__checkin:hover {
  opacity: 0.8;
}

.confirm-header__checkin-icon,
.confirm-header__globe-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Language selector */
.confirm-header__lang {
  position: relative;
}

.confirm-header__lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.confirm-header__lang-btn .caret {
  border-top: 4px solid #ffffff;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  display: inline-block;
  height: 0;
  width: 0;
}

.confirm-header__lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 72px;
  z-index: 200;
}

.mainConfirm .confirm-header__lang-dropdown li {
  list-style: none;
}

.confirm-header__lang-dropdown a {
  display: block;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
}

.confirm-header__lang-dropdown a:hover {
  background: #f5f5f5;
  color: var(--c-orange);
}

.confirm-header__lang.is-open .confirm-header__lang-dropdown {
  display: block;
}

/* Hero title */
.confirm-header__title-area {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
  pointer-events: none; /* let clicks pass through to nav dropdowns */
}

.confirm-header__title {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  color: #ffffff;
  margin: 0;
  text-align: left;
  pointer-events: auto; /* re-enable for the text itself (selection etc.) */
}

/* Hamburger — desktop hidden, mobile visible */
.confirm-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  line-height: 0;
}

/* Mobile-only elements: hidden on desktop */
.confirm-header__mob-close,
.confirm-header__mob-contact,
.confirm-header__nav-lang-mob {
  display: none;
}

/* Search (Find your booking information) */

.confirm-search {
  padding: 48px 0;
  background: var(--c-page-bg);
}

.confirm-search__grid {
  display: grid;
  grid-template-columns: 1fr 394px;
  gap: 28px;
  align-items: center;
}

.confirm-search__title {
  margin-bottom: 12px;
}

.confirm-search__intro {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-text-body);
  margin: 16px 0 20px 0;
}

/* White form box (r=12 in Figma) */
.confirm-search__box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

/* Horizontal form row: label | input | button */
.confirm-search__row {
  display: flex;
  align-items: center;
  gap: 0;
  height: 51px;
}

.confirm-search__row-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--c-text);
  white-space: nowrap;
  padding-right: 16px;
  flex-shrink: 0;
}

.confirm-search__row .textfield {
  flex: 1;
  height: 51px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: 4.5px;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-text-muted);
  background: #ffffff;
  transition: border-color 0.15s;
  margin-right: 0;
}

.confirm-search__row .textfield:focus {
  outline: none;
  border-color: var(--c-orange);
}

.confirm-search__row .confirm-btn-primary {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: -1px;
}

.confirm-search__image {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}

.confirm-search__image img {
  width: 100%;
  height: 257px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Results — #resultOK and #resultKO */

.confirm-results {
  background: var(--c-page-bg);
  padding: 0 0 32px;
}

/* Result OK table */
#resultOK .panel-default {
  background: none;
  padding: 0;
  margin: 0;
}

#resultOK .panel {
  border: none;
  border-bottom: 5px solid var(--c-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

#resultOK .panel-header {
  background: var(--c-orange);
  padding: 0 25px;
  height: 67px;
  display: flex;
  align-items: center;
}

#resultOK .panel-header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainConfirm #resultOK .panel-header ul li {
  list-style: none;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #ffffff;
}

#resultOK .panel-body {
  padding: 0;
  background: #ffffff;
}

#resultOK .table-info {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  font-size: 14px;
}

#resultOK .table-info th {
  background: transparent;
  color: var(--c-text);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--c-border-light);
  width: 28%;
}

#resultOK .table-info td {
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-text);
  text-align: right;
  width: 22%;
}

/* vertical divider between the two column pairs */
#resultOK .table-info th:nth-child(3) {
  border-left: 1px solid var(--c-border-light);
}

/* remove bottom border on last row */
#resultOK .table-info > tbody > tr:last-child th,
#resultOK .table-info > tbody > tr:last-child td {
  border-bottom: none;
}

#resultOK .table-info > tbody > tr:nth-child(2n) {
  background: #ffffff;
}
#resultOK .table-info > tbody > tr:nth-child(2n + 1) {
  background: #fafafa;
}

/* Result KO — orange box from Figma */
#resultKO {
  border: none !important;
  border-style: none !important;
  background-color: var(--c-orange) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px 25px !important;
  font-weight: normal !important;
  margin-top: 16px;
  text-align: center;
}

.confirm-ko__message {
  font-weight: 800;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: block;
}

.confirm-ko__timing {
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
  margin: 0 0 10px 0;
  display: block;
}

.confirm-ko__tel {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: #ffffff;
  display: block;
  margin-bottom: 0;
  text-decoration: none !important;
}

.confirm-map-section {
  padding: 25px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  margin: 0 auto 32px;
  max-width: var(--container-max);
}

.confirm-map-section .confirm-section-title {
  margin-bottom: 6px;
}

/* Label + input on same row */
.confirm-map__input-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 20px;
}

.confirm-map__label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--c-text);
  height: 51px;
  padding-right: 10px;
  white-space: nowrap;
}

/* Keep legacy selector working (maps.js may not use the wrapper) */
.confirm-map-section label {
  display: inline-flex;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--c-text);
}

/* Override theme: map always visible on this page */
.mainConfirm .hidden_map {
  position: static !important;
  left: auto !important;
  margin-top: 12px;
}

.canvas_map {
  height: 400px !important;
  width: 100% !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin: 0 !important;
}

.confirm-map-section .textfield.autocomplete {
  height: 51px;
  width: 100%;
  max-width: 480px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: 4.5px;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-text-muted);
}

.confirm-map-section .textfield.autocomplete:focus {
  outline: none;
  border-color: var(--c-orange);
}

.confirm-map__legend {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--c-text-muted);
}

.confirm-map__legend img {
  vertical-align: middle;
  margin-right: 4px;
}

/* Autocomplete dropdown */
.ui-autocomplete {
  border: 1px solid var(--c-border) !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 360px !important;
}

.ui-autocomplete .ui-menu-item a {
  padding: 9px 14px !important;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--c-text);
  border: none !important;
}

.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-state-focus {
  background: #fff3ee !important;
  color: var(--c-orange) !important;
  border: none !important;
}

.confirm-support {
  padding: 32px 0;
  background: var(--c-page-bg);
}

.confirm-support__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: var(--c-orange);
  margin: 0 0 20px 0;
}

.confirm-support__grid {
  display: grid;
  grid-template-columns: 393px 1fr;
  gap: 28px;
  align-items: stretch;
}

.confirm-support__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 200px;
}

.confirm-support__photo img {
  width: 100%;
  height: 223px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.confirm-support__box {
  background: var(--c-support-bg);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.confirm-support__box-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
  margin: 0 0 8px 0;
}

.confirm-support__box-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-text);
  margin: 0 0 12px 0;
}

.confirm-support__box-tel {
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
  display: block;
  text-decoration: none !important;
}

.confirm-track {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 25px;
  margin: 0 auto 32px;
  max-width: var(--container-max);
}

.confirm-track .confirm-section-title {
  margin-bottom: 6px;
}

.confirm-track__row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.confirm-track__text {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-text);
  margin: 0;
}

.confirm-instructions {
  padding: 32px 0;
  background: var(--c-page-bg);
}

.confirm-instructions .confirm-section-title {
  margin-bottom: 24px;
}

.confirm-checklist {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.mainConfirm .confirm-checklist li {
  list-style: none !important;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text);
}

/* Orange chevron bullet (12x17 in Figma, Vector 11x9 stroke #ff6a28) */
.confirm-checklist__bullet {
  flex-shrink: 0;
  width: 12px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.confirm-checklist__bullet::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--c-orange);
  border-right: 2px solid var(--c-orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Disclaimer (inline white box, r=20) */

.confirm-disclaimer-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 25px 30px;
  margin: 0 auto 32px;
  max-width: var(--container-max);
}

.confirm-disclaimer-section p {
  font-weight: 500;
  font-size: 12px;
  line-height: 22px;
  color: var(--c-text);
  margin: 0;
}

.confirm-footer {
  background: var(--c-hero-overlay);
  color: #ffffff;
  padding: 48px 0 28px;
}

/* Flexbox: logo left | nav cols centred (auto margins) | contact right */
.confirm-footer__grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

/* Push nav1 away from logo (left auto-margin centres the nav group) */
.confirm-footer__col:nth-child(2) {
  margin-left: auto;
}

/* Push contact away from social (right auto-margin centres the nav group) */
.confirm-footer__col--contact {
  margin-left: auto;
  flex-shrink: 0;
}

.confirm-footer__col--logo {
  flex-shrink: 0;
}

.confirm-footer__col--logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Nav links */
.confirm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.confirm-footer__links li {
  margin-bottom: 5px;
}

.mainConfirm .confirm-footer__links li {
  list-style: none;
  margin-bottom: 10px;
}

.confirm-footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none !important;
  transition: color 0.15s;
}

.confirm-footer__links a:hover {
  color: #ffffff;
}

/* Social: icon + label inline */
.confirm-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mainConfirm .confirm-footer__social li {
  list-style: none;
}

.confirm-footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none !important;
  transition: color 0.15s;
}

.confirm-footer__social-link:hover {
  color: #ffffff;
}

.confirm-footer__social-link svg {
  flex-shrink: 0;
}

/* Contact column */
.confirm-footer__col--contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.confirm-footer__contact-heading {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 400;
}

.confirm-footer__tel {
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  display: block;
  text-decoration: none !important;
  line-height: 1.2;
  transition: color 0.15s;
}

.confirm-footer__tel:hover {
  color: rgba(255, 255, 255, 0.8);
}

.confirm-footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none !important;
  transition:
    border-color 0.15s,
    background 0.15s;
  width: fit-content;
}

.confirm-footer__contact-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Bottom bar */
.confirm-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.confirm-footer__from2-logo img {
  height: 28px;
  width: auto;
  opacity: 0.75;
  display: block;
  transition: opacity 0.15s;
}

.confirm-footer__from2-logo:hover img {
  opacity: 1;
}

.confirm-footer__legal {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mainConfirm .confirm-footer__legal li {
  list-style: none;
}

body.white-color .confirm-footer__legal a,
.confirm-footer__legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline !important;
  transition: color 0.15s;
}

body.white-color .confirm-footer__legal a:hover,
.confirm-footer__legal a:hover {
  color: #ffffff;
}

.confirm-footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

#cookiesdirective {
  font-family: var(--font-main) !important;
  font-size: 14px !important;
  background: var(--c-hero-overlay) !important;
  padding: 12px 24px !important;
}

#cookiesdirective span a {
  color: var(--c-orange) !important;
  text-decoration: underline !important;
}

/* Wrapper section for map / track / disclaimer */

.confirm-section-white {
  background: var(--c-page-bg);
  padding: 0 0 32px;
}

.confirm-section-white__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav: hamburger activo hasta 900px (cubre móvil + tablet pequeña) */

@media (max-width: 991px) {
  .confirm-header__nav {
    position: static;
    z-index: 2;
  }

  .confirm-header__burger {
    display: flex;
  }

  /* Full-screen overlay */
  .confirm-header__menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(68, 77, 93, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 28px 36px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
  }

  .confirm-header__menu.is-open {
    display: flex;
  }

  /* Close button inside the overlay */
  .confirm-header__mob-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
  }

  /* Main nav items — large with right chevron */
  .confirm-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 44px;
    width: 100%;
    padding: 0;
    margin: 50px 0 20px 10px;
    border-bottom: none;
    justify-content: flex-start;
  }

  .confirm-header__nav-list li {
    width: 100%;
  }

  .confirm-header__nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
  }

  .confirm-header__nav-list a::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 16px;
  }

  /* Hide desktop lang selector inside the overlay */
  .confirm-header__actions {
    display: none;
  }

  /* Mobile lang item — shown in the nav list */
  .confirm-header__nav-lang-mob {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
  }

  .confirm-header__lang-btn-mob {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: normal;
    width: 100%;
  }

  .confirm-header__lang-dropdown--mob {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-width: 72px;
    z-index: 1000;
  }

  .confirm-header__lang-dropdown--mob a {
    display: block;
    padding: 4px 16px;
    font-weight: 600;
    font-size: 20px;
    color: var(--c-text);
  }

  .confirm-header__lang-dropdown--mob a::after {
    display: none;
  }

  .confirm-header__lang-dropdown--mob a:hover {
    background: #f5f5f5;
    color: var(--c-orange);
  }

  .confirm-header__lang-dropdown--mob a.is-active {
    font-weight: 800;
    color: var(--c-orange);
  }

  #confirm-lang-mob-selector.is-open .confirm-header__lang-dropdown--mob {
    display: block;
  }

  /* Hide dropdown on mobile — language is switched inline */
  .confirm-header__lang.is-open .confirm-header__lang-dropdown {
    display: block;
  }

  /* Contact block pushed to bottom */
  .confirm-header__mob-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 32px;
  }

  .confirm-header__mob-contact-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
  }

  .confirm-header__mob-contact-tel {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none !important;
  }
}

/* Media queries — mobile (<768px) */

@media (max-width: 767px) {
  /* Header */
  .confirm-header__hero {
    min-height: 260px;
  }

  .confirm-header__title {
    font-size: 32px;
    line-height: 40px;
  }

  /* Search */
  .confirm-search__grid {
    grid-template-columns: 1fr;
  }
  .confirm-search__image img{
    display: none;
  }

  /* En mobile: label en su propia línea, input + botón en la misma fila */
  .confirm-search__row {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
    align-items: stretch;
  }

  /* El label ocupa el 100% para forzar el salto de línea */
  .confirm-search__row-label {
    flex-basis: 100%;
    white-space: normal;
    padding-right: 0;
  }

  /* El input crece horizontalmente, con altura explícita para no colapsar */
  .confirm-search__row .textfield {
    flex: 1;
    min-width: 80px;
    height: 51px;
    border-radius: var(--radius-sm);
    margin-right: 0;
  }

  /* El botón mantiene su ancho natural a la derecha del input */
  .confirm-search__row .confirm-btn-primary {
    width: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    margin-left: 0;
  }

  /* Results table — stack cells as blocks instead of horizontal scroll */
  #resultOK .table-responsive {
    overflow-x: visible;
  }

  #resultOK .table-info,
  #resultOK .table-info tbody,
  #resultOK .table-info tr,
  #resultOK .table-info th,
  #resultOK .table-info td {
    display: block;
  }

  #resultOK .table-info tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border-light);
  }

  #resultOK .table-info > tbody > tr:last-child {
    border-bottom: none;
  }

  #resultOK .table-info th,
  #resultOK .table-info td {
    width: 100% !important;
    text-align: left;
    border: none !important;
    padding: 3px 16px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Visual separator between the two column pairs now stacked */
  #resultOK .table-info th:nth-child(3) {
    border-left: none !important;
    border-top: 1px dashed var(--c-border-light) !important;
    margin-top: 4px;
    padding-top: 8px;
  }

  /* Row alternating background doesn't make sense stacked — reset */
  #resultOK .table-info > tbody > tr:nth-child(2n),
  #resultOK .table-info > tbody > tr:nth-child(2n + 1) {
    background: transparent;
  }

  /* Map */
  .confirm-map-section {
    border-radius: var(--radius-lg);
    margin: 0 0 24px;
    padding: 20px;
  }

  .confirm-map-section .textfield.autocomplete,
  .ui-autocomplete {
    width: 100% !important;
    max-width: 100% !important;
  }

  .canvas_map {
    height: 260px !important;
  }

  /* Customer support */
  .confirm-support__grid {
    grid-template-columns: 1fr;
  }
  .confirm-support__photo img {
    height: 223px;
    border-radius: var(--radius-lg);
    object-position: top center;
  }

  /* Track your bus */
  .confirm-track {
    margin: 0 0 24px;
    padding: 20px;
  }

  .confirm-track__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .confirm-btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Disclaimer */
  .confirm-disclaimer-section {
    margin: 0 0 24px;
    padding: 20px;
  }

  /* Footer */
  /* Footer: stacked on mobile */
  .confirm-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  /* Logo spans full width */
  .confirm-footer__col--logo {
    grid-column: 1 / -1;
  }
  /* nav1 + nav2 side by side (natural 1fr each) */
  .confirm-footer__col:nth-child(2) {
    margin-left: 0;
  }
  .confirm-footer__col--contact {
    margin-left: 0;
    grid-column: 1 / -1;
  }
  /* Social: one horizontal row spanning full width */
  .confirm-footer__col--social {
    grid-column: 1 / -1;
  }
  .confirm-footer__col--social .confirm-footer__social {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
  .confirm-footer__tel {
    font-size: 20px;
  }
  .confirm-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .confirm-footer__from2-logo {
    align-self: flex-end;
  }
  .confirm-footer__legal {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .confirm-footer__copyright {
    text-align: center;
  }
}

/* Media queries — tablet large (901px–1200px) */

@media (max-width: 1200px) and (min-width: 901px) {
  /* Search: hide the bus photo, let the form use full width */
  .confirm-search__grid {
    grid-template-columns: 1fr;
  }
  .confirm-search__image {
    display: none;
  }

  /* Support: 2 columns, proportional (photo ~35%) */
  .confirm-support__grid {
    grid-template-columns: minmax(240px, 35%) 1fr;
  }

  /* Map autocomplete */
  .confirm-map-section .textfield.autocomplete,
  .ui-autocomplete {
    width: 100% !important;
    max-width: 480px !important;
  }
}

/* Media queries — tablet small (768px–900px) */

@media (max-width: 900px) and (min-width: 768px) {
  /* Search: hide the bus photo */
  .confirm-search__grid {
    grid-template-columns: 1fr;
  }
  .confirm-search__image {
    display: none;
  }

  /* Support: stack at this width — column too narrow for 2-col */
  .confirm-support__grid {
    grid-template-columns: 1fr;
  }
  .confirm-support__photo img {
    height: 220px;
    object-position: top center;
  }

  /* Map autocomplete */
  .confirm-map-section .textfield.autocomplete,
  .ui-autocomplete {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hero title slightly smaller */
  .confirm-header__title {
    font-size: 34px;
    line-height: 44px;
  }

  /* Footer: switch to grid so the flex row doesn't overflow at this width */
  .confirm-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .confirm-footer__col--logo {
    grid-column: 1 / -1;
  }
  .confirm-footer__col:nth-child(2) {
    margin-left: 0;
  }
  .confirm-footer__col--contact {
    margin-left: 0;
    grid-column: 1 / -1;
  }
  .confirm-footer__col--social {
    grid-column: 1 / -1;
  }
  .confirm-footer__col--social .confirm-footer__social {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
}

.confirm-header__title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* Results — fade-in animation (no JS changes needed) */

#resultOK,
#resultKO {
  animation: confirmFadeUp 0.28s ease both;
}

@keyframes confirmFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirm-header__lang-dropdown a.is-active {
  font-weight: 800;
  color: var(--c-orange) !important;
}

.confirm-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: #ffffff;
  border-left: 3px solid var(--c-orange-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-text);
}

/* Search box intro text */
.confirm-search__intro {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-text-body);
  margin: 0 0 20px 0;
}


/* Support phone as clickable link */
.confirm-support__box-tel {
  color: var(--c-text) !important;
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  display: block;
  text-decoration: none !important;
  transition: color 0.15s;
}

.confirm-support__box-tel:hover {
  color: var(--c-orange) !important;
}
