/* Post Property — highway road (asphalt lane + yellow dotted centerline) */

.post-property {
  --pp-ink: #12263a;
  --pp-muted: #5a6f82;
  --pp-teal: #0d9488;
  --pp-teal-deep: #0f766e;
  --pp-sky: #e8f7f5;
  --pp-coral: #f97316;
  --pp-road: #3d4a57;
  --pp-road-deep: #2a3340;
  --pp-dash: #facc15;
  --pp-dash-dim: rgba(250, 204, 21, 0.35);
  --pp-surface: #ffffff;
  --pp-line: rgba(15, 118, 110, 0.12);
  --pp-radius: 1.2rem;
  --pp-shadow: 0 16px 40px rgba(18, 38, 58, 0.1);
  --pp-lane: 5rem;
  position: relative;
  max-width: 920px;
  margin: 0 auto 4rem;
  padding: 0 2.75rem 2.5rem;
  color: var(--pp-ink);
  overflow: visible;
}

.post-property::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #dbeaf5;
  background-image:
    linear-gradient(
      180deg,
      rgba(219, 234, 245, 0.78) 0%,
      rgba(233, 242, 244, 0.82) 32%,
      rgba(240, 244, 247, 0.88) 62%,
      rgba(232, 238, 242, 0.92) 100%
    ),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 8%, rgba(56, 189, 248, 0.12), transparent 50%),
    url("../Images/landing-hero-1.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

/* Sun sits in the page sky — below sticky banner, never under it */
.post-property::after {
  content: "";
  position: absolute;
  top: 7.75rem;
  right: -0.35rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 35%, #fffbeb 0%, #fbbf24 42%, #f59e0b 68%, rgba(245, 158, 11, 0.15) 78%, transparent 82%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.55),
    0 0 36px 14px rgba(251, 191, 36, 0.4),
    0 0 72px 28px rgba(251, 191, 36, 0.18);
  opacity: 0.95;
  animation: postSunGlow 6s ease-in-out infinite alternate;
}

@keyframes postSunGlow {
  from {
    transform: scale(1);
    opacity: 0.75;
  }
  to {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

/* Slim highway bar + roadside billboards (replaces tall hero) */
.post-hwy-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  grid-template-areas:
    "sign road boards"
    "meta meta meta";
  align-items: end;
  gap: 0.35rem 0.75rem;
  margin: 0 -0.25rem 1rem;
  padding: 0.55rem 0.65rem 0.55rem;
  border-radius: 0.85rem;
  background: linear-gradient(90deg, #0f766e 0%, #0e7490 55%, #1e3a5f 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 70, 90, 0.22);
  overflow: visible;
  isolation: isolate;
}

.post-hwy-bar__sign {
  grid-area: sign;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding-bottom: 0.15rem;
}

.post-hwy-bar__badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.95);
  color: #12263a;
  font-size: 0.95rem;
  flex: 0 0 auto;
  box-shadow: 0 2px 0 #b45309;
}

.post-hwy-bar__kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1;
}

.post-hwy-bar__title {
  margin: 0.12rem 0 0;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.post-hwy-bar__road {
  grid-area: road;
  align-self: center;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3d4a57 0%, #1e293b 100%);
  position: relative;
  overflow: visible;
  margin: 0.35rem 0 0.65rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.post-hwy-bar__dash {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    #facc15 0 10px,
    transparent 10px 18px
  );
  background-size: 28px 2px;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.95;
  animation: postDashScroll 0.85s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes postDashScroll {
  from {
    background-position: 0 center;
  }
  to {
    background-position: -28px center;
  }
}

/* —— Real mini cars (CSS) —— */
.post-car {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.post-car__body {
  position: relative;
  width: 22px;
  height: 38px;
  border-radius: 7px 7px 9px 9px;
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 55%, #115e59 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 3px 8px rgba(15, 70, 80, 0.35);
}

.post-car__windshield {
  position: absolute;
  top: 7px;
  left: 3px;
  right: 3px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
  opacity: 0.95;
}

.post-car__roof {
  position: absolute;
  top: 16px;
  left: 2px;
  right: 2px;
  height: 10px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
}

.post-car__hood {
  position: absolute;
  bottom: 5px;
  left: 3px;
  right: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.post-car__wheel {
  position: absolute;
  width: 5px;
  height: 8px;
  border-radius: 2px;
  background: #1e293b;
  box-shadow: inset 0 0 0 1px #64748b;
}

.post-car__wheel--fl { top: 8px; left: -3px; }
.post-car__wheel--fr { top: 8px; right: -3px; }
.post-car__wheel--rl { bottom: 6px; left: -3px; }
.post-car__wheel--rr { bottom: 6px; right: -3px; }

.post-car__head {
  position: absolute;
  bottom: 2px;
  width: 5px;
  height: 3px;
  border-radius: 1px;
  background: #fde68a;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

.post-car__head--l { left: 3px; }
.post-car__head--r { right: 3px; }

.post-car__shadow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 26px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(15, 40, 50, 0.22);
  filter: blur(1px);
}

/* Side-view car for top sticky road — high contrast on teal bar */
.post-car__body--side {
  position: relative;
  display: block;
  width: 36px;
  height: 16px;
  border-radius: 6px 11px 5px 5px;
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 45%, #d97706 100%);
  border: 1px solid #92400e;
  box-shadow:
    0 2px 0 #78350f,
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.post-car__cabin-s {
  position: absolute;
  top: 1px;
  left: 11px;
  width: 12px;
  height: 7px;
  border-radius: 3px 5px 1px 1px;
  background: linear-gradient(180deg, #e0f2fe, #38bdf8);
  border: 1px solid rgba(14, 116, 144, 0.45);
  box-sizing: border-box;
}

.post-car__wheel-s {
  position: absolute;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: inset 0 0 0 1.5px #cbd5e1;
  animation: postWheelSpin 0.4s linear infinite;
  z-index: 2;
}

.post-car__wheel-s--f { left: 4px; }
.post-car__wheel-s--b { right: 4px; }

.post-car--bar {
  top: 50%;
  left: 4%;
  z-index: 5;
  transform: translate(-50%, -50%);
  animation: postCarDriveBar 8s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.post-car--lane {
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  transition: top 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: top;
}

.post-car--lane .post-car__body {
  animation: postCarBob 0.55s ease-in-out infinite;
}

.post-car--lane.is-hop .post-car__body {
  animation: postCarHopBody 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes postCarDriveBar {
  0% {
    left: 4%;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  6% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  92% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    left: 96%;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

@keyframes postCarBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes postCarHopBody {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-8px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes postWheelSpin {
  to { transform: rotate(360deg); }
}

.post-billboards {
  grid-area: boards;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: flex-end;
  justify-content: flex-end;
}

.post-billboard {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: inherit;
  transition: transform 0.15s ease;
}

.post-billboard:hover {
  transform: translateY(-2px);
}

.post-billboard__pole {
  width: 3px;
  height: 0.55rem;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 1px;
}

.post-billboard__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.28rem 0.35rem 0.32rem;
  border-radius: 0.35rem;
  background: #0b1220;
  border: 2px solid #fbbf24;
  box-shadow:
    0 3px 0 #92400e,
    0 6px 14px rgba(0, 0, 0, 0.25);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.72);
}

.post-billboard__face em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.06em;
}

.post-billboard.is-active .post-billboard__face {
  background: linear-gradient(160deg, #0d9488, #0f766e);
  border-color: #fde68a;
  color: #fff;
  box-shadow:
    0 3px 0 #0b5c56,
    0 0 0 3px rgba(251, 191, 36, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.post-billboard.is-active .post-billboard__face em {
  color: #fff;
}

.post-billboard.is-done .post-billboard__face {
  background: #134e4a;
  border-color: #5eead4;
  color: #ccfbf1;
}

.post-billboard.is-done .post-billboard__face em {
  color: #5eead4;
}

.post-hwy-bar__meta {
  grid-area: meta;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* Legacy hero/route/sticky kept unused — hide if leftover markup appears */
.post-property__hero,
.post-route-board,
.post-journey-sticky {
  display: none !important;
}

/* —— Real asphalt lane + roadside décor —— */
.post-highway {
  position: relative;
  padding-left: 0;
  overflow: visible;
  z-index: 1;
}

/* Per-stop houses/lamps — locked to milestone Y */
.post-stop__decor {
  position: absolute;
  top: calc(0.55rem + 1.675rem);
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.post-stop__decor--left {
  left: -2.75rem;
  width: 2.4rem;
}

.post-stop__decor--right {
  right: -2.75rem;
  width: 2.4rem;
}

.post-building,
.post-streetlamp {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.post-building {
  width: 2.15rem;
  padding: 0.28rem 0.2rem 0.22rem;
  border-radius: 0.65rem;
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  border: 1px solid rgba(194, 65, 12, 0.22);
  box-shadow: 0 4px 12px rgba(18, 38, 58, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-building__roof {
  width: 0;
  height: 0;
  border-left: 0.9rem solid transparent;
  border-right: 0.9rem solid transparent;
  border-bottom: 0.58rem solid #c2410c;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

.post-building__wall {
  width: 1.45rem;
  height: 1.2rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #d6b48a;
  border-radius: 1px 1px 2px 2px;
  position: relative;
}

.post-building__wall::before,
.post-building__wall::after {
  content: "";
  position: absolute;
  top: 0.26rem;
  width: 0.3rem;
  height: 0.3rem;
  background: #7dd3fc;
  border: 1px solid rgba(14, 116, 144, 0.35);
  border-radius: 1px;
  box-shadow: 0 0.42rem 0 #7dd3fc;
}

.post-building__wall::before { left: 0.2rem; }
.post-building__wall::after { right: 0.2rem; }

.post-building--tall {
  background: linear-gradient(165deg, #ecfeff 0%, #cffafe 55%, #a5f3fc 100%);
  border-color: rgba(15, 118, 110, 0.28);
}

.post-building--tall .post-building__wall {
  height: 1.65rem;
  background: linear-gradient(180deg, #ecfeff 0%, #cffafe 100%);
  border-color: #99f6e4;
}

.post-building--tall .post-building__roof {
  border-bottom-color: #0f766e;
}

.post-building--wide {
  width: 2.35rem;
  background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(100, 116, 139, 0.35);
}

.post-building--wide .post-building__roof {
  border-left-width: 1.05rem;
  border-right-width: 1.05rem;
  border-bottom-color: #ea580c;
}

.post-building--wide .post-building__wall {
  width: 1.85rem;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border-color: #94a3b8;
}

.post-streetlamp {
  width: 2.15rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 62% 28%, rgba(250, 204, 21, 0.35) 0%, transparent 42%),
    linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  border: 1px solid rgba(15, 23, 42, 0.45);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.post-streetlamp__pole {
  position: absolute;
  left: 42%;
  bottom: 0.28rem;
  width: 3px;
  height: 1.25rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #cbd5e1, #64748b 40%, #334155);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.post-streetlamp__pole::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 2.5px;
  transform: translateX(-12%);
  background: linear-gradient(90deg, #94a3b8, #e2e8f0);
  border-radius: 1px;
}

.post-streetlamp__bulb {
  position: absolute;
  top: 0.32rem;
  left: 58%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbeb, #facc15 48%, #ca8a04);
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.25),
    0 0 14px 5px rgba(250, 204, 21, 0.65);
  animation: postLampGlow 2.6s ease-in-out infinite;
}

@keyframes postLampGlow {
  0%, 100% { opacity: 0.88; filter: brightness(0.98); }
  50% { opacity: 1; filter: brightness(1.25); }
}

/* Asphalt road — top/bottom set in JS to circle centers */
.post-highway__road {
  position: absolute;
  left: calc(var(--pp-lane) / 2);
  top: 2.2rem;
  bottom: 4rem;
  width: 28px;
  z-index: 0;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 12px;
  overflow: visible;
}

.post-highway__asphalt {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #526070 0%,
    var(--pp-road-deep) 16%,
    var(--pp-road) 50%,
    var(--pp-road-deep) 84%,
    #526070 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(148, 163, 184, 0.22),
    0 10px 22px rgba(15, 40, 50, 0.14);
}

.post-highway__curb {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f1f5f9;
  opacity: 0.9;
}

.post-highway__curb--l { left: 3px; }
.post-highway__curb--r { right: 3px; }

.post-highway__asphalt::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    180deg,
    var(--pp-dash-dim) 0 9px,
    transparent 9px 17px
  );
  background-size: 3px 17px;
  z-index: 0;
}

.post-highway__asphalt::after {
  content: none;
}

.post-highway__road::before {
  content: none;
}

.post-highway__centerline {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    180deg,
    var(--pp-dash) 0 9px,
    transparent 9px 17px
  );
  background-size: 3px 17px;
  filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.5));
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  border-radius: 1px;
}

.post-highway__form {
  display: contents;
}

/* —— Happy the end board —— */
.post-end-board {
  position: relative;
  display: grid;
  grid-template-columns: var(--pp-lane) minmax(0, 1fr);
  gap: 0.75rem 1.15rem;
  align-items: start;
  margin: 0.25rem 0 1.5rem;
  z-index: 1;
}

.post-end-board__mile {
  display: flex;
  justify-content: center;
  padding-top: 1.35rem;
  position: relative;
  z-index: 2;
}

.post-end-board__finish-line {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      -45deg,
      #0f766e 0 6px,
      #fde68a 6px 12px
    );
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.35),
    0 10px 22px rgba(18, 38, 58, 0.18);
  position: relative;
}

.post-end-board__finish-line::after {
  content: "END";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: rgba(15, 118, 110, 0.55);
  border-radius: 50%;
}

.post-end-board__sign {
  position: relative;
  max-width: 22rem;
  padding-top: 0.35rem;
}

.post-end-board__poles {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 0;
  height: 0.85rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.post-end-board__pole {
  width: 6px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #94a3b8, #475569);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.post-end-board__face {
  margin-top: 0.55rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
  border: 2px solid #fde68a;
  color: #fff;
  box-shadow:
    0 14px 32px rgba(15, 118, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.post-end-board__face::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(253, 230, 138, 0.45);
  pointer-events: none;
}

.post-end-board__badge {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.95);
  color: #0f766e;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.post-end-board__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fef3c7;
}

.post-end-board__title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.post-end-board__sub {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(204, 251, 241, 0.95);
  max-width: 18rem;
}

.post-end-board.is-lit .post-end-board__face {
  animation: postEndGlow 2.2s ease-in-out infinite;
}

@keyframes postEndGlow {
  0%, 100% { box-shadow: 0 14px 32px rgba(15, 118, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 16px 40px rgba(250, 204, 21, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

/* —— Stops / milestones —— */
.post-stop {
  position: relative;
  display: grid;
  grid-template-columns: var(--pp-lane) minmax(0, 1fr);
  gap: 0.75rem 1.15rem;
  margin-bottom: 2rem;
  z-index: 1;
  scroll-margin-top: 4.75rem;
  transition: opacity 0.35s ease;
}

.post-stop.is-locked {
  opacity: 0.48;
}

.post-stop.is-locked .post-stop__body {
  pointer-events: none;
  user-select: none;
}

.post-stop.is-locked .post-stop__lock {
  display: inline-flex;
}

.post-stop__mile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.55rem;
  position: relative;
  z-index: 5;
}

.post-stop__circle {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  border: 4px solid #d7e2e8;
  background: #fff;
  color: var(--pp-muted);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(18, 38, 58, 0.12);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.post-stop__km {
  position: absolute;
  top: -0.45rem;
  right: -0.55rem;
  min-width: 1.55rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pp-teal-deep);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(13, 148, 136, 0.35);
  box-shadow: 0 2px 6px rgba(18, 38, 58, 0.08);
  white-space: nowrap;
}

.post-stop__away {
  display: block;
  margin-top: 0.28rem;
  padding: 0.12rem 0.28rem;
  border-radius: 0.3rem;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--pp-teal-deep);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.post-stop.is-active .post-stop__away {
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.35);
  color: #0f766e;
}

.post-stop.is-done .post-stop__away {
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.post-stop.is-locked .post-stop__away {
  opacity: 0.7;
  color: var(--pp-muted);
  background: rgba(255, 255, 255, 0.75);
}

.post-stop__circle:hover {
  transform: scale(1.07);
}

.post-stop.is-active .post-stop__circle {
  border-color: var(--pp-teal);
  background: linear-gradient(145deg, var(--pp-teal), var(--pp-teal-deep));
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(13, 148, 136, 0.18),
    0 12px 26px rgba(15, 118, 110, 0.28);
  animation: postPulse 2.4s ease-in-out infinite;
}

.post-stop.is-done .post-stop__circle {
  border-color: var(--pp-teal-deep);
  background: var(--pp-teal-deep);
  color: #fff;
  animation: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.post-stop.is-locked .post-stop__circle {
  background: #f3f6f8;
  border-color: #cfd9e0;
  color: #94a3b8;
}

.post-stop__label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--pp-ink);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 3.85rem;
  line-height: 1.15;
  position: relative;
  z-index: 3;
  margin-top: 0.15rem;
  padding: 0.18rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 38, 58, 0.1);
  box-shadow: 0 2px 6px rgba(18, 38, 58, 0.08);
}

.post-stop.is-active .post-stop__label {
  color: var(--pp-ink);
  background: #fff;
  border-color: rgba(13, 148, 136, 0.28);
}

.post-stop.is-done .post-stop__label {
  color: var(--pp-ink);
}

.post-stop.is-locked .post-stop__label {
  color: var(--pp-muted);
  background: rgba(255, 255, 255, 0.72);
}

.post-stop__body {
  min-width: 0;
}

.post-stop__kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pp-teal-deep);
  margin: 0 0 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--pp-sky);
}

.post-stop__lock {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1f5f9, #e8eef3);
  color: var(--pp-muted);
  font-size: 0.8rem;
  font-weight: 650;
  width: fit-content;
  border: 1px dashed #c5d0d8;
}

/* Cards as “rest stops” */
.post-panel__card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: var(--pp-shadow);
  position: relative;
  overflow: hidden;
}

.post-stop.is-active .post-panel__card {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.14);
}

.post-panel__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pp-teal), var(--pp-teal-deep));
  border-radius: 0 2px 2px 0;
}

.post-panel__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.post-panel__badge {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(145deg, var(--pp-teal), var(--pp-teal-deep));
}

.post-panel__badge--warm {
  background: linear-gradient(145deg, #fb923c, var(--pp-coral));
}

.post-panel__title {
  font-family: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}

.post-panel__subtitle {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0.65rem 0 0.3rem;
  color: var(--pp-teal-deep);
}

.post-panel__sub {
  color: var(--pp-muted);
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.post-req {
  color: var(--pp-coral);
  font-weight: 700;
}

.post-hint {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--pp-muted);
}

.post-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 118, 110, 0.18);
}

.post-panel__actions--split {
  justify-content: space-between;
}

.post-panel__reassure {
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--pp-muted);
  font-weight: 500;
}

.post-property .form-label {
  font-weight: 650;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.post-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.post-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--pp-teal);
  pointer-events: none;
}

.post-field__prefix {
  position: absolute;
  left: 2.55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pp-muted);
  pointer-events: none;
}

.post-field .form-control {
  padding-left: 2.55rem;
  border-radius: 0.85rem;
  border-color: rgba(15, 118, 110, 0.2);
  background: #fbfefe;
}

.post-field__phone {
  padding-left: 4.35rem !important;
}

.post-property .form-control,
.post-property .form-select {
  border-radius: 0.85rem;
  border-color: rgba(15, 118, 110, 0.18);
  background: #fbfefe;
}

.post-property .form-control:focus,
.post-property .form-select:focus {
  border-color: var(--pp-teal);
  box-shadow: 0 0 0 0.22rem rgba(13, 148, 136, 0.18);
}

.post-otp-input {
  letter-spacing: 0.4em;
  font-weight: 800;
  font-size: 1.4rem !important;
  border-radius: 1rem !important;
  background: var(--pp-sky) !important;
}

.post-btn {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.2rem !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
}

.post-btn:hover {
  transform: translateY(-1px);
}

.post-btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
  transform: none !important;
  padding-left: 2.35rem !important;
}

.post-btn.is-loading::before,
.create-ai-panel__generate.is-loading::before,
#createAiApplyBtn.is-loading::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: -0.48rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: postBtnSpin 0.7s linear infinite;
}

.create-ai-panel__generate.is-loading,
#createAiApplyBtn.is-loading {
  position: relative;
  pointer-events: none;
  padding-left: 2.35rem !important;
}

.post-btn--soft.is-loading::before,
.post-btn--ghost.is-loading::before,
.post-btn--success.is-loading::before {
  border-color: rgba(15, 118, 110, 0.25);
  border-top-color: var(--pp-teal-deep);
}

@keyframes postBtnSpin {
  to { transform: rotate(360deg); }
}

.post-btn--primary {
  color: #fff !important;
  border: none !important;
  background: linear-gradient(135deg, var(--pp-teal) 0%, var(--pp-teal-deep) 100%) !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.3);
}

.post-btn--success {
  color: #12263a !important;
  border: none !important;
  background: linear-gradient(135deg, #fde68a, var(--pp-dash)) !important;
  box-shadow: 0 10px 22px rgba(251, 191, 36, 0.35);
}

.post-btn--soft {
  color: var(--pp-teal-deep) !important;
  background: var(--pp-sky) !important;
  border: 1px solid rgba(15, 118, 110, 0.22) !important;
}

.post-btn--ghost {
  color: var(--pp-muted) !important;
  background: transparent !important;
  border: 1px solid rgba(90, 111, 130, 0.3) !important;
}

.post-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--pp-sky);
}

.post-flag:has(input:checked) {
  background: #ccfbf1;
  outline: 1px solid var(--pp-teal);
}

.post-map {
  height: 240px;
  width: 100%;
}

.post-media-preview {
  margin-top: 0.7rem;
}

.post-media-preview img,
.post-media-preview video {
  max-height: 160px;
  border-radius: 0.8rem;
  object-fit: cover;
  max-width: 100%;
}

.post-media-preview--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
}

.post-media-preview--grid img {
  width: 100%;
  height: 86px;
  max-height: none;
}

.post-review-grid {
  display: grid;
  gap: 0.75rem;
}

.post-review-card {
  border: 1px solid var(--pp-line);
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #f8fcfc, #fff);
}

.post-review-card__head h3 {
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
  font-weight: 750;
  color: var(--pp-teal-deep);
}

.post-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(15, 118, 110, 0.1);
}

.post-review-row span {
  color: var(--pp-muted);
}

.post-review-row strong {
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.post-property__alert {
  border-radius: 0.9rem;
  border: none;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-property__alert.alert-danger {
  background: #fff1f0;
  color: #9f1239;
}

.post-property__alert.alert-success {
  background: #ecfdf5;
  color: #047857;
}

.post-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(18, 38, 58, 0.5);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.post-submit-overlay[hidden] {
  display: none !important;
}

.post-submit-overlay__panel {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.75rem 2rem;
  text-align: center;
  max-width: 20rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.post-submit-overlay__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid #d5ece8;
  border-top-color: var(--pp-teal);
  border-radius: 50%;
  animation: postSpin 0.7s linear infinite;
}

.post-property .create-ai-panel {
  margin-bottom: 1.1rem;
}

@keyframes postPulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.16), 0 12px 26px rgba(15, 118, 110, 0.28);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0.08), 0 14px 30px rgba(15, 118, 110, 0.34);
  }
}

@keyframes postSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .post-hwy-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sign"
      "road"
      "boards"
      "meta";
    gap: 0.45rem;
  }

  .post-hwy-bar__road {
    display: block;
    grid-area: road;
    width: 100%;
    margin: 0.1rem 0 0.25rem;
  }

  .post-billboards {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .post-billboard__face {
    min-width: 2.85rem;
  }
}

@media (max-width: 576px) {
  .post-property {
  --pp-lane: 3.85rem;
    padding: 0 1rem 2.5rem;
  }

  .post-property::after {
    width: 3.25rem;
    height: 3.25rem;
    top: 11.5rem;
    right: 0.15rem;
    opacity: 0.9;
  }

  .post-property::before {
    background-attachment: scroll;
  }

  .post-stop__decor--left {
    display: none;
  }

  .post-stop__decor--right {
    right: -1.85rem;
    opacity: 0.85;
    top: calc(0.55rem + 1.425rem);
  }

  .post-stop__decor--right .post-building,
  .post-stop__decor--right .post-streetlamp {
    transform: scale(0.9);
    transform-origin: center center;
  }

  .post-hwy-bar__title {
    white-space: normal;
    font-size: 0.92rem;
  }

  .post-stop {
    gap: 0.5rem 0.65rem;
    margin-bottom: 1.5rem;
  }

  .post-stop__circle {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1rem;
  }

  .post-highway__road {
    left: calc(var(--pp-lane) / 2);
    width: 22px;
  }

  .post-car__body {
    width: 18px;
    height: 32px;
  }

  .post-panel__reassure {
    flex: 1 1 100%;
  }

  .post-end-board {
    gap: 0.5rem 0.65rem;
  }

  .post-end-board__finish-line {
    width: 2.2rem;
    height: 2.2rem;
  }

  .post-end-board__title {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-stop.is-active .post-stop__circle,
  .post-highway__centerline,
  .post-property::after,
  .post-streetlamp__bulb,
  .post-car--bar,
  .post-car--lane .post-car__body,
  .post-car__wheel-s,
  .post-hwy-bar__dash,
  .post-car--lane.is-hop .post-car__body,
  .post-end-board.is-lit .post-end-board__face {
    animation: none !important;
    transition: none !important;
  }
}
