/* ============================================================
   model plaza
   ============================================================ */

.mp-page { background: var(--paper); }
.mp-page [hidden] { display: none !important; }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }

.mp-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 34px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.mp-hero::before {
  content: "";
  position: absolute;
  inset: -20% -15% auto;
  height: 86%;
  background: radial-gradient(50% 60% at 55% 10%, rgba(56, 217, 150, 0.17), transparent 72%);
  z-index: -2;
}
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 122, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 122, 74, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(66% 80% at 50% 30%, #000 10%, transparent 78%);
  mask-image: radial-gradient(66% 80% at 50% 30%, #000 10%, transparent 78%);
  z-index: -1;
  opacity: 0.6;
}
.mp-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.mp-hero-copy h1 {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.mp-hero-copy p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.mp-hero-index {
  flex: none;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mp-hero-index span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.mp-hero-index strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.mp-hero-index em { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-style: normal; }

.mp-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 760px;
  height: 56px;
  margin-top: 30px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 42px -30px rgba(10, 46, 31, 0.35);
  transition: border-color 0.2s var(--ease-state), box-shadow 0.2s var(--ease-state);
}
.mp-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56, 217, 150, 0.16), 0 18px 42px -30px rgba(10, 46, 31, 0.35); }
.mp-search > svg { flex: none; color: var(--muted-2); }
.mp-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.mp-search input::placeholder { color: var(--muted-2); }
.mp-search kbd {
  flex: none;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}
.mp-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
}
.mp-search-clear:hover { background: var(--mint-wash); color: var(--green); }

.mp-body { padding: 30px 0 72px; }
.mp-region-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.mp-region-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s var(--ease-state), color 0.2s var(--ease-state);
}
.mp-region-tab span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
}
.mp-region-tab:hover { background: var(--paper); color: var(--ink); }
.mp-region-tab.is-active { background: var(--green); color: var(--white); }
.mp-region-tab.is-active span { color: rgba(255, 255, 255, 0.66); }

.mp-filter-bar {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.mp-filter-toggle { display: none; }
.mp-filters { padding: 18px 20px 16px; display: grid; gap: 13px; }
.mp-filter-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; gap: 14px; }
.mp-filter-label {
  padding-top: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mp-filter-row select {
  width: min(240px, 100%);
  min-height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: var(--white);
  color: var(--ink-2);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.mp-filter-row select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56, 217, 150, 0.14); }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease-state), background 0.2s var(--ease-state), color 0.2s var(--ease-state);
}
.mp-chip:hover { border-color: rgba(14, 122, 74, 0.32); color: var(--green); }
.mp-chip.is-active { border-color: var(--green); background: var(--mint-wash); color: var(--green-deep); font-weight: 600; }

.mp-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 14px;
}
.mp-results-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.mp-results-meta strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.mp-results-meta span { color: var(--muted-2); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.02em; }
.mp-clear {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 0;
}
.mp-clear:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

.mp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transition: opacity 0.2s var(--ease-state);
}
.mp-grid.is-loading { opacity: 0.45; pointer-events: none; }
.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.mp-card:hover,
.mp-card:focus-visible { transform: translateY(-4px); border-color: rgba(14, 122, 74, 0.35); box-shadow: var(--shadow-card); outline: none; }
.mp-card:focus-visible { box-shadow: 0 0 0 2px var(--mint), var(--shadow-card); }
.mp-card-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.mp-avatar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}
.mp-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mp-avatar-letter { display: none; }
.mp-avatar.is-missing img { display: none; }
.mp-avatar.is-missing .mp-avatar-letter { display: block; }
.mp-name { min-width: 0; flex: 1; }
.mp-name h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-name p { margin-top: 4px; color: var(--muted-2); font-size: 10.5px; }
.mp-region {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.mp-region.domestic { background: var(--mint-soft); color: var(--green-deep); }
.mp-region.overseas { background: var(--paper-2); color: var(--muted); }

.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; min-height: 22px; }
.mp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.mp-tag.hot { border-color: #d5ecc9; background: #f0fbe7; color: #4d7d20; font-weight: 600; letter-spacing: 0.04em; }
.mp-tag.available { border-color: #c9e4d4; background: var(--mint-wash); color: var(--green-deep); }
.mp-tag.more { color: var(--muted-2); }
.mp-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.mp-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.mp-card-meta span + span::before { content: "·"; margin-right: 6px; color: var(--line-strong); }
.mp-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.mp-price div { min-width: 0; }
.mp-price span { display: block; color: var(--muted-2); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.mp-price b { display: block; margin-top: 3px; overflow: hidden; color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mp-price em { margin-left: 2px; color: var(--muted-2); font-family: var(--font-sans); font-size: 8px; font-style: normal; }

.mp-skeleton {
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.mp-skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef6f0 25%, #f8fbf8 50%, #eef6f0 75%);
  background-size: 200% 100%;
  animation: mpShimmer 1.6s linear infinite;
}
.mp-skeleton-line + .mp-skeleton-line { margin-top: 10px; }
.mp-skeleton-line.head { width: 56%; height: 14px; }
.mp-skeleton-line.short { width: 30%; height: 8px; }
.mp-skeleton-block { height: 74px; margin-top: 18px; border-radius: 10px; background: #f2f8f3; }
@keyframes mpShimmer { to { background-position: -200% 0; } }

.mp-state {
  padding: 64px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}
.mp-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mint-wash);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 18px;
}
.mp-state h2 { color: var(--ink); font-size: 20px; letter-spacing: -0.025em; }
.mp-state p { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.mp-state .btn { margin-top: 20px; }
.mp-state-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }

.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 34px;
}
.mp-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  transition: border-color 0.2s var(--ease-state), background 0.2s var(--ease-state), color 0.2s var(--ease-state);
}
.mp-page-btn:hover { border-color: var(--green); color: var(--green); }
.mp-page-btn.is-active { border-color: var(--green); background: var(--green); color: var(--white); }
.mp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mp-page-gap { color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }

/* drawer */
.mp-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 46, 31, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-state);
}
.mp-drawer-backdrop.is-open { opacity: 1; }
.mp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  border-left: 1px solid var(--line);
  background: var(--white);
  box-shadow: -30px 0 70px -40px rgba(10, 46, 31, 0.45);
  transform: translateX(102%);
  transition: transform 0.4s var(--ease-out);
  visibility: hidden;
}
.mp-drawer.is-open { transform: none; visibility: visible; }
.mp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.mp-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
}
.mp-drawer-close:hover { border-color: var(--green); color: var(--green); }
.mp-drawer-body { flex: 1; overflow: auto; padding: 26px 24px 32px; }
.mp-drawer-foot {
  display: flex;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 245, 0.9);
}
.mp-drawer-foot .btn { flex: 1; }
.mp-detail-head { display: flex; align-items: flex-start; gap: 14px; }
.mp-detail-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 20px;
}
.mp-detail-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.mp-detail-avatar.is-missing img { display: none; }
.mp-detail-avatar.is-missing .mp-avatar-letter { display: block; }
.mp-detail-head h2 { color: var(--ink); font-size: 24px; line-height: 1.2; letter-spacing: -0.035em; }
.mp-detail-head p { margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.mp-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.mp-detail-desc { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.mp-detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.mp-detail-section > h3 { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.mp-detail-id { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.mp-detail-id code { flex: 1; overflow: hidden; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-2); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.mp-detail-id button { flex: none; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green); font-size: 10.5px; font-weight: 600; }
.mp-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mp-spec { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.mp-spec span { display: block; color: var(--muted-2); font-size: 9px; }
.mp-spec strong { display: block; margin-top: 4px; color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.mp-spec strong.small { font-family: var(--font-sans); font-size: 11px; }
.mp-noscript { position: fixed; inset: auto 16px 16px; z-index: 200; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--muted); font-size: 12px; box-shadow: var(--shadow-card); }
.mp-noscript a { color: var(--green); text-decoration: underline; }

@media (max-width: 1200px) {
  .mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mp-hero { padding-top: 116px; }
  .mp-hero-top { align-items: flex-start; flex-direction: column; gap: 20px; }
  .mp-hero-index { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 10px 14px; }
  .mp-hero-index span { display: none; }
  .mp-hero-index strong { margin: 0; font-size: 24px; }
  .mp-hero-index em { margin: 0; }
  .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-filter-bar { border-radius: 16px; }
  .mp-filter-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
  }
  .mp-filter-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 9px;
  }
  .mp-filters { display: none; padding: 0 16px 16px; }
  .mp-filters.is-open { display: grid; }
  .mp-filter-row { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .mp-filter-row select { width: 100%; }
}
@media (max-width: 640px) {
  .mp-hero { padding: 108px 0 26px; }
  .mp-hero-copy h1 { font-size: 46px; }
  .mp-hero-copy p { font-size: 13.5px; }
  .mp-search { height: 52px; padding-left: 14px; }
  .mp-search kbd { display: none; }
  .mp-body { padding-top: 20px; }
  .mp-region-tabs { width: 100%; justify-content: space-between; }
  .mp-region-tab { flex: 1; justify-content: center; padding-inline: 8px; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-card { min-height: 270px; }
  .mp-pagination { flex-wrap: wrap; }
  .mp-drawer-head { padding-inline: 18px; }
  .mp-drawer-body { padding-inline: 18px; }
  .mp-drawer-foot { padding-inline: 18px; }
  .mp-spec-grid { grid-template-columns: 1fr; }
}
