/* 로컬 허브 (/local) — Premium Craft (wh-tokens) */

.local-hub-page {
  background: var(--wh-bg, #f2f4f6);
  min-height: 100vh;
  padding: 4px 20px 48px;
  font-family: var(--wh-ff, 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
}

.local-hub-intro {
  padding: 20px 0 16px;
}

.local-hub-title {
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, var(--wh-ff, Pretendard, sans-serif));
  font-size: 22px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.local-hub-desc {
  font-size: 14px;
  color: var(--wh-tx2, #4e5968);
  margin: 0;
  line-height: var(--wh-lh-body, 1.5);
  word-break: keep-all;
}

.local-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.local-hub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--wh-card, #fff);
  border-radius: var(--wh-radius-md, 20px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 16px;
  text-decoration: none;
  box-shadow: var(--wh-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
  min-height: var(--wh-touch-min, 44px);
  color: inherit;
}

.local-hub-card:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}

.local-hub-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--wh-radius-sm, 16px);
  flex-shrink: 0;
  background: var(--wh-bg, #f2f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wh-tx2, #4e5968);
}

.local-hub-card-icon-keep,
.local-hub-card-icon-van,
.local-hub-card-icon-esim,
.local-hub-card-icon-exp,
.local-hub-card-icon-laundry {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
}

.local-hub-card-icon-placeholder {
  color: var(--wh-tx2, #4e5968);
}

.local-hub-card-body {
  flex: 1;
  min-width: 0;
}

.local-hub-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
  margin: 0 0 2px;
}

.local-hub-card-desc {
  font-size: 13px;
  color: var(--wh-tx2, #4e5968);
  margin: 0;
}

.local-hub-card-chevron {
  width: 20px;
  height: 20px;
  fill: var(--wh-tx3, #66707d);
  flex-shrink: 0;
}

.local-hub-card-soon {
  opacity: 0.55;
  pointer-events: none;
}

.local-hub-partner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 16px 18px;
  min-height: var(--wh-touch-cta, 48px);
  border: none;
  border-radius: var(--wh-radius-md, 20px);
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.local-hub-partner-banner:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}

.local-hub-partner-banner:hover {
  background: #ebe0f8;
  text-decoration: none;
}

.local-hub-partner-banner svg {
  width: 18px;
  height: 18px;
  fill: var(--wh-brand, #681DC7);
  flex-shrink: 0;
}

/* 파트너 선택 시트 (admin) */
html.lh-partner-sheet-lock {
  overflow: hidden;
}

.local-hub-partner-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.local-hub-partner-sheet[hidden] {
  display: none !important;
}

.local-hub-partner-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.45);
}

.local-hub-partner-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(80vh, 520px);
  overflow: auto;
  background: var(--wh-card, #fff);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.local-hub-partner-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.local-hub-partner-sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.local-hub-partner-sheet-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--wh-bg, #f2f4f6);
  color: var(--wh-tx2, #4e5968);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.local-hub-partner-sheet-close:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}

.local-hub-partner-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.local-hub-partner-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--wh-radius-md, 20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--wh-card, #fff);
  text-decoration: none;
  color: inherit;
  min-height: var(--wh-touch-min, 44px);
  box-sizing: border-box;
}

.local-hub-partner-option:hover {
  background: var(--wh-bg, #f2f4f6);
  text-decoration: none;
}

.local-hub-partner-option:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}

.local-hub-partner-option .local-hub-card-icon {
  width: 48px;
  height: 48px;
}

.local-hub-partner-option-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
  margin-bottom: 2px;
}

.local-hub-partner-option-desc {
  display: block;
  font-size: 13px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.4;
}

/* ── PC (1024+) ── */
@media (min-width: 1024px) {
  html.sp-force-desktop-ui #content.local-hub-page {
    max-width: min(960px, calc(100vw - 80px));
    margin-left: auto;
    margin-right: auto;
    padding: calc(var(--sp-dt-header-h, var(--r26-dt-base-header-h, 108px)) + 28px) 24px 72px !important;
    background: transparent !important;
    min-height: auto;
  }

  html.sp-force-desktop-ui .local-hub-intro {
    padding: 8px 0 24px;
  }

  html.sp-force-desktop-ui .local-hub-title {
    font-size: 32px;
  }

  html.sp-force-desktop-ui .local-hub-desc {
    font-size: 16px;
    max-width: 560px;
  }

  html.sp-force-desktop-ui .local-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  html.sp-force-desktop-ui .local-hub-card {
    padding: 20px 18px;
  }

  html.sp-force-desktop-ui .local-hub-card.wh-lift:hover {
    box-shadow: var(--wh-shadow-hover, 0 4px 16px rgba(0, 0, 0, 0.08));
    transform: translateY(-1px);
  }

  html.sp-force-desktop-ui .local-hub-card-title {
    font-size: 17px;
  }

  html.sp-force-desktop-ui .local-hub-partner-banner {
    margin-top: 28px;
    padding: 18px 20px;
    font-size: 15px;
  }

  html.sp-force-desktop-ui .local-hub-partner-sheet {
    align-items: center;
  }

  html.sp-force-desktop-ui .local-hub-partner-sheet-panel {
    border-radius: 24px;
    max-width: 420px;
    margin: 24px;
    padding: 24px;
  }
}
