/*
Theme Name: 오늘살집 파트너 랜딩
Theme URI: https://oneulapt.com
Author: 오늘살집
Description: 파트너(부동산·모델하우스) 구독형 원페이지 랜딩 테마 v4 — 승인 HTML 시안(landing-*.html 5레이아웃 · skin-a~s.html 19스킨) 그대로. 시안 CSS 는 assets/approved/ 에 원본으로 두고, 이 파일은 운영 기능(전광판·팝업·토스트·상담 폼 메시지·편집 모드·명함 컬럼형) 연결만 담는다.
Version: 4.1.27
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: oneul-landing
*/

/* ── 기본 ── */
body{margin:0;background:var(--skin-bg,#fff)}
.pl-skip{position:absolute;left:-9999px;top:0;z-index:1000;background:#fff;color:#111;padding:10px 14px;border-radius:8px}
.pl-skip:focus{left:12px;top:12px}
.pl-page .bd-eyebrow{color:var(--skin-accent)}
.pl-page .bd-btn-primary{background:var(--skin-accent);border-color:var(--skin-accent)}
.pl-section p{white-space:normal}

/* 로고 — 시안 .bd-brand 는 35px 정사각 아이콘 규격. 파트너 로고는 비율 유지 */
.pl-brand img{width:auto!important;height:32px!important;max-width:180px;object-fit:contain}
.pl-brand strong{font-weight:850;letter-spacing:-.05em;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
.pl-header .bd-brand{font-size:22px}

/* ── 전광판 — 오른쪽에서 왼쪽으로 흐르는 공지 띠 ── */
.pl-ticker{padding:0;text-align:left}
.pl-ticker-track{display:inline-flex;gap:48px;padding:7px 48px 7px 0;animation:pl-marquee 24s linear infinite;will-change:transform}
.pl-ticker-track span{display:inline-block}
.pl-ticker:hover .pl-ticker-track{animation-play-state:paused}
@keyframes pl-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.pl-ticker-track{animation:none}}

/* ── 히어로 — 대표 이미지가 없을 때 자리 ── */
.pl-hero-ph{display:grid;place-items:center;background:linear-gradient(160deg,#e6f1ff,#f6faff 70%);color:var(--skin-accent)}
.pl-hero-ph .bd-icon{width:48px;height:48px;opacity:.5}
.pl-layout-fullhero .pl-hero-ph,.pl-layout-conversion .pl-hero-ph{background:#09223e}
.pl-hero .bd-btn .bd-icon{width:18px;height:18px}

/* 카드형 바로가기 */
.pl-quick>a{color:inherit}
.pl-quick .bd-icon{color:var(--skin-accent)}

/* ── 사진 자리표시 (현장 사진 미등록) ── */
.bd-photo-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:12px;text-align:center;background:linear-gradient(160deg,#e6f1ff,#f6faff 70%);color:var(--bd-mute)}
.bd-photo-ph .bd-icon{width:26px;height:26px;color:var(--skin-accent);opacity:.55}
.bd-photo-ph strong{font-size:13px;color:var(--bd-ink-2)}
.bd-card-photo .bd-photo-ph{position:absolute;inset:0}
.pl-site-links{margin-top:12px;gap:6px;flex-wrap:wrap}

/* ── 갤러리 — 기본은 시안 3열. 파트너가 칸 폭을 바꾸면 12칸 그리드 ── */
.hs-gallery button{cursor:zoom-in}
.hs-gallery.is-natural img{aspect-ratio:auto;height:auto}
.hs-gallery.is-sized{grid-template-columns:repeat(12,1fr)}
.hs-gallery.is-sized .pl-g-12{grid-column:span 12}
.hs-gallery.is-sized .pl-g-6{grid-column:span 6}
.hs-gallery.is-sized .pl-g-4{grid-column:span 4}
.hs-gallery.is-sized .pl-g-3{grid-column:span 3}
.pl-lightbox .bd-dialog-body>img{max-height:70vh;width:100%;object-fit:contain;background:#0b1c4d0a;border-radius:8px}

/* ── 영상 ── */
.pl-video{margin-inline:auto;aspect-ratio:16/9;background:#0c1424}
.pl-video iframe,.pl-video video{width:100%;height:100%;border:0;display:block}
.pl-v-12{width:100%}.pl-v-8{width:66.66%}.pl-v-6{width:50%}
.bd-play .bd-icon{width:22px;height:22px;fill:currentColor}

/* ── 오시는 길 ── */
.pl-map{height:330px;border-radius:10px;overflow:hidden;border:1px solid var(--bd-line);background:#e2ebf8}
.pl-map iframe{width:100%;height:100%;border:0;display:block}
.pl-map-addr{display:flex;align-items:center;gap:6px;margin-top:12px;color:var(--skin-muted)}
.pl-map-addr .bd-icon{width:16px;height:16px;color:var(--skin-accent)}

/* ── FAQ · 폼 — 어두운 스킨에서도 흰 카드 안 글자는 진하게 ── */
.pl-page .bd-faq details{color:#0b1c4d}
.pl-page .bd-faq summary::-webkit-details-marker{display:none}
.pl-consult .bd-surface{color:#0b1c4d}
.pl-form .bd-btn-primary{width:100%}
.pl-form .bd-btn .bd-icon{width:18px;height:18px}
.pl-form-note{margin:0}
.pl-msg{border-radius:8px;padding:12px 14px;font-size:13px;font-weight:600;margin:0}
.pl-msg-ok{background:#eaf7f1;color:#087b55}
.pl-msg-err{background:#fff0f2;color:#a73243}
.pl-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* ── 푸터 ── */
.pl-footer .bd-brand{font-size:18px;color:var(--skin-ink)}
.pl-footer p{margin:0;line-height:1.8}
.pl-footer .pl-disc{margin-top:10px;opacity:.85}
.pl-footer .pl-powered{margin-top:10px}
.pl-footer .pl-powered a{text-decoration:underline}

/* ── 빠른 연락 — 시안 .pl-quickbar button 규격을 링크에도 ── */
.pl-quickbar a{border-radius:50%;background:var(--skin-accent);color:#fff;border:0;width:46px;height:46px;display:grid;place-items:center;box-shadow:0 4px 14px #17376325}
.pl-quickbar a .bd-icon{width:20px;height:20px}

/* ── 편집 모드 자리표시 ── */
.pl-placeholder>div{min-height:120px;display:flex;align-items:center;justify-content:center;border:2px dashed #c7d2e4;border-radius:10px;color:#7b8794;font-size:14px;font-weight:600;text-align:center;padding:20px}

/* ── 토스트 · CPC 팝업 (wp_footer — .pl-page 밖이라 :root 스킨 변수 사용) ── */
.pl-toast{position:fixed;left:24px;bottom:28px;z-index:60;background:#0b1c4df0;color:#fff;font-size:13px;padding:11px 16px;border-radius:999px;box-shadow:0 8px 24px #0003;opacity:0;transform:translateY(8px);transition:.4s;pointer-events:none;max-width:calc(100vw - 48px)}
.pl-toast.on{opacity:1;transform:none}
.pl-toast.is-led{background:#0b1220ee;border:1px solid #2b62e855;color:#7ef1ff;font-weight:800;letter-spacing:.04em;text-shadow:0 0 6px #35e6ff99,0 0 18px #2b62e866;box-shadow:0 0 0 1px #14243f,0 10px 30px #0b122066,inset 0 0 18px #2b62e822;overflow:hidden;max-width:min(78vw,420px)}
.pl-toast.is-led::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,#ffffff10 0 2px,transparent 2px 4px)}
.pl-toast.is-pen{background:#fffdf5f2;color:#2b2419;font-weight:700;font-family:'Gaegu','Nanum Pen Script',var(--bd-font,inherit);border:1px dashed #d9c9a3;box-shadow:0 8px 22px #2b241914;padding-bottom:14px}
.pl-toast.is-pen::after{content:"";position:absolute;left:16px;right:16px;bottom:8px;height:6px;border-radius:50%;background:radial-gradient(ellipse at center,#f0b23955,transparent 70%)}
@media (prefers-reduced-motion:no-preference){
	.pl-toast.is-led{animation:pl-led 2.4s ease-in-out infinite}
	@keyframes pl-led{0%,100%{filter:brightness(1)}50%{filter:brightness(1.28)}}
}
.pl-popup{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .2s;font-family:var(--bd-font)}
.pl-popup[hidden]{display:none!important}
.pl-popup.on{opacity:1}
.pl-popup-bg{position:absolute;inset:0;background:#10213a66;backdrop-filter:blur(2px)}
.pl-popup-box{position:relative;width:min(380px,92vw);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px #0b1c4d33;transform:translateY(14px);transition:transform .22s}
.pl-popup.on .pl-popup-box{transform:none}
.pl-popup-x{position:absolute;top:10px;right:10px;z-index:2;width:36px;height:36px;border-radius:50%;background:#10203a66;color:#fff;font-size:20px;line-height:1;border:0;cursor:pointer}
.pl-popup-img{width:100%;max-height:46vh;object-fit:contain;background:#eef2f8}
.pl-popup-body{padding:22px 24px 24px;text-align:center}
.pl-popup-body strong{display:block;font-size:20px;font-weight:800;color:var(--bd-ink);line-height:1.4;letter-spacing:-.04em}
.pl-popup-body p{font-size:14px;color:var(--bd-mute);margin:8px 0 0;line-height:1.7}
.pl-popup-cta{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:18px;background:var(--skin-accent,#1460ff);color:#fff;font-size:15px;font-weight:700;border-radius:8px}

/* 커스텀 페이지(page.php) */
.pl-page-body{max-width:1220px;margin:0 auto;padding:40px}

/* ══ 명함 컬럼형(classic) — 시안 5레이아웃 밖의 운영 구조: 좌측 sticky 명함 + 좁은 본문 컬럼 ══ */
.pl-layout-classic{display:grid;grid-template-columns:300px minmax(0,520px);justify-content:center;align-items:start;gap:26px;padding:24px}
.pl-layout-classic .pl-classic-col{grid-column:2;grid-row:1;background:#fff;border:1px solid var(--bd-line);border-radius:12px;overflow:hidden;min-width:0}
.pl-layout-classic.pl-is-dark .pl-classic-col{background:#1a2740;border-color:#ffffff14}
.pl-layout-classic .pl-side{grid-column:1;grid-row:1;position:sticky;top:24px}
.pl-layout-classic .pl-header nav{display:none}
.pl-layout-classic .pl-header{padding:0 18px;gap:12px}
.pl-layout-classic .pl-header .bd-btn{margin-left:auto}
.pl-layout-classic .pl-hero{display:block;padding:30px 22px;min-height:0}
.pl-layout-classic .pl-hero h1{font-size:30px}
.pl-layout-classic .pl-hero-photo{height:220px;margin-top:22px}
.pl-layout-classic .pl-sections{width:auto;padding:0 22px}
.pl-layout-classic .pl-section{padding-block:30px}
.pl-layout-classic .pl-section h2{font-size:22px}
.pl-layout-classic .bd-grid-2,.pl-layout-classic .bd-grid-3,.pl-layout-classic .bd-grid-4{grid-template-columns:1fr}
.pl-layout-classic .hs-gallery{grid-template-columns:repeat(2,1fr)}
.pl-side-card{display:flex;flex-direction:column;gap:14px;color:#0b1c4d;box-shadow:0 12px 34px #1a2b4812}
.pl-side-id{display:flex;align-items:center;gap:12px}
.pl-side-id img{height:36px;width:auto}
.pl-side-avatar{width:42px;height:42px;border-radius:50%;background:var(--bd-blue-soft);color:var(--skin-accent);display:grid;place-content:center;font-weight:800;font-size:17px}
.pl-side-id strong{font-size:16px}
.pl-side-ctas{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pl-side-ctas .bd-btn{min-height:42px;padding:8px 10px;font-size:13px}
.pl-side-ctas .bd-btn:only-child{grid-column:1/-1}
.pl-side-form{gap:12px;border-top:1px solid var(--bd-line-2);padding-top:14px}
.pl-side-form>strong{font-size:14px}
.pl-side-form .bd-btn{width:100%}
.pl-side-notice{margin:0;text-align:center}

/* ── 반응형 ── */
@media (max-width:900px){
	.pl-layout-classic{display:block;padding:0}
	.pl-layout-classic .pl-classic-col{border:0;border-radius:0}
	.pl-layout-classic .pl-side{position:static;padding:20px 16px}
	/* 모바일 — 명함 카드는 맨 아래 연락 카드로. 본문에 상담 폼이 이미 있어 명함의 간편 폼은 뺀다 */
	.pl-layout-classic .pl-side-form{display:none}

}
@media (max-width:767px){
	.pl-header>.bd-icon-btn{display:inline-flex;border:0}
	.hs-gallery.is-sized .pl-g-3,.hs-gallery.is-sized .pl-g-4{grid-column:span 6}
	.pl-v-8,.pl-v-6{width:100%}
	.pl-map{height:260px}
	.pl-quick{grid-template-columns:repeat(2,1fr)!important}
	.pl-quickbar a{width:40px;height:40px}
	.pl-toast{left:12px;right:64px;bottom:88px;text-align:center;border-radius:12px} /* 오른쪽 전화·문자 버튼 자리 비움 */
	.pl-page-body{padding:24px 20px}
	.pl-brand strong{font-size:19px}
}


/* ══ 파트너 피드백 반영 (2026-09) ══ */
/* 팝업 — 이미지는 잘리지 않게 폭에 맞추고, 문구가 없으면 여백을 줄인다 */
.pl-popup-box{width:min(420px,92vw)}
.pl-popup-img{display:block;width:100%;height:auto;max-height:68vh;object-fit:contain;background:#fff}
.pl-popup-body:not(:has(strong)):not(:has(p)){padding:14px 16px 16px}
.pl-popup-body:not(:has(strong)):not(:has(p)) .pl-popup-cta{margin-top:0}
/* 로고 — 투명 배경 그대로 */
.pl-brand img,.pl-side-id img{background:transparent}
/* 현장 사진 전체 보기 · 갤러리(꽉 채우기 끔) — 같은 크기 칸 안에 잘리지 않게 */
.pl-fit-contain .bd-card-photo img,.hs-fit-contain .bd-card-photo img{object-fit:contain;background:#eef3f9}
.hs-gallery.is-natural img{aspect-ratio:1.5;height:auto;object-fit:contain;background:#eef3f9}
/* 동의 숨김 안내 */
.pl-consent-note{margin:0}
/* 알림 문구 움직임 */
.pl-toast.is-anim-bounce.on{animation:pl-t-bounce 1.2s ease-in-out infinite}
.pl-toast.is-anim-blink.on{animation:pl-t-blink 1s steps(2,start) infinite}
.pl-toast.is-anim-slide{transform:translateX(-110%)}
.pl-toast.is-anim-slide.on{transform:none;transition:transform .5s cubic-bezier(.2,.9,.3,1.2),opacity .3s}
.pl-toast.is-anim-pulse.on{animation:pl-t-pulse 1.4s ease-in-out infinite}
@keyframes pl-t-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pl-t-blink{to{visibility:hidden}}
@keyframes pl-t-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){.pl-toast[class*=is-anim-].on{animation:none}}

/* 모바일 — 히어로 숫자 설명(10px)이 너무 작아 한 단계 키움 */
@media (max-width:767px){ .pl-stats small{font-size:11px} }

/* ── 4.1.5 원페이지 추가 섹션: 사업 개요 · 특장점 · 공급 평형(평면도) · 3D/일조 ── */
.pl-hero-pic{display:contents}
/* OL151 휴대폰용 그림을 넣어도 PC 사진 자리가 그대로 — picture 안의 source 가 격자 칸을 차지하지 않게 */
.pl-hero-pic>source{display:none}
.pl-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;border-top:1px solid var(--bd-line,#e3ebf5)}
.pl-overview>div{display:grid;grid-template-columns:minmax(90px,34%) 1fr;gap:12px;padding:14px 4px;border-bottom:1px solid var(--bd-line,#e3ebf5)}
.pl-overview dt{color:var(--skin-muted,#6981a5);font-size:13px}
.pl-overview dd{margin:0;font-weight:700}
.pl-units .pl-unit{display:flex;flex-direction:column}
.pl-unit-plan{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#fff;border-bottom:1px solid var(--bd-line,#e3ebf5);overflow:hidden}
.pl-unit-plan img{width:100%;height:100%;object-fit:contain;padding:8px}
.pl-unit .bd-card-body h3{font-size:18px;margin-bottom:4px}
.pl-embeds .pl-embed{margin:0}
.pl-embed iframe{width:100%;aspect-ratio:16/10;border:0;border-radius:10px;background:#0b1c4d0d}
.pl-is-dark .pl-unit-plan{background:#ffffff}
@media (max-width:767px){
	.pl-overview{grid-template-columns:1fr}
	.pl-units.bd-grid,.pl-features.bd-grid,.pl-embeds.bd-grid{grid-template-columns:1fr}
}

/* 대표전화 옆 안내 문구 (연중무휴 등) — 전화 링크 밖에 작게 */
.ol-phone-note{font-size:.85em;opacity:.8;margin-left:4px;font-weight:500;white-space:nowrap}

/* 접수 안내 — 무엇이 접수됐는지 한 줄 더 */
.pl-msg strong{display:block;font-size:15px;margin-bottom:2px}
.pl-msg-rcpt{display:block;margin-top:6px;padding-top:6px;border-top:1px solid #08795526;font-weight:500;color:#0b5c41}

/* ── 하단 알림 띠(플로팅 배너) — REQ-45: 페이드·주기·강조 글씨·닫기·모바일 줄바꿈 ── */
.pl-toast{--pl-base:#fff;--pl-hl:#ff3b30;--pl-hl-sec:1.2s;display:flex;align-items:center;gap:10px;white-space:normal;word-break:keep-all;line-height:1.45}
.pl-toast.is-led{--pl-base:#7ef1ff}
.pl-toast.is-pen{--pl-base:#2b2419}
.pl-toast .pl-toast-t{flex:1 1 auto;min-width:0}
.pl-toast.is-anim-fade{transform:none;transition:opacity 1.3s ease}
.pl-toast.is-anim-fade.on{opacity:1;transform:none}
.pl-toast-hl{color:var(--pl-hl);font-weight:800;font-style:normal;padding:0 1px}
.pl-toast.is-hl-blink .pl-toast-hl{animation:pl-hl-blink var(--pl-hl-sec) steps(2,start) infinite}
.pl-toast.is-hl-swap .pl-toast-hl{animation:pl-hl-swap var(--pl-hl-sec) ease-in-out infinite}
@keyframes pl-hl-blink{to{visibility:hidden}}
@keyframes pl-hl-swap{0%,100%{color:var(--pl-hl)}50%{color:var(--pl-base)}}
.pl-toast.has-x{pointer-events:auto;padding-right:10px}
.pl-toast-x{flex:none;width:28px;height:28px;border-radius:50%;border:0;background:#00000018;color:inherit;font-size:18px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.pl-toast-x:hover{background:#00000030}
@media (max-width:767px){
	.pl-toast{left:12px;right:72px;max-width:none;font-size:13.5px;padding:11px 14px;border-radius:14px;text-align:left} /* 오른쪽 상담 플로팅 버튼 자리는 비워 둔다 */
	.pl-toast.has-x{padding-right:8px}
}
@media (prefers-reduced-motion:reduce){.pl-toast.is-hl-blink .pl-toast-hl,.pl-toast.is-hl-swap .pl-toast-hl{animation:none}}

/* OL75 휴대폰에서 대표 이미지 전체 보이기(기본) — 가로형 배너를 세로 칸에 맞추느라 양옆이 잘리던 것.
   이미지를 위에 원래 비율로 두고 글자를 그 아래로. 휴대폰용 이미지가 있거나 편집기에서 「꽉 채우기」를 고르면 예전 방식 */
@media(max-width:767px){
	.pl-hero.pl-fit-full{display:flex!important;flex-direction:column;min-height:0!important;padding:0!important}
	.pl-hero.pl-fit-full>.pl-hero-photo,.pl-hero.pl-fit-full>img{position:static!important;order:-1;width:100%!important;height:auto!important;aspect-ratio:auto;object-fit:contain!important;filter:none!important;opacity:1!important;border-radius:0!important;margin:0!important;inset:auto}
	.pl-hero.pl-fit-full:after{display:none}
	.pl-hero.pl-fit-full>.pl-hero-copy{padding:26px 20px 30px}
	.pl-hero.pl-fit-full>.bd-surface{margin:0 20px 26px}
}
