.network-directions {
  padding-block: 44px;
  color: #252824;
  scroll-margin-top: 100px;
}

.network-directions *,
.network-directions *::before,
.network-directions *::after {
  box-sizing: border-box;
}

.network-directions .network-directions__heading {
  margin-bottom: 22px;
}

.network-directions .network-directions__eyebrow {
  margin: 0 0 8px;
  color: #686d66;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.network-directions .network-directions__title {
  margin: 0;
  color: #252824;
  font-family: inherit;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.network-directions .network-directions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.network-directions .network-directions__item {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.network-directions .network-directions__card {
  --direction-color: #485d39;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 222px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #edf1e8;
  color: #252824;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.network-directions .network-directions__card--rent {
  --direction-color: #74600d;
  background: #faf3d9;
}

.network-directions .network-directions__card--buyout {
  --direction-color: #465c76;
  background: #edf1f5;
}

.network-directions .network-directions__card--flowers {
  --direction-color: #88525f;
  background: #f8edef;
}

.network-directions .network-directions__card--shop {
  --direction-color: #b74226;
  background: #fbeee7;
}

.network-directions .network-directions__card:hover {
  transform: translateY(-3px);
  border-color: var(--direction-color);
  color: #252824;
}

.network-directions .network-directions__card:focus-visible {
  outline: 3px solid var(--direction-color);
  outline-offset: 4px;
}

.network-directions .network-directions__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--direction-color);
}

.network-directions .network-directions__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.network-directions .network-directions__icon {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.network-directions .network-directions__name {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.network-directions .network-directions__description {
  margin: 8px 0 20px;
  color: #62685f;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.network-directions .network-directions__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: var(--direction-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.network-directions .network-directions__domain {
  min-width: 0;
  overflow-wrap: anywhere;
}

.network-directions .network-directions__arrow {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 900px) {
  .network-directions .network-directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .network-directions {
    padding-block: 32px;
  }

  .network-directions .network-directions__heading {
    margin-bottom: 18px;
  }

  .network-directions .network-directions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .network-directions .network-directions__card {
    position: relative;
    min-height: 0;
    padding: 16px 48px 16px 18px;
    border-radius: 12px;
  }

  .network-directions .network-directions__top {
    margin-bottom: 5px;
  }

  .network-directions .network-directions__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
  }

  .network-directions .network-directions__name {
    font-size: 20px;
  }

  .network-directions .network-directions__description {
    margin: 5px 0 8px;
    font-size: 12px;
  }

  .network-directions .network-directions__link {
    font-size: 11px;
  }

  .network-directions .network-directions__arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-directions .network-directions__card {
    transition: none;
  }
}
