:root {
  --teal: #1ab3ac;
  --teal-soft: #e6f8f7;
  --ink: #1c1f23;
  --ink-soft: #5a7375;
  --mute: #9aa3ad;
  --line: #e5ecec;
  --bg: #f4faf9;
  --card: #ffffff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
}

.state-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(26, 179, 172, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-txt,
.state-sub {
  margin: 16px 0 0;
  color: var(--mute);
  font-size: 14px;
}

.state-title {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.empty-ico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e8f0ef;
  color: var(--mute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.ghost-link {
  margin-top: 20px;
  color: var(--teal);
  font-size: 14px;
  text-decoration: none;
}

.scroll {
  padding-bottom: calc(88px + var(--safe-bottom));
}

.hero {
  position: relative;
  height: 240px;
  background: #e8f0ef url('https://gw.ez-hero.com/assets/property-cover-empty.png') center/cover no-repeat;
}

.gallery {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 240px;
  object-fit: cover;
  scroll-snap-align: start;
  background: #e5ecec;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.gallery-dots span.on {
  background: #fff;
}

.video-entry {
  position: absolute;
  left: 14px;
  bottom: 16px;
  z-index: 3;
  height: 32px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.play-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
}

.body {
  padding: 12px 14px 0;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(20, 122, 116, 0.04);
}

.title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: #222426;
}

.price-row {
  margin: 8px 0 12px;
  display: flex;
  align-items: flex-end;
  color: var(--teal);
}

.yen {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin: 0 2px;
}

.unit {
  font-size: 12px;
  margin-bottom: 3px;
}

.meta-row {
  display: flex;
  background: #f5f7f7;
  border-radius: 10px;
  padding: 10px 0;
}

.meta-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 4px;
}

.meta-item:last-child {
  border-right: 0;
}

.meta-layout {
  flex: 1.15;
}

.mv {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml {
  margin-top: 2px;
  font-size: 11px;
  color: var(--mute);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.5;
}

.h-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.h-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.info-panel {
  background: #f7fafa;
  border-radius: 10px;
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-top: 1px solid #eef3f3;
}

.info-row:first-child {
  border-top: 0;
}

.info-k {
  flex-shrink: 0;
  color: var(--mute);
  font-size: 13px;
}

.info-v {
  text-align: right;
  color: var(--ink);
  font-size: 13px;
  word-break: break-all;
}

.p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.map-box {
  margin-top: 12px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f0ef;
  position: relative;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #dfeaea;
}

.map-pin-overlay {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 18px;
  height: 18px;
  margin: -18px 0 0 -9px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(26, 179, 172, 0.4);
  pointer-events: none;
  z-index: 2;
}

.map-label {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 86%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.landlord {
  display: flex;
  align-items: center;
  gap: 12px;
}

.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1ab3ac, #147a74);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ll {
  min-width: 0;
}

.ln {
  font-size: 15px;
  font-weight: 600;
}

.lp {
  margin-top: 2px;
  font-size: 13px;
  color: var(--mute);
}

.brand-foot {
  margin: 8px 4px 0;
  text-align: center;
  font-size: 12px;
  color: var(--mute);
}

.scroll-pad {
  height: 12px;
}

.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(20, 122, 116, 0.08);
}

.primary-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1ab3ac, #159e98);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}

.primary-btn:active {
  opacity: 0.88;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 120;
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(28, 31, 35, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.modal[hidden],
[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

#copy-ok {
  z-index: 80;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 48px));
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.modal-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.modal-btn.ghost {
  background: #f2f5f5;
  color: var(--ink-soft);
}

.modal-btn.primary {
  background: var(--teal);
  color: #fff;
}
