/* Scoped to the driver results; the surrounding filters and booking forms are unchanged. */
#driverResults.driverGrid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
#driverResults.driverGrid .driverProfileCard {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line, #e8e4de);
  border-radius: 16px;
  box-shadow: 0 4px 18px #17243a04;
  min-width: 0;
  color: var(--ink, #101e35);
}
.driverProfileCard .driverProfileHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.driverProfileCard .driverProfileIdentity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.driverProfileCard .driverProfileAvatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--soft-navy, #eef1f6);
  color: var(--ink, #101e35);
  font-size: 23px;
  font-weight: 700;
}
.driverProfileCard .driverProfileNameBlock {
  min-width: 0;
}
.driverProfileCard h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink, #101e35);
}
.driverProfileCard h3 > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.driverProfileCard .driverCountryFlag {
  display: block;
  width: 28px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px #18233835);
}
.driverProfileCard .driverProfileLocation {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #687283);
  overflow-wrap: anywhere;
}
.driverProfileCard .driverProfileRating {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}
.driverProfileCard .driverProfileRating .ratingSummary {
  font-size: 12px;
}
.driverProfileCard .driverProfileStatus {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.driverProfileCard .driverAvailability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f0ee;
  color: #63696e;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.driverProfileCard .driverAvailability > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.driverProfileCard .driverAvailability.isAvailable {
  background: #e9f5ec;
  color: #287345;
}
.driverProfileCard .driverOwnProfile {
  color: var(--muted, #687283);
  font-size: 12px;
}
.driverProfileCard .driverProfileFacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 24px;
  margin-top: 20px;
  padding: 15px 18px;
  background: #faf9f6;
  border: 1px solid var(--line, #e8e4de);
  border-radius: 10px;
}
.driverProfileCard .driverProfileFact {
  min-width: 0;
}
.driverProfileCard .driverProfileFact > span,
.driverProfileCard .driverProfileLabel {
  display: block;
  color: var(--muted, #687283);
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 4px;
}
.driverProfileCard .driverProfileFact p {
  color: var(--ink, #101e35);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.driverProfileCard .driverLicenseExpiry {
  display: inline-block;
  white-space: nowrap;
}
.driverProfileCard .driverLicenseNotice {
  display: block;
  color: #986032;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}
.driverProfileCard .driverProfileVehicles {
  margin-top: 16px;
}
.driverProfileCard .driverVehicleChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.driverProfileCard .driverVehicleChips .chip {
  display: inline-block;
  max-width: 100%;
  background: #f5f1eb;
  color: #5b6471;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.driverProfileCard .driverProfileBio {
  margin-top: 12px;
  color: var(--muted, #687283);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.driverProfileCard .driverProfileFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line, #e8e4de);
  margin-top: 18px;
  padding-top: 16px;
}
.driverProfileCard .driverProfileRate small {
  display: block;
  font-size: 11px;
  color: var(--muted, #687283);
}
.driverProfileCard .driverProfileRate p {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 1px;
  color: var(--ink, #101e35);
  line-height: 1.5;
}
.driverProfileCard .driverProfileRate b {
  font-size: 25px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.driverProfileCard .driverProfileRate p > span {
  font-size: 12px;
  color: var(--muted, #687283);
}
.driverProfileCard .driverProfileRate .driverRateUnset {
  font-size: 14px;
  margin-top: 4px;
}
.driverProfileCard .driverProfileAction {
  text-align: end;
  min-width: 0;
}
.driverProfileCard .driverMessageButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  color: #fff;
  background: var(--green, #d94c05) !important;
  border: 1px solid var(--green, #d94c05) !important;
  border-radius: 9px;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
.driverProfileCard .driverMessageButton svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.driverProfileCard .driverMessageButton:hover:not(:disabled) {
  background: #bd4000 !important;
  border-color: #bd4000 !important;
}
.driverProfileCard .driverMessageButton:focus-visible {
  outline: 3px solid #e86a22;
  outline-offset: 4px;
}
.driverProfileCard .driverMessageButton:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
.driverProfileCard .driverTestHint {
  display: block;
  font-size: 11px;
  color: var(--muted, #687283);
  margin-top: 5px;
  line-height: 1.5;
}
@media (max-width: 650px) {
  #driverResults.driverGrid .driverProfileCard {
    padding: 18px;
  }
  .driverProfileCard .driverProfileHeading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .driverProfileCard .driverProfileIdentity {
    gap: 10px;
    flex: 1 1 240px;
  }
  .driverProfileCard .driverProfileAvatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
  }
  .driverProfileCard h3 {
    font-size: 17px;
  }
  .driverProfileCard .driverProfileStatus {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .driverProfileCard .driverProfileFacts {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
    margin-top: 15px;
  }
  .driverProfileCard .driverProfileFact + .driverProfileFact {
    border-top: 1px solid var(--line, #e8e4de);
    padding-top: 11px;
  }
  .driverProfileCard .driverProfileFooter {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .driverProfileCard .driverProfileRate b {
    font-size: 23px;
  }
  .driverProfileCard .driverProfileAction {
    max-width: 100%;
  }
  .driverProfileCard .driverMessageButton {
    font-size: 13px;
    padding: 10px 12px;
    max-width: 100%;
  }
}
@media (max-width: 360px) {
  .driverProfileCard .driverProfileIdentity {
    flex-basis: 100%;
  }
  .driverProfileCard .driverProfileFooter {
    align-items: stretch;
  }
  .driverProfileCard .driverProfileAction {
    flex-basis: 100%;
    text-align: start;
  }
  .driverProfileCard .driverMessageButton {
    width: 100%;
  }
}
/* Match the existing night palette from experience.css. */
html[data-theme='night'] #driverResults.driverGrid .driverProfileCard {
  background: #1e2c3e !important;
  border-color: #43536b !important;
  color: #eef3fb;
  box-shadow: 0 4px 18px #0000000d;
}
html[data-theme='night'] .driverProfileCard .driverProfileAvatar {
  background: #2b3c52;
  color: #eef3fb;
}
html[data-theme='night'] .driverProfileCard .driverProfileFacts {
  background: #253244;
  border-color: #465267;
}
html[data-theme='night']
  .driverProfileCard
  :is(h3, .driverProfileFact p, .driverProfileRate p, .driverProfileRate b) {
  color: #eef3fb;
}
html[data-theme='night']
  .driverProfileCard
  :is(
    .driverProfileLocation,
    .driverOwnProfile,
    .driverProfileFact > span,
    .driverProfileLabel,
    .driverProfileBio,
    .driverProfileRate small,
    .driverProfileRate p > span,
    .driverTestHint
  ) {
  color: #c1cbdb;
}
html[data-theme='night'] .driverProfileCard .driverLicenseNotice {
  color: #ffc48e;
}
html[data-theme='night'] .driverProfileCard .driverVehicleChips .chip {
  background: #2b3c52 !important;
  color: #eef3fb !important;
}
html[data-theme='night'] .driverProfileCard .driverAvailability {
  background: #30415a;
  color: #e8effa;
}
html[data-theme='night'] .driverProfileCard .driverAvailability.isAvailable {
  background: #1d3b33;
  color: #c3f5df;
}
html[data-theme='night'] .driverProfileCard .driverProfileFooter,
html[data-theme='night'] .driverProfileCard .driverProfileFact + .driverProfileFact {
  border-color: #43536b;
}
html[data-theme='night'] .driverProfileCard .driverMessageButton {
  background: #dc580d !important;
  border-color: #dc580d !important;
  color: #fff;
}
html[data-theme='night'] .driverProfileCard .driverMessageButton:hover:not(:disabled) {
  background: #bc4808 !important;
  border-color: #bc4808 !important;
}
