/**
 * MWS Layout & Component CSS
 * ═══════════════════════════════════════════════════════════════
 * Shared layout, header, footer, and component styles
 * that mirror the Next.js Layout / common component system.
 *
 * Requires: mws-tokens.css loaded first.
 * ═══════════════════════════════════════════════════════════════
 */

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family-base);
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-family-base); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Page structure ───────────────────────────────────────────── */
.mws-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.mws-main {
  flex: 1;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-2xl);
}

/* ── Container ────────────────────────────────────────────────── */
.mws-container {
  width: 100%;
  max-width: var(--container-user-lg);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP HEADER
═══════════════════════════════════════════════════════════════ */
.mws-header {
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Utility row */
.mws-header-util {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}

/* Logo */
.mws-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.mws-logo-mark {
  width: 28px; height: 28px;
  background: var(--color-brand-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mws-logo-mark svg { width: 18px; height: 18px; }
.mws-logo-text {
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Search bar */
.mws-search-wrap {
  flex: 1;
  max-width: 480px;
}
.mws-search-bar {
  display: flex;
  align-items: center;
  height: 44px;
  background: var(--color-neutral-50);
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.mws-search-bar:focus-within {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-primary-light);
  background: #fff;
}
.mws-search-icon {
  padding: 0 8px 0 14px;
  color: var(--color-neutral-400);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.mws-search-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-size: var(--font-size-base);
  color: var(--color-neutral-900);
  outline: none;
  -webkit-appearance: none;
}
.mws-search-input::placeholder { color: var(--color-neutral-400); }
.mws-search-btn {
  height: 100%;
  padding: 0 16px;
  background: var(--color-brand-primary);
  color: #fff;
  border: none;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mws-search-btn:hover { background: var(--color-brand-primary-dark); }

/* Header right icons */
.mws-header-icons {
  display: flex; align-items: center;
  gap: 4px; margin-left: auto; flex-shrink: 0;
}
.mws-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-neutral-600);
  transition: background .15s;
}
.mws-icon-btn:hover { background: var(--color-neutral-100); }
.mws-icon-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--color-error);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* GNB nav row */
.mws-gnb {
  border-top: 1px solid var(--color-neutral-100);
  background: #fff;
}
.mws-gnb-inner {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  display: flex; align-items: center;
  height: 44px;
  gap: 2px;
  list-style: none;
}
.mws-gnb-link {
  display: inline-flex; align-items: center; gap: 2px;
  height: 36px; padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  color: var(--color-neutral-700);
}
.mws-gnb-link:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}
.mws-gnb-link.active {
  background: var(--color-brand-primary);
  color: #fff;
  font-weight: var(--font-weight-bold);
}
.mws-gnb-badge-new {
  display: inline-flex;
  background: var(--badge-hot-bg);
  color: var(--badge-hot-text);
  font-size: 9px; font-weight: 700;
  border-radius: var(--radius-xs);
  padding: 1px 4px;
  margin-left: 2px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   PLACE TAB BAR
═══════════════════════════════════════════════════════════════ */
.mws-place-tabs {
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky;
  top: 108px;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mws-place-tabs-inner {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  display: flex; align-items: center;
}
.mws-place-tabs-list {
  display: flex; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1; gap: 0;
  list-style: none;
}
.mws-place-tabs-list::-webkit-scrollbar { display: none; }
.mws-place-tab {
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent; cursor: pointer;
  white-space: nowrap;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-neutral-600);
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.mws-place-tab:hover { color: var(--color-neutral-900); }
.mws-place-tab.active {
  color: var(--color-brand-primary);
  border-bottom-color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
}
.mws-place-tab-map {
  display: inline-flex; align-items: center; gap: 5px;
  height: 48px; padding: 0 16px;
  border-left: 1px solid var(--color-neutral-100);
  font-size: var(--font-size-md); font-weight: var(--font-weight-semibold);
  color: var(--color-brand-primary);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITY TAB BAR
═══════════════════════════════════════════════════════════════ */
.mws-community-tabs {
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky; top: 108px; z-index: 90;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mws-community-tabs-inner {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  display: flex; align-items: center;
}
.mws-community-tabs-list {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none; flex: 1; gap: 0; list-style: none;
}
.mws-community-tabs-list::-webkit-scrollbar { display: none; }
.mws-community-tab {
  display: flex; align-items: center; height: 48px; padding: 0 14px;
  border: none; border-bottom: 2px solid transparent;
  background: transparent; cursor: pointer; white-space: nowrap;
  font-size: var(--font-size-md); font-weight: var(--font-weight-regular);
  color: var(--color-neutral-600); transition: color .15s, border-color .15s;
  flex-shrink: 0; text-decoration: none;
}
.mws-community-tab:hover { color: var(--color-neutral-900); }
.mws-community-tab.active {
  color: var(--color-brand-primary);
  border-bottom-color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
}
.mws-community-write-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 14px; margin-right: 0;
  border: 1.5px solid var(--color-brand-primary);
  border-radius: var(--radius-full);
  background: transparent; color: var(--color-brand-primary);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.mws-community-write-btn:hover {
  background: var(--color-brand-primary); color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.mws-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-100);
}
.mws-breadcrumb {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  padding: var(--spacing-sm) 0;
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  font-size: var(--font-size-sm);
}
.mws-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.mws-breadcrumb a { color: var(--color-neutral-500); transition: color .15s; }
.mws-breadcrumb a:hover { color: var(--color-brand-primary); }
.mws-breadcrumb .current { color: var(--color-neutral-700); font-weight: var(--font-weight-medium); }
.mws-breadcrumb .sep { color: var(--color-neutral-300); font-size: 10px; }

/* ═══════════════════════════════════════════════════════════════
   STEP INDICATOR
═══════════════════════════════════════════════════════════════ */
.mws-step-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-100);
}
.mws-step-bar-inner {
  max-width: var(--container-user-lg);
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}
.mws-steps {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative;
}
.mws-steps::before {
  content: '';
  position: absolute; top: 18px; left: 36px; right: 36px;
  height: 2px; background: var(--color-neutral-200); z-index: 0;
}
.mws-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--spacing-sm); flex: 1;
}
.mws-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-neutral-300);
  background: #fff; color: var(--color-neutral-400);
  transition: all .2s;
}
.mws-step.complete .mws-step-circle {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: #fff;
}
.mws-step.current .mws-step-circle {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}
.mws-step-label {
  font-size: var(--font-size-xs); text-align: center;
  color: var(--color-neutral-400);
}
.mws-step.current .mws-step-label { color: var(--color-brand-primary); font-weight: var(--font-weight-medium); }
.mws-step.complete .mws-step-label { color: var(--color-neutral-700); }

/* ═══════════════════════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════════════════════ */
.mws-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--radius-full);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
  line-height: 1;
  white-space: nowrap;
}
.mws-badge-jeongchal {
  background: var(--badge-jeongchal-bg); color: var(--badge-jeongchal-text);
  border: 1px solid var(--badge-jeongchal-border);
}
.mws-badge-escrow {
  background: var(--badge-escrow-bg); color: var(--badge-escrow-text);
  border: 1px solid var(--badge-escrow-border);
}
.mws-badge-event {
  background: var(--badge-event-bg); color: var(--badge-event-text);
  border: 1px solid var(--badge-event-border);
}
.mws-badge-special {
  background: var(--badge-special-bg); color: var(--badge-special-text);
  border: 1px solid var(--badge-special-border);
}
.mws-badge-new {
  background: var(--badge-new-bg); color: var(--badge-new-text);
  border: 1px solid var(--badge-new-border);
}
.mws-badge-hot {
  background: var(--badge-hot-bg); color: var(--badge-hot-text);
  border: 1px solid var(--badge-hot-border);
}
.mws-badge-pt {
  background: var(--badge-pt-bg); color: var(--badge-pt-text);
  border: 1px solid var(--badge-pt-border);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON
═══════════════════════════════════════════════════════════════ */
.mws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none; white-space: nowrap;
  min-height: 44px; padding: 0 var(--spacing-lg);
  font-size: var(--font-size-base);
}
.mws-btn:disabled { opacity: .4; pointer-events: none; }
.mws-btn-primary {
  background: var(--color-brand-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(10,186,181,.3);
}
.mws-btn-primary:hover { background: var(--color-brand-primary-dark); }
.mws-btn-secondary {
  background: var(--color-brand-secondary); color: #fff;
}
.mws-btn-secondary:hover { background: var(--color-brand-secondary-dark); }
.mws-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
}
.mws-btn-ghost:hover { background: var(--color-neutral-100); border-color: var(--color-neutral-300); }
.mws-btn-danger { background: var(--color-error); color: #fff; }
.mws-btn-danger:hover { background: var(--color-error-border); }
.mws-btn-sm { min-height: 36px; padding: 0 var(--spacing-md); font-size: var(--font-size-md); }
.mws-btn-lg { min-height: 52px; padding: 0 var(--spacing-xl); font-size: var(--font-size-lg); }
.mws-btn-full { width: 100%; }
.mws-btn-pill { border-radius: var(--radius-full); }

/* ═══════════════════════════════════════════════════════════════
   INPUT / SELECT / FORM
═══════════════════════════════════════════════════════════════ */
.mws-input, .mws-select {
  width: 100%; height: 44px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: 0 var(--spacing-md);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-neutral-900);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.mws-input:focus, .mws-select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-primary-light);
}
.mws-input.error { border-color: var(--color-error); }
.mws-label {
  display: block;
  font-size: var(--font-size-md); font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700); margin-bottom: var(--spacing-xs);
}
.mws-field { display: flex; flex-direction: column; gap: var(--spacing-xs); margin-bottom: var(--spacing-md); }
.mws-hint { font-size: var(--font-size-sm); color: var(--color-neutral-400); }
.mws-error-msg { font-size: var(--font-size-sm); color: var(--color-error); }

/* ═══════════════════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════════════════ */
.mws-card {
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  box-shadow: var(--shadow-card);
}
.mws-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-brand-primary);
}
.mws-card-img {
  aspect-ratio: 4/3;
  background: var(--color-neutral-100);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.mws-card-body { padding: var(--spacing-md) var(--spacing-md) var(--spacing-base); }
.mws-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--spacing-sm); }
.mws-card-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); margin-bottom: 4px; }
.mws-card-meta { font-size: var(--font-size-sm); color: var(--color-neutral-400); margin-bottom: var(--spacing-sm); }
.mws-card-price { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); color: var(--color-brand-primary); }
.mws-card-wish {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand-secondary);
  font-size: 16px; transition: transform .15s;
}
.mws-card-wish:hover { transform: scale(1.1); }

/* Card grid layouts */
.mws-card-grid { display: grid; gap: var(--spacing-base); }
.mws-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mws-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mws-card-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — DESKTOP
═══════════════════════════════════════════════════════════════ */
.mws-footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-400);
}
.mws-footer-top {
  max-width: var(--container-user-lg); margin: 0 auto;
  padding: 36px 0 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--spacing-xl); flex-wrap: wrap;
  border-bottom: 1px solid var(--color-neutral-800);
}
.mws-footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.mws-footer-logo-text { font-family: var(--font-family-display); font-size: 15px; font-weight: 700; color: #fff; }
.mws-footer-sns { display: flex; align-items: center; gap: 8px; }
.mws-footer-sns-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-neutral-800); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-neutral-400); transition: background .15s, color .15s;
}
.mws-footer-sns-btn:hover { background: var(--color-brand-primary); color: #fff; }
.mws-footer-mid {
  max-width: var(--container-user-lg); margin: 0 auto;
  padding: 28px 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-lg);
  border-bottom: 1px solid var(--color-neutral-800);
}
.mws-footer-group-title {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
  color: var(--color-neutral-300); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: var(--spacing-md);
}
.mws-footer-links { display: flex; flex-direction: column; gap: var(--spacing-sm); list-style: none; }
.mws-footer-links a { font-size: var(--font-size-md); color: var(--color-neutral-400); transition: color .15s; }
.mws-footer-links a:hover { color: #fff; }
.mws-footer-bottom {
  max-width: var(--container-user-lg); margin: 0 auto;
  padding: 20px 0 28px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--spacing-base); flex-wrap: wrap;
}
.mws-footer-company { font-size: 11px; line-height: 1.7; flex: 1; min-width: 260px; }
.mws-footer-policy { display: flex; gap: var(--spacing-base); flex-wrap: wrap; }
.mws-footer-policy a { font-size: var(--font-size-sm); color: var(--color-neutral-500); }
.mws-footer-policy a.bold { color: var(--color-neutral-200); font-weight: var(--font-weight-bold); }

/* ═══════════════════════════════════════════════════════════════
   STICKY CTA BAR
═══════════════════════════════════════════════════════════════ */
.mws-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: #fff;
  border-top: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-sticky-bar-up);
  padding: var(--spacing-sm) 0;
}
.mws-sticky-cta-inner {
  max-width: var(--container-user-lg); margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--spacing-sm);
}
.mws-form-cta-inner {
  max-width: var(--container-user-lg); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--spacing-sm);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════════════════════════ */
.mws-section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-base);
  display: flex; align-items: center; gap: 8px;
}
.mws-section-sub {
  font-size: var(--font-size-base);
  color: var(--color-neutral-500);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-relaxed);
}
.mws-section-divider {
  width: 40px; height: 3px;
  background: var(--color-brand-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-base);
}

/* ═══════════════════════════════════════════════════════════════
   CHIP / CHIP BAR
═══════════════════════════════════════════════════════════════ */
.mws-chip-bar {
  display: flex; gap: var(--spacing-sm);
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
}
.mws-chip-bar::-webkit-scrollbar { display: none; }
.mws-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-md); font-weight: var(--font-weight-medium);
  border: 1.5px solid var(--color-neutral-200);
  background: #fff; color: var(--color-neutral-600);
  cursor: pointer; white-space: nowrap; transition: all .15s; flex-shrink: 0;
}
.mws-chip:hover { border-color: var(--color-brand-primary); color: var(--color-brand-primary); }
.mws-chip.active {
  background: var(--color-brand-primary); color: #fff;
  border-color: var(--color-brand-primary);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE / SKELETON
═══════════════════════════════════════════════════════════════ */
.mws-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center; gap: var(--spacing-sm);
}
.mws-empty-icon { font-size: 40px; opacity: .4; margin-bottom: 4px; }
.mws-empty-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-neutral-600); }
.mws-empty-sub { font-size: var(--font-size-md); color: var(--color-neutral-400); }

@keyframes mwsSkelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mws-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: mwsSkelShimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.mws-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: var(--spacing-xl);
}
.mws-page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-neutral-200);
  background: #fff; color: var(--color-neutral-600);
  font-size: var(--font-size-md); font-weight: var(--font-weight-medium);
  cursor: pointer; transition: all .15s; padding: 0 6px;
}
.mws-page-btn:hover { border-color: var(--color-brand-primary); color: var(--color-brand-primary); }
.mws-page-btn.active {
  background: var(--color-brand-primary); color: #fff;
  border-color: var(--color-brand-primary); font-weight: var(--font-weight-bold);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE LAYOUT
═══════════════════════════════════════════════════════════════ */
.mws-mobile-page {
  display: flex; flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; max-width: 100vw;
  background: var(--color-neutral-50);
}

/* Mobile Header */
.mws-m-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-neutral-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  display: flex; align-items: center; height: 56px; padding: 0 4px;
}
.mws-m-logo {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 6px;
  text-decoration: none;
}
.mws-m-logo-text {
  font-family: var(--font-family-display);
  font-size: 13px; font-weight: 700;
  color: var(--color-brand-primary);
  white-space: nowrap;
}
.mws-m-icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--color-neutral-700);
  position: relative; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mws-m-badge-dot {
  position: absolute; top: 9px; right: 9px;
  width: 6px; height: 6px;
  background: var(--color-error); border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Mobile Container */
.mws-m-container {
  width: 100%;
  padding: 0 var(--container-mobile-padding-x);
  flex: 1;
  padding-top: var(--spacing-base);
  padding-bottom: var(--spacing-lg);
}

/* Mobile Drawer */
.mws-m-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-overlay-modal);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mws-m-overlay.open { opacity: 1; pointer-events: auto; }
.mws-m-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  z-index: 201; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  -webkit-overflow-scrolling: touch;
}
.mws-m-drawer.open { transform: translateX(0); }
.mws-m-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--color-neutral-100);
  flex-shrink: 0;
}
.mws-m-drawer-nav { flex: 1; padding: 8px 0; }
.mws-m-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: var(--font-weight-medium);
  color: var(--color-neutral-800);
  width: 100%; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.mws-m-nav-item.active {
  background: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
}
.mws-m-nav-link {
  display: flex; align-items: center; height: 52px; padding: 0 16px;
  text-decoration: none; font-size: 15px; font-weight: var(--font-weight-medium);
  color: var(--color-neutral-800);
  -webkit-tap-highlight-color: transparent;
}
.mws-m-nav-link.active {
  background: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
}
.mws-m-sub-list { overflow: hidden; background: var(--color-neutral-50); }
.mws-m-sub-link {
  display: flex; align-items: center;
  height: 44px; padding: 0 16px 0 32px;
  font-size: var(--font-size-base); color: var(--color-neutral-600);
  text-decoration: none; border-bottom: 1px solid var(--color-neutral-100);
  -webkit-tap-highlight-color: transparent;
}
.mws-m-drawer-footer {
  border-top: 1px solid var(--color-neutral-100);
  padding: 16px; flex-shrink: 0;
}

/* Mobile Bottom Nav */
.mws-m-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff;
  border-top: 1px solid var(--color-neutral-100);
  box-shadow: 0 -1px 8px rgba(0,0,0,.06);
  display: flex; height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mws-m-bottom-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; border: none; background: transparent; cursor: pointer;
  color: var(--color-neutral-400);
  font-size: 10px; font-weight: var(--font-weight-regular);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; transition: color .15s;
}
.mws-m-bottom-btn.active {
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
}

/* Mobile Footer */
.mws-m-footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-500);
  padding: var(--spacing-lg) var(--container-mobile-padding-x);
}

/* Mobile Bottom CTA */
.mws-m-bottom-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: #fff;
  border-top: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-sticky-bar-up);
  padding: var(--spacing-sm) var(--container-mobile-padding-x);
}

/* ═══════════════════════════════════════════════════════════════
   G-HEADER — 데스크톱 공통 헤더 (SSOT)
   HTML: <header class="g-header"> ... <div class="hd-inner"> ...
   기존 .site-hd 대체. 모든 서비스 파일에서 인라인 .site-hd 제거 후 이 정의를 사용.
   ─────────────────────────────────────────────────────────────
   Depends on: mws-tokens.css (--mint, --mint-dk, --mint-lt,
               --mint-deep, --border, --bd-mid, --tx, --tx2, --tx3,
               --bg, --mw, --tr, --sh-xs)
═══════════════════════════════════════════════════════════════ */
.g-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 400;
  box-shadow: var(--sh-xs, 0 1px 8px rgba(0,0,0,.05));
}
/* [T1-B SSOT] .g-header-inner — .hd-inner 표준 alias (2026-05)
   기존 인라인 .hd-inner CSS 및 div.hd-inner → div.g-header-inner 로 통일 */
.g-header-inner,
.hd-inner {
  max-width: var(--mw, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hd-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.hd-logo-main {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--tx, #1a1c1e);
  font-family: 'Playfair Display', serif;
}
.hd-logo-sub {
  font-size: 9px;
  color: var(--tx3, #8a94a6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
  font-weight: 500;
}
.hd-search {
  flex: 1;
  max-width: 480px;
  height: 40px;
  border-radius: 9999px;
  border: 1.5px solid var(--bd-mid, #dde1e7);
  background: #fafcfc;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  transition: var(--tr, .2s);
}
.hd-search:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(129,216,208,.15);
}
.hd-search__icon  { color: var(--tx3, #8a94a6); font-size: 13px; flex-shrink: 0; }
.hd-search__input {
  flex: 1; border: none; background: none;
  font-size: 13.5px; color: var(--tx, #1a1c1e);
  outline: none; font-family: 'Noto Sans KR', sans-serif;
}
.hd-search__input::placeholder { color: var(--tx3, #8a94a6); }
.hd-search__btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  transition: var(--tr, .2s); cursor: pointer; border: none;
}
.hd-search__btn:hover { background: var(--mint-dk); }
@media (max-width: 768px) { .hd-search { display: none; } }

.hd-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.hd-nav-a {
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2, #4a5568);
  transition: var(--tr, .2s);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hd-nav-a:hover  { background: var(--mint-lt); color: var(--mint-deep); }
.hd-nav-a.active { background: var(--mint-lt); color: var(--mint-deep); font-weight: 700; }
@media (max-width: 1023px) { .hd-nav { display: none; } }

/* ── NEW 배지 (GNB·콘텐츠 공통) [T3-B SSOT 2026-05] ─────────────
   기존: <span style="font-size:9px;background:#e88fa0;...">NEW</span>
   교체: <span class="new-badge">NEW</span>
   ─────────────────────────────────────────────────────────────── */
.new-badge {
  display: inline-block;
  font-size: 9px;
  background: var(--rose, #e88fa0);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 3px;
  vertical-align: middle;
  line-height: 1.6;
  letter-spacing: 0;
}

.hd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hd-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx2, #4a5568); font-size: 16px;
  transition: var(--tr, .2s); position: relative;
}
.hd-icon-btn:hover { background: var(--bg, #f9fafb); color: var(--tx, #1a1c1e); }
.hd-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--coral, #FFB3A7);
  border-radius: 50%; border: 1.5px solid #fff;
}
.hd-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 99px;
  font-size: 13px; font-weight: 700;
  transition: var(--tr, .2s);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.hd-btn.outline {
  border: 1.5px solid var(--bd-mid, #dde1e7);
  color: var(--tx2, #4a5568);
  background: #fff;
}
.hd-btn.outline:hover {
  border-color: var(--mint-dk);
  color: var(--mint-deep);
}
.hd-btn.primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-dk));
  color: #fff; border: none;
  box-shadow: 0 2px 10px rgba(129,216,208,.35);
}
.hd-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(129,216,208,.5);
  transform: translateY(-1px);
}

/* Utility bar (상단 프로모 행, 데스크톱 전용) */
.g-util {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--tx3, #8a94a6);
}
@media (max-width: 1023px) { .g-util { display: none; } }
.g-util-inner {
  max-width: var(--mw, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g-util-promo { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--tx2, #4a5568); }
.g-util-promo i, .g-util-promo em { color: var(--mint-deep); }
.g-util-promo em { font-style: normal; font-weight: 700; }
.g-util-links { display: flex; align-items: center; gap: 16px; }
.g-util-links a {
  color: var(--tx3, #8a94a6); transition: color .2s;
  font-size: 12px; text-decoration: none; white-space: nowrap;
}
.g-util-links a:hover { color: var(--tx, #1a1c1e); }
.g-util-links a.g-util-cta { color: var(--mint-deep); font-weight: 700; }
.g-util-links a.g-util-cta:hover { color: var(--mint-dk); }
.sep-v { width: 1px; height: 12px; background: var(--border); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   BTN-PRIMARY — 공통 Primary 버튼 (SSOT)
   기존 .g-btn-login / .cta-btn(signup 계열) / .btn-main(mobile) 대체
   ─────────────────────────────────────────────────────────────
   사용법:
     <button class="btn-primary">확인</button>
     <button class="btn-primary outline">로그인</button>
   Depends on: mws-tokens.css (--mint, --mint-dk, --mint-deep,
               --bd-mid, --tx2, --tr)
═══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, var(--mint, #81D8D0), var(--mint-dk, #5ec4bb));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--tr, .2s);
  box-shadow: 0 2px 10px rgba(129,216,208,.35);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.3px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(129,216,208,.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* outline variant — 헤더 로그인 버튼 (.g-btn-login 대체) */
.btn-primary.outline {
  background: #fff;
  color: var(--tx2, #4a5568);
  border: 1.5px solid var(--bd-mid, #dde1e7);
  box-shadow: none;
}
.btn-primary.outline:hover {
  border-color: var(--mint-dk, #5ec4bb);
  color: var(--mint-deep, #3aa8a0);
  transform: none;
  box-shadow: none;
}

/* 전폭 블록 variant — signup / mobile 완료 화면용 */
.btn-primary.block {
  display: flex;
  width: 100%;
  height: 52px;
  font-size: 16px;
  border-radius: 99px;
}

/* 소형 variant — 헤더용 */
.btn-primary.sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* 반응형: 모바일에서 outline 버튼 기본 크기 유지 */
@media (max-width: 767px) {
  .btn-primary.outline { height: 36px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   G-FOOTER — 데스크톱 공통 푸터 (SSOT)
   HTML: <footer class="g-footer"> ... <div class="g-footer-inner"> ...
   기존 .site-footer / .ft-inner / .footer-inner 대체.
   ─────────────────────────────────────────────────────────────
   2가지 테마:
     기본(라이트)  — 흰 배경, 상단 구분선 (studio·dress·mypage 계열)
     다크          — .g-footer.dark, 어두운 배경 (venue·community·magazine 계열)
   Depends on: mws-tokens.css (--tx, --tx2, --tx3, --border, --mint, --mint-deep, --mw)
═══════════════════════════════════════════════════════════════ */
.g-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  font-size: 13px;
  color: var(--tx2, #4a5568);
}
.g-footer.dark {
  background: #1a1c1e;
  border-top: none;
  color: rgba(255,255,255,.55);
}
.g-footer-inner {
  max-width: var(--mw, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

/* 상단 영역: 브랜드 + 링크 컬럼 */
.g-footer-top {
  display: flex;
  gap: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.g-footer.dark .g-footer-top { border-bottom-color: rgba(255,255,255,.08); }
.g-footer:not(.dark) .g-footer-top { border-bottom-color: var(--border); }

/* 브랜드 영역 */
.g-footer-brand { flex-shrink: 0; min-width: 180px; }
.g-footer-logo,
.g-footer-brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.5px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}
.g-footer:not(.dark) .g-footer-logo,
.g-footer:not(.dark) .g-footer-brand-name { color: var(--tx, #1a1c1e); }
.g-footer.dark .g-footer-logo,
.g-footer.dark .g-footer-brand-name { color: #fff; }
.g-footer-tagline {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 4px;
}
.g-footer-brand-desc {
  font-size: 12px;
  line-height: 1.7;
  opacity: .6;
  max-width: 260px;
  word-break: keep-all;
}

/* 링크 컬럼 그룹 */
.g-footer-links,
.g-footer-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  flex: 1;
}
.g-footer-col { min-width: 100px; }
.g-footer-col h4,
.g-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .5;
}
.g-footer-col a,
.g-footer-links a {
  display: block;
  font-size: 12.5px;
  margin-bottom: 7px;
  text-decoration: none;
  transition: color .2s;
  opacity: .75;
}
.g-footer:not(.dark) .g-footer-col a,
.g-footer:not(.dark) .g-footer-links a { color: var(--tx2, #4a5568); }
.g-footer.dark .g-footer-col a,
.g-footer.dark .g-footer-links a { color: rgba(255,255,255,.6); }
.g-footer-col a:hover,
.g-footer-links a:hover { opacity: 1; color: var(--mint-deep, #3aa8a0) !important; }

/* 하단 카피라이트 */
.g-footer-bottom,
.g-footer-copy {
  font-size: 11.5px;
  margin-top: 20px;
  opacity: .45;
}
.g-footer-info {
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.7;
  opacity: .45;
}

/* 반응형 */
@media (max-width: 1023px) {
  .g-footer-top { gap: 32px; }
  .g-footer-links, .g-footer-cols { gap: 24px; }
}
@media (max-width: 767px) {
  .g-footer { padding: 28px 0 20px; }
  .g-footer-inner { padding: 0 16px; }
  .g-footer-top { flex-direction: column; gap: 20px; padding-bottom: 20px; }
  .g-footer-links, .g-footer-cols { gap: 16px; }
  .g-footer-col { min-width: calc(50% - 8px); }
}

/* ═══════════════════════════════════════════════════════════════
   CHIP — 필터/카테고리 칩 컴포넌트 (SSOT)
   기존 .cat-chip / .vsn-chip / .tc-chip / .filter-chip 대체.
   ─────────────────────────────────────────────────────────────
   사용법:
     <button class="chip">전체</button>
     <button class="chip chip--active">호텔웨딩</button>
   Depends on: mws-tokens.css (--mint, --mint-dk, --mint-lt,
               --mint-deep, --border, --bd-mid, --tx2, --tr)
═══════════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--bd-mid, #dde1e7);
  background: #fff;
  color: var(--tx2, #4a5568);
  cursor: pointer;
  transition: var(--tr, .2s);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: -.2px;
}
.chip:hover {
  border-color: var(--mint, #81D8D0);
  color: var(--mint-deep, #3aa8a0);
  background: var(--mint-lt, #e8f9f8);
}
.chip--active,
.chip.active {
  background: var(--mint, #81D8D0);
  border-color: var(--mint-dk, #5ec4bb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(129,216,208,.35);
}
.chip--active:hover,
.chip.active:hover {
  background: var(--mint-dk, #5ec4bb);
  border-color: var(--mint-dk, #5ec4bb);
  color: #fff;
}

/* 소형 variant */
.chip.sm {
  padding: 4px 10px;
  font-size: 11.5px;
}

/* 모바일 스크롤 컨테이너용 */
.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chip-row::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════
   TAB-BTN — SSOT  (replaces: nf-tab / sch-tab / seg-tab /
   sort-tab / cat-tab / m-tab / ltab / mtab / st-tab / tab-btn)
   ═══════════════════════════════════════════════════════════ */
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--tx2, #4a5568);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--tr, .2s);
}
.tab-btn:hover { color: var(--mint, #81D8D0); }
.tab-btn.active,
.tab-btn[aria-selected="true"] {
  color: var(--mint, #81D8D0);
  border-bottom-color: var(--mint, #81D8D0);
  font-weight: 700;
}

/* --- pill variant (rounded background toggle) --- */
.tab-btn.pill {
  border-bottom: none;
  border-radius: 99px;
  border: 1.5px solid transparent;
  padding: 7px 18px;
}
.tab-btn.pill.active,
.tab-btn.pill[aria-selected="true"] {
  background: var(--mint, #81D8D0);
  border-color: var(--mint-dk, #5ec4bb);
  color: #fff;
}

/* --- segment variant (solid background toggle) --- */
.tab-btn.seg {
  flex: 1;
  border-bottom: none;
  border-radius: var(--radius-lg, 10px);
  border: none;
  background: transparent;
}
.tab-btn.seg.active,
.tab-btn.seg[aria-selected="true"] {
  background: var(--tx, #1a202c);
  color: #fff;
}

/* --- sm size modifier --- */
.tab-btn.sm { padding: 6px 14px; font-size: 12px; }

/* tab-strip container */
.tab-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--border, #eaecef);
}
.tab-strip::-webkit-scrollbar { display: none; }

/* tab-bar container (pill/seg variant) */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--ivory, #f7f8fa);
  border: 1px solid var(--border, #eaecef);
  border-radius: var(--radius-xl, 14px);
  padding: 3px;
}

/* ═══════════════════════════════════════════════════════════
   MP-NAV-TAB — SSOT  (mypage mobile navigation)
   (replaces: mp-nav-tab / mpnav-item)
   ═══════════════════════════════════════════════════════════ */
.mp-nav-tab {
  white-space: nowrap;
  padding: 0 14px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2, #4a5568);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--tr, .2s);
}
.mp-nav-tab:hover { color: var(--mint, #81D8D0); }
.mp-nav-tab.active,
.mp-nav-tab[aria-current="page"] {
  color: var(--mint, #81D8D0);
  border-bottom-color: var(--mint, #81D8D0);
  font-weight: 700;
}
.mp-nav-tab i { font-size: 11px; }
.mp-nav-tab .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--mint, #81D8D0);
  padding: 0 4px;
}
.mp-nav-tab .nav-badge.warn { background: var(--gold, #f6c90e); }
.mp-nav-tab .nav-badge.err  { background: var(--err, #e74c3c); }
.mp-nav-tab .nav-dot {
  width: 6px; height: 6px;
  background: var(--mint, #81D8D0);
  border-radius: 50%;
  margin-left: 2px;
}

/* ═══════════════════════════════════════════════════════════
   G-TOAST — 토스트 알림 SSOT
   ───────────────────────────────────────────────────────────
   기존 파편화 클래스:
     .toast / .toast-wrap      — community·reviews·signup·venue·mypage 계열
     .m-toast / .m-toast-wrap  — mobile 계열
     .toast-host / .toast-pill — reservation·login 계열
     .fp-toast / .rp-toast / .fi-toast / .se-toast / .sv-toast — form page 계열
     .ph-toast / .sr-toast     — place·search 계열
   ───────────────────────────────────────────────────────────
   사용법:
     <!-- 래퍼: 위치만 결정 -->
     <div class="g-toast-wrap" id="toastWrap" role="status" aria-live="polite" aria-atomic="true"></div>

     <!-- JS로 동적 삽입하거나 정적 선언 -->
     <div class="g-toast" id="toast"></div>

     <!-- 위치 variant: 기본값 center-bottom (가장 범용) -->
     <div class="g-toast-wrap g-toast-wrap--br" ...></div>  ← bottom-right (mypage 계열)
     <div class="g-toast-wrap g-toast-wrap--tr" ...></div>  ← top-right (venue-general 계열)

     <!-- 상태 variant -->
     el.className = 'g-toast';                  ← neutral/info (dark bg)
     el.className = 'g-toast g-toast--success'; ← 성공 (green)
     el.className = 'g-toast g-toast--error';   ← 오류 (red)
     el.className = 'g-toast g-toast--warn';    ← 경고 (amber)
     el.className = 'g-toast g-toast--info';    ← 정보 (blue)

     <!-- .show 클래스로 표시 -->
     wrap.classList.add('show'); / wrap.classList.remove('show');
     or: el.classList.add('show'); (래퍼 없이 단일 요소 패턴)

   Depends on: mws-tokens.css (--err, --success, --gold, --tr)
   ─────────────────────────────────────────────────────────── */

/* ── 래퍼: 기본 center-bottom ── */
.g-toast-wrap {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 래퍼 위치 variant */
.g-toast-wrap--br {
  left: auto;
  right: 28px;
  bottom: 28px;
  transform: none;
  align-items: flex-end;
}
.g-toast-wrap--tr {
  left: auto;
  right: 20px;
  bottom: auto;
  top: 100px;
  transform: none;
  align-items: flex-end;
}

/* ── 토스트 본체 ── */
.g-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: rgba(26, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  max-width: min(380px, calc(100vw - 40px));
  white-space: pre-line;
  /* 초기: 숨김 */
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* 표시 상태 */
.g-toast.show,
.g-toast-wrap.show .g-toast {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 상태 variant */
.g-toast--success { background: rgba(22, 163, 74, 0.93); }
.g-toast--error   { background: rgba(220, 38, 38, 0.93); }
.g-toast--warn    { background: rgba(217, 119, 6, 0.93); }
.g-toast--info    { background: rgba(37, 99, 235, 0.93); }

/* 아이콘 크기 */
.g-toast i,
.g-toast svg { font-size: 14px; flex-shrink: 0; }
.g-toast svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── bottom-right 카드 variant (mypage 계열) ── */
/* .g-toast-wrap--br 내 .g-toast: pill → rounded-card 형태 */
.g-toast-wrap--br .g-toast {
  border-radius: 14px;
  padding: 12px 18px;
  transform: translateY(8px);
  white-space: normal;
}
.g-toast-wrap--br.show .g-toast,
.g-toast-wrap--br .g-toast.show {
  transform: translateY(0);
}

/* ── top-right 슬라이드-인 variant (venue 계열) ── */
.g-toast-wrap--tr .g-toast {
  border-radius: 12px;
  padding: 11px 16px;
  max-width: 300px;
  transform: translateX(20px);
  opacity: 0;
  white-space: normal;
}
.g-toast-wrap--tr.show .g-toast,
.g-toast-wrap--tr .g-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ── 모바일 compact (768px 미만) ── */
@media (max-width: 767px) {
  .g-toast-wrap {
    bottom: 80px;   /* 하단 네비게이션바 위 */
    left: 16px;
    right: 16px;
    transform: none;
    align-items: stretch;
  }
  .g-toast {
    text-align: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 13px;
    padding: 11px 16px;
    max-width: 100%;
  }
  /* bottom-right → bottom-center on mobile */
  .g-toast-wrap--br {
    right: 16px;
    bottom: 20px;
    left: 16px;
    align-items: stretch;
  }
  /* top-right stays top-right on mobile (진단용 toast) */
  .g-toast-wrap--tr {
    left: auto;
    right: 12px;
    top: 80px;
    width: auto;
    align-items: flex-end;
  }
}

/* ═══════════════════════════════════════════════════════════
   MP-HEADER — venue 모바일 공통 헤더 SSOT  (2026-05)
   ───────────────────────────────────────────────────────────
   적용 파일 (10개):
     mobile/venue-general-m.html     mobile/venue-hotel-m.html
     mobile/venue-house-m.html       mobile/venue-chapel-m.html
     mobile/venue-outdoor-small-m.html  mobile/venue-religious-m.html
     mobile/venue-public-m.html      mobile/venue-detail-m.html
     mobile/venue-reviews-m.html     mobile/venue-special-offers-m.html
   ───────────────────────────────────────────────────────────
   인라인 CSS 제거 후 이 정의 단독 사용.
   의존 토큰: --border, --text-secondary, --text-muted,
              --sh-sm, --page-pad (mws-tokens.css에서 공급)
   ═══════════════════════════════════════════════════════════ */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: #fff;
  border-bottom: 1px solid var(--border, #eaecef);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad, 16px);
  gap: 10px;
  box-shadow: var(--sh-sm, 0 2px 8px rgba(0,0,0,.07));
}
.mp-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary, #4a5568);
  font-size: 16px;
}
.mp-header-title-wrap { flex: 1; }
.mp-header-title { font-size: 15px; font-weight: 700; }
.mp-header-sub { font-size: 10px; color: var(--text-muted, #8a94a6); }
.mp-header-actions { display: flex; gap: 4px; }
.mp-header-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary, #4a5568);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   MP-SUBNAV / MP-NAV-SCROLL — MyPage 수평 탭 스크롤 SSOT  (2026-05)
   ───────────────────────────────────────────────────────────
   통합 전 클래스명:
     .mp-subnav / .mp-subnav-inner     — consultations, likes, scheduler
     .mp-nav-scroll / .mp-nav-inner    — home, notifications
   두 패턴이 동일한 역할(sticky 수평 탭 컨테이너)이므로 하나로 통합.
   인라인 CSS → mws-layout.css SSOT 위임 (2026-05 주석화)
   ───────────────────────────────────────────────────────────
   적용 파일 (5개):
     mobile/mypage-home-m.html           mobile/mypage-notifications-m.html
     mobile/mypage-consultations-m.html  mobile/mypage-likes-m.html
     mobile/mypage-scheduler-m.html
   ───────────────────────────────────────────────────────────
   의존 토큰: --border (mws-tokens.css에서 공급)
   ═══════════════════════════════════════════════════════════ */

/* 외부 스크롤 래퍼 */
.mp-subnav,
.mp-nav-scroll {
  background: #fff;
  border-bottom: 1px solid var(--border, #eaecef);
  position: sticky;
  top: 52px;       /* .m-header 높이(52px) 바로 아래 */
  z-index: 200;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mp-subnav::-webkit-scrollbar,
.mp-nav-scroll::-webkit-scrollbar { display: none; }

/* 내부 플렉스 열 */
.mp-subnav-inner,
.mp-nav-inner {
  display: flex;
  align-items: stretch;
  height: 44px;
  padding: 0 8px;
  min-width: max-content;
  width: max-content;
}

/* ── MyPage 공통 m-header 셸 (back-btn 형 / logo 형 공통) ── */
.mp-shell-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: 52px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border, #eaecef);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}
