/* ============================================================================================
   Car Hire Search Results (Views/CarHireSearchResults.cshtml) - the real, fully-built results
   page, ported from F:\CyprusParadise-NewDesigns\prototypes\car-hire\index.html's own styles.css
   (.hire-*/.ribbon) - adapted from the prototype's own --cp-* tokens to this site's real --home-*
   ones, .hp2-scoped like every other redesigned page on this site. The search bar itself
   (.aip-search-bar, AipSearchDropdowns.css - already linked on this page) and the shared aside/
   checkout-placeholder pieces (.summary/.kicker/.note/.page-foot/.xfrs-soon, TransferResults.css
   - also already linked) aren't duplicated here - see this page's own header comment. */

.hp2 .chrs-search-row {
  padding-top: 16px;
}

.hp2 .hire-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  padding: 24px 0 48px;
}

.hp2 .hire-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 16px;
}

.hp2 .hire-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--home-primary-dark);
}

.hp2 .hire-head h1 {
  margin: 0;
  font-size: 28px;
  font-family: var(--home-font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-primary-deep);
}

.hp2 .hire-sort select {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
  font-weight: 800;
  color: var(--home-primary-deep);
  box-shadow: inset 0 0 0 1px var(--home-border);
  cursor: pointer;
}

/* ---- Category filter tabs (only rendered when real vehicle-group data gives more than one
   distinct type to filter by - see the view's own comment) ---- */

.hp2 .hire-panel {
  margin: 0 0 18px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 68, 67, 0.06);
}

.hp2 .hire-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hp2 .hire-types button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  color: var(--home-text);
  cursor: pointer;
}

.hp2 .hire-types button:hover {
  background: var(--home-page-bg);
}

.hp2 .hire-types button.is-on {
  background: var(--home-primary);
  color: #fff;
}

/* ---- Result cards ---- */

.hp2 .hire-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 188px;
  gap: 20px;
  margin: 0 0 14px;
  padding: 12px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 68, 67, 0.08);
}

.hp2 .hire-card:hover {
  box-shadow: 0 14px 32px rgba(16, 68, 67, 0.12);
}

.hp2 .hire-card.is-on {
  box-shadow:
    0 0 0 2px var(--home-primary),
    0 14px 32px rgba(2, 170, 169, 0.16);
}

.hp2 .hire-card[hidden] {
  display: none;
}

.hp2 .hire-card__media {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--home-primary-mist), var(--home-page-bg));
  border-radius: 10px;
  overflow: hidden;
  min-height: 148px;
}

.hp2 .hire-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: transparent;
}

.hp2 .hire-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}

.hp2 .hire-card h2,
.hp2 .hire-card h3 {
  margin: 0 0 2px;
  font-size: 22px;
  font-family: var(--home-font-display);
  letter-spacing: -0.03em;
  color: var(--home-primary-deep);
}

/* ---- Vehicle class sections (Economy / Compact / SUV ... - the class each car's API vehicle
   group belongs to, see CarHireGroupClass) ---- */

.hp2 .hire-group + .hire-group {
  margin-top: 28px;
}

.hp2 .hire-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--home-primary-mist, #def6f5);
  font-size: 20px;
  font-family: var(--home-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-primary-deep);
}

.hp2 .hire-group__title span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--home-text-muted, #707070);
}

.hp2 .hire-card__class {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .hire-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.hp2 .hire-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--home-page-bg);
  font-size: 12px;
  font-weight: 800;
}

.hp2 .hire-specs svg {
  width: 15px;
  height: 15px;
  color: var(--home-primary-dark);
}

.hp2 .hire-pick {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-primary-deep);
}

.hp2 .hire-perk {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1a8f5a;
}

.hp2 .hire-card__pay {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 8px 8px 18px;
  border-left: 1px solid var(--home-border);
}

.hp2 .hire-card__pay em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .hire-card__pay strong {
  font-family: var(--home-font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--home-primary-deep);
}

.hp2 .hire-card__pay small {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .hire-card__pay .btn {
  min-width: 148px;
}

/* ---- Aside / mobile dock ---- */

.hp2 .hire-aside {
  position: sticky;
  top: 16px;
}

.hp2 .hire-aside .summary {
  position: static;
}

.hp2 .hire-aside .btn {
  margin-top: 12px;
}

.hp2 .hire-dock {
  display: none;
}

@media (max-width: 1100px) {
  .hp2 .hire-card {
    grid-template-columns: 180px minmax(0, 1fr) 168px;
  }
}

@media (max-width: 980px) {
  .hp2 .hire-layout {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .hp2 .hire-aside {
    position: static;
  }

  .hp2 .desktop-summary {
    display: none;
  }

  .hp2 .hire-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hp2 .hire-card img,
  .hp2 .hire-card__media {
    height: 180px;
    min-height: 180px;
  }

  .hp2 .hire-card__pay {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 12px 4px 4px;
    border-left: 0;
    border-top: 1px solid var(--home-border);
  }

  .hp2 .hire-card__pay .btn {
    margin-left: auto;
  }

  .hp2 .hire-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -8px 24px rgba(16, 68, 67, 0.16);
  }

  .hp2 .hire-dock p {
    margin: 0;
    min-width: 0;
  }

  .hp2 .hire-dock strong {
    display: block;
    font-family: var(--home-font-display);
    font-size: 22px;
    line-height: 1.1;
  }

  .hp2 .hire-dock span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-text-muted);
  }

  .hp2 .hire-dock .btn {
    flex-shrink: 0;
    min-height: 48px;
  }

  .hp2 .hire-dock .btn:disabled {
    opacity: 0.55;
  }
}

@media (max-width: 720px) {
  .hp2 .hire-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hp2 .hire-head h1 {
    font-size: 22px;
  }

  .hp2 .hire-card,
  .hp2 .hire-card.is-on {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hp2 .hire-card img,
  .hp2 .hire-card__media {
    height: 170px;
    min-height: 170px;
  }

  .hp2 .hire-card__pay {
    flex-direction: column;
    align-items: stretch;
  }

  .hp2 .hire-card__pay .btn {
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
  }
}

/* ---- Insurance & extras step (Views/CarHireSummary.cshtml) ----
   The card/row/hero-band classes themselves come from Summary-v2.css (same ones the transfer
   Summary page uses) - this only adds what a tick-box row needs on top: the whole row is the
   click target (it's a <label>), and the checkbox gets a proper tap-sized, brand-coloured box. */
.hp2 label.extra-row {
  cursor: pointer;
}

/* Price + checkbox pair on the right of each extra (CarHireSummary.cshtml, as extras.html has it). */
.hp2 label.extra-row > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
  color: var(--home-ink, #141515);
}

.hp2 label.extra-row input[type='checkbox'] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--home-primary, #02aaa9);
  cursor: pointer;
}

.hp2 .hero-band .btn {
  margin-top: 4px;
}
