/* Comfortable touch controls and narrow multilingual layouts. */
@media screen and (max-width: 800px) {
  body header a:has(> img[src*="icon"]),
  body .obs-mast > a {
    flex-shrink: 0;
    font-size: 15px;
    gap: 5px;
    min-height: 44px;
  }
  body header label:has(select),
  body header a.rounded-full,
  body .obs-mast nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .obs-gift fieldset button.rounded-full {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .obs-index a, .obs-back, .obs-pair > .mt-10 > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  body .obs-pair .classic-actions a {
    min-height: 44px;
  }
  .obs-gift input, .obs-gift textarea,
  .obs-compare input, .obs-compare select {
    font-size: 16px;
  }
}
@media screen and (max-width: 380px) {
  body header:has(> a > img[src*="icon"]) {
    gap: 8px;
    padding-inline: 12px;
  }
  body header a:has(> img[src*="icon"]) {
    font-size: 14px;
    gap: 3px;
  }
  body header label:has(select),
  body header a.rounded-full {
    padding-inline: 8px;
    font-size: 12px;
  }
  body .obs-mast { padding-inline: 12px; gap: 8px; }
  body .obs-mast nav { gap: 6px; }
  body .obs-mast nav a { padding-inline: 5px; font-size: 13px; }
  .obs-pair .mt-12 > div > .text-center > .text-3xl {
    font-size: 25px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}
@media screen and (max-width: 800px) {
  .atlas-journey form [data-line]:has(.bh-location) {
    height: auto !important;
    min-height: 0 !important;
    align-items: flex-end;
    padding: 14px;
    border-radius: 18px;
  }
  .atlas-journey form [data-line] .bh-location {
    flex: 1;
    min-width: 0;
  }
  .atlas-journey form [data-line] .bh-country > span {
    color: #4b5549;
    padding: 0;
  }
  .atlas-journey form [data-line] .bh-location input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #bca77c;
    border-radius: 7px;
    background: #fffaf0;
    color: #253532 !important;
    font-size: 16px;
  }
  .atlas-journey form [data-line] .bh-location .bh-city-results {
    color: #f8efd8;
  }
  .atlas-journey form [data-line]:has(.bh-location) > button {
    align-self: flex-end;
    flex-shrink: 0;
  }
}
@media screen and (max-width: 380px) {
  body header:has(> a > img[src*="icon"]) {
    flex-wrap: wrap;
  }
  body header:has(> a > img[src*="icon"]) > a:first-child {
    margin-inline-end: auto;
  }
  body header:has(> a > img[src*="icon"]) > label {
    margin-inline-start: 0;
  }
  body header:has(> a > img[src*="icon"]) > a:last-child:not(:first-child) {
    white-space: normal;
    text-align: center;
    max-width: 90px;
  }
}
@media screen and (max-width: 1000px) {
  .grid > .overflow-hidden > .tabular-nums {
    font-size: clamp(16px, 2.5vw, 28px);
    line-height: 1.3;
    letter-spacing: -.025em;
  }
}
/* Visual audit corrections verified against actual mobile interaction screenshots. */
@media screen and (max-width: 800px) {
  .atlas-journey form [data-line] select {
    color: #293d32 !important;
    -webkit-text-fill-color: #293d32;
    color-scheme: light;
  }
  .atlas-journey form [data-line] select option {
    color: #293d32;
    background: #fffaf0;
  }
  .atlas-journey form [data-line]:has(select[aria-label]):not(:has(.bh-location)) {
    border-radius: 18px;
    padding: 6px;
  }
  .atlas-journey form [data-line] select[aria-label] {
    background: #f5edda;
    border-color: #bca77c;
    border-radius: 10px;
    min-width: 0;
    padding-inline: 6px;
  }
  .bh-choices button[aria-pressed=false] > span.rounded-full[aria-hidden=true] {
    color: transparent;
  }
  .studio-help {
    position: relative;
    inset: auto;
    width: auto;
    padding: 12px 20px 20px;
    background: #0b282a;
    text-align: end;
  }
  .studio-help .help-panel {
    margin-inline-start: auto;
  }
}
@media screen and (max-width: 380px) {
  .obs-compare h1 {
    font-size: 34px;
    line-height: 1.2;
  }
}

/* Text fields share the pill's focus border instead of drawing a square inside it. */
@media screen and (max-width:800px) {
  html body .atlas-journey form [data-line] > input:focus-visible {
    outline:none;
    box-shadow:none;
  }
  .atlas-journey form [data-line]:has(> input:focus-visible) {
    border-color:#bd9653 !important;
  }
  html body .atlas-journey .bh-location input:focus-visible {
    outline:none;
    box-shadow:none;
    border:2px solid #a87932;
  }
}
/* Let a longer city list grow the journey instead of being clipped by its footer. */
@media screen and (max-width:800px) {
  .atlas-journey:has(.bh-location) {
    height:auto;
    min-height:100svh;
  }
  .atlas-journey:has(.bh-location) > main {
    min-height:auto;
  }
}
