@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background-color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* =========================================================
   모바일 전용 기본 레이아웃 (스마트폰 접속 시 완벽 유지)
   ========================================================= */
.phone-frame {
  width: 100%;
  max-width: 412px;
  height: 840px;
  background: #f8fafc;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 8px solid #1e293b;
}

.pc-sidebar-panel {
  display: none;
}

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.status-bar {
  display: none;
}

.pc-top-banner-img {
  display: none;
}

.screen-tabs {
  background: #064e3b;
  padding: 6px 12px 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.tab-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.tab-btn.active {
  background: #10b981;
  color: white;
}

.screen-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px;
}

.screen {
  display: none !important;
}

.screen.active {
  display: block !important;
}

.main-header-card {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 20px rgba(6, 78, 59, 0.2);
  margin-bottom: 16px;
}

.profile-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10b981;
}

.online-badge {
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #064e3b;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 12px;
  color: #a7f3d0;
  margin-top: 6px;
}

.feature-card {
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card.green {
  background: #10b981;
  color: white;
}

.feature-card.youtube-home {
  background: #dc2626;
  color: white;
}

.feature-card.kakao-share {
  background: #FEE500;
  color: #191919;
}

.feature-card.kakao-share .chip-btn {
  background: rgba(0, 0, 0, 0.12);
  color: #191919;
}

.sms-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sms-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sms-card-desc {
  margin: 6px 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.sms-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 10px;
}

.sms-card button {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #0284c7;
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 14px;
  cursor: pointer;
}

.sms-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sms-card button.sms-pick-btn {
  margin-bottom: 10px;
  border: 1px solid #7dd3fc;
  background: #f0f9ff;
  color: #0369a1;
}

.sms-contact-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.sms-contact-choices[hidden] {
  display: none;
}

.sms-choice-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.sms-card .sms-contact-choices button {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  text-align: left;
  font-size: 14px;
  padding: 10px 12px;
}

.sms-result {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}

.sms-result.error {
  color: #b91c1c;
}

.nav-item.youtube {
  color: #dc2626;
  font-weight: 700;
}

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

.feature-icon {
  font-size: 20px;
}

.feature-icon.yellow {
  color: #f59e0b;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
}

.chip-btn {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn.dark {
  background: rgba(255, 255, 255, 0.1);
}

.section-divider {
  text-align: center;
  margin: 20px 0 12px;
  position: relative;
}

.section-divider span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  background: #f8fafc;
  padding: 0 10px;
}

.map-btn {
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
}

.map-btn.kakao { background: #ffcc00; color: #1e1e1e; }
.map-btn.tmap { background: #0284c7; color: white; }
.map-btn.naver { background: #10b981; color: white; }

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

.info-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin-top: 16px;
}

.info-card h3 {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 8px;
}

.info-card ul {
  list-style: none;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.agent-profile-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.agent-photo {
  width: 70px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}

.agent-details h2 {
  font-size: 16px;
  color: #0f172a;
}

.agent-details p {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.list-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.list-filter-row select {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-weight: bold;
  color: #064e3b;
  background-color: #ffffff;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.active {
  background: #064e3b;
  color: white;
  border-color: #064e3b;
}

.listing-count-bar {
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
}

.home-count-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  font-size: 12px;
  font-weight: 800;
}

.home-count-badge:empty {
  display: none;
}

.prop-item {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.prop-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.floor-badge {
  display: inline-flex;
  align-items: center;
  color: #059669;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.2px;
}

.jeonse-hope-badge {
  background: #ccfbf1;
  color: #0f766e;
}

.prop-jeonse-hope {
  margin-top: 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.prop-price {
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
  margin: 4px 0;
}

.prop-desc {
  font-size: 13px;
  color: #334155;
}

.prop-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.property-cards.is-table {
  display: block;
}

.presale-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.presale-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.presale-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
  color: #0f172a;
}

.presale-table th,
.presale-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.4;
  white-space: nowrap;
}

.presale-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.presale-table thead th:first-child,
.presale-name {
  position: sticky;
  left: 0;
}

.presale-name {
  background: #fff;
  z-index: 1;
}

.presale-table thead th:first-child {
  z-index: 2;
  background: #f8fafc;
}

.presale-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.presale-sort.is-active {
  color: #047857;
}

.presale-sort-mark {
  font-size: 10px;
  color: #94a3b8;
}

.presale-sort.is-active .presale-sort-mark {
  color: #047857;
}

.presale-row {
  cursor: pointer;
}

.presale-row:hover {
  background: #f0fdf4;
}

.presale-row:hover .presale-name {
  background: #f0fdf4;
}

.presale-row:focus-visible {
  outline: 2px solid #059669;
  outline-offset: -2px;
}

.presale-name {
  font-weight: 800;
}

.presale-name-text {
  margin-right: 6px;
}

.presale-price {
  color: #ef4444;
  font-weight: 800;
  white-space: nowrap;
}

.presale-premium {
  font-weight: 800;
  white-space: nowrap;
}

.presale-premium.is-plus {
  color: #b45309;
}

.presale-premium.is-minus {
  color: #0369a1;
}

.presale-premium.is-zero {
  color: #64748b;
  font-weight: 700;
}

.presale-premium-hint {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
}

.presale-address {
  color: #0369a1;
  font-weight: 700;
}

.detail-card, .inquiry-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.detail-price-text {
  font-size: 20px;
  color: #10b981;
  margin: 6px 0 8px;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-kind {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.detail-deal-sub {
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: -6px 0 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.spec-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}

.spec-item.wide {
  grid-column: 1 / -1;
}

.spec-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.accent-green { color: #059669; }
.accent-teal { color: #0f766e; }
.accent-blue { color: #0284c7; }
.accent-amber { color: #d97706; }

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

.spec-addr span {
  min-width: 0;
  word-break: keep-all;
}

.map-mini {
  flex-shrink: 0;
  border: none;
  background: #fee500;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.detail-note-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 12px;
}

.detail-note-box .spec-label {
  margin-bottom: 6px;
}

.media-row {
  display: flex;
  gap: 8px;
}

.media-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.media-chip i {
  font-size: 15px;
  color: #059669;
}

.media-chip.is-off {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f8fafc;
}

.media-chip.is-off i {
  color: #94a3b8;
}

.action-btn {
  padding: 14px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.action-btn.green { background: #10b981; }
.action-btn.dark { background: #1e293b; }

.input-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.input-group input, .input-group textarea {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.back-btn {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 6px;
}

.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  z-index: 10;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
}

.nav-item.call {
  color: #0284c7;
  font-weight: 700;
}

.nav-item i {
  font-size: 16px;
}

.sidebar-office-tel,
.sidebar-motto {
  display: none;
}

/* =========================================================
   PC 화면 전용 광폭 대형 부동산 포털 레이아웃 (3단 배열 및 확장)
   ========================================================= */
@media (min-width: 768px) {
  body {
    background-color: #0f172a;
    padding: 24px;
  }

  .phone-frame {
    width: 100%;
    max-width: 1500px; /* PC 화면에서 훨씬 넓고 시원하게 확장 */
    height: 92vh;
    max-height: 920px;
    margin: 0 auto;
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    background: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 360px 1fr; /* 왼쪽 프로필 고정, 오른쪽 대형 콘텐츠 영역 */
  }

  .pc-sidebar-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
    padding: 40px 28px;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar-top-box {
    text-align: center;
  }

  .sidebar-top-box h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 14px;
  }

  .sidebar-sub {
    font-size: 14px;
    color: #a7f3d0;
    margin-top: 4px;
  }

  .sidebar-addr {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    line-height: 1.4;
  }

  .sidebar-office-tel {
    display: none;
  }

  .sidebar-motto {
    display: block;
    margin-top: 16px;
    padding: 18px 16px 16px;
    text-align: center;
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
      repeating-linear-gradient(
        -45deg,
        rgba(167, 243, 208, 0.07) 0 8px,
        transparent 8px 16px
      );
    border: 1px solid rgba(167, 243, 208, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .motto-mark {
    display: block;
    font-size: 36px;
    line-height: 0.4;
    color: #fde68a;
    font-family: Georgia, "Times New Roman", serif;
    opacity: 0.9;
  }

  .motto-quote {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ecfdf5;
    line-height: 1.55;
    letter-spacing: -0.2px;
  }

  .motto-sub {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #a7f3d0;
    letter-spacing: 1.4px;
  }

  .sidebar-contact-box {
    display: flex;
    flex-direction: column;
  }

  .side-btn {
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-bottom: 10px;
  }

  .side-btn:hover {
    transform: translateY(-2px);
  }

  .side-btn.youtube { background: #dc2626; color: white; }
  .side-btn.inquiry { background: #10b981; color: white; }
  .side-btn.kakao { background: #ffcc00; color: #1e1e1e; }
  .side-btn.kakao-share { background: #FEE500; color: #191919; }
  .side-btn.call { background: #ffffff; color: #0284c7; margin-bottom: 0; }

  .main-content-wrapper {
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
  }

  .pc-top-banner-img {
    display: flex;
    width: 100%;
    height: 160px;
    background: #064e3b;
    overflow: hidden;
    position: relative;
    justify-content: center;
    align-items: center;
  }

  .pc-top-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  .screen-tabs {
    background: #064e3b;
    padding: 14px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .tab-btn {
    flex: initial;
    padding: 9px 22px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .tab-btn.active {
    background: #10b981;
  }

  .screen-container {
    padding: 36px;
    height: calc(100% - 204px);
    overflow-y: auto;
  }

  .mobile-only-banner {
    display: none;
  }

  .youtube-home {
    display: none;
  }

  .sms-card {
    display: none;
  }

  .map-btn-group-pc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .map-btn {
    margin-bottom: 0 !important;
  }

  /* PC 화면에서 매물 목록을 3단(3열)으로 시원하게 확장 */
  .property-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .property-cards.is-table {
    display: block;
  }

  .prop-item {
    margin-bottom: 0 !important;
  }

  .bottom-nav-bar {
    display: none;
  }
}

/* 매물 상세 하단 돌아가기 버튼 전용 스타일 */
.detail-back-btn-wrap {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.btn-back-list {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}

.btn-back-list:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-back-list i {
  color: #64748b;
}