/* ==========================================================================
   OTO Behance Agency Design Hero & Search Console
   ========================================================================== */
.oto-hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #FFFFFF;
  padding: 1rem clamp(0.75rem, 1.5vw, 1.5rem) 2rem clamp(0.75rem, 1.5vw, 1.5rem);
  box-sizing: border-box;
}

.oto-hero-frame {
  position: relative;
  max-width: 1640px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 480px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(11, 31, 58, 0.1), 0 2px 10px rgba(11, 31, 58, 0.04);
  background-color: #000000;
}

.oto-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.92);
  transition: transform 0.8s ease;
}

.oto-hero-frame:hover .oto-hero-video {
  transform: scale(1.02);
}

.oto-hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Navigation Bar inside Hero */
.oto-navbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem clamp(1.5rem, 2.5vw, 3rem);
}

.busbuddy-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.busbuddy-brand-logo:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.busbuddy-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.oto-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 6px;
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.app-badge-link:active {
  transform: translateY(0);
}

.app-badge-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
}

.mascot-sign-stage {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  width: min(100vw, 1390px);
  height: clamp(260px, 30vw, 430px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: auto;
  overflow: visible;
}

.mascot-character {
  position: absolute;
  display: block;
  height: auto; /* width comes from CSS; the width/height attributes only reserve aspect ratio */
  user-select: none;
  pointer-events: none;
}

.mascot-character {
  z-index: 1;
  filter: drop-shadow(0 28px 34px rgba(15, 76, 255, 0.2));
}

.mascot-character-front {
  display: none;
}

.mascot-character-left {
  left: clamp(-5.6rem, -4.5vw, -2.4rem);
  bottom: -0.75rem;
  width: clamp(270px, 25vw, 390px);
}

.mascot-character-right {
  right: clamp(-6.6rem, -5vw, -2.8rem);
  bottom: -0.55rem;
  width: clamp(290px, 28vw, 430px);
}

.oto-login-link {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.oto-login-link:hover {
  color: #45C7FF;
  text-decoration: underline;
}

.oto-signup-btn {
  background: #FFFFFF;
  color: #0B1F3A;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
}

.oto-signup-btn:hover {
  background: #DDF4FF;
  color: #0F4CFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 76, 255, 0.25);
}

/* Floating Elevated Search Card */
.oto-search-container {
  position: relative;
  z-index: 26;
  max-width: 1220px;
  width: 100%;
  margin: -70px auto 1.8rem auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.simplest-search-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(11, 31, 58, 0.08), 0 2px 10px rgba(11, 31, 58, 0.03);
  padding: 1.85rem 2.2rem;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(15, 76, 255, 0.12);
  position: relative;
  z-index: 2;
}

.search-card-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 500;
  color: #0B1F3A;
  letter-spacing: -0.015em;
  margin: 0 0 1.35rem 0;
  line-height: 1.35;
  text-wrap: balance;
}

.heading-accent-phrase {
  display: inline-block;
  white-space: nowrap;
}

.search-card-heading .theme-accent-text {
  color: #1976FF;
  font-weight: 600;
  white-space: nowrap;
}

/* Trilingual 3D Flip Headline (English / Tamil / Sinhala) */
.flip-country-wrapper {
  display: inline-flex;
  position: relative;
  vertical-align: baseline;
  overflow: hidden;
  height: 1.35em;
  perspective: 500px;
}

.flip-word {
  display: inline-block;
  color: #1976FF;
  font-weight: 600;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(115%) rotateX(-70deg);
  opacity: 0;
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

.flip-word.active {
  position: relative;
  transform: translateY(0%) rotateX(0deg);
  opacity: 1;
  pointer-events: auto;
}

.flip-word.exit {
  position: absolute;
  transform: translateY(-115%) rotateX(70deg);
  opacity: 0;
  transform-origin: 50% 0%;
}

.simplest-fields-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.05fr 185px;
  gap: 1.25rem;
  align-items: flex-end;
}

.simplest-field {
  display: flex;
  flex-direction: column;
}

.simplest-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0B1F3A;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
}

.simplest-label.action-label {
  text-transform: none;
}

.simplest-select-wrap,
.simplest-date-wrap {
  position: relative;
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(15, 76, 255, 0.18);
  border-radius: 8px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.simplest-select-wrap:hover,
.simplest-date-wrap:hover {
  border-color: #0F4CFF;
}

.simplest-select-wrap:focus-within,
.simplest-date-wrap:focus-within {
  border-color: #1976FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px #DDF4FF;
}

.simplest-select-wrap select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #0B1F3A;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 1.5rem 0 0;
}

.simplest-select-wrap select:invalid,
.simplest-select-wrap select option[value=""] {
  color: #627D98;
}

.simplest-chevron {
  position: absolute;
  right: 0.85rem;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Dropdown Component (Matching Image 1) */
.custom-dropdown-field {
  position: relative;
}

.custom-select-trigger {
  position: relative;
  cursor: pointer;
  padding: 0 2rem 0 0.95rem;
  user-select: none;
}

.custom-select-trigger.is-open {
  border-color: #1976FF;
  box-shadow: 0 0 0 3px rgba(25, 118, 255, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 55;
}

.custom-select-trigger.is-open .custom-chevron {
  transform: rotate(180deg);
}

.custom-select-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #0B1F3A;
  font-weight: 400;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.custom-select-input::placeholder {
  color: #627D98;
  opacity: 1;
  font-weight: 400;
}

.custom-select-input:focus {
  cursor: text;
}

/* Custom Dropdown Popup Menu - Flush with Trigger matching Image 1 */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-dropdown-menu.is-open {
  display: block;
}

/* Scrollbar matching Image 1 */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
  background: #F8FAFC;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.custom-dropdown-item {
  padding: 0.55rem 0.95rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #212529;
  cursor: pointer;
  transition: background-color 0.1s ease;
  display: flex;
  align-items: center;
  user-select: none;
  line-height: 1.4;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.is-highlighted {
  background-color: #F1F3F5;
  color: #111827;
}

.custom-dropdown-item.is-selected {
  background-color: #EBF8FF;
  color: #0F4CFF;
  font-weight: 500;
}

.custom-dropdown-empty {
  padding: 0.85rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  color: #627D98;
  text-align: center;
  font-style: italic;
}

.simplest-date-wrap {
  cursor: pointer;
}

.simplest-date-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #0B1F3A;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simplest-date-text.placeholder {
  color: #627D98;
  font-weight: 400;
}

/* Custom Executive Date Field & Calendar Popover */
.custom-date-field {
  position: relative;
}

.custom-date-trigger {
  cursor: pointer;
  user-select: none;
  padding: 0 2.2rem 0 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-date-trigger.is-open {
  border-color: #1976FF;
  box-shadow: 0 0 0 3px rgba(25, 118, 255, 0.15);
  background: #FFFFFF;
}

.custom-date-trigger.is-open .simplest-calendar-icon {
  stroke: #1976FF;
  transform: scale(1.1);
}

/* ---------- Journey date calendar: clean month view ---------- */
.custom-calendar-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #FFFFFF;
  border: 1px solid #E3ECF7;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
  padding: 1rem;
  z-index: 1000;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-calendar-popup.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-calendar-popup.opens-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.cal-month-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.cal-month-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0B1F3A;
}

.cal-year-title {
  font-weight: 500;
  color: #627D98;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #0B1F3A;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-nav-btn:hover:not(:disabled) {
  background: #F0F7FF;
  color: #0F4CFF;
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-weekdays-strip,
.cal-days-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-weekdays-strip {
  margin-bottom: 0.25rem;
  text-align: center;
}

.cal-weekday {
  font-size: 0.75rem;
  font-weight: 500;
  color: #627D98;
  line-height: 28px;
  user-select: none;
}

.cal-day-cell {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0B1F3A;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-day-cell:hover:not(:disabled):not(.is-selected) {
  background: #F0F7FF;
  color: #0F4CFF;
}

.cal-day-cell:focus-visible {
  outline: 2px solid #1976FF;
  outline-offset: 2px;
}

.cal-day-cell.is-adjacent-month {
  color: #94A3B8;
}

.cal-day-cell.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px #1976FF;
  color: #0F4CFF;
  font-weight: 600;
}

.cal-day-cell.is-selected {
  background: #0F4CFF;
  color: #FFFFFF;
  font-weight: 600;
}

.cal-day-cell:disabled,
.cal-day-cell.is-past {
  color: #CBD5E1;
  background: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

.cal-top-presets-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #E3ECF7;
}

.cal-top-preset-btn {
  height: 36px;
  border: 1px solid #E3ECF7;
  border-radius: 999px;
  background: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0B1F3A;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cal-top-preset-btn:hover {
  border-color: #1976FF;
  color: #0F4CFF;
  background: #F0F7FF;
}

.custom-date-field.is-open {
  z-index: 1050;
}

/* The page dims behind the calendar on phones only */
.cal-sheet-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .custom-date-field.is-open,
  .oto-search-container:has(.custom-date-field.is-open) {
    z-index: 99999 !important;
  }

  /* Open upward: the field sits near the bottom of the hero, which clips overflow */
  .custom-calendar-popup {
    top: auto;
    left: auto;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(88vw, 320px);
    padding: 0.85rem;
    transform: translateY(6px);
  }

  .cal-day-cell {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .cal-day-cell {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
}

.simplest-calendar-icon {
  position: absolute;
  right: 0.92rem;
  pointer-events: none;
  stroke: #64748B;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.simplest-date-wrap:hover .simplest-calendar-icon,
.simplest-date-wrap:focus-within .simplest-calendar-icon {
  stroke: #1976FF;
  transform: scale(1.06);
}

.simplest-submit-btn {
  width: 100%;
  height: 48px;
  background: #0F4CFF;
  background-image: linear-gradient(135deg, #0F4CFF 0%, #1976FF 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(15, 76, 255, 0.32);
}

.simplest-submit-btn:hover {
  background-image: linear-gradient(135deg, #1976FF 0%, #45C7FF 100%);
  box-shadow: 0 6px 20px rgba(25, 118, 255, 0.42);
  transform: translateY(-2px);
}

.simplest-submit-btn:active {
  transform: translateY(0);
}

.simplest-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.need-help-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: #1976FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.need-help-link:hover {
  color: #0F4CFF;
  text-decoration: underline;
}

/* Narrow laptops: stations on one row, date + button on the next */
@media (max-width: 1180px) and (min-width: 993px) {
  .simplest-fields-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .simplest-fields-grid > .simplest-field {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  .oto-hero-wrapper {
    padding: 1rem 1.2rem 3.8rem 1.2rem;
  }

  .oto-hero-frame {
    height: 52vh;
    min-height: 420px;
    border-radius: 24px;
  }

  .mascot-sign-stage {
    bottom: -0.2rem;
    width: calc(100% + 7rem);
    height: 260px;
  }

  .mascot-character-left {
    left: -4rem;
    width: 230px;
  }

  .mascot-character-right {
    right: -4.6rem;
    width: 260px;
  }

  .oto-navbar {
    padding: 1.5rem 1.8rem;
  }

  .oto-search-container {
    margin: -60px auto 1.8rem auto;
    padding: 0 1.25rem;
  }

  .simplest-search-card {
    padding: 1.8rem 1.6rem 1.4rem 1.6rem;
    border-radius: 12px;
  }

  .simplest-fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .oto-fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .oto-outlined-box {
    height: 52px;
  }
}

@media (max-width: 768px) {
  /* Hero Stage on Mobile */
  .oto-hero-wrapper {
    padding: 0.65rem 0.75rem 3.2rem 0.75rem;
  }

  .oto-hero-frame {
    height: 46vh;
    min-height: 360px;
    border-radius: 20px;
  }

  .mascot-sign-stage {
    display: none;
  }

  .mascot-character-left {
    left: -5.15rem;
    bottom: -0.15rem;
    width: 235px;
  }

  .mascot-character-right {
    right: -5.85rem;
    bottom: -0.15rem;
    width: 265px;
  }

  .mascot-character-front {
    display: block;
    z-index: 3;
    filter: drop-shadow(0 10px 14px rgba(11, 31, 58, 0.12));
  }

  .mascot-character-left.mascot-character-front {
    clip-path: inset(36% 0 34% 62%);
  }

  .mascot-character-right.mascot-character-front {
    clip-path: inset(38% 64% 32% 0);
  }

  .oto-navbar {
    padding: 0.9rem 1rem;
    gap: 0.5rem;
    box-sizing: border-box;
  }

  .busbuddy-logo-img {
    height: 40px;
    max-width: 132px;
    object-fit: contain;
  }

  .oto-nav-right {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .app-badge-img {
    height: 26px;
  }

  .oto-search-container {
    margin: -330px auto 1.5rem auto;
    padding: 0 0.85rem;
  }

  .simplest-search-card {
    border-radius: 14px;
    padding: 1.35rem clamp(0.75rem, 3.2vw, 1.15rem) 1.25rem clamp(0.75rem, 3.2vw, 1.15rem);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    isolation: isolate;
  }

  .search-card-heading {
    font-size: clamp(0.76rem, 3.6vw, 1rem);
    margin-bottom: 1.1rem;
    line-height: 1.15;
    white-space: nowrap;
    text-wrap: nowrap;
    overflow: visible;
    letter-spacing: 0;
  }

  .search-card-heading .heading-accent-phrase,
  .search-card-heading .flip-country-wrapper {
    font-size: 0.96em;
    line-height: 1.05;
    vertical-align: baseline;
  }

  .action-label {
    display: none;
  }

  .simplest-fields-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .simplest-select-wrap,
  .simplest-date-wrap {
    height: 48px;
  }

  .simplest-select-wrap select {
    font-size: 0.92rem;
  }

  .simplest-date-text {
    font-size: 0.92rem;
  }

  .simplest-submit-btn {
    height: 48px;
    font-size: 1rem;
    width: 100%;
  }

  .simplest-card-footer {
    justify-content: flex-end;
    margin-top: 0.9rem;
  }

  .oto-search-card {
    border-radius: 16px;
    padding: 1.35rem 1.15rem 1.35rem 1.15rem;
  }

  .oto-tabs-row {
    margin-bottom: 1.35rem;
  }

  .oto-fields-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .oto-outlined-box {
    height: 52px;
  }

  .oto-action-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1.1rem;
  }

  .oto-show-buses-btn {
    width: 100%;
    justify-content: center;
    height: 50px;
    font-size: 1.05rem;
  }

  .oto-promo-wrap {
    justify-content: center;
  }

  /* Trust Checks on Mobile */
  .tripzo-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 1.25rem;
  }

  .tripzo-trust-item {
    font-size: 0.82rem;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .oto-hero-wrapper {
    padding: 0.5rem 0.5rem 2.8rem 0.5rem;
  }

  .oto-hero-frame {
    height: 40vh;
    min-height: 320px;
    border-radius: 16px;
  }

  .oto-search-container {
    margin-top: -312px;
  }

  .mascot-sign-stage {
    top: -124px;
    width: 100%;
    height: 220px;
  }

  .mascot-character-left {
    left: -3.75rem;
    bottom: -0.1rem;
    width: 170px;
  }

  .mascot-character-right {
    right: -4.4rem;
    bottom: -0.1rem;
    width: 194px;
  }

  .simplest-search-card {
    padding: 1.25rem 1rem 1rem 1rem;
    border-radius: 14px;
  }

  /* Narrowest phones: allow two balanced lines instead of shrinking the heading below 12px */
  .search-card-heading {
    font-size: clamp(0.8rem, 3.8vw, 0.95rem);
    margin-bottom: 1.05rem;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
    overflow: visible;
    letter-spacing: 0;
  }

  .search-card-heading .heading-accent-phrase,
  .search-card-heading .flip-country-wrapper {
    font-size: 0.96em;
    line-height: 1.05;
  }

  .simplest-fields-grid {
    gap: 0.85rem;
  }

  .simplest-select-wrap,
  .simplest-date-wrap {
    height: 46px;
  }

  .simplest-submit-btn {
    height: 46px;
    font-size: 0.96rem;
  }

  .oto-navbar {
    padding: 0.75rem 0.75rem;
  }

  .oto-nav-right {
    gap: 0.35rem;
  }

  .busbuddy-logo-img {
    height: 36px;
    max-width: 116px;
  }

  .app-badge-img {
    height: 25px;
  }

  .oto-search-card {
    padding: 1.2rem 0.95rem;
  }
}

/* Search card: inline validation message under the fields */
.search-error {
  margin: 0.75rem 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #DC2626;
}

.custom-select-trigger.is-invalid,
.custom-date-trigger.is-invalid {
  border-color: #DC2626;
}


/* Touch screens: every control gets a 40px+ tap area (visual size unchanged where possible) */
@media (pointer: coarse) {
  .busbuddy-brand-logo,
  .app-badge-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .cal-nav-btn {
    width: 40px;
    height: 40px;
  }
  .cal-top-preset-btn {
    height: 40px;
  }
}

/* Phones (except the very narrowest, where seven 40px days cannot fit): 40px calendar days */
@media (max-width: 768px) and (min-width: 381px) {
  .cal-day-cell {
    width: 40px;
    height: 40px;
  }
}
