:root {
  color-scheme: light;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Noto Sans KR",
    "Malgun Gothic",
    sans-serif;
  color: #151515;
  background: #f0f1f3;
  --yellow: #ffca12;
  --subtle: #757982;
  --line: #e8e8e9;
  --bar: 62px;
  --app-width: 700px;
  --app-height: 100vh;
}
/* Guard the unit itself: older WebViews defer validation of calc() containing var(). */
@supports (height: 100dvh) {
  :root { --app-height: 100dvh; }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
body > header {
  display: none;
}
main {
  width: min(100%, var(--app-width));
  min-height: var(--app-height);
  margin: 0 auto;
  background: white;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
}
section,
article {
  min-width: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.link-button {
  cursor: pointer;
  padding: 9px 13px;
  border: 1px solid #d7d8d9;
  border-radius: 7px;
  color: #191919;
  background: white;
}
button:disabled {
  color: #f5f5f5;
  background: #a9adb5;
  cursor: default;
  border-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #386bb3;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 24px;
  margin: 9px 0 20px;
}
h2 {
  font-size: 19px;
  margin: 22px 0 8px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  margin: 8px 0;
}
small,
.muted {
  color: var(--subtle);
  font-size: 14px;
}
svg {
  display: inline-block;
  width: 22px;
  height: 22px;
}
#view {
  min-height: calc(var(--app-height) - var(--bar) - env(safe-area-inset-bottom, 0px));
}
body:not([data-page="home"]):not([data-page="list"]):not(
    [data-page="saved"]
  ):not([data-page="more"]):not([data-page="detail"]):not(
    [data-page="building"]
  )
  #view {
  padding: 20px clamp(18px, 4vw, 30px) 28px;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: calc(var(--bar) + 12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90vw, 600px);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  background: #29292a;
  box-shadow: 0 4px 18px #0002;
  pointer-events: none;
}
main > nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-width));
  height: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 20;
  background: #fafafa;
  border-top: 1px solid #efefef;
}
main > nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: #a6a9b0;
  font-size: 11px;
}
main > nav a svg {
  width: 22px;
  height: 22px;
}
main > nav a[aria-current="page"] {
  color: #111;
  font-weight: 700;
}
.row,
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
button.primary,
.yellow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  color: #151515;
  font-weight: 720;
  padding: 10px 17px;
}
.grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 9px;
  border: 1px solid #c8c9cb;
  border-radius: 6px;
  margin-top: 4px;
  background: white;
  color: #161616;
}
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: #f6be00;
}
textarea {
  resize: vertical;
}
.link-button {
  display: inline-block;
}
.deck {
  display: grid;
  gap: 10px;
}
.card {
  position: relative;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.card p,
.description {
  white-space: pre-wrap;
}
.card .price {
  font-weight: 750;
}
.card small {
  font-size: 12px;
}
.thumb {
  float: right;
  object-fit: cover;
  border-radius: 5px;
  width: 84px;
  height: 79px;
  margin-left: 8px;
}
.no-photo {
  background: #f1f2f2;
  display: inline-grid;
  place-items: center;
  color: #73777b;
  font-size: 12px;
}
.list-empty {
  padding: 20px 4px;
  color: var(--subtle);
}
.reply {
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
}
.app-title {
  margin: 0;
  padding: 23px 12px 12px;
  text-align: center;
  font-size: 21px;
  font-weight: 750;
}
.home-hero {
  height: clamp(273px, 44vh, 430px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px clamp(28px, 9.5vw, 62px) 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.home-hero h1 {
  margin: 0;
  line-height: 1;
}
.home-hero .brand-lockup {
  display: block;
  width: clamp(184px, 58vw, 278px);
  max-width: 100%;
  height: auto;
}
.map-start {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  background: #111;
  color: var(--yellow);
  border-radius: 40px;
  padding: 10px 19px;
  font-weight: 750;
  font-size: clamp(16px, 4.3vw, 19px);
}
.safety-banner {
  padding: 16px clamp(20px, 7vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}
.safety-banner span {
  display: grid;
  gap: 2px;
}
.safety-banner strong,
.safety-banner b {
  font-size: 14px;
}
.safety-banner small {
  font-size: 12px;
}
.safety-banner b {
  background: #ffda17;
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}
.districts {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #d8d8db;
  box-shadow: 0 3px 6px #0001;
}
.districts::-webkit-scrollbar {
  display: none;
}
.districts button {
  flex: 1 0 auto;
  min-width: 25%;
  padding: 17px 14px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: white;
  color: #898b90;
  font-weight: 700;
  font-size: 17px;
}
.districts button[aria-pressed="true"] {
  border-color: var(--yellow);
  color: #111;
}
.home-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(14px, 5vw, 22px);
  row-gap: 20px;
  padding: 17px clamp(16px, 7vw, 36px) 24px;
}
.home-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-media {
  position: relative;
  display: block;
  height: 0;
  padding-top: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 8px;
}
.home-photo {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f1f1f1;
}
.home-card strong {
  font-size: clamp(18px, 4.9vw, 24px);
  line-height: 1.3;
}
.home-card span,
.home-card small {
  font-size: 13px;
}
.chat-launch {
  position: fixed;
  bottom: calc(var(--bar) + 16px + env(safe-area-inset-bottom, 0px));
  right: max(calc((100vw - var(--app-width)) / 2 + 15px), 15px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 13px;
  background: white;
  box-shadow: 0 1px 4px #0001;
}
.chat-launch svg {
  width: 27px;
  height: 27px;
}
.map-page {
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(var(--app-height) - var(--bar) - env(safe-area-inset-bottom, 0px));
  min-height: 300px;
  overflow: hidden;
  background: #f4f4f4;
}
.map-search {
  margin: 12px 14px;
  padding: 0 10px;
  border-radius: 13px;
  background: white;
  min-height: 47px;
  display: flex;
  align-items: center;
}
.map-search label {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.map-search label svg {
  flex: none;
  margin-right: 8px;
}
.map-search input {
  margin: 0;
  padding: 8px 2px;
  border: 0;
  font-size: 16px;
}
.map-search button {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 0 9px;
  font-size: 14px;
}
.map-search button svg {
  width: 15px;
  height: 15px;
}
.map-filters {
  position: absolute;
  top: 64px;
  left: 12px;
  right: 12px;
  padding: 4px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 6px 20px #0003;
  z-index: 8;
  max-height: 80%;
  overflow: auto;
}
#results {
  flex: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  position: relative;
}
.map-area {
  position: relative;
  flex: 1;
  min-height: 0;
}
#map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#map .zt-map {
  height: 100%;
  border-radius: 0;
}
.map-area .chat-launch {
  position: absolute;
  bottom: 14px;
  right: 14px;
}
.map-sheet {
  background: white;
  border-radius: 13px 13px 0 0;
  box-shadow: 0 -1px 5px #0001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.map-sheet.open {
  height: 50%;
}
#result-toggle {
  flex: none;
  display: block;
  position: relative;
  padding: 17px 8px 9px;
  text-align: center;
  width: 100%;
  border: 0;
  font-size: 18px;
}
.sheet-handle {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  background: #e3e3e4;
  border-radius: 5px;
}
#listing-results {
  overflow: auto;
  padding: 10px 16px;
}
.guest-saved {
  display: flex;
  min-height: calc(var(--app-height) - var(--bar) - 70px - env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px clamp(20px, 7.3vw, 60px) 14px;
}
.guest-saved .alert-symbol {
  width: 46px;
  height: 46px;
  padding-top: 3px;
  border: 2px solid #161616;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 27px;
  box-shadow: 3px 2px 0 #ffd02b;
  line-height: 38px;
}
.guest-saved h2 {
  margin: 10px 0 9px;
  font-size: 24px;
  font-weight: 550;
}
.guest-saved p {
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.42;
  margin: 5px 0 22px;
}
.guest-saved a {
  width: 100%;
  font-size: 18px;
  min-height: 53px;
}
.saved-screen {
  display: flex;
  flex-direction: column;
  min-height: inherit;
}
.saved-help {
  text-align: center;
  color: var(--subtle);
  font-size: 16px;
  line-height: 1.45;
  margin: 4px 15px 14px;
}
.selection-bar {
  display: flex;
  gap: 6px;
  padding: 4px 16px 15px;
}
.selection-bar button {
  padding: 5px 10px;
  font-size: 14px;
}
.remove-selection {
  margin-left: auto;
}
.saved-list {
  flex: 1;
  background: #f0f1f3;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saved-empty {
  margin: auto;
  text-align: center;
  color: #797e88;
  font-size: 16px;
}
.saved-card {
  background: white;
  display: flex;
  align-items: center;
  gap: 9px;
}
.saved-photo {
  width: 59px;
  height: 66px;
  object-fit: cover;
  border-radius: 4px;
}
.saved-card a {
  display: block;
}
.saved-card div {
  min-width: 0;
}
.saved-card span,
.saved-card small {
  display: block;
  font-size: 12px;
}
.select-fav {
  margin: 0;
}
.account-head {
  background: #f0f1f3;
  padding: clamp(34px, 9vw, 60px) clamp(20px, 7vw, 36px) 26px;
}
.account-head h1 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 22px;
}
.account-links {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.account-links > a:last-child {
  text-decoration: underline;
  color: #777c84;
}
.account-links .yellow-button {
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 5px;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 4px;
  font-weight: 700;
}
.quick-links svg {
  margin-right: 8px;
}
.quick-links a + a {
  border-left: 1px solid var(--line);
}
.menu-group {
  border-top: 7px solid #f0f1f2;
}
.menu-row {
  display: block;
  width: 100%;
  padding: 13px 19px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
}
.gate-panel {
  padding: 30px 10px;
  text-align: center;
}
main:has(#view .listing-detail) {
  padding-bottom: 0;
}
body[data-page="detail"] main,
body[data-page="building"] main {
  padding-bottom: 0;
}
@media (min-width: 701px) {
  main {
    box-shadow: 0 0 32px #23273412;
  }
  .home-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.saved-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--line);
}
.saved-footer button {
  width: 100%;
}
.saved-footer button:disabled {
  background: #e9eaeb;
  color: #6e727b;
}
.ask-dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 28px #0002;
  width: min(90%, 410px);
  padding: 22px;
}
.ask-dialog::backdrop {
  background: #0006;
}
.ask-dialog h2 {
  margin-top: 0;
}
.guest-saved p {
  word-break: keep-all;
}
