body:has(.listing-detail) > header,
body:has(.listing-detail) main > nav {
  display: none;
}
body:has(.listing-detail) main {
  padding: 0;
  background: white;
}
body:has(.listing-detail) #notice:empty {
  display: none;
}
body:has(.listing-detail) #view {
  padding: 0;
  margin: 0;
  background: white;
}
.listing-detail {
  --ed-dim: #686d76;
  --ed-yellow: #ffc719;
  font-family: Arial, "Malgun Gothic", sans-serif;
  line-height: 1.45;
  color: #151618;
  background: #fff;
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 0 0 80px;
  overflow: visible;
}
.listing-detail h1,
.listing-detail h2,
.listing-detail h3,
.listing-detail p,
.listing-detail dl,
.listing-detail dd {
  margin: 0;
}
.listing-detail button,
.listing-detail a {
  -webkit-tap-highlight-color: transparent;
}
.listing-detail .ed-bar {
  min-height: 56px;
  position: sticky;
  z-index: 5;
  top: 0;
  background: white;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3px;
  padding: 0 12px;
  border-bottom: 1px solid #efeff0;
}
.ed-bar b {
  white-space: nowrap;
  font-size: clamp(14px, 4.5vw, 20px);
}
.ed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ed-bar .ed-control,
.ed-dialog-head button {
  border: 0;
  background: transparent;
  color: #161719;
  border-radius: 3px;
  padding: 8px;
  display: grid;
  place-content: center;
  width: 38px;
  height: 42px;
}
.ed-control svg,
.ed-dialog-head svg {
  width: 23px;
  height: 23px;
}
.ed-heart[aria-pressed="true"] {
  color: #e3525e;
}
.ed-heart[aria-pressed="true"] svg {
  fill: #e3525e;
}
.ed-gallery {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #f0f1f1;
  overflow: hidden;
}
.ed-gallery .ed-track {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ed-track::-webkit-scrollbar {
  display: none;
}
.ed-track .ed-frame {
  width: 100%;
  height: 100%;
  padding: 0;
  flex: 0 0 100%;
  border: 0;
  border-radius: 0;
  display: block;
  background: transparent;
  scroll-snap-align: center;
}
.ed-frame .photo,
.ed-thumb img {
  display: block;
  height: 100%;
  width: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
}
.ed-counter,
.ed-sample {
  position: absolute;
  color: white;
  background: #19191999;
  border-radius: 10px;
  padding: 2px 9px;
  bottom: 12px;
  right: 15px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.ed-sample {
  font-size: 10px;
  left: 12px;
  right: auto;
}
.ed-gallery .ed-prev,
.ed-gallery .ed-next {
  position: absolute;
  top: 45%;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1116;
  color: white;
  font-size: 23px;
}
.ed-prev {
  left: 9px;
}
.ed-next {
  right: 9px;
}
.ed-no-photo {
  display: grid;
  height: 100%;
  min-height: 40px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: #eceef0;
  color: #73777e;
  font-size: 12px;
}
.ed-no-photo svg {
  width: 26px;
  height: 26px;
}
.ed-overview {
  margin: 0 20px;
  border-bottom: 1px solid #ececee;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.ed-overview > div {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 7px;
  padding: 13px 2px;
  font-size: clamp(13px, 3.7vw, 17px);
}
.ed-overview svg {
  width: 22px;
  height: 22px;
}
.ed-address {
  padding: 15px 20px 16px;
}
.ed-address strong {
  font-size: 23px;
}
.ed-address p {
  font-size: 18px;
  color: #787c82;
  margin-top: 7px;
}
.ed-address h1 {
  font-size: 14px;
  font-weight: 500;
  margin-top: 7px;
  color: #61656c;
}
.ed-help {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
  color: #151618;
  border-top: 7px solid #f2f3f4;
}
.ed-help b,
.ed-help small {
  display: block;
}
.ed-help b {
  font-size: 13px;
}
.ed-help small {
  color: var(--ed-dim);
  font-size: 12px;
}
.ed-help strong,
.ed-yellow {
  background: var(--ed-yellow);
  color: #151515;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}
.ed-help strong {
  font-size: 12px;
  padding: 4px 10px;
}
.ed-section,
.ed-block {
  padding: 0;
  margin: 0;
  border: 0;
  border-top: 8px solid #f2f3f4;
  border-radius: 0;
  background: white;
}
.ed-section summary,
.ed-block-heading {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
  list-style: none;
}
.ed-section summary::-webkit-details-marker {
  display: none;
}
.ed-section summary::after {
  content: "";
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  margin: 0 5px;
}
.ed-section[open] summary::after {
  transform: rotate(225deg);
}
.ed-section[open] summary,
.ed-block-heading {
  border-bottom: 1px solid #eee;
}
.ed-section-content,
.ed-block > dl {
  padding: 0 20px;
}
.ed-section-content h3 {
  font-size: 16px;
  margin: 15px 0 8px;
}
.ed-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0 3px;
}
.ed-feature svg {
  width: 26px;
  height: 26px;
  color: #66717a;
  flex: none;
}
.ed-feature strong {
  font-size: 17px;
}
.ed-feature p,
.ed-description {
  color: var(--ed-dim);
  font-size: 15px;
}
.ed-description {
  padding: 13px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ed-feature:last-child {
  margin-bottom: 15px;
}
.ed-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 11px;
}
.ed-chips span {
  background: #f5f5f6;
  color: #626972;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 14px;
}
.ed-fact {
  display: grid;
  grid-template-columns: minmax(100px, 42%) 1fr;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #ececee;
  font-size: 16px;
}
.ed-fact:last-child {
  border: 0;
}
.ed-fact dd {
  color: #666b72;
  overflow-wrap: anywhere;
}
.ed-fact dt {
  font-weight: 500;
}
.ed-missing {
  color: #858a91;
  font-size: 14px;
}
.ed-unit {
  float: right;
  margin: 0 0 4px 5px;
  padding: 3px 7px;
  background: white;
  color: #535961;
  border: 1px solid #ddd;
  font-size: 11px;
  border-radius: 3px;
}
.ed-block-heading h2 {
  font-size: 20px;
  font-weight: 650;
}
.ed-building-link {
  font-size: 14px;
  text-decoration: none;
  background: #edf7fe;
  color: #2476ab;
  padding: 4px 8px;
  border-radius: 6px;
}
.ed-location {
  padding: 17px 20px;
  border-top: 7px solid #f2f3f4;
}
.ed-location .zt-map {
  height: 220px;
  border-radius: 2px;
}
.ed-row {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.ed-row:last-child {
  border: 0;
}
.ed-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ed-thumb .ed-no-photo {
  font-size: 10px;
}
.ed-card-text {
  display: grid;
  align-content: start;
  gap: 2px;
}
.ed-card-text small {
  font-size: 12px;
  color: #757a83;
}
.ed-card-text small b {
  background: #fff6d9;
  color: #8c6500;
  padding: 1px 4px;
}
.ed-card-text strong {
  font-size: 19px;
}
.ed-card-text span {
  font-size: 14px;
}
.ed-card-name {
  color: #6e7379;
}
.listing-detail .ed-empty,
.listing-detail .ed-owner {
  padding: 15px 0;
  color: #777b81;
  font-size: 14px;
}
.listing-detail .ed-owner,
.ed-own {
  padding: 18px 20px;
}
.ed-own h2 {
  margin-bottom: 9px;
}
.ed-footer {
  position: fixed;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 760px);
  padding: 8px 20px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, white 35%);
}
.ed-yellow {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 19px;
  padding: 13px;
}
.ed-dialog {
  width: min(calc(100% - 32px), 445px);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  background: white;
  box-shadow: 0 12px 50px #17171736;
}
.ed-dialog::backdrop {
  background: #1d1e2190;
}
.ed-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ed-dialog-head h2 {
  font-size: 19px;
}
.ed-dialog form {
  margin: 0;
  padding: 0;
}
.ed-dialog label {
  display: grid;
  font-weight: 550;
  gap: 5px;
  margin: 8px 0 14px;
}
.ed-dialog input,
.ed-dialog textarea {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  padding: 8px;
  background: white;
}
.ed-dialog .ed-yellow {
  margin-top: 12px;
}
.ed-zoom {
  width: min(95%, 720px);
}
.ed-zoom img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.ed-building-intro {
  padding: 24px 20px;
}
.ed-building-intro h1 {
  font-size: 23px;
}
.ed-building-intro p {
  margin-top: 5px;
  color: var(--ed-dim);
}
.ed-building {
  padding-bottom: 20px;
}
@media (max-width: 340px) {
  .ed-bar .ed-control {
    width: 30px;
    padding: 4px;
  }
  .ed-fact {
    grid-template-columns: minmax(78px, 40%) 1fr;
  }
}
.ed-building .ed-bar {
  border: 0;
}
.ed-building-intro h1,
.ed-building-list h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.ed-building-intro .ed-fact {
  grid-template-columns: max-content 1fr;
  gap: 14px;
  border: 0;
  padding: 6px 0;
}
.ed-building-intro dt {
  color: #84898e;
}
.ed-building-intro dd {
  text-align: right;
  color: #191b1f;
  font-weight: 650;
}
.ed-building-list {
  padding: 19px 20px;
  border-top: 7px solid #f4f4f4;
}
.ed-building-list .ed-row {
  grid-template-columns: minmax(65px, 81px) 1fr;
  align-items: center;
  padding: 12px 0;
}
.ed-building-list .ed-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
}
/* Earlier WebViews lay out the image frame using percentage padding. */
@supports not (aspect-ratio: 4 / 3) {
  .ed-gallery {
    height: 0;
    padding-top: 75%;
    box-sizing: content-box;
  }
  .ed-gallery > .ed-track,
  .ed-gallery > .ed-no-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .ed-thumb {
    position: relative;
  }
  .ed-thumb::before {
    content: "";
    display: block;
    padding-top: 75%;
  }
  .ed-building-list .ed-thumb::before {
    padding-top: 100%;
  }
  .ed-thumb > img,
  .ed-thumb > .ed-no-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
