.jms-units-section {
  position: relative;
  overflow: hidden;
}

.jms-units-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
  color: var(--color-red);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.jms-units-section__eyebrow [data-lucide] {
  width: 17px;
  height: 17px;
}

.jms-units {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem;
}

.jms-unit {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.075);
  transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.jms-unit__media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #191b20;
}

.jms-unit__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent,rgba(0,0,0,.6));
  pointer-events: none;
}

.jms-unit__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.jms-unit__media > span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .42rem .65rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(12,14,17,.74);
  backdrop-filter: blur(8px);
  font-size: .76rem;
  font-weight: 800;
}

.jms-unit__media > span [data-lucide] {
  width: 15px;
  height: 15px;
  color: #ff6d69;
}

.jms-unit__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem,2.6vw,1.7rem);
}

.jms-unit__body h3 {
  margin: 0 0 .55rem;
  color: #111;
  font-size: clamp(1.25rem,2vw,1.55rem);
  font-weight: 900;
  line-height: 1.15;
}

.jms-unit__body h3 a {
  color: inherit;
}

.jms-unit__body address {
  color: #4d5056;
  font-style: normal;
  line-height: 1.6;
}

.jms-unit__details {
  display: grid;
  gap: .55rem;
  margin: 1rem 0 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.07);
}

.jms-unit__details p {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  color: #5d6066;
  font-size: .91rem;
  line-height: 1.45;
}

.jms-unit__details [data-lucide] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: .12rem;
  color: var(--color-red);
}

.jms-unit__details a {
  color: #333;
  font-weight: 800;
}

.jms-unit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: auto;
}

.jms-unit__actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 850;
}

.jms-unit__actions [data-lucide] {
  width: 17px;
  height: 17px;
}

.jms-unit__route {
  color: #fff;
  background: var(--color-red);
}

.jms-unit__more {
  color: #25272b;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

@media (hover:hover) and (pointer:fine) {
  .jms-unit:hover {
    transform: translateY(-5px);
    border-color: rgba(229,57,53,.22);
    box-shadow: 0 22px 48px rgba(0,0,0,.11);
  }

  .jms-unit:hover .jms-unit__media img {
    transform: scale(1.035);
  }
}

@media (max-width:760px) {
  .jms-units {
    grid-template-columns: 1fr;
  }
}

@media (max-width:420px) {
  .jms-unit__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion:reduce) {
  .jms-unit,
  .jms-unit__media img {
    transition: none;
  }
}
