/* ==============
  Home (Sale Focus)
============== */

:root{
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f6f7fb;

  --primary: #111827;   /* 네이비/딥그레이 느낌 */
  --primary2:#0b1220;

  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --swiper-pagination-bullet-width: 20px;
  --swiper-pagination-bullet-height:20px;
  --swiper-pagination-bullet-inactive-color:#214f9e;
  --swiper-pagination-bullet-inactive-opacity:.5;
  --swiper-pagination-color:#214f9e;
}

/* container가 이미 프로젝트에 있으면 중복 제거 가능 */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.home{
  color: var(--fg);
  background: var(--bg);
}

.section{
  padding: 56px 0;
}

.section--muted{
  background: var(--soft);
}

.section__head{
  margin-bottom: 18px;
}
.section__head--row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
}
.section__title{
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.25;
}
.section__sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.section__actions{
  flex: 0 0 auto;
}

/* HERO */
.hero{
  padding: 28px 0 38px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}
.hero__kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}
.hero__title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero__desc{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}
.hero__search{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__mediaBox{
  position: relative;
  border-radius: 22px;
  overflow:hidden;
  min-height: 260px;
  background:
    radial-gradient(1200px 400px at 10% 10%, rgba(17,24,39,0.25), transparent 60%),
    linear-gradient(135deg, #111827, #0b1220);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__mediaOverlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0)),
    radial-gradient(600px 200px at 80% 30%, rgba(255,255,255,0.10), transparent 60%);
}
.hero__mediaHint{
  position:absolute;
  left: 18px;
  bottom: 16px;
  display:flex;
  flex-direction:column;
  gap: 4px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero__mediaHint strong{ font-size: 16px; }
.hero__mediaHint span{ font-size: 13px; opacity: .9; }

/* Inputs / Buttons */
.input{
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--fg);
  min-width: 160px;
}


/* Stage tabs */
.stageTabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.stageTabs__tab{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 999px;
  padding: 10px 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  cursor:pointer;
  font-weight: 800;
}
.stageTabs__tab.is-active{
  border-color: #111827;
  box-shadow: 0 8px 20px rgba(15,23,42,0.10);
}
.stageTabs__label{ color: var(--fg); }
.stageTabs__count{
  background: #111827;
  color:#fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.tabPanel{ display:none; }
.tabPanel.is-active{ display:block; }

/* Grid: 1024↑ 3열 / 768~1023 2열 / 768↓ 1열 */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1023.98px){
  .grid3{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px){
:root{
  --swiper-pagination-bullet-width: 10px;
  --swiper-pagination-bullet-height:10px;
 
}
  .grid3{ grid-template-columns: 1fr !important; }
}

/* Cards */
.card{
  position:relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}
.card__body{
  padding: 16px 16px 12px;
}
.card__body h4{
	color:#000;
	margin:0 0 10px;
	font-size:1.1em;
}
.card__body p{
	margin:5px 0;
}
.card__body p,
.card__body span{
	font-size:13px;
}
.card__body .spantext{
	display:inline-block;
	color:#333;
	font-weight:700;
	padding-left:10px;
}
.card__title{
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.35;
}
.card__meta{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.card__desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.card__facts{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.card-link{color:#999;text-decoration:none;}
.card__foot{
  padding: 12px 16px 16px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(229,231,235,0.6);
}

.card--hot{
  border-color: rgba(17,24,39,0.18);
}
.card__badges{
  position:absolute;
  top: 12px;
  left: 12px;
  display:flex;
  gap: 6px;
  flex-wrap:wrap;
  z-index:2;
}
/* 단계별 카드 이미지 */
.card__thumb{
	position:relative;
  width:100%;
  height:180px;
  overflow:hidden;
  border-bottom:1px solid #e5e7eb;
  background:#f3f4f6;
}

.card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Tag / Badge / Pill */
.tag{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  color: var(--fg);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}
.badge {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.2px;
  position: absolute;
  top: 0px;
  left: 0px;
  width:auto;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 0 0 12px 0;
  text-align:center;
  z-index: 2;
}
.badge--solid{
  background: rgba(17,24,39,0.90);
  color:#fff;
}
.badge-분양중 { background:#f00; color:#fff; }

.type {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0;
}

.addr {
  font-size: 13px;
  color: #374151;
}

.area,
.floors {
  font-size: 13px;
  margin-top: 6px;
}
.pill{
  display:inline-flex;
  align-items:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 12px;
  font-weight: 800;
}

/* Map placeholder */
.mapBox{
  border: 1px dashed rgba(100,116,139,0.45);
  background: #fff;
  border-radius: 18px;
  min-height: 360px;
  position:relative;
  overflow:hidden;
}
.mapBox__hint{
  position:absolute;
  inset: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17,24,39,0.06), rgba(17,24,39,0.02));
  border: 1px solid rgba(17,24,39,0.08);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap: 6px;
  padding: 18px;
  color: var(--muted);
}
.mapBox__hint strong{ color: var(--fg); }

/* 영상(유투브) */

.sv-video-card .sv-video-title{
	font-weight: normal;
    margin: 0;
    padding: 8px;
    display: block;
    text-align: center;
    background-color: #000435;
    font-size: 12px;
    border-radius:12px 12px 0 0;
    color: #fff;
}
.sv-video-frame{
	height:auto;
}
.sv-video-frame iframe{
	width:100%;
	height:100%;
	border:none;
}
.desc-box{
	display:block;
	font-weight:normal;
	margin:10px 0;
	padding:5px 10px;
	text-align:left;
	font-size:13px;
}
/* Two column section */
.twoCol{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1023.98px){
  .twoCol{ grid-template-columns: 1fr; }
}

.listCards{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.listCard{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  text-decoration:none;
  color: var(--fg);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}
.listCard:hover{
  background: #f8fafc;
}
.listCard__title{
  flex: 1;
  font-size: 14px;
  line-height: 1.35;
}
.listCard__arrow{
  color: var(--muted);
  font-weight: 900;
}

.statsGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 767.98px){
  .statsGrid{ grid-template-columns: 1fr; }
  .sv-video-frame{
		width:100%;
		height:auto;
	}
}
.stat{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}
.stat__label{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.stat__value{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

/* CTA */
.cta{
  padding: 54px 0;
  background: linear-gradient(135deg, #111827, #0b1220);
  color:#fff;
}
.cta__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta__title{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
}
.cta__desc{
  margin: 0;
  opacity: .85;
  line-height: 1.6;
}
.cta__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta .btn--ghost{
  background: transparent;
  color:#fff;
  border-color: rgba(255,255,255,0.25);
}
.cta .btn--ghost:hover{
  background: rgba(255,255,255,0.10);
}

/* A11y */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Responsive hero */
@media (max-width: 1023.98px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero__title{ font-size: 30px; }
}
@media (max-width: 767.98px){
  .hero__title{ font-size: 26px; }
  .input{ min-width: 0; flex: 1 1 140px; }
}
/* =========================
   HOT SLIDER (Swiper)
========================= */
.hot-slider {
  width: 100%;
  height: 550px;
}

.hotSwiper,
.hotSwiper .swiper-wrapper,
.hotSwiper .swiper-slide {
  height: 100%;
}

.sv-video-slider{
	padding-bottom:50px;
}
.sv-video-sec{
	padding-bottom:20px;
}
.hotSwiper .swiper-slide{
  background-size:cover;
  background-position:center;
  position:relative;
}

.hotSwiper .swiper-slide::before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.25),
    rgba(0,0,0,.0)
  );
}

.hot-slide__overlay {
  position: absolute;
  inset: 0;                 /* top/right/bottom/left = 0 */
  display: flex;
  align-items: center;      /* 세로 중앙 */
  justify-content: center;  /* 가로 중앙 */
  text-align: center;
}

.hot-slide__content {
  max-width: 90%;
  color: #fff;
}

.hot-slide__badge{
  background:#e11d48;
  padding:6px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
}

.hot-slide__title{
  margin:8px 0 6px;
  font-size:2em;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}

.hot-slide__addr,
.hot-slide__area{
  margin:0;
  font-size:14px;
  opacity:.9;
   text-shadow: 0 1px 4px rgba(0,0,0,1);
}

/* Mobile */
@media (max-width:768px){
  .hot-slider{ height:260px; }
  .hot-slide__title{ font-size:20px; }
}
/* 기본 숨김 상태 (위에 있음) */
.hot-slide__content{
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

/* 등장 상태 */
.hot-slide__content.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* 지산포탈추천 기본 */
.only-mobile { display: none; }
.only-pc { display: block; }

/* PC */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* MOBILE */
@media (max-width: 768px) {
  .only-pc { display: none; }
  .only-mobile { display: block; }
  h1{font-size:24px;}
  h2{font-size:21px;}

  .siteSwiper {
    padding-right: 16px; /* 1.4개 보이게 */
  }

  .siteSwiper .swiper-slide {
    max-width: 367px; /* 중요 */
  }

  .card {
    height: 100%;
  }
  .card__body h4{
      font-size: 15px;
  }
}
/* ============================
   SWIPER ARROWS (MOBILE CLEAN)
============================ */
.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  color: transparent;        /* 기존 아이콘 제거 */
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  width: 22px;
  height: 22px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  border-top: 2px solid #e72323;
  border-right: 2px solid #e72323;
}
.swiper-button-prev::after {
  transform: rotate(-135deg);
}
.swiper-button-prev,
.swiper-button-next {
  right: 30px;
}

.swiper-button-next::after {
  transform: rotate(45deg);
}
@media (max-width: 768px) {
  .swiper-button-prev::after,
  .swiper-button-next::after {
    width: 20px;
    height: 20px;
  }
}

/* =========================
   VIDEO SLIDER ARROWS ONLY
========================= */

.sv-video-slider {
  position: relative;
  padding-bottom: 60px; /* 하단 공간 확보 */
}

/* 버튼 위치 재설정 */
.sv-video-slider .swiper-button-prev,
.sv-video-slider .swiper-button-next {
  top: auto;
  bottom: 0;
  transform: none;

  width: 36px;
  height: 36px;

  background: rgba(17, 24, 39, 0.85);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .25s ease;
  z-index: 20;
}

/* 중앙 기준 배치 */
.sv-video-slider .swiper-button-prev {
  left: 50%;
  margin-left: -120px;
}

.sv-video-slider .swiper-button-next {
  left: 50%;
  margin-left: 80px;
}

/* 화살표 모양 재정의 (전역 덮기) */
.sv-video-slider .swiper-button-prev::after,
.sv-video-slider .swiper-button-next::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.sv-video-slider .swiper-button-prev::after {
  transform: rotate(-135deg);
}

.sv-video-slider .swiper-button-next::after {
  transform: rotate(45deg);
}

/* hover */
.sv-video-slider .swiper-button-prev:hover,
.sv-video-slider .swiper-button-next:hover {
  background: #111827;
}
.is-hidden {
  display: none !important;
}
/* 썸네일 */
.video-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
  border-radius: 0 0 12px 12px;
  cursor:pointer;
  overflow:hidden;
}

/* 재생버튼 */
.video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-play::before{
  content:'';
  width:70px;
  height:50px;
  background:red;
  border-radius:14px;
  position:relative;
}

.video-play::after{
  content:'';
  position:absolute;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  margin-left:6px;
}

/* 모달 */
.video-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.video-modal.active{
  display:flex;
}

.video-modal__inner{
  width:90%;
  max-width:900px;
  position:relative;   /* ✅ 이거 추가 */
}

.video-modal__content{
  width:100%;
  aspect-ratio:16/9;
}

.video-modal iframe{
  width:100%;
  height:100%;
  border:none;
  border-radius:12px;
}

.video-modal__close{
  position:absolute;
  top:-40px;
  right:0;
  background:none;
  border:none;
  color:#fff;
  font-size:32px;
  cursor:pointer;
}
/* 닫기 버튼 */
.video-modal__close{
  position:absolute;
  top:-50px;
  right:0;

  width:44px;
  height:44px;

  border-radius:50%;
  border:none;

  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(6px);

  cursor:pointer;
  transition:.2s ease;
}

/* X 모양 */
.video-modal__close span{
  position:relative;
  display:block;
  width:18px;
  height:18px;
  margin:auto;
}

.video-modal__close span::before,
.video-modal__close span::after{
  content:'';
  position:absolute;
  top:8px;
  left:0;
  width:18px;
  height:2px;
  background:#fff;
}

.video-modal__close span::before{
  transform:rotate(45deg);
}

.video-modal__close span::after{
  transform:rotate(-45deg);
}

.video-modal__close:hover{
  background:#fff;
}

.video-modal__close:hover span::before,
.video-modal__close:hover span::after{
  background:#111827;
}
@media (max-width:768px){
  .video-modal__close{
    top:10px;
    right:10px;
    background:rgba(0,0,0,.6);
  }
}

/* 뉴스 영역 */
.news-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
}

/* PC */
@media (min-width:768px){
    .news-grid{
        grid-template-columns:1fr 1fr;
		gap:100px;
		height:270px;
    }
}

.news-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
	border-bottom: 2px solid #555;
    padding: 0 20px;
}

.news-title{
    font-size:20px;
    font-weight:700;
}

.board-list{
    list-style:none;
    padding:0;
    margin:0;
}

.board-list li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eee;
    padding:15px 10px;
    gap:10px;
}

.board-list li a{
    flex:1;
    text-align:left;
    text-decoration:none;
    color:#222;
    font-size:14px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.board-list li a:hover{
    text-decoration:underline;
    color:#1f57a5;
}
.board-list .date{
    font-size:13px;
    color:#999;
}

.btn-more{
    font-size:13px;
    padding:4px 10px;
    border-radius:6px;
    border:1px solid #ddd;
    text-decoration:none;
    color:#333;
    background:#fff;
}
.btn-more:hover{
	color:#fff;
	background:#000;
}
.btn-more::after{
    content:" →";
}
.board-list .num{
    display:inline-block;
	font-size:7px;
    width:30px;
    font-weight:600;
    color:#000;
}
@media (max-width:768px){

  .news-grid{
    gap:30px;
  }

  .news-head{
    padding:0 10px;
  }

  .board-list li{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
	gap:4px;
  }

  .board-list .num{
    display:none
  }

  .board-list li a{
    display:block;
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:normal;
  }

  .board-list .date{
    margin-top:4px;
  }

}
/* 가이드 */
.guide-grid{
  margin-top:20px;
  gap:20px;
}

.guide-card{
  display:flex;
  align-items:center;
  gap:14px;

  padding:18px 20px;

  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;

  text-decoration:none;
  color:var(--fg);

  transition:all .25s ease;
  box-shadow:0 8px 20px rgba(15,23,42,0.05);
}

.guide-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 32px rgba(15,23,42,0.12);
  border-color:#d1d5db;
}

/* 아이콘 */
.guide-icon{
  font-size:24px;
  flex-shrink:0;

  width:44px;
  height:44px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#f1f5f9;
  border-radius:12px;
}

/* 텍스트 */
.guide-content h4{
  margin:0 0 4px;
  font-size:15px;
  line-height:1.4;
}

.guide-link{
  font-size:13px;
  color:var(--muted);
}