:root {
  --white: #ffffff;
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --text: #0f1419;
  --text-secondary: #5c6573;
  --text-tertiary: #8b939e;
  --border: #e8ebef;
  --border-strong: #d1d6dc;
  --primary: #1a56db;
  --primary-hover: #1446b8;
  --primary-soft: #eff4ff;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 20, 25, 0.12);
  --font: "Inter", "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  padding-top: var(--header-h);
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.search-box input,
.search-box select,
.search-box textarea,
.consult-form input,
.consult-form select,
.consult-form textarea {
  color: var(--text);
}

.search-box input::placeholder,
.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: var(--text-tertiary);
}

.search-box,
.consult-form,
.hero-copy,
.broker-visual,
.broker-copy,
.page-hero .wrap,
.detail-layout,
.listing-layout {
  min-width: 0;
}

.hero-copy p,
.broker-copy p,
.page-hero .lead {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-hero .broker-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  align-items: center;
}

body .hero {
  min-height: calc(92vh - 112px);
  padding-bottom: 48px;
}

.cat-icon,
.category-card > span {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.theme-carousel {
  position: relative;
  display: grid;
  align-items: center;
}

.theme-scroll {
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.theme-card {
  scroll-snap-align: start;
}

.theme-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
}

.theme-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.04);
}

.theme-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.theme-arrow-prev {
  left: -56px;
}

.theme-arrow-next {
  right: -56px;
}

.map-cluster-marker {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.28);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.map-cluster-marker span {
  display: block;
  transform: translateY(-1px);
}

.property-row-gallery {
  position: relative;
  overflow: hidden;
}

.property-row-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.38);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.82;
  transform: translateY(-50%);
}

.property-gallery-arrow:hover {
  background: rgba(15, 20, 25, 0.56);
  opacity: 1;
}

.property-gallery-arrow.previous {
  left: 8px;
}

.property-gallery-arrow.next {
  right: 8px;
}

#consultation,
#site-footer {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px) saturate(1.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topbar.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  height: 100%;
}

.brand {
  flex-shrink: 0;
  gap: 10px;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: none;
}

.brand-badge svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.brand strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand p {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a.is-active {
  color: var(--text);
}

.admin-nav-link {
  display: none;
}

.hero-actions,
.topbar .hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.topbar .primary-button {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
}

.call-button,
.primary-button,
.secondary-button,
.button-inline,
.property-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.call-button,
.secondary-button {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.call-button:hover,
.secondary-button:hover {
  background: var(--bg);
  color: var(--text);
}

.primary-button,
.button-inline.primary,
.property-page-button.active {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover,
.button-inline.primary:hover {
  background: var(--primary-hover);
}

.button-inline.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.full-width {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 80px 0;
}

.section-soft,
.section-gray {
  background: var(--bg);
}

.section-heading,
.section-header {
  margin-bottom: 36px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.section-header h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-heading p,
.section-header p {
  max-width: 400px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.section-kicker,
.section-label,
.eyebrow,
.eyebrow-inline {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Home */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  background: #0a0f18;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, 0.3) 0%, rgba(10, 15, 24, 0.5) 40%, rgba(10, 15, 24, 0.92) 100%),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80") center / cover;
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-copy p {
  max-width: 480px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.hero-points li {
  min-height: auto;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
}

.hero-points li::before {
  display: none;
}

.hero .secondary-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero .secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-panel {
  display: block;
}

.search-card {
  width: 100%;
  max-width: none;
  padding: 28px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.search-card h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-form {
  display: grid;
  gap: 14px;
}

.search-form label,
.consultation-form label,
.admin-form label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.search-form select,
.consultation-form input,
.consultation-form select,
.consultation-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.consultation-form textarea,
.admin-form textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
}

.search-form select:focus,
.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-card span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.category-card h3,
.theme-card h3,
.property-card h3,
.property-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.category-card p,
.theme-card p,
.property-card p,
.property-row p,
.property-row small {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.theme-carousel {
  display: block;
}

.theme-carousel-arrow {
  display: none;
}

.theme-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.theme-grid::-webkit-scrollbar {
  display: none;
}

.theme-card {
  flex: 0 0 200px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
}

.theme-card .pill {
  display: none;
}

.theme-card strong {
  grid-row: span 2;
  min-width: 32px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.theme-card p {
  overflow: hidden;
  max-width: 140px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-section-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.map-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.property-map-canvas {
  height: 440px;
  border-radius: 0;
}

.map-position-note {
  padding: 10px 16px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.map-card-info {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-left: 1px solid var(--border);
}

.map-card-info h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.map-card-info p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.map-region-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow: auto;
}

.map-region-button {
  min-height: auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.map-region-button:hover,
.map-region-button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.property-list {
  display: grid;
  gap: 12px;
}

.property-row,
.property-row-with-media {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.property-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.property-row-gallery {
  grid-row: span 2;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: var(--bg);
}

.property-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.property-row .row-top {
  display: block;
  margin: 0 0 4px;
}

.price-badge {
  align-self: auto;
  width: fit-content;
  margin: 0 0 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.property-row .row-meta {
  color: var(--text-tertiary);
  font-size: 13px;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.consultation-copy h2 {
  margin: 6px 0 16px;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.consultation-copy p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.check-list li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%231a56db' d='M4.5 8.5L1.5 5.5l1-1 2 2 4.5-4.5 1 1z'/%3E%3C/svg%3E") center/10px no-repeat;
}

.consultation-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: none;
}

.form-note,
.form-status {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.highlight-banner {
  padding: 56px 0;
  background: var(--text);
}

.highlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.highlight-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.highlight-inner p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.65;
}

.stats-grid {
  display: flex;
  gap: 32px;
}

.stats-grid article {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.stats-grid strong {
  display: block;
  min-height: 0;
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.site-footer {
  margin: 0;
  padding: 48px 0 32px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  box-shadow: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.footer-grid span {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom-row .footer-bottom {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-entry {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text-tertiary) 72%, transparent);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-entry:hover,
.admin-entry:focus-visible {
  color: var(--text-secondary);
}

/* Listing pages */
.sub-hero,
.theme-hero,
.detail-hero,
.admin-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.hero-shell,
.detail-hero .container,
.admin-hero .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-shell h1,
.detail-hero h1,
.admin-hero h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-shell p,
.detail-intro p,
.admin-hero p {
  max-width: 560px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.summary-panel,
.filter-panel,
.list-card,
.detail-card,
.admin-card,
.auth-card,
.empty-state,
.contact-box,
.detail-map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
}

.sub-main,
.detail-main,
.admin-main {
  padding: 40px 0 80px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-gutter: stable;
}

.filter-panel h2,
.list-section-head h2,
.detail-card h2,
.admin-card h2,
.auth-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.filter-panel p,
.list-section-head p,
.detail-card p,
.admin-card p,
.auth-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.chip,
a.chip,
.theme-filter-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.chip.active,
.chip.is-active,
.theme-filter-chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.advanced-filter {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.listing-filter-form {
  display: grid;
  gap: 18px;
}

.listing-filter-field {
  display: grid;
  gap: 8px;
}

.listing-filter-field > span,
.theme-filter-field legend,
.range-filter-head span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.listing-filter-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.listing-filter-field select:focus {
  border-color: rgba(26, 86, 219, 0.55);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

.theme-filter-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-filter-field legend {
  margin-bottom: 10px;
  padding: 0;
}

.theme-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-filter-chip {
  display: inline-flex;
  cursor: pointer;
}

.theme-filter-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.range-filter {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.range-filter.disabled {
  opacity: 0.42;
}

.range-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-filter-head strong {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.range-slider {
  --thumb-size: 18px;
  --thumb-radius: calc(var(--thumb-size) / 2);
  --range-min-pos: clamp(var(--thumb-radius), var(--range-min), calc(100% - var(--thumb-radius)));
  --range-max-pos: clamp(var(--thumb-radius), var(--range-max), calc(100% - var(--thumb-radius)));
  position: relative;
  height: 30px;
  margin-inline: -14px;
  cursor: pointer;
}

.range-slider::before,
.range-slider::after {
  position: absolute;
  top: 14px;
  right: var(--thumb-radius);
  left: var(--thumb-radius);
  height: 4px;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.range-slider::before {
  background: var(--border);
  z-index: 0;
}

.range-slider::after {
  right: calc(100% - var(--range-max-pos));
  left: var(--range-min-pos);
  background: var(--primary);
  z-index: 1;
}

.range-slider input[type="range"] {
  position: absolute;
  top: 0;
  right: var(--thumb-radius);
  bottom: 0;
  left: var(--thumb-radius);
  width: calc(100% - var(--thumb-size));
  height: 30px;
  margin: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: -1;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin-top: -7px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.range-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}

.range-handle {
  position: absolute;
  top: 50%;
  left: var(--range-min-pos);
  z-index: 3;
  width: var(--thumb-size);
  height: var(--thumb-size);
  padding: 0;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transform: translate(-50%, -50%);
}

.range-handle-max {
  left: var(--range-max-pos);
}

.range-handle.is-dragging {
  cursor: grabbing;
}

.listing-filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.listing-filter-actions button,
.listing-filter-actions a {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.listing-filter-actions button {
  border: 0;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
}

.listing-filter-actions button:hover {
  background: var(--primary-hover);
}

.listing-filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
}

.prop-grid .list-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.prop-grid .list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.list-card-visual {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.list-card-visual > .property-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.list-card-visual .price-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  backdrop-filter: blur(4px);
}

.list-card-body {
  padding: 16px 18px 18px;
}

.list-card-body small,
.theme-body small {
  display: block;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card-body h3,
.theme-body h3 {
  margin: 6px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.list-card-body p,
.theme-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.theme-list-card.list-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.theme-list-card .theme-stat {
  overflow: hidden;
  width: 120px;
  height: 96px;
  padding: 0;
  border-radius: 12px;
  background: var(--bg);
}

.theme-list-card .price-badge {
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.listing-grid,
.theme-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.property-card,
.theme-list-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.property-card:hover,
.theme-list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.property-card .card-visual,
.property-image,
.theme-list-card .property-image.compact {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--bg);
}

.property-card .card-visual img,
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card .card-body,
.theme-list-card .theme-stat {
  padding: 16px 18px 18px;
}

.tag {
  min-height: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 20, 25, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.detail-visual {
  overflow: hidden;
  min-height: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
}

.detail-image-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.detail-main-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-thumbnail-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 10px 10px 12px;
  background: var(--bg);
  scrollbar-gutter: stable;
  scroll-snap-type: x proximity;
}

.detail-thumbnail {
  flex: 0 0 clamp(96px, 16%, 160px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  opacity: 0.72;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

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

.detail-thumbnail.active,
.detail-thumbnail:hover {
  border-color: var(--primary);
  opacity: 1;
}

.detail-image-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.38);
  color: var(--white);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.82;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}

.detail-image-arrow:hover,
.detail-image-arrow:focus-visible {
  background: rgba(15, 20, 25, 0.62);
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.detail-image-arrow.previous {
  left: 18px;
}

.detail-image-arrow.next {
  right: 18px;
}

.detail-image-count {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.54);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.detail-card {
  margin-bottom: 16px;
  padding: 28px;
}

.detail-metadata {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.detail-metadata > div,
.detail-metadata dt,
.detail-metadata dd {
  min-width: 0;
}

.detail-metadata dt {
  margin: 0 0 4px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.detail-metadata dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.sticky-contact {
  top: calc(var(--header-h) + 24px);
  gap: 16px;
}

.contact-box,
.detail-map-card {
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-map {
  height: 200px;
  border-radius: var(--radius);
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

.property-admin-layout {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.admin-card {
  padding: 28px;
}

.admin-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table th {
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .theme-arrow-prev {
    left: -18px;
  }

  .theme-arrow-next {
    right: -18px;
  }

  .hero-grid,
  .map-section-grid,
  .consultation-grid,
  .two-column-section,
  .detail-layout,
  .admin-layout,
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .property-admin-layout {
    grid-template-columns: 1fr;
  }

  .search-card {
    max-width: 480px;
  }

  .category-grid,
  .listing-grid,
  .theme-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-card-info {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .filter-panel,
  .sticky-contact {
    position: static;
  }

  .highlight-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
  }

  .brand {
    flex: 1 1 auto;
    max-width: 170px;
    min-width: 0;
    gap: 8px;
  }

  .brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand > div,
  .logo-text {
    min-width: 0;
  }

  .brand strong,
  .brand p,
  .logo-text strong,
  .logo-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand strong,
  .logo-text strong {
    font-size: 14px;
    max-width: 112px;
  }

  .brand p,
  .logo-text span {
    font-size: 10px;
  }

  .topbar .hero-actions {
    position: absolute;
    top: 12px;
    right: 0;
    width: auto;
    flex: 0 0 auto;
    gap: 8px;
  }

  .topbar .primary-button {
    min-width: 54px;
    padding: 0 12px;
    font-size: 0;
  }

  .topbar .primary-button::after {
    content: "상담";
    font-size: 13px;
  }

  .topbar .menu-btn {
    flex: 0 0 40px;
  }

  .site-header .wrap {
    position: relative;
    gap: 12px;
  }

  .site-header .header-cta {
    flex: 0 0 auto;
    position: absolute;
    top: 12px;
    right: 0;
  }

  .main-nav,
  .topbar .call-button {
    display: none;
  }

  .site-header .header-cta .btn-primary {
    display: none;
  }

  .menu-btn {
    display: flex !important;
    flex: 0 0 40px;
  }

  .main-nav.is-open {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open a {
    min-height: 36px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 36px) 0 48px;
  }

  .hero-content .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-box {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
  }

  .page-hero .broker-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .broker-copy p {
    overflow-wrap: anywhere;
  }

  .broker-visual img {
    width: 100%;
    height: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .category-grid,
  .listing-grid,
  .theme-list-grid,
  .footer-grid,
  .detail-metadata {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-row,
  .property-row-with-media {
    grid-template-columns: 96px 1fr;
  }

  .property-row-gallery {
    width: 96px;
    height: 96px;
  }

  .stats-grid {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar .hero-actions {
    align-items: center;
    flex-direction: row;
  }

  .hero .hero-actions .primary-button,
  .hero .hero-actions .secondary-button {
    width: 100%;
  }

  .search-card,
  .consultation-form,
  .detail-card,
  .admin-card {
    padding: 24px 20px;
  }
}

body .property-row.property-row-with-media {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  padding: 14px;
}

body .property-row-gallery {
  grid-column: 1;
  grid-row: 1;
  width: 150px;
  height: 150px;
}

body .property-row-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-right: 8px;
}

body .property-row .row-meta h3,
body .property-row .row-meta p,
body .property-row .row-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .property-row .row-meta h3,
body .property-row .row-meta p {
  white-space: nowrap;
}

@media (max-width: 768px) {
  body .property-row.property-row-with-media {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 112px;
  }

  body .property-row-gallery {
    width: 112px;
    height: 112px;
  }
}

.map-info-window {
  position: relative;
  min-width: 200px;
  max-width: 280px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-info-window::after {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  bottom: -7px;
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
}

.map-info-window strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.map-info-meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.map-info-price {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.map-cluster-info-window {
  max-width: min(320px, calc(100vw - 48px));
  min-width: 260px;
  padding: 14px 16px 12px;
  width: 300px;
}

.map-cluster-info-header {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.map-cluster-info-header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.map-cluster-info-header span {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.4;
}

.map-cluster-property-list {
  display: grid;
  gap: 0;
  max-height: 280px;
  margin-right: -4px;
  overflow-y: auto;
  padding-right: 4px;
}

.map-cluster-property-list .map-info-window {
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--border);
  box-shadow: none;
  min-width: 0;
  padding: 12px 0;
}

.map-cluster-property-list .map-info-window::after {
  display: none;
}

.map-cluster-property-list .map-info-window:first-child {
  border-top: 0;
  padding-top: 0;
}

.map-cluster-property-list .map-info-window:last-child {
  padding-bottom: 2px;
}

.map-info-detail-link {
  background: var(--primary-soft);
  border-radius: var(--radius);
  color: var(--primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.map-info-detail-link:hover {
  background: #e0ebff;
  color: var(--primary-hover);
}
