/* Site-local media and content bounds. Keep complete vehicle/brand artwork visible. */
body.ct-assured :is(.ct-welcome__photo, .ct-arrival__photo) {
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  align-self: center;
}
body.ct-assured :is(.ct-welcome__photo, .ct-arrival__photo) > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
body.ct-assured :is(.ct-welcome__photo, .ct-arrival__photo) figcaption {
  position: static;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 15px 18px;
  color: var(--ct-ink);
  background: #edf3f0;
  line-height: 1.6;
}
body.ct-assured .ct-welcome__photo figcaption a { color: var(--ct-deep); }
body.ct-assured .ct-welcome__photo .ct-photo-brand {
  display: block;
  width: 116px;
  max-width: 100%;
  height: auto;
  flex: 0 0 116px;
  object-fit: contain;
}
body.ct-assured .ct-welcome__photo figcaption > span {
  flex: 1 1 200px;
  min-width: 0;
}
body.ct-assured :is(.ct-welcome__photo, .ct-arrival__photo) figcaption small {
  display: block;
  flex-basis: 100%;
  color: var(--ct-muted);
  font-size: 11px;
  line-height: 1.5;
}
body.ct-assured .vehicle-image-note {
  display: block;
  max-width: 100%;
  margin: 10px 0 18px;
  color: var(--ct-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.ct-assured .ct-welcome__grid,
body.ct-assured .ct-arrival__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* A fixed height plus an intrinsic ratio previously made images wider than their cards. */
body.ct-assured .fleet-card__image {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 8 / 5;
  align-self: start;
}
body.ct-assured .fleet-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}
body.ct-assured .fleet-card:hover .fleet-card__image img { transform: none; }
body.ct-assured .fleet-card__image > span { max-width: calc(100% - 28px); }
body.ct-assured .fleet-card__body { min-width: 0; }
body.ct-assured .fleet-card__title { flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
body.ct-assured .fleet-card__title h3 { min-width: 0; margin-bottom: 0; }
body.ct-assured .fleet-card__title > span { flex: 0 0 auto; }
body.ct-assured .contact-image { display: block; width: 100%; height: auto; object-fit: contain; }

/* Keep long hotel names, contact addresses and action labels inside their own component. */
body.ct-assured :is(.lookup-form, .managed-card, .legal-copy, .contact-aside-copy, .footer-grid > div) { min-width: 0; }
body.ct-assured :is(.lookup-form, .managed-card, .legal-copy, .contact-aside-copy, .footer-grid) a { overflow-wrap: anywhere; }
body.ct-assured :is(.lookup-form, .managed-card, .contact-aside-copy) .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
}
body.ct-assured :is(.destinations-area, .destinations-planning-grid) :is(h3, a) { overflow-wrap: anywhere; }
body.ct-assured #booking.acw :is(.selected-pill, .vehicle-selection-rail, .contact-trip-summary, .ac-route-live-summary) > * { min-width: 0; }
body.ct-assured #booking.acw :is(.selected-pill, .vehicle-selection-rail, .contact-trip-summary, .ac-route-live-summary) :is(strong, b) {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Photo and vehicle details occupy separate rows; no text sits over the vehicle. */
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  height: auto;
  min-height: 0;
  color: var(--ct-ink);
  background: #fff;
  border-radius: 10px;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__media,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__media {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 8 / 5;
  border: 0;
  border-bottom: 1px solid var(--ct-line);
  background-color: #f0f4f1;
  background-image: none !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
body.ct-assured #booking.acw .veh__media > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__body,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__body {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  gap: 9px;
  align-content: start;
  align-items: start;
  color: var(--ct-ink);
  background: #fff;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__name,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__name {
  grid-column: 1;
  color: var(--ct-ink);
  font-size: 21px;
  line-height: 1.25;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__meta,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__meta {
  grid-column: 1;
  max-width: 100%;
  min-height: 0;
  color: var(--ct-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__hint,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__hint {
  grid-column: 1;
  grid-row: auto;
  align-self: end;
  justify-items: start;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 0 0;
  color: var(--ct-ink);
  border: 0;
  border-top: 1px solid var(--ct-line);
  text-align: left;
  font-size: 20px;
  line-height: 1.35;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__hint::before { color: var(--ct-muted); }
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh__choice,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh__choice {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  white-space: normal;
  color: var(--ct-deep);
  background: #fff;
  border-color: #b8ceca;
}
body.ct-assured.home-page .home-hero__wizard #booking.acw.acw--clear .veh:has(input:checked) .veh__choice,
body.ct-assured.booking-page.has-airport-wizard #booking.acw.acw--clear .veh:has(input:checked) .veh__choice {
  color: #fff;
  background: var(--ct-teal);
  border-color: var(--ct-teal);
}

@media (max-width: 767px) {
  body.ct-assured .ct-welcome__grid,
  body.ct-assured .ct-arrival__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  body.ct-assured .ct-welcome h1 { font-size: 39px; }
  body.ct-assured .fleet-card__body { padding: 20px; }
}
