/* 서브 페이지 */
.sub-visual {
  position: relative;
  padding: 220px 20px 220px;
  text-align: center;
  background: url('/sale/ys-xi/subpage-images/sub-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sub-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sub-visual>* {
  position: relative;
  z-index: 1;
}

.sub-visual h1 {
  font-size: 48px;
  color: #fff;
}

/* 서브 네비 - 비주얼 하단에 겹침 */
.sub-nav-over {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 5;
  border-bottom: 1px solid #e5e5e5;
}

.sub-nav-inner {
  margin: 0 auto;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* 사파리 */
}

.sub-nav {
  border-bottom: 1px solid #e5e5e5;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
  display: none;
}

.sub-nav ul {
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  white-space: nowrap;
}

.sub-nav li {
  flex-shrink: 0;
}

/* 메뉴 사이 세로 실선 */
.sub-nav li+li {
  position: relative;
}

.sub-nav li+li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.sub-nav li a {
  display: block;
  font-size: 18px;
  padding: 20px 32px;
  color: #d8d8d8;
  font-weight: 500;
  white-space: nowrap;
}

.sub-nav li.active a {
  color: #fff;
  font-weight: 700;
  border-bottom: 3px solid #c1985d;
}

.sub-section {
  padding: 80px 20px;
}

.sub-section .inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.sub-section .inner img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media(max-width: 991px) {
  .sub-visual {
    padding: 140px 20px 140px;
  }

  .sub-visual h1 {
    font-size: 28px;
  }

  .sub-nav li a {
    font-size: 15px;
    padding: 15px;
  }

  .sub-section {
    padding: 40px 10px;
  }
}

/* ===============================
   SECTION BASE
=============================== */
.section {
  padding: 180px 0;
  position: relative;
}

.section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 타이틀 */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 62px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #242A5C;
}

.section-desc {
  margin-top: 10px;
  font-size: 18px;
  color: #000;
}

@media (max-width: 991px) {
  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-desc {
  font-size: 15px;
}
}

/* ===============================
   Section : Overview
=============================== */

/* 레이아웃 */
.section.overview .overview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* 정보 영역 */
.section.overview .overview-info {
  padding: 20px;
}

/* 프로젝트명 영역 */
.overview-project {
  margin-bottom: 30px;
}

.overview-project .project-name {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.overview-project .project-sub {
  margin-top: 8px;
  font-size: 17px;
  color: rgba(0, 0, 0, 0.6);
}

/* ===============================
   Overview List (PC 기본 : 2열)
=============================== */
.overview-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 기본 2열 */
  column-gap: 40px;
  row-gap: 24px;
}

.overview-item {
  display: flex;
  flex-direction: column;
}

/* 항목명 */
.overview-list dt {
  font-weight: 600;
  font-size: 22px;
  color: #000;
  padding-bottom: 10px;
  border-bottom: 1px solid #000000;
}

/* 값 */
.overview-list dd {
  font-size: 18px;
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

/* 이미지 */
.section.overview .overview-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
  min-height: 500px;
  object-fit: cover;
}

/* ===============================
   Overview Mobile (1열)
=============================== */
@media (max-width: 991px) {
  .section.overview .overview-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 모바일에서 이미지 위 */
  .section.overview .overview-image {
    order: -1;
  }

  .section.overview .overview-image img {
    min-height: 300px;
  }

  .overview-project {
    margin-bottom: 22px;
  }

  .overview-project .project-name {
    font-size: 22px;
  }

  .overview-project .project-sub {
    font-size: 15px;
  }

  .section.overview .overview-info {
    padding: 10px;
  }

  .overview-list dt {
    font-size: 16px;
    padding-bottom: 6px;
  }

  .overview-list dd {
    font-size: 14px;
    margin-top: 6px;
  }

  /* 2열 → 1열 */
  .overview-list {
    grid-template-columns: 1fr;
    row-gap: 15px;
  }
}


/* ===============================
   Section : Premium
=============================== */
.section.premium {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.section.premium .section-inner {
  position: relative;
  z-index: 1;
}

.section.premium .section-title {
  color: #e0c97d;
}

.section.premium .section-desc {
  color: #fff;
}

/* ===============================
   Swiper
=============================== */
.section.premium .premium-swiper {
  width: 100%;
}

.section.premium .swiper-slide {
  display: flex;
  height: auto;
}

.section.premium .swiper-slide .premium-card {
  width: 100%;
}

/* ===============================
   Card
=============================== */
.section.premium .premium-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 4;
  padding: 50px;
  backdrop-filter: blur(30px);
  border: 1px solid #eee;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 아이콘 */
.section.premium .premium-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.section.premium .premium-icon i {
  font-size: 36px;
  color: #c0c0c0;
}

.section.premium .premium-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Border Hover Animation */
/* Top */
.section.premium .premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #D4AF37;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* Common */
.section.premium .premium-card span {
  position: absolute;
  background: #D4AF37;
  transition: transform 0.35s ease;
}

/* Right */
.section.premium .premium-card span.right {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}

/* Bottom */
.section.premium .premium-card span.bottom {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
}

/* Left */
.section.premium .premium-card span.left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
}

.section.premium .premium-card:hover::before {
  transform: scaleX(1);
}

.section.premium .premium-card:hover span.right {
  transform: scaleY(1);
}

.section.premium .premium-card:hover span.bottom {
  transform: scaleX(1);
}

.section.premium .premium-card:hover span.left {
  transform: scaleY(1);
}

/* 텍스트 */
.section.premium .premium-label {
  color: #b1b269;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section.premium .premium-title {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 0;
  color: #fff;
}

.section.premium .premium-text {
  font-size: 15px;
  color: #eee;
  line-height: 1.6;
}

/* PREMIUM Pagination */
.section.premium .premium-pagination {
  position: relative;
  margin-top: 40px;
  text-align: center;
}

/* 기본 bullet */
.section.premium .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1.5px solid #b1b269;
  opacity: 1;
  margin: 0 8px !important;
  transition: all 0.3s ease;
}

/* active bullet */
.section.premium .swiper-pagination-bullet-active {
  background: #d4af37;
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.25);
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 991px) {
  .section.premium {
    background-position: left;
  }

  .section.premium .section-inner {
    padding-left: 15px;
    padding-right: 0;
  }

  .section.premium .premium-card {
    aspect-ratio: 3 / 4;
  }

  .section.premium .premium-title {
    font-size: 18px;
  }


  .section.premium .premium-text {
    font-size: 14px;
  }

  .section.premium .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section.premium .premium-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Section : Location
=============================== */

.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.location-grid .map {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.location-grid .map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 우측 텍스트 세로 중앙 정렬 */
.benefits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100%;
}

.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  border-bottom: 1px dashed #808080;
  padding-bottom: 20px;
}

.benefits-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefits-intro {
  margin-bottom: 20px;
}

.benefits-intro .headline {
  position: relative;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #000;
  padding-top: 10px;
}

.benefit .num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #adadad;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.benefit h3 {
  margin: 2px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.benefit p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.5);
}

/* ===============================
   Mobile
=============================== */
@media (max-width: 991px) {
  .section.location {
    padding: 64px 0;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .benefits-intro {
    margin-top: 10px;
  }

  .benefits-intro .headline {
    font-size: 20px;
  }

  .benefits {
    gap: 12px;
  }

  .benefit {
    grid-template-columns: 40px 1fr;
    padding-bottom: 12px;
  }

  .benefit .num {
    font-size: 22px;
  }

  .benefit h3 {
    font-size: 15px;
  }

  .benefit p {
    font-size: 13px;
  }
}

/* ===============================
   Section : Contact
=============================== */
.section.contact {
  background-image: url(/sale/apt1/images/contactus-bg2.jpg);
  background-repeat: no-repeat;
  background-position: center;
}

.section.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
  z-index: 0;
}

.section.contact .contact-grid {
  display: grid;
  position: relative;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas:
    "head map"
    "info map";
  column-gap: 60px;
  row-gap: 24px;
  align-items: start;
}

/* Grid Areas */
.section.contact .section-head {
  grid-area: head;
  text-align: left;
}

.section.contact .contact-map {
  grid-area: map;
}

.section.contact .contact-wrap {
  grid-area: info;
}

/* ===============================
   Head
=============================== */
.section.contact .section-head {
  margin-bottom: 0;
}

/* ===============================
   Contact Info
=============================== */
.contact-wrap {
  position: relative;
  padding-left: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* 세로 라인 */
.contact-wrap::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 2px;
  height: calc(100% - 6px);
  background: rgba(0, 0, 0, 0.15);
}

/* 각 항목 */
.contact-item h3 {
  font-size: 20px;
  font-weight: 600;
}

.contact-item p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

.contact-item.phone p {
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

/* ===============================
   Map
=============================== */
.contact-map {
  height: 480px;
  background: #e9ecef;
  overflow: hidden;
  border-radius: 20px;
}

/* 카카오 지도 */
.root_daum_roughmap {
  width: 100% !important;
  height: 480px !important;
}

.root_daum_roughmap .wrap_map {
  height: 480px !important;
}

/* 카카오 지도 하단 UI 제거 */
.root_daum_roughmap .wrap_controllers,
.root_daum_roughmap .cont .section.lst,
.map_border {
  display: none !important;
}

/* ===============================
   Mobile
=============================== */
@media (max-width: 991px) {
  .section.contact {
    padding: 64px 0;
  }

  .section.contact .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "map"
      "info";
    row-gap: 32px;
  }

  .section.contact .section-head {
    text-align: center;
  }

  .contact-map {
    height: 240px;
  }

  .root_daum_roughmap .wrap_map {
    height: 240px !important;
  }

  .root_daum_roughmap {
    height: 240px !important;
  }

  .contact-wrap {
    padding-left: 10px;
    gap: 18px;
  }

  .contact-wrap::before {
    display: none;
  }

  .contact-item h3 {
    font-size: 16px;
  }

  .contact-item p {
    font-size: 14px;
    margin-top: 4px;
  }

  .contact-item.phone p {
    font-size: 20px;
  }
}

/* ===============================
   Section : Unit Plan
=============================== */
.section.unit-plan {
  background: #eae4e1;
  padding: 0;
}

.section.unit-plan .section-title {
  color: #e5efd6;
}

.section.unit-plan .section-head {
  margin-bottom: 0;
  text-align: left;
  left: 100px;
  top: -50px;
}

.section.unit-plan .section-inner {
  max-width: 100%;
  padding: 0;
}

.section.unit-plan .unitPlanSwiper {
  margin: 0 0 0 -100px;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* Grid */
.unit-plan-grid {
  display: flex;
  min-height: 800px;
}

/* Left */
.unit-plan-left {
  width: 50%;
  position: relative;
  color: #fff;
  background-repeat: no-repeat;
  background-position: right;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
}

.section.unit-plan .section-desc {
  font-size: 20px;
  letter-spacing: 2px;
  color: #fff;
  padding: 20px 0;
}

.unit-plan-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  z-index: 0;
}

.unit-plan-left>* {
  position: relative;
  z-index: 1;
}

.unit-plan-view {
  margin-top: 32px;
}

.unit-plan-view .btn-view {
  border: 1px solid;
  padding: 15px 30px;
}

/* Right */
.unit-plan-right {
  width: 50%;
  padding-right: 50px;
  display: flex;
  align-items: center;
}

/* Card */
.unit-card {
  background: #fff;
  overflow: hidden;
  padding: 15px;
  margin-top: 20px;
  transition:
    background-color 0.6s ease,
    transform 0.6s ease;
}

.swiper-slide-active .unit-card {
  background: #d7c3b8;
  transform: translateY(-20px);
}

.unit-card-img {
  width: 100%;
  display: block;
  border: 1px solid #afa39c;
  background: #fff;
  transition: transform 0.3s ease-in-out;
  padding: 30px 0;
}

.unit-card-text {
  border-style: solid;
  background: #fff;
  border-width: 0px 1px 1px 1px;
  border-color: #afa39c;
  padding: 20px;
  text-align: center;
}

.unit-card-text h3 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #714141;
}

.unit-card-text p {
  font-size: 14px;
  color: #666;
}

/* 기본 Swiper bullet 스타일 (커스터마이즈 버전) */
.unit-plan .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  border: 2px solid #97835e;
  background: transparent;
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 8px !important;
}

.unit-plan .swiper-pagination-bullet-active {
  background: #97835e;
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(151, 131, 94, 0.2);
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 991px) {
  .section.unit-plan .section-head {
    text-align: center;
    left: 0;
    top: 0;
  }

  .unit-plan-grid {
    flex-direction: column;
    gap: 40px;
    min-height: 500px;
  }

  .unit-plan-view .btn-view {
    padding: 10px 20px;
    font-size: 12px;
  }

  .section.unit-plan .section-desc {
    font-size: 15px;
    padding: 0px;
    letter-spacing: 0;
  }

  .unit-plan-left,
  .unit-plan-right {
    width: 100%;
  }

  .unit-plan-right {
    margin-bottom: 20px;
    padding-right: 0px;
  }

  .section.unit-plan .unitPlanSwiper {
    margin-left: 0px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .unit-card-text h3 {
    font-size: 28px;
  }
}