.sf-home-visit-v1 {
  --sf-visit-accent: var(--swefood-main-color, #ea580c);
  --sf-visit-text: #f8fafc;
  --sf-visit-muted: #a8b1c0;
  --sf-visit-border: rgba(148, 163, 184, 0.2);
  --sf-visit-surface: rgba(9, 18, 31, 0.72);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-block: clamp(2rem, 4.5vw, 4.8rem) clamp(4rem, 6vw, 6.5rem);
  color: var(--sf-visit-text);
  background: transparent;
}

.sf-home-visit-v1,
.sf-home-visit-v1 *,
.sf-home-visit-v1 *::before,
.sf-home-visit-v1 *::after {
  box-sizing: border-box;
}

.sf-home-visit-v1__inner {
  display: grid;
  grid-template-columns: minmax(350px, 0.78fr) minmax(480px, 1.22fr);
  width: min(1480px, calc(100% - 72px));
  max-width: 100%;
  min-height: 650px;
  margin-inline: auto;
  padding: clamp(2rem, 3.7vw, 3.8rem);
  overflow: hidden;
  border: 1px solid var(--sf-visit-border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(12, 22, 38, 0.34), rgba(4, 10, 18, 0.1));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.11);
  gap: clamp(2.3rem, 4.7vw, 5.7rem);
}

.sf-home-visit-v1__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.sf-home-visit-v1__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.48rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(249, 115, 22, 0.46);
  border-radius: 999px;
  color: #fb923c;
  font-size: 0.79rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-home-visit-v1__eyebrow svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.sf-home-visit-v1__eyebrow svg circle {
  fill: #111827;
}

.sf-home-visit-v1 h2 {
  margin: 1.25rem 0 0;
  color: var(--sf-visit-text);
  font-family: inherit;
  font-size: clamp(2.8rem, 4.4vw, 4.7rem);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.sf-home-visit-v1__intro {
  max-width: 34rem;
  margin: 1.15rem 0 0;
  color: var(--sf-visit-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.sf-home-visit-v1__details {
  margin-top: 1.7rem;
  overflow: hidden;
  border: 1px solid var(--sf-visit-border);
  border-radius: 18px;
  background: var(--sf-visit-surface);
}

.sf-home-visit-v1__detail {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.sf-home-visit-v1__detail + .sf-home-visit-v1__detail {
  border-top: 1px solid var(--sf-visit-border);
}

.sf-home-visit-v1__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 50%;
  color: #fb7c26;
  background: rgba(249, 115, 22, 0.05);
}

.sf-home-visit-v1__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-home-visit-v1__detail h3 {
  margin: 0;
  color: var(--sf-visit-text);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.3;
}

.sf-home-visit-v1__detail p,
.sf-home-visit-v1__detail address {
  margin: 0.27rem 0 0;
  color: var(--sf-visit-muted);
  font-size: 0.91rem;
  font-style: normal;
  line-height: 1.5;
}

.sf-home-visit-v1__detail address span {
  display: block;
}

.sf-home-visit-v1__detail-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sf-home-visit-v1__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sf-visit-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.sf-home-visit-v1__status::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.sf-home-visit-v1__status.is-open {
  color: #43d17b;
}

.sf-home-visit-v1__status.is-closed {
  color: #f59e7a;
}

.sf-home-visit-v1__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.sf-home-visit-v1__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(249, 115, 22, 0.7);
  border-radius: 13px;
  color: #fb923c;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.sf-home-visit-v1__button.is-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--sf-visit-accent), #ff8a24);
  box-shadow: 0 13px 28px rgba(234, 88, 12, 0.22);
}

.sf-home-visit-v1__button:hover {
  color: #fff;
  background-color: rgba(249, 115, 22, 0.12);
  transform: translateY(-1px);
}

.sf-home-visit-v1__button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-home-visit-v1__map {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--sf-visit-border);
  border-radius: 24px;
  color: var(--sf-visit-text);
  background:
    radial-gradient(circle at 73% 63%, rgba(249, 115, 22, 0.12), transparent 27%),
    radial-gradient(circle at 88% 38%, rgba(35, 81, 56, 0.16), transparent 24%),
    #0a1320;
  text-decoration: none;
  isolation: isolate;
}

.sf-home-visit-v1__map::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 34%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
  content: "";
}

.sf-home-visit-v1__map-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sf-home-visit-v1__road {
  position: absolute;
  display: block;
  width: 135%;
  height: 9px;
  border-block: 1px solid rgba(148, 163, 184, 0.075);
  background: rgba(148, 163, 184, 0.085);
  transform-origin: center;
}

.sf-home-visit-v1__road::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px dashed rgba(148, 163, 184, 0.12);
  content: "";
}

.sf-home-visit-v1__road.is-road-1 { top: 13%; left: -14%; transform: rotate(24deg); }
.sf-home-visit-v1__road.is-road-2 { top: 36%; left: -19%; transform: rotate(-31deg); }
.sf-home-visit-v1__road.is-road-3 { top: 60%; left: -10%; transform: rotate(17deg); }
.sf-home-visit-v1__road.is-road-4 { top: 82%; left: -18%; transform: rotate(-24deg); }
.sf-home-visit-v1__road.is-road-5 { top: 50%; left: -18%; transform: rotate(74deg); }
.sf-home-visit-v1__road.is-road-6 { top: 45%; left: 15%; transform: rotate(93deg); }

.sf-home-visit-v1__route {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-home-visit-v1__route-shadow {
  stroke: rgba(249, 115, 22, 0.27);
  stroke-width: 18;
  filter: blur(10px);
}

.sf-home-visit-v1__route-line {
  stroke: #ff812b;
  stroke-width: 5;
  stroke-dasharray: 13 9;
  animation: sf-visit-route 8s linear infinite;
}

.sf-home-visit-v1__destination {
  position: absolute;
  right: 21%;
  bottom: 17%;
  z-index: 4;
  width: 70px;
  height: 80px;
  color: #ff7622;
  filter: drop-shadow(0 10px 18px rgba(249, 115, 22, 0.3));
}

.sf-home-visit-v1__destination > svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sf-home-visit-v1__destination > svg circle {
  fill: #1a1320;
}

.sf-home-visit-v1__pulse {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 1;
  width: 76px;
  height: 35px;
  border: 2px solid rgba(249, 115, 22, 0.64);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: sf-visit-pulse 2.8s ease-out infinite;
}

.sf-home-visit-v1__map-label {
  position: absolute;
  right: 18%;
  bottom: 36%;
  z-index: 4;
  display: grid;
  max-width: min(260px, 58%);
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 16px;
  background: rgba(7, 14, 25, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.sf-home-visit-v1__map-label strong {
  overflow: hidden;
  color: #fb923c;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-home-visit-v1__map-label span {
  display: -webkit-box;
  overflow: hidden;
  color: #d2d8e2;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sf-home-visit-v1__dot {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7a29;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.78);
  animation: sf-visit-dot 3.6s ease-in-out infinite;
}

.sf-home-visit-v1__dot.is-dot-1 { top: 17%; left: 15%; }
.sf-home-visit-v1__dot.is-dot-2 { top: 29%; right: 14%; animation-delay: -1.3s; }
.sf-home-visit-v1__dot.is-dot-3 { bottom: 21%; left: 32%; animation-delay: -2.1s; }

.sf-home-visit-v1 a:focus-visible {
  outline: 3px solid rgba(255, 150, 70, 0.92);
  outline-offset: 3px;
}

body.sf-theme-light .sf-home-visit-v1 {
  --sf-visit-text: #111827;
  --sf-visit-muted: #64748b;
  --sf-visit-border: rgba(100, 116, 139, 0.2);
  --sf-visit-surface: rgba(255, 250, 245, 0.86);
}

body.sf-theme-light .sf-home-visit-v1__inner {
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.7), rgba(250, 242, 234, 0.28));
  box-shadow: 0 24px 60px rgba(67, 48, 33, 0.08);
}

body.sf-theme-light .sf-home-visit-v1__eyebrow svg circle {
  fill: #fffaf5;
}

body.sf-theme-light .sf-home-visit-v1__map {
  background:
    radial-gradient(circle at 73% 63%, rgba(249, 115, 22, 0.16), transparent 27%),
    radial-gradient(circle at 88% 38%, rgba(71, 121, 87, 0.13), transparent 24%),
    #e9dfd4;
}

body.sf-theme-light .sf-home-visit-v1__road {
  border-block-color: rgba(71, 85, 105, 0.1);
  background: rgba(100, 116, 139, 0.13);
}

body.sf-theme-light .sf-home-visit-v1__map-label {
  background: rgba(255, 250, 245, 0.91);
}

body.sf-theme-light .sf-home-visit-v1__map-label span {
  color: #64748b;
}

@keyframes sf-visit-route {
  to { stroke-dashoffset: -44; }
}

@keyframes sf-visit-pulse {
  0% { opacity: 0.62; transform: translateX(-50%) scale(0.7); }
  75%, 100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

@keyframes sf-visit-dot {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1180px) {
  .sf-home-visit-v1__inner {
    grid-template-columns: minmax(320px, 0.9fr) minmax(390px, 1.1fr);
    width: min(1480px, calc(100% - 48px));
    min-height: 600px;
    padding: 2.3rem;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .sf-home-visit-v1__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sf-home-visit-v1__content {
    justify-content: flex-start;
  }

  .sf-home-visit-v1__map {
    min-height: 510px;
  }
}

@media (max-width: 700px) {
  .sf-home-visit-v1 {
    padding-block: 1.6rem 4.2rem;
  }

  .sf-home-visit-v1__inner {
    width: calc(100% - 32px);
    padding: 1.25rem;
    border-radius: 23px;
    gap: 1.2rem;
  }

  .sf-home-visit-v1 h2 {
    margin-top: 1rem;
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  .sf-home-visit-v1__intro {
    margin-top: 0.85rem;
    font-size: 0.96rem;
  }

  .sf-home-visit-v1__details {
    margin-top: 1.3rem;
  }

  .sf-home-visit-v1__detail {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.95rem;
  }

  .sf-home-visit-v1__icon {
    width: 44px;
    height: 44px;
  }

  .sf-home-visit-v1__actions {
    grid-template-columns: 1fr;
  }

  .sf-home-visit-v1__button {
    min-height: 52px;
  }

  .sf-home-visit-v1__map {
    min-height: 390px;
    border-radius: 18px;
  }

  .sf-home-visit-v1__destination {
    right: 14%;
    bottom: 12%;
    width: 56px;
    height: 66px;
  }

  .sf-home-visit-v1__map-label {
    right: 9%;
    bottom: 34%;
    max-width: 68%;
  }
}

@media (max-width: 370px) {
  .sf-home-visit-v1__inner {
    width: calc(100% - 24px);
    padding: 1rem;
  }

  .sf-home-visit-v1__map {
    min-height: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-home-visit-v1__button,
  .sf-home-visit-v1__route-line,
  .sf-home-visit-v1__pulse,
  .sf-home-visit-v1__dot {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
