#info,
#location {
  scroll-margin-top: 90px;
}

.map-provider-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
}

.map-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.map-tab-btn.active {
  background: #ffffff;
  color: #003366;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.map-tab-btn i {
  font-size: 1.15rem;
}

.map-tab-btn[data-map-tab="kakao"].active i {
  color: #0f766e;
}

.map-tab-btn[data-map-tab="google"].active i {
  color: #2563eb;
}

.sl-widget {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  margin-bottom: 20px;
}

.sl-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
  padding: 22px;
  background: #f8fafc;
  border-inline-end: 1px solid #e2e8f0;
}

.sl-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.sl-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.sl-status-badge.is-open {
  background: #dcfce7;
  color: #166534;
}

.sl-status-badge.is-break {
  background: #fef3c7;
  color: #92400e;
}

.sl-status-badge.is-closed {
  background: #f1f5f9;
  color: #475569;
}

.sl-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.sl-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 9px;
  border-radius: 999px;
}

.sl-clinic-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #003366;
  line-height: 1.35;
  margin: 0;
}

.sl-clinic-sub {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.sl-search-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  gap: 9px;
}

.sl-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sl-label i {
  color: #2563eb;
  font-size: 1rem;
}

.sl-input-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.sl-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.sl-input {
  width: 100%;
  height: 42px;
  padding-inline-start: 12px;
  padding-inline-end: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sl-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sl-gps-btn {
  position: absolute;
  inset-inline-end: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sl-gps-btn:hover {
  background: #dbeafe;
}

.sl-go-btn {
  height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.sl-go-btn:hover {
  background: #1d4ed8;
}

.sl-chips-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.sl-chips {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.sl-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sl-chip:hover,
.sl-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.sl-route-result {
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.sl-route-result.visible {
  display: flex;
}

.sl-route-origin {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sl-route-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.sl-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 4px 9px;
  border-radius: 8px;
}

.sl-route-steps {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.sl-route-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.sl-route-open-link:hover {
  background: #1e40af;
}

.sl-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.sl-btn-gmaps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #4285F4;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.sl-btn-gmaps:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

.sl-sub-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sl-util-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sl-util-btn i {
  font-size: 1.15rem;
}

.sl-util-btn.taxi-btn i {
  color: #d97706;
}

.sl-util-btn.uber-btn i {
  color: #0f172a;
}

.sl-util-btn.naver-btn i {
  color: #03C75A;
}

.sl-util-btn:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.sl-map-stage {
  position: relative;
  min-width: 0;
  min-height: 470px;
  background: #e2e8f0;
}

.sl-map-canvas,
.sl-map-stage iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  display: block;
}

.sl-taxi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sl-taxi-modal-backdrop.open {
  display: flex;
}

.sl-taxi-modal {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.2s ease-out;
}

.sl-taxi-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 0.95rem;
}

.sl-taxi-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #78350f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.sl-taxi-kr-body {
  padding: 24px 22px 20px;
  text-align: left;
  direction: ltr;
}

.sl-taxi-driver-greeting {
  display: inline-block;
  background: #003366;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sl-taxi-landmark {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
  word-break: keep-all;
}

.sl-taxi-landmark strong {
  color: #dc2626;
}

.sl-taxi-road {
  font-size: 1.08rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.sl-taxi-copy-btn {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: #003366;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.sl-taxi-copy-btn:hover {
  background: #002244;
}

@media (max-width: 960px) {
  .sl-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sl-map-stage {
    order: -1;
    width: 100%;
    min-height: 400px;
  }

  .sl-map-canvas,
  .sl-map-stage iframe {
    min-height: 400px;
  }

  .sl-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-inline-end: none;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  #info .container {
    padding-inline: 12px;
  }

  #location.info-full-bottom {
    padding: 24px 16px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #location.info-full-bottom > h2 {
    font-size: 1.45rem !important;
    margin-bottom: 14px !important;
  }

  #location .contact-address {
    font-size: 1rem !important;
    margin-bottom: 14px !important;
  }

  #kakao-map-panel {
    margin-inline: -16px;
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
  }

  #kakao-map-panel #map {
    height: 380px !important;
    border-radius: 0 !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }

  .sl-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 4px;
  }

  .sl-map-stage {
    order: -1;
    align-self: stretch;
    margin-inline: -16px;
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    min-height: 380px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
  }

  .sl-map-canvas,
  .sl-map-stage iframe {
    width: 100%;
    max-width: 100%;
    min-height: 380px;
  }

  .sl-panel {
    padding: 16px 0 0;
    background: transparent;
    border-top: none;
    gap: 14px;
  }

  .sl-header {
    padding-bottom: 10px;
    gap: 6px;
  }

  .sl-clinic-name {
    font-size: 1.05rem;
  }

  html:not([lang="ko"]) .sl-clinic-sub {
    display: none;
  }

  .sl-chips {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sl-chips::-webkit-scrollbar {
    display: none;
  }

  .sl-chip {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  #info .container {
    padding-inline: 10px;
  }

  #location.info-full-bottom {
    padding: 20px 12px;
  }

  #kakao-map-panel,
  .sl-map-stage {
    margin-inline: -12px;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
  }

  .map-provider-tabs {
    display: flex;
    width: 100%;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
  }

  .map-tab-btn {
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 0.82rem;
    gap: 5px;
  }

  .sl-taxi-modal-backdrop {
    padding: 12px;
  }

  .sl-taxi-kr-body {
    padding: 18px 16px 16px;
  }

  .sl-taxi-landmark {
    font-size: 1.25rem;
  }
}
