/* 참고사이트 디자인을 클론한 펫모아 전용 CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Noto Sans KR", sans-serif; font-size: 14px; color: #666; line-height: 1.6; font-weight: 300; min-width: 320px; overflow-x: hidden; -webkit-text-size-adjust: none; }
a { color: #666; text-decoration: none; transition: 200ms color, background; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }
::selection { background: #d9d9d9; color: #5a3825; text-shadow: none; }

/* ===== LAYOUT ===== */
.pm-wrapper { width: 100%; max-width: 1200px; position: relative; margin: 0 auto; padding: 0 15px; }

/* ===== HEADER ===== */
.pm-header { position: fixed; left: 0; right: 0; top: 0; width: 100%; z-index: 999; text-align: center; background-color: #fff; border-bottom: 1px solid #eee; transition: all .3s; }
.pm-header.scrolled .pm-headwrap { height: 60px; line-height: 60px; }
.pm-header.scrolled .pm-logo a { height: 60px; line-height: 60px; }
.pm-header.scrolled .pm-logo a img { height: 32px; }
.pm-header .pm-headwrap { position: relative; height: 90px; line-height: 90px; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 15px; }
.pm-header .pm-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.pm-header .pm-logo a { display: inline-block; height: 90px; line-height: 90px; }
.pm-header .pm-logo a img { height: 45px; vertical-align: middle; transition: height .3s; }
.pm-header .pm-util { position: absolute; top: 50%; transform: translateY(-50%); left: 15px; }
.pm-header .pm-util ul { display: flex; gap: 20px; }
.pm-header .pm-util li a { font-size: 12px; color: #999; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.pm-header .pm-util li a:hover { color: #5a3825; }
.pm-header .pm-search-box { position: absolute; top: 50%; transform: translateY(-50%); right: 15px; }
.pm-header .pm-search-box form { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; }
.pm-header .pm-search-box input[type="text"] { border: none; outline: none; padding: 6px 14px; font-size: 13px; width: 160px; background: transparent; }
.pm-header .pm-search-box button { border: none; background: transparent; padding: 6px 12px; cursor: pointer; color: #999; font-size: 15px; }
.pm-header .pm-search-box button:hover { color: #5a3825; }

/* GNB 메가메뉴 */
.pm-gnb { position: relative; background-color: #fff; border-top: 1px solid #eee; }
.pm-gnb-inner { max-width: 1200px; margin: 0 auto; }
.pm-gnb-list { display: flex; justify-content: center; }
.pm-gnb-item { position: static; }
.pm-gnb-link { display: block; padding: 0 18px; line-height: 50px; font-size: 14px; font-weight: 500; color: #333; letter-spacing: .5px; transition: color .3s; white-space: nowrap; }
.pm-gnb-item:hover .pm-gnb-link,
.pm-gnb-item.active .pm-gnb-link { color: #5a3825; }

/* 메가 드롭다운 */
.pm-mega-dropdown { position: absolute; top: 100%; left: 0; right: 0; width: 100%; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 1000; padding: 40px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #eee; }
.pm-gnb-item.active .pm-mega-dropdown,
.pm-gnb-item:hover .pm-mega-dropdown { opacity: 1; visibility: visible; }
.pm-mega-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.pm-mega-list { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* 메가 카드 디자인 */
.pm-mega-card { display: flex; flex-direction: column; width: 220px; background: #fff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; transition: all .3s cubic-bezier(.25,.8,.25,1); text-decoration: none; text-align: left; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.02); }
.pm-mega-card:hover { transform: translateY(-5px); border-color: #5a3825; box-shadow: 0 8px 25px rgba(90,56,37,.12); }
.pm-mega-card-img { width: 100%; height: 110px; overflow: hidden; background: #f5f5f5; position: relative; }
.pm-mega-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pm-mega-card:hover .pm-mega-card-img img { transform: scale(1.08); }
.pm-mega-card-body { padding: 15px; display: flex; flex-direction: column; flex: 1; position: relative; }
.pm-mega-card-name { font-size: 17px; font-weight: 600; color: #222; transition: color .2s; }
.pm-mega-card:hover .pm-mega-card-name { color: #5a3825; }
.pm-mega-card-desc { font-size: 14px; color: #888; margin-top: 5px; line-height: 1.4; flex: 1; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-mega-card-arrow { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5; color: #999; font-size: 12px; margin-top: 10px; align-self: flex-end; transition: all .3s; }
.pm-mega-card:hover .pm-mega-card-arrow { background: #5a3825; color: #fff; transform: translateX(3px); }

.pm-mega-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.15); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s; pointer-events: none; }
.pm-mega-overlay.show { opacity: 1; visibility: visible; }

/* ===== MAIN VISUAL (슬라이더) ===== */
.pm-visual { position: relative; width: 100%; overflow: hidden; margin-top: 141px; }
.pm-visual .pm-slide { width: 100%; }
.pm-visual .pm-slide img { width: 100%; display: block; }
.pm-visual .pm-slide-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; padding: 15px; background: rgba(0,0,0,0.4); color: #fff; font-size: 15px; font-weight: 300; letter-spacing: 1px; }

/* ===== SECTION COMMON ===== */
.pm-section { padding: 80px 0 100px; }
.pm-main-title { text-align: center; padding-bottom: 50px; }
.pm-main-title .pm-tit-sub { font-size: 16px; font-weight: 500; letter-spacing: 5px; color: #999; }
.pm-main-title .pm-tit-main { font-size: 32px; font-weight: 100; color: #222; margin-top: 5px; }
.pm-main-title .pm-tit-main span { font-weight: 700; }
.pm-main-title .pm-tit-bar { display: block; width: 30px; height: 1px; background: #5a3825; margin: 15px auto 0; }

/* ===== FOCUS ON 섹션 ===== */
.pm-focus { display: flex; gap: 10px; }
.pm-focus .pm-focus-left { flex: 1; position: relative; min-height: 440px; background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.pm-focus .pm-focus-left .pm-focus-txt { color: #5a3825; font-size: 16px; font-weight: 500; }
.pm-focus .pm-focus-left .pm-focus-tit { color: #333; font-size: 36px; font-weight: 100; letter-spacing: -1px; line-height: 1.3; }
.pm-focus .pm-focus-right { width: 530px; display: flex; flex-direction: column; gap: 10px; }
.pm-focus .pm-focus-right .pm-focus-top { height: 215px; background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.pm-focus .pm-focus-right .pm-focus-bottom { display: flex; gap: 10px; }
.pm-focus .pm-focus-right .pm-focus-bottom .pm-focus-item { flex: 1; height: 215px; background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; position: relative; }
.pm-focus .pm-focus-item .pm-focus-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 20px; color: #fff; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.pm-focus .pm-focus-item .pm-focus-overlay .pm-fo-tit { font-size: 16px; font-weight: 500; }
.pm-focus .pm-focus-item .pm-focus-overlay .pm-fo-sub { font-size: 12px; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }

/* 셀럽 영역 */
.pm-celeb-wrap { display: flex; align-items: center; margin-top: 60px; }
.pm-celeb-wrap .pm-celeb-title { width: 370px; flex-shrink: 0; }
.pm-celeb-wrap .pm-celeb-title .pm-tit-sub { color: #5a3825; font-size: 16px; letter-spacing: 3px; }
.pm-celeb-wrap .pm-celeb-title .pm-tit-main { font-size: 32px; font-weight: 100; color: #222; }
.pm-celeb-wrap .pm-celeb-title .pm-tit-main span { font-weight: 700; }
.pm-celeb-wrap .pm-celeb-title .pm-tit-desc { font-size: 14px; color: #999; margin-top: 10px; }
.pm-celeb-list { display: flex; gap: 20px; overflow: hidden; flex: 1; }
.pm-celeb-list .pm-celeb-item { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.pm-celeb-list .pm-celeb-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===== PREMIUM 섹션 (다크배경) ===== */
.pm-premium { background-color: #3a3a2e; background-image: url('../images/main/premium_bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
.pm-premium .pm-main-title .pm-tit-main { color: #fff; }
.pm-premium .pm-main-title .pm-tit-sub { color: #c69c6d; }
.pm-premium .pm-slide-title { text-align: center; font-size: 30px; letter-spacing: 30px; color: #999; padding: 40px 0; font-weight: 100; }
.pm-premium .pm-slide-title em { font-weight: 900; }
.pm-premium-slider { display: flex; gap: 8px; overflow: hidden; }
.pm-premium-slider .pm-premium-item { flex: 1; min-width: 25%; }
.pm-premium-slider .pm-premium-item img { width: 100%; height: 350px; object-fit: cover; }

/* ===== 분양중 강아지/고양이 그리드 (프리미엄 입체 카드 UI) ===== */
.pm-pets-title { text-align: center; padding: 60px 0 30px; }
.pm-pets-title .pm-pt-sub { font-size: 14px; color: #5a3825; font-weight: 500; }
.pm-pets-title .pm-pt-main { font-size: 16px; letter-spacing: 5px; color: #999; font-weight: 300; text-transform: uppercase; }

.pm-pets-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; /* 카드가 숨 쉴 수 있도록 마진 확보 */
}

/* 개별 동물 프로필 카드 스타일 */
.pm-pets-grid .pm-pet-card { 
  position: relative; 
  background: #ffffff; 
  border: 1px solid #f1f3f7; 
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
  overflow: hidden !important; 
  transition: all 0.3s cubic-bezier(.25,.8,.25,1); 
  text-align: center;
  box-sizing: border-box;
}

/* 마우스 호버 시 카드 업 모션 */
.pm-pets-grid .pm-pet-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 30px rgba(255, 111, 0, 0.08); 
  border-color: #ffebd8; 
}

/* 정사각 1:1 이미지 컨테이너 */
.pm-pets-grid .pm-pet-card .pm-pet-img-wrap { 
  display: block; 
  position: relative; 
  width: 100%; 
  aspect-ratio: 1 / 1 !important; 
  overflow: hidden; 
  background: #f7f7f9; 
}

.pm-pets-grid .pm-pet-card img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important; 
  display: block; 
  transition: transform 0.5s ease; 
}

.pm-pets-grid .pm-pet-card:hover img { 
  transform: scale(1.06); 
}

/* 카드 하단 텍스트 및 상세 스펙 패딩 */
.pm-pets-grid .pm-pet-card .pm-pet-info-wrap {
  padding: 16px 12px 20px !important;
  box-sizing: border-box;
  text-align: center;
}

/* 분양견/분양묘 이름 폰트 보완 */
.pm-pets-grid .pm-pet-card .pm-pet-name { 
  position: static !important; /* absolute 해제 */
  background: none !important; /* linear-gradient 해제 */
  padding: 0 !important; 
  color: #222222 !important; 
  font-size: 16px !important; 
  font-weight: 700 !important; 
  margin-top: 0 !important; 
  line-height: 1.4 !important;
  text-shadow: none !important;
}

.pm-pets-grid .pm-pet-card:hover .pm-pet-name {
  color: #ff6f00 !important;
}

/* 상세 메타 배지 리스트 */
.pm-pets-grid .pm-pet-card .pm-pet-specs { 
  display: flex !important; 
  flex-wrap: wrap !important; 
  gap: 4px !important; 
  margin: 10px 0 0 !important; 
  justify-content: center !important; 
}

.pm-pets-grid .pm-pet-card .pm-pet-specs span {
  font-size: 10px !important; 
  padding: 2px 6px !important; 
  border-radius: 4px !important; 
  font-weight: 600 !important; 
  display: inline-block !important;
}

.pm-pets-more { text-align: center; padding: 40px 0; }
.pm-pets-more a { display: inline-block; padding: 0 35px; line-height: 44px; background-color: #3a3a2e; color: #fff; font-size: 14px; transition: background .3s; }
.pm-pets-more a:hover { background-color: #5a3825; }

/* ===== 매장/지점 섹션 ===== */
.pm-mall { background-color: #f8f8f8; }
.pm-mall-title { text-align: center; font-size: 13px; letter-spacing: 5px; color: #999; text-transform: uppercase; }
.pm-mall-title strong { display: block; font-size: 24px; letter-spacing: 3px; color: #222; margin-bottom: 5px; }
.pm-store-tabs { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.pm-store-tabs .pm-store-tab { padding: 8px 24px; border: 1px solid #ddd; font-size: 14px; color: #888; cursor: pointer; transition: all .3s; background: #fff; }
.pm-store-tabs .pm-store-tab.active, .pm-store-tabs .pm-store-tab:hover { background: #222; color: #fff; border-color: #222; }

/* ===== 착한분양 ===== */
.pm-special .pm-special-list { display: flex; gap: 20px; justify-content: center; }
.pm-special .pm-special-item { width: 280px; }
.pm-special .pm-special-item img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.pm-special .pm-special-item p { text-align: center; margin-top: 10px; font-size: 14px; color: #333; }

/* ===== 분양후기 ===== */
.pm-review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pm-review-item { border: 1px solid #eee; padding: 20px; border-radius: 4px; }
.pm-review-item .pm-rv-title { font-size: 16px; font-weight: 500; color: #222; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-review-item .pm-rv-content { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== FOOTER ===== */
.pm-footer { background-color: #222; color: #999; padding: 50px 0 40px; font-size: 13px; line-height: 1.8; }
.pm-footer .pm-footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid #333; margin-bottom: 30px; }
.pm-footer .pm-footer-logo img { height: 35px; opacity: 0.8; }
.pm-footer .pm-footer-contact { text-align: right; }
.pm-footer .pm-footer-contact .pm-ft-phone { font-size: 14px; color: #ccc; letter-spacing: 1px; }
.pm-footer .pm-footer-contact .pm-ft-phone strong { display: block !important; font-size: 24px; color: #fff; font-weight: 700; line-height: 1.35; }
.pm-footer .pm-footer-contact .pm-ft-label { font-size: 12px; color: #777; }
.pm-footer .pm-footer-info { color: #777; }
.pm-footer .pm-footer-info p { margin-bottom: 3px; }
.pm-footer .pm-footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.pm-footer .pm-footer-copy { font-size: 12px; color: #555; }
.pm-footer .pm-footer-links a { color: #777; margin-left: 15px; font-size: 12px; }
.pm-footer .pm-footer-links a:hover { color: #fff; }

/* ===== QUICK MENU (우측 고정) ===== */
.pm-quick { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 998; }
.pm-quick ul li { width: 65px; text-align: center; }
.pm-quick ul li a { display: block; padding: 12px 0; font-size: 11px; color: #666; background: #fff; border: 1px solid #eee; border-top: 0; transition: all .3s; }
.pm-quick ul li:first-child a { border-top: 1px solid #eee; }
.pm-quick ul li a:hover { background: #5a3825; color: #fff; }
.pm-quick ul li a i { display: block; font-size: 20px; margin-bottom: 4px; }
.pm-quick .pm-quick-phone { background: #5a3825 !important; color: #fff !important; border-color: #5a3825 !important; font-size: 10px; line-height: 1.3; }
.pm-quick .pm-quick-phone strong { display: block; font-size: 13px; font-weight: 700; }

/* ===== RESPONSIVE ===== */
#pm-m-hamburger-pc { display: none; }

@media screen and (max-width: 1280px) {
  .pm-gnb-link { padding: 0 12px; font-size: 13px; }
}

@media screen and (max-width: 1024px) {
  .pm-header .pm-headwrap { height: 60px; line-height: 60px; }
  .pm-header .pm-logo a { height: 60px; line-height: 60px; }
  .pm-header .pm-logo a img { height: 32px; }
  .pm-header .pm-util { display: none; }
  .pm-header .pm-search-box { display: none; }
  .pm-gnb-link { padding: 0 10px; font-size: 12px; }
  .pm-visual { margin-top: 111px; }
  .pm-focus { flex-direction: column; }
  .pm-focus .pm-focus-right { width: 100%; }
  .pm-focus .pm-focus-left { min-height: 300px; }
  .pm-premium-slider .pm-premium-item img { height: 250px; }
  .pm-pets-grid { grid-template-columns: repeat(3, 1fr); }
  .pm-celeb-wrap { flex-direction: column; gap: 30px; }
  .pm-celeb-wrap .pm-celeb-title { width: 100%; text-align: center; }
  .pm-quick { display: none; }
}

/* PC 창 가로폭 728px 이하 시 햄버거 메뉴/드로어 전환 */
@media screen and (max-width: 728px) {
  .pm-header { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 999; border-bottom: 1px solid #eee; }
  .pm-header .pm-headwrap { height: 56px; line-height: 56px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; }
  .pm-header .pm-util,
  .pm-header .pm-search-box,
  .pm-gnb { display: none !important; }
  .pm-mega-overlay { display: none !important; }
  
  #pm-m-hamburger-pc { display: flex !important; }
  .pm-header .pm-logo { flex: 1; text-align: center; margin: 0; line-height: 56px; display: flex; justify-content: center; }
  .pm-header .pm-logo a { height: 56px; line-height: 56px; display: inline-block; }
  .pm-header .pm-logo a img { height: 26px; vertical-align: middle; }
  
  #wrapper { padding-top: 56px !important; }
  .pm-visual { margin-top: 56px !important; }
  
  .pm-section { padding: 40px 0 50px; }
  .pm-main-title { padding-bottom: 24px; }
  .pm-main-title .pm-tit-main { font-size: 22px; }
  .pm-focus .pm-focus-left { min-height: 200px; }
  .pm-focus .pm-focus-left .pm-focus-tit { font-size: 22px; }
  .pm-focus .pm-focus-right .pm-focus-top { height: 140px; }
  .pm-focus .pm-focus-right .pm-focus-bottom .pm-focus-item { height: 140px; }
  .pm-pets-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-pets-grid .pm-pet-card img { height: 180px; }
  .pm-review-list { grid-template-columns: 1fr; }
  .pm-premium-slider { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pm-premium-slider .pm-premium-item { min-width: 75%; }
  .pm-footer .pm-footer-top { flex-direction: column; gap: 15px; }
  .pm-footer .pm-footer-contact { text-align: left; }
  .pm-footer .pm-footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media screen and (max-width: 480px) {
  .pm-visual { margin-top: 105px; }
  .pm-pets-grid .pm-pet-card img { height: 160px; }
  .pm-focus .pm-focus-right .pm-focus-bottom { flex-direction: column; }
  .pm-celeb-list { gap: 10px; }
  .pm-celeb-list .pm-celeb-item { width: 100px; height: 100px; }
}

/* =============================================
   MOBILE HEADER & DRAWER (참고사이트 모바일 클론)
   ============================================= */
.pm-m-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: #fff; }

/* 모바일 상단 바 */
.pm-m-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 15px; border-bottom: 1px solid #eee; }
.pm-m-logo { flex: 1; text-align: center; }
.pm-m-logo img { height: 30px; vertical-align: middle; }
.pm-m-hamburger { width: 36px; height: 36px; background: none; border: none; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; flex-shrink: 0; }
.pm-m-hamburger span { display: block; width: 22px; height: 2px; background: #333; border-radius: 1px; transition: .3s; }
.pm-m-search-btn { font-size: 20px; color: #333; flex-shrink: 0; width: 36px; text-align: center; }

/* 모바일 가로 스크롤 GNB */
.pm-m-gnb-scroll { border-bottom: 1px solid #eee; overflow: hidden; }
.pm-m-gnb-list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding: 0 10px; scrollbar-width: none; }
.pm-m-gnb-list::-webkit-scrollbar { display: none; }
.pm-m-gnb-list li { flex-shrink: 0; }
.pm-m-gnb-list li a { display: block; padding: 0 12px; line-height: 42px; font-size: 13px; font-weight: 500; color: #333; letter-spacing: .3px; }
.pm-m-gnb-list li a:hover { color: #5a3825; }

/* 모바일 검색 패널 */
.pm-m-search-panel { display: none; padding: 10px 15px; background: #f8f8f8; border-bottom: 1px solid #eee; }
.pm-m-search-panel.open { display: block; }
.pm-m-search-panel form { display: flex; border: 1px solid #ddd; border-radius: 25px; overflow: hidden; background: #fff; }
.pm-m-search-panel input[type="text"] { flex: 1; border: none; outline: none; padding: 10px 16px; font-size: 14px; }
.pm-m-search-panel button { border: none; background: transparent; padding: 10px 14px; font-size: 16px; color: #999; cursor: pointer; }

/* 드로어 오버레이 */
.pm-m-drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .3s; }
.pm-m-drawer-overlay.show { opacity: 1; visibility: visible; }

/* 드로어 본체 */
.pm-m-drawer { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: #fff; z-index: 1200; overflow-y: auto; -webkit-overflow-scrolling: touch; transition: left .35s cubic-bezier(.4,0,.2,1); box-shadow: 4px 0 20px rgba(0,0,0,.15); scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.pm-m-drawer.open { left: 0; }
.pm-m-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; background: #fff; }
.pm-m-drawer-logo img { height: 26px; }
.pm-m-drawer-close { background: none; border: none; font-size: 22px; color: #333; cursor: pointer; padding: 4px; display: flex; align-items: center; }

/* 드로어 회원 버튼 */
.pm-m-drawer-auth { display: flex; width: 100%; border-bottom: 1px solid #eee; }
.pm-m-auth-btn { flex: 1; text-align: center; padding: 15px 0; font-size: 14px; font-weight: 500; text-decoration: none; display: block; }
.pm-m-auth-btn.join { background: #367639; color: #fff; }
.pm-m-auth-btn.login { background: #999999; color: #fff; }
.pm-m-auth-btn.logout { background: #5a3825; color: #fff; width: 100%; }

/* 드로어 검색 */
.pm-m-drawer-search { padding: 20px; background: #f8f8f8; border-bottom: 1px solid #eee; }
.pm-m-drawer-search form { display: flex; align-items: center; border-bottom: 2px solid #222; background: transparent; padding-bottom: 5px; position: relative; }
.pm-m-drawer-search input[type="text"] { flex: 1; border: none; outline: none; background: transparent; padding: 6px 30px 6px 0; font-size: 14px; color: #333; }
.pm-m-drawer-search button { border: none; background: transparent; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #222; font-size: 18px; cursor: pointer; }

/* 드로어 메뉴 */
.pm-m-drawer-menu { padding: 0; }
.pm-m-menu-item { border-bottom: 1px solid #f0f0f0; }
.pm-m-menu-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 15px; font-weight: 600; color: #222; text-decoration: none; }
.pm-m-menu-toggle { background: none; border: none; font-size: 16px; color: #999; cursor: pointer; padding: 0 4px; display: flex; align-items: center; }
.pm-m-submenu { display: none; background: #f2f2f2; padding: 12px; }
.pm-m-submenu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; overflow: hidden; background: #fff; }
.pm-m-submenu-card { display: flex; align-items: center; padding: 12px 10px; background: #fff; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; text-decoration: none; min-height: 46px; box-sizing: border-box; }
.pm-m-submenu-card:hover { background: #fdfbf9; }
.pm-m-sub-icon { font-size: 14px; color: #666; margin-right: 8px; flex-shrink: 0; }
.pm-m-submenu-card:hover .pm-m-sub-icon { color: #5a3825; }
.pm-m-sub-name { display: block; font-size: 12px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-m-submenu-card:hover .pm-m-sub-name { color: #5a3825; font-weight: 600; }

/* 드로어 퀵링크 */
.pm-m-drawer-quick { display: flex; gap: 8px; padding: 20px; border-top: 1px solid #eee; margin-top: 10px; }
.pm-m-quick-item { flex: 1; text-align: center; padding: 12px 0; border-radius: 8px; font-size: 13px; font-weight: 500; }
.pm-m-quick-item.kakao { background: #fee500; color: #3c1e1e; }
.pm-m-quick-item.phone { background: #5a3825; color: #fff; }
.pm-m-quick-item i { margin-right: 4px; }

/* 모바일 컨텐츠 오프셋 */
@media screen and (max-width: 768px) {
  #wrapper { padding-top: 100px; }
}

/* =============================================
   상세 슬라이딩 퀵메뉴 (참고사이트 클론)
   ============================================= */
.pm-quick-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -415px; /* 기본적으로 서랍을 화면 밖으로 숨김 */
  width: 415px;  /* 서랍 너비만 지정 */
  height: 100vh;
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pm-quick-menu.open {
  right: 0;
}
.pm-quick-menu.hide-bar {
  transform: translateX(80px);
}

/* 퀵바 전체 숨기기/보이기 버튼 */
.pm-qbar-hide-btn {
  position: absolute;
  top: 50%;
  left: -32px;
  width: 32px;
  height: 90px;
  background: #ff9f1c;
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  font-size: 18px;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.3s;
}
.pm-qbar-hide-btn:hover {
  background: #e08915;
  width: 36px;
  left: -36px;
}
.pm-quick-menu.hide-bar .pm-qbar-hide-btn {
  background: #222;
  color: #fff;
}
.pm-quick-menu.hide-bar .pm-qbar-hide-btn:hover {
  background: #444;
}
.pm-quick-menu.hide-bar .pm-qbar-hide-btn i {
  transform: rotate(180deg);
}
.pm-qbar-hide-btn i {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pm-qbar-hide-btn .txt {
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 6px;
  letter-spacing: 2px;
}

/* 퀵바 (좌측 80px 검정 기둥 - 컨테이너 왼쪽에 완벽히 절대배치하여 잘림 차단) */
.pm-quick-bar {
  position: absolute;
  top: 0;
  left: -80px; /* 퀵바 너비만큼 왼쪽 음수 값으로 배치하여 항상 보이게 함 */
  width: 80px;
  height: 100vh;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 40px;
  z-index: 2;
  box-shadow: -5px 0 15px rgba(0,0,0,0.15);
}
.pm-qbar-btn {
  width: 100%;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.3;
  transition: all 0.2s;
  box-sizing: border-box;
  border-bottom: 1px solid #222;
}
.pm-qbar-btn i {
  font-size: 24px;
  margin-bottom: 6px;
  color: #fff;
  transition: transform 0.2s;
}
.pm-qbar-btn:hover {
  background: #1a1a1a;
  color: #ff9f1c;
}
.pm-qbar-btn:hover i {
  transform: scale(1.1);
  color: #ff9f1c;
}

/* 퀵메뉴 열기/닫기 토글 버튼 */
.pm-qbar-btn.bar-toggle {
  background: #222;
  border-bottom: 1px solid #333;
}
.pm-qbar-btn.bar-toggle .toggle-icon i {
  font-size: 20px;
}

/* 카톡 버튼 */
.pm-qbar-btn.bar-kakao {
  background: #2b2b2b;
}

/* 위아래 스크롤 박스 */
.pm-qbar-btn.bar-scroll {
  padding: 12px 0;
  border-bottom: 1px solid #222;
}
.pm-qbar-btn.bar-scroll button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 8px 0;
  width: 100%;
  transition: color 0.2s;
}
.pm-qbar-btn.bar-scroll button:hover {
  color: #ff9f1c;
}

/* 초록색 상담문의 버튼 */
.pm-qbar-btn.bar-inquiry {
  background: #367639;
  color: #fff;
}
.pm-qbar-btn.bar-inquiry i {
  color: #fff;
}
.pm-qbar-btn.bar-inquiry:hover {
  background: #2d6330;
  color: #fee500;
}
.pm-qbar-btn.bar-inquiry:hover i {
  color: #fee500;
}

/* 갈색 대표번호 박스 */
.pm-qbar-btn.bar-tel {
  background: #906856;
  color: #fff;
  margin-top: auto;
  border-bottom: none;
  cursor: default;
  padding: 24px 0;
}
.pm-qbar-btn.bar-tel .tel-lbl {
  font-size: 8px;
  opacity: 0.8;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.pm-qbar-btn.bar-tel .tel-num {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* 퀵메뉴 상세 서랍 (우측 415px 연회색 보드 - 컨테이너 크기에 100% 매칭) */
.pm-quick-cont {
  width: 100%;
  height: 100vh;
  background: #f8f9fa;
  box-sizing: border-box;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  overflow-y: auto;
  z-index: 1;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

/* 10가지 퀵링크 그리드 */
.pm-qcont-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #e2e2e2;
  border: 1px solid #e2e2e2;
}
.pm-qlink-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  text-decoration: none;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
}
.pm-qlink-card i {
  font-size: 22px;
  color: #333;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.pm-qlink-card:hover {
  background: #fafaf8;
  color: #ff9f1c;
}
.pm-qlink-card:hover i {
  color: #ff9f1c;
}

/* 상세 검색 및 태그 클라우드 */
.pm-qcont-search {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}
.pm-qcont-search .search-tit {
  font-size: 14px;
  font-weight: 800;
  color: #222;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pm-qcont-search .search-input-wrap {
  position: relative;
  border-bottom: 2px solid #222;
  padding-bottom: 4px;
}
.pm-qcont-search .search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 6px 30px 6px 0;
}
.pm-qcont-search .search-input-wrap button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #222;
  font-size: 16px;
  cursor: pointer;
}
.pm-qcont-search .search-tags {
  margin-top: 15px;
}
.pm-qcont-search .tag-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-qcont-search .tag-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #ff9f1c;
  flex-shrink: 0;
}
.pm-qcont-search .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pm-qcont-search .tag-list a {
  display: inline-block;
  font-size: 10px;
  color: #666;
  background: #f1f3f5;
  padding: 3px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.pm-qcont-search .tag-list a:hover {
  background: #ff9f1c;
  color: #fff;
}

/* 분양상담 지점안내 및 지점 카드 */
.pm-qcont-branch {
  margin-top: auto;
}
.pm-qcont-branch .branch-tel {
  text-align: center;
  border-top: 1px dashed #ddd;
  padding-top: 20px;
  margin-bottom: 15px;
}
.pm-qcont-branch .branch-tel .tel-lbl {
  display: block;
  font-size: 11px;
  color: #777;
  margin-bottom: 4px;
}
.pm-qcont-branch .branch-tel .tel-num {
  font-size: 24px;
  font-weight: 900;
  color: #222;
  letter-spacing: -0.5px;
}
.pm-qcont-branch .branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pm-qcont-branch .branch-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-qcont-branch .branch-card strong {
  font-size: 12px;
  color: #333;
}
.pm-qcont-branch .branch-card span {
  font-size: 11px;
  color: #ff9f1c;
  font-weight: 600;
}

/* 모바일 해상도(728px 이하)일 때 퀵메뉴를 깔끔하게 숨겨 간섭 배제 */
@media screen and (max-width: 728px) {
  .pm-quick-menu {
    display: none !important;
  }
}

/* =============================================
   SUB HERO (서브 비주얼) 모바일 60% 축소 오버라이드
   ============================================= */
@media screen and (max-width: 768px) {
  /* 일반 서브페이지 및 게시판 Hero 모바일 패딩 85px로 강화하여 40px 하강 연동 */
  .page-hero,
  .board-hero {
    padding-top: 85px !important;
    padding-bottom: 45px !important;
  }
  
  /* 서브 비주얼 텍스트 폰트 크기 60% 수준 축소 */
  .page-hero h1,
  .board-hero h1 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  .page-hero p,
  .board-hero p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* 서브 비주얼 우측 데코레이션 아이콘 박스 60% 비례 축소 */
  .page-hero .w-\[150px\],
  .page-hero .h-\[150px\],
  .board-hero .hero-icon-wrap {
    width: 90px !important;
    height: 90px !important;
  }
  
  .page-hero i.fa,
  .board-hero i.fa {
    font-size: 48px !important;
  }
}

/* ===== BOARD HERO & PAGE HERO PC FIXED HEADER OFFSET, HEIGHT & VERTICAL MIDDLE ===== */
.board-hero, .page-hero {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  min-height: 320px !important;
  box-sizing: border-box !important;
  padding: 50px 0 !important;
  margin-top: 141px !important; /* PC fixed 헤더 오프셋 */
}

@media screen and (max-width: 768px) {
  .board-hero, .page-hero {
    min-height: 160px !important;
    padding-top: 85px !important; /* 모바일 fixed 헤더 100px 피하고 40px 아래로 텍스트/아이콘 내림 */
    padding-bottom: 35px !important;
    margin-top: 0px !important; /* 모바일 margin 소거 */
  }
}

/* ===== BREADCRUMB 네비게이션 ===== */
.pm-breadcrumb {
  width: 100%;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
.pm-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: #6c757d;
}
.pm-bc-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dee2e6;
  color: #495057;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.pm-bc-home:hover {
  background: #ff9f1c;
  border-color: #ff9f1c;
  color: #fff;
}
.pm-bc-sep {
  margin: 0 8px;
  font-size: 11px;
  color: #adb5bd;
  flex-shrink: 0;
}
.pm-bc-item {
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}
.pm-bc-item.pm-bc-current {
  font-weight: 700;
  color: #343a40;
}

@media screen and (max-width: 768px) {
  .pm-breadcrumb-inner {
    padding: 10px 16px;
    font-size: 13px;
  }
  .pm-bc-sep {
    margin: 0 6px;
  }
}

/* pm-bc-select-wrapper 스타일 추가 */
.pm-bc-select-wrapper {
  position: relative;
  display: inline-block;
}
.pm-bc-select {
  display: block;
  width: auto;
  min-width: 120px;
  height: 32px;
  padding: 0 28px 0 12px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: #495057;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat right 10px center;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  outline: none;
}
.pm-bc-select:hover {
  border-color: #ff9f1c;
  color: #212529;
}
.pm-bc-select:focus {
  border-color: #ff9f1c;
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.15);
}

@media screen and (max-width: 768px) {
  .pm-bc-select {
    height: 28px;
    padding: 0 24px 0 10px;
    font-size: 12px;
    min-width: 90px;
    background-position: right 8px center;
  }
}

/* ===== TOP 버튼 스타일 ===== */
#top_btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff6f00;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,111,0,0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  align-items: center;
  justify-content: center;
  outline: none;
}
#top_btn:hover {
  background: #e65c00;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255,111,0,0.45);
}
#top_btn:active {
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  #top_btn {
    bottom: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }
}

/* 모바일 전용 반응형 줄바꿈 클래스 */
.m_br { display: none !important; }
@media screen and (max-width: 728px) {
  .m_br { display: block !important; }
}
