* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  min-height: 100svh;
  background: transparent;
}

/* Fixed dreamy background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(110% 55% at 50% -20%,
      rgba(160, 210, 255, 0.75),
      transparent 65%),
    radial-gradient(90% 55% at 50% 120%,
      rgba(255, 200, 215, 0.55),
      transparent 70%),
    linear-gradient(to bottom,
      #fbfdff 0%,
      #fff4f7 100%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(7px  + env(safe-area-inset-right))
    calc(28px + env(safe-area-inset-bottom))
    calc(7px  + env(safe-area-inset-left));
}

.container {
  width: 100%;
  max-width: 820px;
  /* slim centered */
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 0;
}

/* fixed-height sections */
.section--hero {
  height: 150px;
}

.section--sort {
  height: 58px;
}

.section--footer {
  min-height: 120px;
  border-top: 1px solid rgba(255, 180, 200, 0.25);
  padding-top: 14px;
  margin-top: 50px;
}

/* 1) hero */
.hero {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section--hero .hero {
  justify-content: center;
}

.hero__text {
  max-width: 240px;
}

.hero__logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
}

.hero__desc {
  margin: 0 0 6px;
  color: rgba(20, 35, 60, 0.68);
  /* soft blue-gray */
  line-height: 1.35;
  font-size: 14px;
}

.hero__phone {
  display: inline-block;
  color: rgba(15, 25, 45, 0.92);
  /* strong but not harsh */
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
}

/* Menu */
.section--menu {
  padding: 6px 0;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  /* allows 2 lines on mobile */
  padding: 6px 0;
}

.menu__link {
  position: relative;
  text-decoration: none;
  text-align: center;
  padding: 6px 6px 10px;
  color: rgba(20, 35, 60, 0.86);
  font-weight: 650;
  letter-spacing: 0.2px;
  font-size: 14px;
  line-height: 1.15;
}

/* The underline */
.menu__u {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(80, 130, 200, 0.35);
  transition: 180ms ease;
}

/* Hover behavior */
.menu__link:hover .menu__u {
  background: rgba(80, 130, 200, 0.85);
  box-shadow: 0 0 14px rgba(80, 130, 200, 0.35);
}

.menu__link.is-active .menu__u {
  background: rgba(80, 130, 200, 0.90);
  box-shadow: 0 0 16px rgba(80, 130, 200, 0.40);
}

/* Mobile spacing */
@media (max-width: 420px) {
  .menu {
    gap: 10px 14px;
  }

  .menu__link {
    max-width: 120px;
    /* encourages wrapping to 2 lines */
  }
}

/* 2) sort */
.sortbar {
  height: 100%;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
}

/* Base button style (neutral, no background) */
.sortbar .btn {
  background: transparent;
  border: 1px solid rgba(80, 110, 150, 0.28);
  color: rgba(20, 35, 60, 0.72);
  font-weight: 400;
  font-size: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 180ms ease;
}

/* Outer rounded edges */
.sortbar .btn:first-child {
  border-radius: 999px 0 0 999px;
}

.sortbar .btn:last-child {
  border-radius: 0 999px 999px 0;
  border-left: none;
}

/* Hover effect: dreamy glow + stronger border */
@media (hover: hover) and (pointer: fine) {
  .sortbar .btn:hover {
    background: radial-gradient(circle at top,
        rgba(180, 220, 255, 0.55),
        rgba(255, 210, 225, 0.35));
    border-color: rgba(80, 130, 200, 0.45);
    color: rgba(20, 35, 60, 0.88);
  }
}

/* Active press (not "active state", just click feedback) */
.sortbar .btn:active {
  transform: scale(0.98);
}

.sortbar .btn.is-active {
  background: radial-gradient(circle at top,
      rgba(180, 220, 255, 0.55),
      rgba(255, 210, 225, 0.35));
  border-color: rgba(80, 130, 200, 0.45);
  color: rgba(20, 35, 60, 0.88);
}

.sortbar .btn:not(.is-active) .btn-arrow {
  opacity: 0;
}

@media (max-width: 420px) {
  .sortbar {
    width: 100%;
  }

  .sortbar .btn {
    flex: 1;
    text-align: center;
  }
}


.btn {
  min-width: 170px;
  appearance: none;
  border: 1px solid rgba(120, 170, 220, 0.25);
  background: rgba(180, 220, 255, 0.35);
  color: rgba(20, 35, 60, 0.85);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
  position: relative;
}

.btn-arrow {
  margin-left: 6px;
  font-weight: 900;
  opacity: 0.85;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost:hover {
  background: rgba(180, 220, 255, 0.55);
}

/* 3) cars */
.section--cars {
  padding: 14px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 2 columns on “laptop”, 1 on small mobile */
@media (max-width: 320px) {
  .cars-grid {
    grid-template-columns: 1fr;
    /* super small phones only */
  }
}

/* fixed card size */
.car-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  /* translucent white */
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 260px;
  /* fixed H */
  transition: 180ms ease;
  color: rgba(20, 30, 45, 0.92);
}

.car-card:hover {
  border-color: rgba(255, 255, 255, 0.92);
  /* brighter glass */
  transform: translateY(-2px);
  transition: 140ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.car-card__imgwrap {
  height: 150px;
  /* fixed image area */
  background: rgba(255, 255, 255, .04);
  position: relative;
  /* anchor for badge */
  overflow: hidden;
}

.car-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Deposit badge */
.car-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #fff;
  background: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.car-badge--deposit {
  background: #ff8f00;
}

/* orange */
.is-dimmed {
  filter: grayscale(0.2) brightness(0.7);
}

.car-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.car-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.car-card__title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .2px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(15, 25, 40, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* show up to 2 lines */
  -webkit-box-orient: vertical;
}

.car-card__price {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .2px;
  color: #2a5bd7;
  /* sky accent */
}

.car-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: rgba(20, 35, 60, 0.55);
  font-size: 12px;
}

.car-card__status {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(20, 35, 60, 0.70);
  background: rgba(255, 210, 225, 0.35);
  border: 1px solid rgba(255, 180, 200, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  width: fit-content;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-ico {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.meta-ico svg {
  width: 14px;
  height: 14px;
}

/* 4) footer actions */
.actions {
  height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions>a {
  display: block;
}

.action-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.action-link .action-btn {
  width: 100%;
  height: 100%;
}

.action-btn {
  background: rgba(255, 240, 245, 0.55);
  /* soft rose */
  border: 1px solid rgba(255, 180, 200, 0.25);
  color: rgba(20, 35, 60, 0.85);
  text-decoration: none;
  font-weight: 300;
  font-size: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: 160ms ease;
}

.action-link:hover .action-btn {
  background: rgba(255, 210, 225, 0.75);
  /* stronger rose glow */
}

.action-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.action-ico svg {
  width: 22px;
  height: 22px;
}

.copyright {
  margin-top: 10px;
  color: rgba(20, 35, 60, 0.48);
  /* light muted gray-blue */
  font-size: 12px;
  text-align: center;
}

/* Mobile tuning */
@media (max-width: 320px) {
  .section--hero {
    height: 170px;
  }

  .hero {
    align-items: flex-start;
  }

  .hero__logo {
    width: 74px;
    height: 74px;
  }

  .actions {
    grid-template-columns: 1fr;
    height: auto;
  }

  .section--footer {
    height: auto;
    border-top: 1px solid rgba(255, 180, 200, 0.25);
    padding-top: 14px;
    margin-top: 50px;
  }

  .btn {
    min-width: 0;
    width: 100%;
  }

  .sortbar {
    width: 100%;
  }

  .car-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- Car Page --- */

/* Car page container wider on desktop */
.container--car {
  max-width: 980px;
}

@media (max-width: 420px) {
  .container--car {
    max-width: none;
    width: 100%;
  }
}

/* Section 1: compact header */
.section--carhead {
  padding: 6px 0;
}

.carhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carhead__logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}

.carhead__phone {
  text-decoration: none;
  color: rgba(20, 35, 60, 0.90);
  font-weight: 650;
}

/* Back link: underline is separate so it stays single-line */
.backLink {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgba(20, 35, 60, 0.86);
  font-weight: 650;
  padding: 6px 6px 10px;
}

.backLink__u {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(80, 130, 200, 0.35);
  transition: 180ms ease;
}

.backLink:hover .backLink__u {
  background: rgba(80, 130, 200, 0.90);
  box-shadow: 0 0 16px rgba(80, 130, 200, 0.40);
}

/* Photo */
.carphoto {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.carphoto__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Car details */
.cardetail {
  margin-top: 14px;
}

.cardetail__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: rgba(15, 25, 40, 0.95);
  letter-spacing: 0.2px;
}

.cardetail__tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 16px;
  color: rgba(20, 35, 60, 0.80);
  background: rgba(255, 210, 225, 0.35);
  border: 1px solid rgba(255, 180, 200, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Meta block */
.cardetail__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(20, 35, 60, 0.72);
  font-size: 16px;
}

.cardetail__price {
  margin-top: 12px;
  color: #2a5bd7;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: .2px;
}

.cardetail-meta-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.cardetail-meta-ico svg {
  width: 18px;
  height: 18px;
}

/* Description */
.cardetail__desc {
  margin-top: 12px;
  color: rgba(20, 35, 60, 0.90);
  line-height: 1.5;
}

/* More photos */
.morephotos {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.morephotos__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.65);
}

/* Video button */
.video-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  background: none;
  color: rgba(20, 35, 60, 0.90);
  text-decoration: none;

  font-weight: 500;
  font-size: 14px;

  border: 1px solid rgba(20, 35, 60, 0.90);

  transition: all .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .video-pill:hover {
    background: linear-gradient(180deg, rgba(20, 35, 60, 0), rgba(20, 35, 60, 0.06));
    border-color: rgba(20, 35, 60, 0.90);
    transform: translateY(-1px);
  }
}

.video-pill__ico {
  width: 18px;
  height: 18px;
  display: flex;
}

.video-pill__ico svg {
  width: 100%;
  height: 100%;
}

.video-pill__text {
  letter-spacing: .2px;
}

/* Where to find us */
.section--w2f {
  padding: 8px 0;
}

.w2f-title {
  margin: 0 0 15px;
  font-size: 18px;
  color: rgba(20, 35, 60, 0.90);
}

.w2f-subtitle {
  margin: 0 0 8px;
  font-size: 16px;
  color: rgba(20, 35, 60, 0.90);
}

.w2f-text {
  margin: 0;
  color: rgba(20, 35, 60, 0.90);
  line-height: 1.5;
}

.w2f-mapwrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 220, 0.18);
}

.w2f-map {
  width: 100%;
  height: 380px;
  display: block;
  border: 0;
}

@media (max-width: 420px) {
  .w2f-map {
    height: 260px;
  }
}

/* Social pills (darker theme) */
.w2f-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  background: none;
  color: rgba(20, 35, 60, 0.90);
  text-decoration: none;

  font-weight: 500;
  font-size: 14px;

  border: 1px solid rgba(20, 35, 60, 0.90);

  transition: all .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .social-pill:hover {
    background: linear-gradient(180deg, rgba(20, 35, 60, 0), rgba(20, 35, 60, 0.06));
    border-color: rgba(20, 35, 60, 0.90);
    transform: translateY(-1px);
  }
}

/* Photos */
.w2f-photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.w2f-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(120, 170, 220, 0.18);
}

/* footer-about-text */
.footer-about-text {
  margin: 20px auto 0 auto;
  text-align: left;
  font-size: 13px;
  opacity: .5;
  line-height: 1.5;
  color: rgba(20, 35, 60, 0.48);
  max-width: 680px;
}

.footer-about-text p {
  display: inline;
  margin: 0;
}

.footer-about-link {
  text-decoration: none;
  display: inline;
  margin-left: 6px;
}