/* Address suggestions, 2026-11-16.
   The popup is positioned by the existing autocomplete adapter. Its list must
   remain in normal flow so the popup grows around it instead of clipping it.
   Do not set display/visibility on the popup: JavaScript owns open/close. */

/* Some home designs clip decorative panels or rounded field wrappers. Only
   the ancestors of an OPEN address picker need to let that picker extend
   below its field. Keep the popup's own clipping and its scrollable list,
   body/html bounds, and all closed-panel decoration unchanged. */
body :has(#rtx-home-entry .pjTbs-places-popup[style*="display: block"]),
#rtx-home-entry:has(.pjTbs-places-popup[style*="display: block"]),
#rtx-home-entry :has(.pjTbs-places-popup[style*="display: block"]) {
  overflow: visible !important;
}

/* Wassenaar's empty, rotated border decoration normally extends outside its
   clipped welcome panel. Hide that decoration while the panel opens for the
   address list, rather than allowing it to widen the mobile page. */
.welcome:has(#rtx-home-entry .pjTbs-places-popup[style*="display: block"])::before {
  display: none;
}

/* The same narrow-screen overflow occurs with Leidschendam's decorative
   circle. Other sites use hero::after for image contrast, so scope by site. */
html:has(link[rel="canonical"][href="https://rolstoeltaxileidschendam.nl/"]) .hero:has(#rtx-home-entry .pjTbs-places-popup[style*="display: block"])::after {
  display: none;
}

.pjTbs-places-popup > .pjTbs-places-list[role="listbox"] {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 360px !important;
  max-height: min(360px, 50vh, var(--rtx-address-list-max-height, 360px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fff;
  color: #111827;
  text-align: left;
  list-style: none;
}

.pjTbs-places-popup > .pjTbs-places-list > .pjTbs-places-option[role="option"] {
  box-sizing: border-box;
  position: static;
  display: block;
  float: none;
  width: auto;
  height: auto;
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.pjTbs-places-popup .pjTbs-places-option > .pjTbs-places-primary,
.pjTbs-places-popup .pjTbs-places-option > .pjTbs-places-secondary {
  position: static;
  display: block;
  float: none;
  width: auto;
  height: auto;
  padding: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pjTbs-places-popup .pjTbs-places-option > .pjTbs-places-primary {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.pjTbs-places-popup .pjTbs-places-option > .pjTbs-places-secondary {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: #374151;
}

.pjTbs-places-popup > .pjTbs-places-list > .pjTbs-places-option[aria-selected="true"],
.pjTbs-places-popup > .pjTbs-places-list > .pjTbs-places-option:hover {
  color: #111827;
  background: #ecfdf5;
  box-shadow: inset 4px 0 0 #047857;
}

/* Keep typed addresses legible and avoid focus zoom on small-screen Safari.
   Field height, padding and each site's colours remain owned by its design. */
@media (max-width: 760px) {
  #rtx-home-entry #rtx-home-pickup,
  #rtx-home-entry #rtx-home-destination {
    font-size: 16px !important;
  }
}

/* These three existing homepage titles exceed their column at 320px.
   Keep whole words and their distinct design; change only the narrow size. */
@media (max-width: 360px) {
  html:has(link[rel="canonical"][href="https://rolstoeltaxibaarn.nl/"]) .opening-title h1,
  html:has(link[rel="canonical"][href="https://rolstoeltaxidoorn.nl/"]) .opening-title h1,
  html:has(link[rel="canonical"][href="https://rolstoeltaxiede.nl/"]) .opening-title h1 {
    font-size: 60px;
  }
}
