/* ==========================================================================
   Contact > 오시는 길 (Figma 1:2898) — page body only
   Hero head comes from sp-common.css (.sp-hero, .sp-pill-tabs); the design has
   no image stage, so the pill tabs sit inline on white (.loca-subnav).
   ========================================================================== */
.location-page {
  --loca-navy: #002165;
  --loca-border: #ebedf1;
  --loca-strong: #111;
  --loca-secondary: #666;
  --loca-tertiary: #888;
}

/* Hero description is 18px in this design (sp-common default is 22px) */
.location-page .sp-hero-desc {
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.5;
}

/* ---------- Hero sub navigation (1:2952) ---------- */
.loca-subnav {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5.573vw, 107px) 16px clamp(16px, 2.188vw, 42px);
}
.location-page .loca-subnav .sp-pill-tabs {
  position: static;
  transform: none;
  background: rgba(255, 255, 255, 0.94);
}
.location-page .loca-subnav .sp-pill-tab { color: #444; }
.location-page .loca-subnav .sp-pill-tab:hover { background: #f3f5f9; color: #111; }
.location-page .loca-subnav .sp-pill-tab.is-active,
.location-page .loca-subnav .sp-pill-tab.is-active:hover { background: var(--loca-navy); color: #fff; }

/* ---------- Sites section (1:2957) ---------- */
.loca-section {
  padding: clamp(48px, 6.25vw, 120px) 0 clamp(72px, 6.25vw, 120px);
}
/* style.css boxes every `section > *` into a 1440px shell with 40px gutters (-> 1360);
   the design frame is 1600 wide with 160px gutters at 1920. */
.sp-page.location-page section.loca-section:not(.hero):not(.hero-slider-container):not(.c-hero) > .sp-container {
  width: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.loca-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.083vw, 40px);
}

/* Site selector (1:2959) */
.loca-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.loca-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 20px clamp(12px, 1.25vw, 24px);
  border: 1px solid var(--loca-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.loca-tab:hover { border-color: var(--loca-navy); }
.loca-tab:focus-visible { outline: 2px solid var(--loca-navy); outline-offset: 2px; }
.loca-tab-title {
  font-weight: 600;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--loca-strong);
  word-break: keep-all;
}
.loca-tab-en {
  font-size: 12px;
  line-height: 1.5;
  color: var(--loca-tertiary);
  text-transform: uppercase;
}
.loca-tab.is-active {
  background: var(--loca-navy);
  border-color: var(--loca-border);
}
.loca-tab.is-active .loca-tab-title,
.loca-tab.is-active .loca-tab-en { color: #fff; }

/* Map + detail (1:2988) */
.loca-stage {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: clamp(480px, 33.333vw, 640px);
  border: 1px solid var(--loca-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.loca-map {
  position: relative;
  min-height: 100%;
  background: #888;
}
.loca-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.loca-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(24px, 2.083vw, 40px);
  min-width: 0;
}
.loca-detail-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}
.loca-detail-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loca-detail-badge {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--loca-navy);
  text-transform: uppercase;
}
.loca-detail-name {
  font-weight: 700;
  font-size: clamp(24px, 1.667vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--loca-strong);
  word-break: keep-all;
}
.loca-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.loca-detail-list li {
  display: flex;
  gap: 16px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
}
.loca-detail-list .k {
  flex: 0 0 56px;
  color: var(--loca-tertiary);
}
.loca-detail-list .v {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--loca-secondary);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.loca-detail-list .v a {
  color: var(--loca-navy);
  text-decoration: none;
}
.loca-detail-list .v a:hover { text-decoration: underline; }

.loca-actions {
  display: flex;
  gap: 16px;
}
.loca-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.loca-btn--primary {
  background: var(--loca-navy);
  color: #fff;
}
.loca-btn--primary:hover { background: #001647; color: #fff; }
.loca-btn--ghost {
  border: 1px solid var(--loca-border);
  background: #fff;
  color: var(--loca-navy);
}
.loca-btn--ghost:hover { border-color: var(--loca-navy); color: var(--loca-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .loca-stage { grid-template-columns: 55fr 45fr; }
}
@media (max-width: 1024px) {
  .loca-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loca-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .loca-map {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .loca-detail-info { padding-top: 0; }
}
@media (max-width: 768px) {
  .loca-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(16px, 8.333vw, 160px));
    padding-inline: clamp(16px, 8.333vw, 160px);
    scroll-padding-inline: clamp(16px, 8.333vw, 160px);
  }
  .loca-tabs::-webkit-scrollbar { display: none; }
  .loca-tab {
    flex: 0 0 auto;
    min-width: 128px;
    padding: 16px 18px;
  }
  .loca-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .loca-stage { border-radius: 14px; }
  .loca-detail { gap: 32px; }
  .loca-detail-info { gap: 28px; }
  .loca-detail-list { gap: 12px; }
  .loca-detail-list li { gap: 12px; font-size: 15px; }
  .loca-detail-list .k { flex-basis: 40px; }
  .loca-actions { flex-direction: column; gap: 10px; }
  .loca-btn { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 420px) {
  /* four tabs overflow the 358px strip by ~14px at 390; tighten so all fit */
  .location-page .loca-subnav .sp-pill-tab { padding: 10px 11px; }
}
