body.detail-open { overflow: hidden; }

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 31, 27, .48);
  backdrop-filter: blur(2px);
}

.mobile-detail {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 60;
  width: min(560px, 100%);
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid #cad7cf;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fffdf7;
  box-shadow: 0 -16px 48px rgba(23, 51, 46, .24);
  color: #17332e;
  transform: translateX(50%);
}

.mobile-detail::before {
  display: block;
  width: 42px;
  height: 4px;
  margin: -5px auto 14px;
  border-radius: 8px;
  background: #bac7c0;
  content: "";
}

.detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.detail-head span,
.detail-grid span {
  display: block;
  color: #6f7f79;
  font-size: 11px;
  letter-spacing: .06em;
}

.detail-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: -.025em;
}

#mobile-detail-close {
  flex: 0 0 44px;
  align-self: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7ddd8;
  border-radius: 50%;
  background: #f0f2ec;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 12px;
}

.detail-grid > div {
  padding: 12px;
  border: 1px solid #dde1da;
  border-radius: 12px;
  background: #f7f6f0;
}

.detail-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
}

.mobile-detail > p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  color: #6f7f79;
  font-size: 13px;
}

.mobile-detail > p strong {
  color: #17332e;
  text-align: right;
}

.detail-filter {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
}

@media (max-width: 360px) {
  .mobile-detail { padding-inline: 14px; }
  .detail-head h3 { font-size: 21px; }
  .detail-grid { gap: 7px; }
  .detail-grid > div { padding: 10px; }
}
