.finder-page {
  background: #f3f7f5;
}
.finder-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.finder-home,
#show-watchlist {
  border: 0;
  background: #e8f1ed;
  color: #063f2f;
  padding: 11px 15px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}
.finder-hero {
  padding: 75px 7vw;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(2, 39, 29, 0.94), rgba(5, 85, 62, 0.72)),
    url("assets/carprince-showroom-hero.png") center/cover;
}
.finder-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.finder-hero > p:last-child {
  max-width: 650px;
  color: #d5e8df;
  line-height: 1.7;
}
.finder-layout {
  padding: 55px 5vw 90px;
  display: grid;
  grid-template-columns: minmax(260px, 350px) 1fr;
  gap: 35px;
  align-items: start;
}
.finder-panel {
  position: sticky;
  top: 105px;
  background: #0a3026;
  color: #fff;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16);
}
.finder-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.finder-title h2 {
  margin: 0;
}
.finder-title button {
  border: 0;
  background: transparent;
  color: #a9cbbd;
  font-weight: 800;
}
.finder-panel label {
  color: #fff;
  margin-bottom: 15px;
}
.finder-panel select {
  background: #123f33;
  color: #fff;
  border-color: #477064;
}
.finder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.search-button {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(#f0ca62, #d7a62b);
  color: #173126;
}
.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.results-heading h2 {
  margin: 0;
}
.result-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-controls button,
.result-controls select {
  border: 1px solid #cad9d2;
  background: #fff;
  color: #315047;
  padding: 10px 13px;
  border-radius: 9px;
  font-weight: 800;
}
.result-controls button.active {
  background: #063f2f;
  color: #fff;
}
.finder-results .vehicle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finder-card {
  position: relative;
}
.watch-button {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #063f2f;
  font-size: 1.55rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.watch-button.saved {
  background: #e4b84a;
  color: #fff;
}
.no-results {
  text-align: center;
  background: #fff;
  border: 1px solid #dbe5e0;
  border-radius: 18px;
  padding: 55px 25px;
}
.no-results p {
  color: #66736e;
  max-width: 560px;
  margin: 12px auto 25px;
}
@media (max-width: 900px) {
  .finder-layout {
    grid-template-columns: 1fr;
  }
  .finder-panel {
    position: static;
  }
  .finder-results .vehicle-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .finder-header-actions {
    gap: 5px;
  }
  .finder-home {
    display: none;
  }
  .finder-hero {
    padding: 55px 6vw;
  }
  .finder-layout {
    padding: 28px 5vw 70px;
  }
  .finder-results .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .finder-panel {
    padding: 20px;
  }
  .result-controls {
    width: 100%;
  }
  .result-controls select {
    flex: 1;
  }
  .finder-row {
    grid-template-columns: 1fr;
  }
}

/* CARPRINCE search-result cards: image first, details and actions below */
.finder-results .vehicle-grid {
  gap: 24px;
}
.finder-card {
  overflow: hidden;
  border: 1px solid #dce5e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 63, 47, 0.09);
}
.finder-image {
  position: relative;
  background: #edf2ef;
  overflow: hidden;
}
.finder-image img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
}
.finder-image span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(5, 38, 29, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.finder-card .vehicle-info {
  padding: 22px;
}
.finder-card .price {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #101915;
}
.finder-card h3 {
  margin: 0 0 15px;
  font-size: 1.06rem;
  line-height: 1.4;
}
.finder-card .vehicle-location {
  margin: 0 0 7px;
  color: #38564d;
  font-weight: 700;
}
.finder-card .vehicle-details {
  margin: 0;
  color: #6a7772;
  font-size: 0.78rem;
}
.card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 20px;
}
.card-actions .button {
  min-height: 48px;
  padding: 12px 17px;
}
.call-button {
  border: 2px solid #103d31;
  background: #fff;
  color: #103d31;
}
.watch-button {
  background: rgba(255, 255, 255, 0.95);
}
@media (max-width: 1100px) and (min-width: 901px) {
  .finder-image img {
    height: 235px;
  }
  .card-actions {
    grid-template-columns: 1fr;
  }
  .card-actions .button {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .finder-image img {
    height: 245px;
  }
}
@media (max-width: 620px) {
  .finder-results .vehicle-grid {
    gap: 26px;
  }
  .finder-image img {
    height: 260px;
  }
  .finder-card .vehicle-info {
    padding: 20px;
  }
  .finder-card .price {
    font-size: 1.45rem;
  }
  .card-actions {
    grid-template-columns: 1fr 1.55fr;
  }
  .card-actions .button {
    padding: 12px 10px;
  }
}

/* Inventory density requested: four across on PC, three across on phones */
@media (min-width: 901px) {
  .finder-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }
  .finder-results .vehicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
  .finder-image img {
    height: 142px;
  }
  .finder-card .vehicle-info {
    padding: 13px;
  }
  .finder-card .price {
    font-size: 0.95rem;
  }
  .finder-card h3 {
    font-size: 0.76rem;
    margin-bottom: 8px;
  }
  .finder-card .vehicle-location,
  .finder-card .vehicle-details {
    font-size: 0.63rem;
  }
  .card-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 11px;
  }
  .card-actions .button {
    min-height: 35px;
    padding: 7px 6px;
    font-size: 0.64rem;
  }
}
@media (max-width: 620px) {
  .finder-layout {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .finder-results .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .finder-image img {
    height: 82px;
  }
  .finder-image span {
    padding: 4px 4px;
    font-size: 0.42rem;
    letter-spacing: 0;
  }
  .finder-card {
    border-radius: 9px;
  }
  .finder-card .vehicle-info {
    padding: 7px 6px;
  }
  .finder-card .price {
    font-size: 0.66rem;
    margin-bottom: 5px;
    line-height: 1.18;
  }
  .finder-card h3 {
    font-size: 0.58rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .finder-card .vehicle-location,
  .finder-card .vehicle-details {
    font-size: 0.49rem;
    line-height: 1.25;
  }
  .finder-card .vehicle-details {
    min-height: 24px;
  }
  .watch-button {
    right: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
  .card-actions {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 7px;
  }
  .card-actions .button {
    min-height: 27px;
    padding: 5px 2px;
    font-size: 0.47rem;
    border-width: 1px;
    border-radius: 6px;
  }
  .results-heading {
    margin-bottom: 13px;
  }
}

/* Consistent landscape vehicle photography without cutting off the car */
.finder-image {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3f1;
}
.finder-image img {
  width: 100%;
  height: 100% !important;
  aspect-ratio: 16/10;
  object-fit: contain;
  object-position: center;
}
.finder-image span {
  z-index: 2;
}
@media (min-width: 901px) {
  .finder-image,
  .finder-image img {
    aspect-ratio: 16/10;
    height: auto !important;
  }
}
@media (max-width: 620px) {
  .finder-image,
  .finder-image img {
    aspect-ratio: 16/10;
    height: auto !important;
  }
  .finder-image {
    min-height: 68px;
  }
}

#account-button {
  border: 0;
  background: #063f2f;
  color: #fff;
  padding: 11px 15px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}
.account-dialog {
  width: min(92vw, 470px);
  border: 0;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.account-dialog::backdrop {
  background: rgba(0, 22, 16, 0.7);
}
.account-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}
.account-dialog h2 {
  margin: 0 0 8px;
  color: #063f2f;
}
.account-dialog > div > p:not(.eyebrow) {
  color: #66736e;
  line-height: 1.55;
}
.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 18px;
  border-bottom: 1px solid #d5e1dc;
}
.account-tabs button {
  border: 0;
  background: transparent;
  padding: 12px;
  font-weight: 800;
  color: #64736d;
  cursor: pointer;
}
.account-tabs button.active {
  color: #063f2f;
  border-bottom: 3px solid #0b8059;
}
.account-form {
  display: grid;
  gap: 14px;
}
.account-form label {
  font-weight: 700;
  color: #29483f;
}
.account-form input {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: 1px solid #bfd0c9;
  border-radius: 9px;
  font: inherit;
}
.account-message {
  min-height: 22px;
  margin: 13px 0 0;
  color: #9b3f2f !important;
  font-weight: 700;
}
.account-message.success {
  color: #08704e !important;
}
.naira-equivalent {
  display: block;
  margin-top: 5px;
  color: #446158;
  font-size: 0.72rem;
}
.finder-image {
  position: relative;
}
.listing-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff;
  color: #8b1d1d;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.vehicle-thumbs {
  display: flex;
  gap: 7px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.vehicle-thumbs img {
  flex: 0 0 74px;
  width: 74px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}
.vehicle-specs {
  margin: 12px 0;
  font-size: 0.78rem;
}
.vehicle-specs summary {
  color: #07533e;
  font-weight: 800;
  cursor: pointer;
}
.vehicle-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0;
}
.vehicle-specs dl div {
  border-bottom: 1px solid #e1e8e4;
  padding-bottom: 5px;
}
.vehicle-specs dt {
  color: #66756e;
  font-size: 0.67rem;
  text-transform: uppercase;
}
.vehicle-specs dd {
  margin: 2px 0 0;
  font-weight: 700;
}
@media (max-width: 620px) {
  #account-button {
    padding: 9px 8px;
    font-size: 0.65rem;
  }
  .account-dialog {
    padding: 28px 20px;
  }
  .finder-header-actions #show-watchlist {
    padding: 9px 8px;
    font-size: 0.65rem;
  }
}
