:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #171b22;
  --muted: #687280;
  --line: #dde3ea;
  --primary: #146c63;
  --primary-soft: #e9f3f1;
  --blue: #275da8;
  --naver: #03c75a;
  --kakao: #fee500;
  --shadow: 0 14px 36px rgba(30, 42, 58, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.section-tabs {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tabs a {
  flex: 0 0 auto;
  padding: 17px 15px;
  color: #303844;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.section-tabs a:hover,
.section-tabs a.active {
  color: var(--primary);
  border-color: var(--primary);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
}

.slider,
.hero-details,
.info-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slider {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.slides,
.slide {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.slide.active {
  opacity: 1;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.slider-button.prev {
  left: 16px;
}

.slider-button.next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.slider-dots button.active {
  width: 24px;
  background: #ffffff;
}

.hero-details {
  display: flex;
  flex-direction: column;
  padding: 42px;
}

.listing-label,
.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.price-summary {
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 800;
}

.deposit-summary {
  color: #4b5563;
  font-size: 1rem;
  font-weight: 500;
}

.inquiry-banner {
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #0f5f55;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 95, 85, 0.22);
}

.inquiry-banner span {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

.inquiry-banner strong {
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #303844;
  font-size: 0.95rem;
}

.icon-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 108, 99, 0.24);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  position: relative;
}

.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: #ffffff;
}

.icon-button::before {
  left: 8px;
  top: 11px;
}

.icon-button::after {
  left: 12px;
  top: 7px;
}

.map-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
}

.map-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.map-badge.kakao {
  background: var(--kakao);
}

.map-badge.naver {
  background: var(--naver);
  color: #ffffff;
}

.info-section {
  margin-top: 20px;
  padding: 30px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title h2,
.quick-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.quick-heading {
  text-align: center;
  margin-bottom: 28px;
}

.quick-heading::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 22px auto 0;
  background: var(--blue);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 6px 4px;
}

.quick-grid article {
  min-height: 210px;
  text-align: center;
}

.quick-image-icon {
  display: block;
  width: 108px;
  height: 82px;
  margin: 0 auto 18px;
  object-fit: contain;
  object-position: center;
}

.quick-grid h3 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.42rem;
  line-height: 1.2;
}

.quick-grid p {
  margin: 8px 0 0;
  color: #718096;
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.detail-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list div,
.facility-grid article,
.textarea-grid article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-list strong,
.facility-grid strong,
.textarea-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 0.95rem;
}

.detail-list p,
.facility-grid p,
.textarea-grid p,
.location-card p {
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  outline: none;
}

p[contenteditable="true"]:focus {
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--text);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.textarea-grid {
  display: grid;
  gap: 12px;
}

.textarea-grid article {
  min-height: 138px;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.location-text {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.location-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.location-address strong {
  font-size: 1.02rem;
}

.map-preview {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(20, 108, 99, 0.9), rgba(39, 93, 168, 0.78)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  position: relative;
  overflow: hidden;
}

.map-preview::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 34px;
  width: 62px;
  height: 62px;
  border-radius: 50% 50% 50% 0;
  background: #ffffff;
  transform: rotate(-45deg);
  opacity: 0.92;
}

.map-preview::after {
  content: "";
  position: absolute;
  right: 54px;
  top: 54px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--naver);
}

.map-preview span,
.map-preview strong {
  position: relative;
  z-index: 1;
}

.map-preview span {
  margin-bottom: 7px;
  opacity: 0.86;
  font-size: 0.95rem;
}

.map-preview strong {
  font-size: 1.25rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 14px);
  padding: 11px 15px;
  border-radius: 999px;
  background: #15191d;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .hero,
  .location-card {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .section-tabs {
    padding: 0 8px;
  }

  .section-tabs a {
    padding: 15px 11px;
    font-size: 0.9rem;
  }

  main {
    padding: 14px 12px 50px;
  }

  .hero-details,
  .info-section {
    padding: 22px 18px;
  }

  .quick-grid,
  .detail-list,
  .detail-list.compact,
  .facility-grid,
  .location-card {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    gap: 28px;
  }

  .quick-grid article {
    min-height: auto;
  }

  .quick-image-icon {
    width: 96px;
    height: 72px;
  }

  .contact-line,
  .location-address {
    align-items: flex-start;
  }

  .slider-button {
    width: 38px;
    height: 38px;
  }
}
