:root {
  --orange: #ff6f0f;
  --orange-soft: #fff1e8;
  --text: #191919;
  --line: #eeeeee;
  --bg: #f7f8fa;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
  --home-bg: #15161a;
  --home-panel: #24262b;
  --home-line: #25272c;
  --home-text: #f3f4f6;
  --home-muted: #9da3ae;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(255, 111, 15, 0.18), transparent 32%),
    linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
}

button,
input,
textarea {
  font-family: inherit;
}

.phone-frame {
  width: 390px;
  height: 844px;
  background: #111;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 30px;
  border-radius: 0 0 18px 18px;
  background: #111;
  z-index: 10;
}

.app {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.status-bar {
  height: 45px;
  padding: 13px 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  z-index: 2;
  flex-shrink: 0;
}

.app > .status-bar {
  background: var(--home-bg);
  color: var(--home-text);
}

.app > .status-bar .signal,
.app > .status-bar .wifi {
  background: var(--home-text);
}

.app > .status-bar .battery {
  border-color: var(--home-text);
}

.app > .status-bar .battery::before,
.app > .status-bar .battery::after {
  background: var(--home-text);
}

.status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.signal,
.wifi,
.battery {
  height: 10px;
  display: inline-block;
  border-radius: 2px;
  background: #111;
}

.signal {
  width: 14px;
  clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 35%, 80% 55%, 100% 10%, 100% 100%);
}

.wifi {
  width: 14px;
  border-radius: 50% 50% 0 0;
  height: 8px;
}

.battery {
  width: 20px;
  height: 10px;
  border: 1.5px solid #111;
  background: transparent;
  position: relative;
}

.battery::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 4px;
  border-radius: 1px;
  background: #111;
}

.battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: #111;
}

.screen {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  background: #fff;
}

.screen.active {
  display: flex;
}

#home {
  background: var(--home-bg);
}

.topbar {
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.home-topbar {
  height: 62px;
  padding: 4px 15px 8px;
  border-bottom: 0;
  background: var(--home-bg);
  color: var(--home-text);
}

.location {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-topbar .location {
  gap: 8px;
  max-width: 210px;
  font-size: 0;
}

.location[data-location-trigger='true'] {
  cursor: pointer;
  user-select: none;
}

.location[data-location-trigger='true']:active {
  color: var(--orange);
}

.location-pin {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--home-text);
}

.location-pin svg,
.top-action svg {
  width: 100%;
  height: 100%;
  display: block;
}

.location-primary {
  min-width: 0;
  color: var(--home-text);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.location-secondary {
  color: #838996;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.location-secondary:empty {
  display: none;
}

.arrow {
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 21px;
}

.top-action {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-text);
  cursor: pointer;
}

.top-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-action:active {
  color: var(--orange);
}

.top-action-bell {
  position: relative;
}

.top-action-bell::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--home-bg);
}

.content {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  padding-bottom: 84px;
}

#home .content {
  background: var(--home-bg);
  padding-bottom: 96px;
}

.content.gray {
  background: var(--bg);
}

.content::-webkit-scrollbar,
.detail-content::-webkit-scrollbar,
.form-content::-webkit-scrollbar,
.neighborhood-content::-webkit-scrollbar,
.map-content::-webkit-scrollbar {
  display: none;
}

.search-area {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

#home .search-area {
  display: none;
}

.search-box {
  height: 42px;
  border-radius: 12px;
  background: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 13px;
  color: #9ca3af;
  font-size: 15px;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.search-box:focus-within {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
}

.search-submit {
  height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.search-modal {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  background: var(--home-bg);
  color: var(--home-text);
  border-radius: 36px;
  overflow: hidden;
}

.search-modal.open {
  display: flex;
}

.search-modal .status-bar {
  background: var(--home-bg);
  color: var(--home-text);
}

.search-modal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 18px;
  background: var(--home-bg);
}

.home-search-back {
  width: 32px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--home-text);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.home-search-field {
  flex: 1;
  min-width: 0;
  height: 56px;
  border-radius: 14px;
  background: #2a2c32;
  display: flex;
  align-items: center;
  padding: 0 10px 0 18px;
}

.home-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--home-text);
  font-size: 22px;
  font-weight: 750;
}

.home-search-input::placeholder {
  color: #8f95a0;
}

.home-search-clear {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: #9aa0aa;
  color: #202228;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: none;
  cursor: pointer;
}

.home-search-clear.show {
  display: grid;
  place-items: center;
}

.home-search-submit {
  border: 0;
  background: transparent;
  color: var(--home-text);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.home-search-submit:active {
  color: var(--orange);
}

.search-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 96px;
}

.search-result-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 24px 17px;
  border-bottom: 1px solid #0b0c0f;
  scrollbar-width: none;
}

.search-result-chips[hidden],
.search-modal-content[hidden],
.search-results-content[hidden] {
  display: none;
}

.search-result-chips::-webkit-scrollbar {
  display: none;
}

.search-result-chip {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 19px;
  background: var(--home-panel);
  color: #f0f1f4;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.search-result-chip.active {
  background: #f4f5f7;
  color: #111317;
}

.search-section-title {
  color: #a1a7b1;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 24px;
}

.search-neighborhood-list {
  display: grid;
  gap: 24px;
}

.search-neighborhood {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--home-text);
  padding: 0;
  text-align: left;
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
}

.search-neighborhood:active {
  color: var(--orange);
}

.search-results-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 24px 96px;
  border-top: 1px solid #0b0c0f;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.search-results-header strong {
  color: var(--home-text);
  font-size: 22px;
  font-weight: 950;
}

.search-alert-btn {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #2a2c32;
  color: var(--home-text);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.search-results-list {
  margin: 0 -24px;
}

.search-modal .product-card {
  border-bottom-color: var(--home-line);
  background: var(--home-bg);
}

.search-modal .product-title {
  color: var(--home-text);
}

.search-modal .price {
  color: #fff;
}

.search-modal .meta {
  color: #a5abb5;
}

.search-modal .card-stats {
  color: #79808c;
}

.search-modal .empty-products {
  color: var(--home-muted);
}

.search-modal .empty-products strong {
  color: var(--home-text);
}

.chips {
  display: flex;
  gap: 10px;
  padding: 10px 15px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #4a4d55 transparent;
  background: #fff;
}

.chips::-webkit-scrollbar {
  height: 5px;
}

.chips::-webkit-scrollbar-track {
  background: transparent;
}

.chips::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #4a4d55;
}

.chips::-webkit-scrollbar-thumb:hover {
  background: #656a75;
}

.chip {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 15px;
  white-space: nowrap;
  background: var(--home-panel);
  color: #f0f1f4;
  font-weight: 850;
  cursor: pointer;
}

.chip.active {
  color: #111317;
  background: #f4f5f7;
}

.product-list {
  background: #fff;
}

#home .chips,
#home .product-list {
  background: var(--home-bg);
}

.product-card {
  --product-card-gap: 14px;
  position: relative;
  display: flex;
  gap: var(--product-card-gap);
  min-height: 137px;
  padding: 15px 15px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

#home .product-card {
  border-bottom-color: var(--home-line);
  background: var(--home-bg);
}

.thumb {
  width: calc((100% - var(--product-card-gap)) / 3);
  height: 122px;
  border-radius: 8px;
  background: #f3f4f6;
  flex: 0 0 calc((100% - var(--product-card-gap)) / 3);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.thumb.sold::after {
  content: '판매완료';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.gradient-1 {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}
.gradient-2 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.gradient-3 {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.gradient-4 {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}
.gradient-5 {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.product-info {
  min-width: 0;
  flex: 0 0 calc((100% - var(--product-card-gap)) * 2 / 3);
  display: flex;
  flex-direction: column;
  padding: 2px 24px 0 0;
}

.product-title {
  font-size: 16px;
  line-height: 1.28;
  font-weight: 760;
  color: #222;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#home .product-title {
  color: var(--home-text);
}

.meta {
  font-size: 13px;
  color: #8b8b8b;
  margin-bottom: 6px;
}

#home .meta {
  color: #a5abb5;
}

.price {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: auto;
}

#home .price {
  color: #ffffff;
}

.card-stats {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #8b8b8b;
  margin-top: auto;
  min-height: 24px;
}

#home .card-stats {
  color: #79808c;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.stat::before {
  display: inline-block;
  color: currentColor;
  line-height: 1;
}

.stat svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-like::before {
  content: '♥';
  font-size: 14px;
}

.product-more {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #a5abb5;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.empty-products {
  padding: 56px 24px;
  text-align: center;
  color: #6b7280;
}

.empty-products strong {
  display: block;
  color: #111;
  font-size: 17px;
  margin-bottom: 7px;
}

#home .empty-products {
  color: var(--home-muted);
}

#home .empty-products strong {
  color: var(--home-text);
}

.reset-search-btn {
  margin-top: 16px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.floating-write {
  position: absolute;
  right: 16px;
  bottom: 92px;
  height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: 35;
}

.tabbar {
  height: 78px;
  padding: 7px 8px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #22252a;
  background: rgba(18, 19, 23, 0.97);
  backdrop-filter: blur(18px);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}

.tab {
  border: 0;
  background: transparent;
  color: #858b96;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 750;
  cursor: pointer;
}

.tab .ico {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.tab .ico svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab.active {
  color: #f5f6f8;
  font-weight: 800;
}

.tab.active .ico svg {
  stroke-width: 2.35;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  padding: 20px 16px 10px;
}

.community-screen {
  background: var(--home-bg);
  color: var(--home-text);
}

.community-topbar {
  height: 62px;
  padding: 4px 15px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--home-bg);
  flex-shrink: 0;
}

.community-topbar h1 {
  margin: 0;
  color: var(--home-text);
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-title-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.community-title-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-actions button {
  position: relative;
  width: 25px;
  height: 25px;
  border: 0;
  background: transparent;
  color: var(--home-text);
  padding: 0;
  cursor: pointer;
}

.community-actions svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-bell::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--home-bg);
}

.community-tabs,
.community-chips {
  display: flex;
  overflow-x: auto;
  background: var(--home-bg);
  scrollbar-width: none;
  flex-shrink: 0;
}

.community-tabs::-webkit-scrollbar,
.community-chips::-webkit-scrollbar {
  display: none;
}

.community-tabs {
  gap: 23px;
  padding: 17px 24px 14px;
}

.community-tabs button {
  border: 0;
  background: transparent;
  color: #8d939e;
  padding: 0;
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.community-tabs button.active {
  color: var(--home-text);
}

.community-chips {
  gap: 10px;
  padding: 12px 24px 17px;
  border-bottom: 1px solid var(--home-line);
}

.community-chips button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--home-panel);
  color: #f0f1f4;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.community-chips button.active {
  background: #f4f5f7;
  color: #111317;
}

.community-content {
  background: var(--home-bg);
  padding-bottom: 112px;
}

.community-post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-bg);
}

.community-post-main {
  min-width: 0;
}

.community-tag {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 5px;
  background: #2d3037;
  color: #e7e9ee;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 12px;
}

.community-more {
  position: absolute;
  top: 23px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #9aa1ad;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.community-post h2 {
  margin: 0 28px 10px 0;
  color: var(--home-text);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
}

.community-post p {
  margin: 0 0 34px;
  color: #e0e3e8;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-post .community-place {
  color: #e6e8ed;
}

.community-post .community-place::before {
  content: '●';
  color: #8c929d;
  font-size: 13px;
  margin-right: 7px;
}

.community-meta {
  color: #9aa1ad;
  font-size: 14px;
  font-weight: 650;
}

.community-thumb {
  width: 92px;
  height: 92px;
  border-radius: 7px;
  overflow: hidden;
  align-self: center;
  background: linear-gradient(135deg, #412b1d, #d27642);
  position: relative;
  display: grid;
  place-items: center;
}

.community-thumb span {
  position: absolute;
  left: 8px;
  top: 7px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.community-thumb-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(15, 16, 20, 0.22), rgba(15, 16, 20, 0.08)),
    radial-gradient(circle at 72% 20%, #ffc46d, transparent 17%),
    linear-gradient(135deg, #271b16 0%, #8a4a28 58%, #201815 100%);
  color: #dff4ff;
  font-size: 18px;
  font-weight: 950;
}

.community-comment {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #9aa1ad;
  font-size: 14px;
  font-weight: 800;
}

.community-write {
  bottom: 92px;
}

.notice-card,
.life-card,
.nearby-card {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.notice-card {
  margin: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.notice-title,
.life-title,
.nearby-title {
  font-weight: 900;
}

.notice-title {
  margin-bottom: 6px;
}

.notice-text {
  font-size: 13px;
  color: #7c2d12;
  line-height: 1.45;
}

.life-card {
  margin: 10px 14px;
  padding: 16px;
  border-radius: 18px;
}

.life-tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f2f4f6;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 10px;
}

.life-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.life-body,
.nearby-desc {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.life-stats {
  display: flex;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
  margin-top: 12px;
}

.nearby-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nearby-card {
  border-radius: 18px;
  padding: 15px;
  min-height: 126px;
}

.nearby-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  font-size: 22px;
  margin-bottom: 10px;
}

.nearby-desc {
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.nearby-map-screen {
  position: relative;
  overflow: hidden;
  background: #111318;
}

.nearby-map-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #1c2229;
}

#nearbyMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nearby-map-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.28), rgba(10, 12, 17, 0.14) 34%),
    rgba(11, 15, 22, 0.16);
  z-index: 1;
}

.nearby-map-search {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 6;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(29, 31, 38, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.nearby-map-search-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #aeb4bf;
}

.nearby-map-search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nearby-map-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f7f8fa;
  font-size: 18px;
  font-weight: 750;
}

.nearby-map-search input::placeholder {
  color: #969ca7;
}

.nearby-map-search button {
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.nearby-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #191c22, #252a32);
  color: #f7f8fa;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.nearby-map-fallback.show {
  display: flex;
}

.nearby-info-window {
  min-width: 150px;
  padding: 10px 12px;
  color: #191919;
  font-size: 12px;
  line-height: 1.35;
}

.nearby-info-window strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 900;
}

.nearby-info-window span {
  color: #5f6672;
}

.chat-list {
  background: #fff;
}

.chat-item {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.chat-main {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-preview {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-post-title {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  color: #9ca3af;
  font-size: 12px;
  margin-left: auto;
}

.chat-product {
  width: 45px;
  height: 45px;
  border-radius: 9px;
  background: #fed7aa;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-content {
  position: relative;
  padding-bottom: 78px;
}

#chat.room-open .topbar {
  display: none;
}

#chat.room-open .chat-content {
  padding-bottom: 0;
}

.chat-room-list-view.hidden {
  display: none;
}

.chat-room-view {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  background: var(--home-bg);
  color: var(--home-text);
}

.chat-room-view.open {
  display: flex;
}

.chat-room-top {
  min-height: 70px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--home-bg);
}

.chat-back-btn {
  width: 36px;
  height: 36px;
  font-size: 30px;
  color: var(--home-text);
}

.chat-room-heading {
  min-width: 0;
  flex: 1;
}

.chat-room-title {
  font-weight: 950;
  font-size: 18px;
  line-height: 1.25;
  color: var(--home-text);
}

.chat-room-subtitle {
  color: #9aa1ad;
  font-size: 12px;
  margin-top: 2px;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}

.chat-room-action {
  width: 28px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--home-text);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.chat-room-post-card {
  display: none;
  width: 100%;
  padding: 12px 24px;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-bg);
  text-align: left;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-room-post-card.show {
  display: flex;
}

.chat-room-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background: #2a2c32;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.chat-room-post-thumb.sold::after {
  content: '판매완료';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.chat-room-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-room-post-info {
  min-width: 0;
  flex: 1;
}

.chat-room-post-title {
  color: var(--home-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-post-meta {
  color: #9aa1ad;
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-post-price {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  margin-top: 5px;
}

.chat-room-tools {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 10px 24px 13px;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-bg);
  scrollbar-width: none;
  flex-shrink: 0;
}

.chat-room-tools::-webkit-scrollbar {
  display: none;
}

.chat-room-tools button {
  min-height: 38px;
  border: 1px solid #2d3037;
  border-radius: 10px;
  background: #15161a;
  color: var(--home-text);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.chat-buy-banner {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #183327;
  color: #85e8bd;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-message-list {
  flex: 1;
  overflow-y: auto;
  background: var(--home-bg);
  padding: 18px 14px 18px;
}

.chat-message-row {
  display: flex;
  position: relative;
  flex-direction: column;
  max-width: 78%;
  margin-bottom: 16px;
}

.chat-message-row.mine {
  margin-left: auto;
  align-items: flex-end;
}

.chat-message-row.theirs {
  margin-right: auto;
  align-items: flex-start;
  padding-left: 52px;
}

.chat-message-bubble {
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message-row.mine .chat-message-bubble {
  background: var(--orange);
  color: #fff;
  border-bottom-right-radius: 7px;
}

.chat-message-row.theirs .chat-message-bubble {
  background: #2c2e34;
  color: #fff;
  border-bottom-left-radius: 7px;
}

.chat-message-time {
  margin-top: 4px;
  color: #7d838e;
  font-size: 12px;
}

.chat-message-avatar {
  position: absolute;
  left: 4px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #30333a;
  font-size: 18px;
}

.chat-date-divider {
  color: #818792;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  margin: 16px 0 20px;
}

.chat-quick-replies {
  display: flex;
  gap: 8px;
  padding: 10px 24px 8px;
  background: var(--home-bg);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-quick-replies::-webkit-scrollbar {
  display: none;
}

.chat-quick-replies button {
  min-height: 38px;
  border: 1px solid #2a2d34;
  border-radius: 999px;
  background: transparent;
  color: #f1f3f6;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.chat-quick-replies .chat-quick-prev {
  width: 42px;
  padding: 0;
  font-size: 28px;
}

.chat-compose {
  min-height: 68px;
  padding: 9px 24px 14px;
  border-top: 0;
  display: flex;
  gap: 10px;
  background: var(--home-bg);
  flex-shrink: 0;
}

.chat-message-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 48px 0 18px;
  outline: none;
  background: #2c2e34;
  color: #fff;
  font-size: 15px;
}

.chat-message-input:focus {
  box-shadow: 0 0 0 2px rgba(255, 111, 15, 0.25);
}

.chat-plus-btn,
.chat-emoji-btn,
.chat-send-btn {
  width: 38px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #8a909b;
  font-weight: 900;
  font-size: 28px;
  cursor: pointer;
}

.chat-emoji-btn {
  margin-left: -56px;
  z-index: 1;
}

.chat-send-btn {
  color: #6c7380;
  font-size: 31px;
}

.chat-send-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chat-empty {
  background: transparent;
}

.my-header {
  background: #fff;
  padding: 18px 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fed7aa, #ffedd5);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.profile-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.manner {
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.quick {
  padding: 18px 4px;
  text-align: center;
  font-size: 13px;
  color: #374151;
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.quick:last-child {
  border-right: 0;
}

.quick div {
  font-size: 25px;
  margin-bottom: 6px;
}

.menu-list {
  margin-top: 10px;
  background: #fff;
}

.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon {
  width: 30px;
  font-size: 22px;
  text-align: center;
}

.badge {
  margin-left: auto;
  font-size: 12px;
  color: #fff;
  background: var(--orange);
  padding: 3px 7px;
  border-radius: 999px;
}

.detail-modal,
.write-modal,
.location-modal,
.map-modal {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 50;
  display: none;
  flex-direction: column;
  border-radius: 36px;
  overflow: hidden;
}

.detail-modal {
  background: var(--home-bg);
  color: var(--home-text);
}

.detail-modal > .status-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
  color: #fff;
  z-index: 3;
}

.detail-modal .modal-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  z-index: 4;
  height: 48px;
  border-bottom: 0;
  background: transparent;
  color: #fff;
  font-size: 0;
}

.detail-modal .modal-top .icon-btn {
  color: #fff;
  font-size: 42px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.detail-modal .modal-top .icon-btn:last-child {
  font-size: 26px;
}

.location-modal {
  z-index: 60;
}

.map-modal {
  z-index: 70;
}

.detail-modal.open,
.write-modal.open,
.location-modal.open,
.map-modal.open {
  display: flex;
}

.modal-top {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.modal-spacer {
  width: 24px;
}

.detail-content,
.form-content,
.neighborhood-content,
.map-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 82px;
}

.detail-content {
  background: var(--home-bg);
  color: var(--home-text);
  padding-bottom: 116px;
}

.detail-hero {
  height: 423px;
  min-height: 423px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 98px;
  line-height: 1;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.detail-hero.has-image {
  background: #111317;
}

.detail-buy-banner {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #1f2b48;
  color: #eaf1ff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.seller-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-bg);
}

.seller-info {
  flex: 1;
}

.seller-name {
  font-weight: 900;
  margin-bottom: 3px;
  color: var(--home-text);
}

.seller-region {
  font-size: 13px;
  color: var(--home-muted);
}

.temp {
  color: var(--orange);
  font-weight: 900;
  font-size: 18px;
}

.detail-body {
  padding: 26px 24px 36px;
}

.detail-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #fff;
}

.detail-body-price {
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  margin-bottom: 18px;
}

.detail-category {
  color: #9aa1ad;
  font-size: 14px;
  margin-bottom: 25px;
}

.detail-desc {
  line-height: 1.58;
  font-size: 17px;
  color: #f2f3f5;
  white-space: pre-line;
}

.detail-counts {
  padding-top: 16px;
  color: #858b96;
  font-size: 13px;
}

.detail-bottom,
.write-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px 17px;
}

.detail-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 92px;
  padding: 12px 24px 18px;
  border-top: 1px solid #202226;
  background: #111216;
}

.heart {
  width: 42px;
  height: 54px;
  border: 0;
  background: transparent;
  color: #e6e8ec;
  font-size: 34px;
  cursor: pointer;
  flex-shrink: 0;
}

.bottom-price {
  display: none;
}

.chat-btn,
.buy-btn {
  flex: 1;
  height: 58px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.chat-btn {
  background: #2b2d33;
}

.buy-btn {
  background: var(--orange);
}

.submit-btn,
.save-map-btn {
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.form-content {
  padding: 18px 16px 88px;
}

.photo-upload-group {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.photo-upload {
  width: 86px;
  height: 86px;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.photo-upload-icon {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 5px;
}

.photo-input {
  display: none;
}

.photo-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  min-width: 0;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  color: #6b7280;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-image,
.detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-hero-image {
  position: absolute;
  inset: 0;
}

.detail-image-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.45);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.detail-image-prev {
  left: 12px;
}

.detail-image-next {
  right: 12px;
}

.detail-image-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.field {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  height: 52px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

textarea.field {
  height: 180px;
  resize: none;
  padding-top: 16px;
  line-height: 1.5;
}

.form-row {
  border-bottom: 1px solid var(--line);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.category-row,
.action-row {
  cursor: pointer;
}

.category-row:focus-visible,
.action-row:focus-visible {
  outline: 3px solid rgba(255, 111, 15, 0.18);
  outline-offset: -3px;
}

.action-row.off .form-sub {
  color: #6b7280;
}

.category-picker {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}

.category-picker.open {
  display: grid;
}

.category-option {
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-option.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
}

.form-sub {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.submit-btn,
.save-map-btn {
  width: 100%;
  height: 48px;
  font-size: 16px;
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.neighborhood-content,
.map-content {
  padding: 18px 16px 90px;
  background: var(--bg);
}

.modal-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 14px;
}

.neighborhood-card {
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.neighborhood-card.selected {
  border-color: var(--orange);
  background: #fff7ed;
}

.neighborhood-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.neighborhood-name {
  font-size: 18px;
  font-weight: 900;
}

.neighborhood-meta {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.selected-label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  background: var(--orange-soft);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.remove-region {
  border: 0;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.add-neighborhood-card {
  width: 100%;
  border: 1.5px dashed #d1d5db;
  background: #fff;
  color: var(--orange);
  border-radius: 16px;
  padding: 17px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}

.add-neighborhood-card:disabled {
  color: #9ca3af;
  background: #f3f4f6;
  cursor: not-allowed;
}

.location-help {
  margin-top: 14px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

.map-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-search-input {
  flex: 1;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.kakao-map-mock {
  height: 245px;
  border-radius: 20px;
  overflow: hidden;
  background: #fef3c7;
  border: 1px solid #fde68a;
  position: relative;
  margin-bottom: 14px;
}

.kakao-map-mock::before {
  content: 'Kakao Map';
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7c2d12;
  font-size: 12px;
  font-weight: 900;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(255, 111, 15, 0.24), transparent 18%),
    radial-gradient(circle at 25% 70%, rgba(47, 128, 237, 0.16), transparent 20%);
  background-size:
    42px 42px,
    42px 42px,
    100% 100%,
    100% 100%;
}

.map-road {
  position: absolute;
  height: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.map-road.r1 {
  width: 260px;
  left: -25px;
  top: 92px;
}
.map-road.r2 {
  width: 310px;
  right: -55px;
  top: 152px;
  transform: rotate(16deg);
}
.map-road.r3 {
  width: 210px;
  left: 68px;
  top: 45px;
  transform: rotate(72deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  font-size: 38px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
  z-index: 3;
}

.map-current {
  position: absolute;
  left: 50%;
  top: calc(50% + 8px);
  transform: translateX(-50%);
  z-index: 3;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.region-preset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-region {
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
  min-height: 46px;
  font-weight: 800;
  cursor: pointer;
}

.preset-region.selected {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}

.preset-region.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  body {
    background: #fff;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-frame::before {
    display: none;
  }

  .app,
  .search-modal,
  .detail-modal,
  .write-modal,
  .location-modal,
  .map-modal {
    border-radius: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}
.menu-sub {
  margin-left: auto;
  color: #9ca3af;
  font-size: 13px;
}
.modal-spacer {
  width: 24px;
}

/* Real Kakao map integration */
.kakao-map-mock {
  background: #eef2f7;
}

.kakao-map-mock::before,
.map-grid,
.map-road,
.map-pin {
  display: none !important;
}

#kakaoMap {
  width: 100%;
  height: 100%;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  z-index: 4;
}

.map-fallback.show {
  display: flex;
}

.map-search-button {
  width: 62px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.selected-location-box {
  min-height: 54px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}

.selected-location-box strong {
  display: block;
  color: #111;
  font-size: 16px;
  margin-bottom: 3px;
}
