/* =========================================================
   p00 MAIN
   ========================================================= */

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #8c9eb2; color: #fff; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,46,87,.4) 0, rgba(8,46,87,0) 35%),
    linear-gradient(180deg, rgba(8,46,87,0) 70%, rgba(8,46,87,.45) 100%),
    linear-gradient(90deg, rgba(8,46,87,.5) 0, rgba(8,46,87,.28) 45%, rgba(8,46,87,.05) 75%, rgba(8,46,87,0) 100%),
    rgba(26,84,143,.12); }
.hero__content { position: absolute; left: 0; right: 0; bottom: 188px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__copy { flex: none; max-width: 100%; }
@media (min-width: 768px) { .hero__title { white-space: nowrap; } }
.hero__eyebrow { font-family: var(--font-en); font-weight: 600; font-size: 22px; color: rgba(255,255,255,.85); }
.hero__title { margin-top: 12px; font-size: var(--fs-hero); font-weight: 400; line-height: 1.29; letter-spacing: -0.02em; }
.hero__desc { margin-top: 92px; font-size: 20px; color: rgba(255,255,255,.85); }
.hero__cta { margin-top: 48px; }
.hero__text { transition: opacity .6s, transform .6s; }
.hero__text.is-changing { opacity: 0; transform: translateY(16px); }

.hero-ctrl { display: flex; align-items: center; gap: 24px; flex: none; }
.hero-ctrl__counter { font-family: var(--font-en); display: flex; align-items: baseline; gap: 6px; min-width: 59px; }
.hero-ctrl__counter strong { font-weight: 500; font-size: 22px; }
.hero-ctrl__counter span { font-size: 14px; color: rgba(255,255,255,.6); }
.hero-ctrl__progress { display: flex; gap: 6px; }
.hero-ctrl__seg { position: relative; width: 40px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.28); overflow: hidden; padding: 0; }
.hero-ctrl__seg::before { content: ""; position: absolute; inset: -10px 0; } /* hit area */
.hero-ctrl__seg i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-ctrl__seg.is-done i { transform: scaleX(1); }
.hero-ctrl__seg.is-active i { animation: heroSeg var(--hero-dur, 6s) linear forwards; }
.hero.is-paused .hero-ctrl__seg.is-active i { animation-play-state: paused; }
@keyframes heroSeg { to { transform: scaleX(1); } }
.hero-ctrl__divider { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.hero-ctrl__group { display: flex; gap: 8px; }
.hero-ctrl__btn { width: 52px; height: 52px; border-radius: 9999px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 18px; transition: background .2s, color .2s; backdrop-filter: blur(4px); }
.hero-ctrl__btn:hover { background: rgba(255,255,255,.3); }
.hero-ctrl__btn.is-light { background: #fff; color: var(--text); }
.hero-ctrl__btn.is-light:hover { background: var(--blue); color: #fff; }
.hero-ctrl__btn[hidden] { display: none; }

/* ---------- key facts ---------- */
.facts { position: relative; padding: 50px 0 90px; background: #fff; overflow: hidden; }
.facts__bg-blue { position: absolute; left: 0; top: 0; width: calc(var(--gutter) + 520px); height: 1000px; background: var(--blue); }
.facts__bg-band { position: absolute; left: 0; right: 0; bottom: 0; height: 424px; background: #f2f1ee; }
.facts__layout { position: relative; display: grid; grid-template-columns: 520px 1fr; align-items: center; }
.facts__list li { padding: 28px 40px; height: 132px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.facts__num { font-family: var(--font-en); font-weight: 400; font-size: var(--fs-fact); line-height: 1.44; color: #fff; white-space: nowrap; }
.facts__num.is-accent { color: #8cc0e4; }
.facts__label { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.2; }
.facts__about { padding-left: 120px; display: flex; flex-direction: column; gap: 48px; }
.facts__about .sec-title { margin-top: 28px; }
.facts__about .desc { margin-top: 28px; }
.leed { margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--blue); font-size: 16px; line-height: 1.6; }
.leed strong { font-weight: 700; display: block; }
.leed span { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 16px; height: 44px; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* photo slider (좌측 정렬, 우측으로 넘침) */
.photo-slider { position: relative; margin-top: 50px; padding-left: max(var(--gutter), calc((100vw - var(--inner)) / 2)); }
.photo-slider__viewport { overflow: hidden; }
.photo-slider__track { display: flex; gap: 24px; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.photo-slider__slide { flex: none; width: 720px; aspect-ratio: 3/2; overflow: hidden; }
.photo-slider__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.photo-slider__slide:hover img { transform: scale(1.04); }
.slider-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; }
.slider-ctrl__pagination { display: flex; align-items: center; gap: 28px; }
.slider-ctrl__counter { font-family: var(--font-en); display: flex; align-items: baseline; gap: 6px; }
.slider-ctrl__counter strong { font-weight: 500; font-size: 20px; }
.slider-ctrl__counter span { font-size: 14px; color: var(--silver); }
.slider-ctrl__bar { position: relative; width: 240px; height: 2px; background: #e3e3e0; }
.slider-ctrl__bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--text); transition: width .5s, left .5s; }
.slider-ctrl__nav { display: flex; gap: 8px; }

/* ---------- spaces ---------- */
.spaces { position: relative; padding: var(--sec-pad) 0; background: #f2f1ee; overflow: hidden; }
.spaces__bg { position: absolute; left: 0; right: 0; bottom: 0; height: 957px; background: url("/assets/img/682d56ab-12cf8763.jpg") center/cover; filter: grayscale(1); }
.spaces__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f2f1ee 0, rgba(242,241,238,.35) 55%, rgba(242,241,238,0) 100%), rgba(242,241,237,.75); }
.spaces .inner { position: relative; }
.spaces__head .sec-title { margin-top: 20px; }
.spaces__cols { margin-top: 58px; display: grid; grid-template-columns: 560fr 620fr; column-gap: 80px; }
.spaces__col { display: flex; flex-direction: column; gap: 71px; }
.spaces__col--right { padding-top: 99px; gap: 99px; }
.space-img { overflow: hidden; box-shadow: 0 20px 40px rgba(29,34,36,.12); }
.space-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.space-img:hover img { transform: scale(1.04); }
.space-img--lead { aspect-ratio: 560/623; } /* 첫 사진(오피스 외관)을 크게 */
.space-img--lead img { object-position: 41% 50%; } /* POSCO INTERNATIONAL 간판이 잘리지 않게 */
.space-img--office { aspect-ratio: 560/340; }
.space-img--retail { aspect-ratio: 620/442; }
.space-group { display: flex; flex-direction: column; gap: 30px; }
.space-text__tag { font-family: var(--font-en); font-weight: 500; font-size: 14px; color: var(--blue); }
.space-text__title { margin-top: 10px; font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; }
.space-text__desc { margin-top: 10px; font-size: 16px; color: #6e7478; line-height: 1.65; }
.space-text .btn-line { margin-top: 20px; }

/* ---------- video band ---------- */
.video-band { position: relative; height: 100vh; min-height: 560px; max-height: 1080px; display: grid; place-items: center;
  background: url("/assets/img/0baae29a-41d39049.jpg") center/cover; }
.video-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,38,0) 0, rgba(0,20,38,.45) 100%), rgba(0,31,56,.22); }
.play-btn { position: relative; width: 168px; height: 168px; border-radius: 9999px; display: grid; place-items: center; }
.play-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.5); animation: playPulse 2.4s ease-out infinite; }
.play-btn__inner { width: 112px; height: 112px; border-radius: 9999px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; font-size: 34px; transition: background .25s, transform .25s; }
.play-btn__inner .icon { margin-left: 6px; }
.play-btn:hover .play-btn__inner { background: rgba(255,255,255,.4); transform: scale(1.05); }
@keyframes playPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }

/* ---------- gallery ---------- */
.gallery { position: relative; padding: var(--sec-pad) 0; overflow: hidden; }
.gallery__watermark { position: absolute; right: calc(50% - 1056px / 2 - 300px); top: 50px; font-family: var(--font-en); font-weight: 500; font-size: 260px; line-height: 1.45; color: #f4f4f1; pointer-events: none; user-select: none; }
.gallery .inner { position: relative; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery__title { margin-top: 14px; font-size: 36px; font-weight: 700; line-height: 1.3; }
.gallery__head .desc { margin-top: 14px; }
.gallery__viewport { margin-top: 32px; overflow: visible; }
.gallery__track { display: flex; align-items: flex-start; gap: 24px; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.g-card { position: relative; flex: none; width: 340px; aspect-ratio: 340/420; overflow: hidden; box-shadow: 0 16px 32px rgba(29,34,36,.12); }
.g-card:nth-child(odd) { margin-top: 60px; }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.g-card:hover img { transform: scale(1.06); }
.g-card__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 60px; display: flex; align-items: center; padding: 0 12px 0 8px; border-radius: 14px; color: #fff; font-size: 18px; font-weight: 600; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0)); }
.gallery__ctrl { margin-top: 32px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.gallery__ctrl .btn-circle { width: 52px; height: 52px; }
.gallery__count { font-family: var(--font-en); font-size: 18px; min-width: 56px; text-align: center; }

/* ---------- location ---------- */
.location { position: relative; padding: 177px 0; background: var(--sand); }
/* 구글 지도: 섹션 전체 배경 */
.location__map { position: absolute; inset: 0; overflow: hidden; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__kakao { position: absolute; inset: 0; width: 100%; height: 100%; }
.location__map:not(.is-kakao) .location__kakao { display: none; }
.location__map.is-kakao iframe, .location__map.is-kakao > .map-marker { display: none; }
.map-marker.lc-kakao-marker { position: relative; left: auto; top: auto; margin: 0; }
.location__card { position: relative; z-index: 1; width: 560px; background: #fff; padding: 56px 52px; display: flex; flex-direction: column; gap: 32px; box-shadow: 0 20px 40px rgba(0,58,93,.08); }
.location__card .eyebrow { font-size: 14px; }
.location__card h2 { margin-top: 10px; font-size: 36px; font-weight: 700; line-height: 1.3; }
.location__card .desc { margin-top: 10px; }
.def-list div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.def-list div:first-child { border-top: 1px solid var(--border); }
.def-list dt { font-weight: 600; }
.def-list dd { color: var(--muted); }
.location__card .btn-line { align-self: flex-start; }
.map-marker { position: absolute; left: 50%; top: 50%; margin: -50px 0 0 -50px; width: 100px; height: 100px; pointer-events: none; transition: opacity .4s; }
.map-marker.is-hidden { opacity: 0; }
.map-marker i { position: absolute; border-radius: 50%; background: var(--blue); }
.map-marker i:nth-child(1) { inset: 0; opacity: .1; animation: markerPulse 2.6s ease-out infinite; }
.map-marker i:nth-child(2) { inset: 22px; opacity: .18; }
.map-marker i:nth-child(3) { inset: 40px; } /* 가운데 점 20px */
.map-marker__label { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); white-space: nowrap; background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; padding: 10px 18px; border-radius: 9999px; }
@keyframes markerPulse { 0% { transform: scale(.6); opacity: .3; } 100% { transform: scale(1.1); opacity: 0; } }

/* ---------- quick menu ---------- */
.quick { background: var(--navy); color: #fff; padding: 90px 0; }
.quick__title { text-align: center; font-family: var(--font-en); font-size: 22px; font-weight: 400; }
.quick__list { margin-top: 24px; display: grid; grid-template-columns: repeat(6, 1fr); }
.quick__item a { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 16px; text-align: center; transition: transform .25s; }
.quick__item a:hover { transform: translateY(-4px); }
.quick__icon { width: 28px; height: 28px; font-size: 24px; display: grid; place-items: center; }
.quick__name { display: block; font-size: 17px; font-weight: 700; line-height: 1.6; }
.quick__sub { display: block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }
.quick__item a:hover .quick__name { color: var(--light-blue); }

/* =========================================================
   Responsive (Foundations: 1280 · 1024 · 768 · 375)
   ========================================================= */
@media (max-width: 1420px) {
  .hero__content { bottom: 96px; }
  .hero__desc { margin-top: 56px; }
  .facts__layout { grid-template-columns: 440px 1fr; }
  .facts__bg-blue { width: calc(var(--gutter) + 440px); }
  .facts__about { padding-left: 80px; }
  .photo-slider__slide { width: 600px; }
  .spaces__cols { column-gap: 56px; }
  .gallery__watermark { font-size: 200px; right: 0; }
  .location { padding: 120px 0; }
}
@media (max-width: 1279px) {
  .hero__content { flex-direction: column; align-items: flex-start; gap: 40px; bottom: 72px; }
  .hero__copy { max-width: 600px; }
  .facts__layout { grid-template-columns: 1fr; }
  .facts__bg-blue { width: 100%; height: 420px; }
  .facts__list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .facts__list li { height: auto; padding: 24px 0; }
  .facts__about { padding: 72px 0 0; }
  .photo-slider__slide { width: 520px; }
  .quick__list { row-gap: 32px; }
  .g-card { width: 300px; }
}
@media (max-width: 1023px) {
  .hero__desc { margin-top: 32px; font-size: 18px; }
  .hero__eyebrow { font-size: 18px; }
  .hero-ctrl { flex-wrap: wrap; gap: 16px; }
  .facts__bg-blue { height: 540px; }
  .facts__list { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .spaces__cols { grid-template-columns: 1fr; row-gap: 48px; }
  .spaces__col--right { padding-top: 0; gap: 48px; }
  .spaces__col { gap: 48px; }
  .space-img--lead { aspect-ratio: 4/3; }
  .gallery__watermark { font-size: 140px; top: 40px; }
  .gallery__head { flex-direction: column; align-items: flex-start; }
  .location { padding: 0; background: var(--sand); }
  .location__map { position: relative; inset: auto; height: 360px; }
  .location .inner { width: 100%; }
  .location__card { width: 100%; padding: 48px var(--gutter); box-shadow: none; }
  .quick__list { grid-template-columns: repeat(3, 1fr); }
  .video-band { height: 56.25vw; min-height: 360px; }
}
@media (max-width: 767px) {
  .hero { min-height: 480px; }
  .hero__content { bottom: 40px; gap: 28px; }
  .hero__title { letter-spacing: -0.02em; }
  .hero__eyebrow { font-size: 14px; }
  .hero__desc { margin-top: 20px; font-size: 16px; }
  .hero__cta { margin-top: 24px; }
  .hero-ctrl { gap: 12px; }
  .hero-ctrl__divider { display: none; }
  .hero-ctrl__progress { display: none; }
  .hero-ctrl__btn { width: 44px; height: 44px; font-size: 16px; }
  .facts { padding-bottom: 48px; }
  .facts__bg-blue { height: 315px; }
  .facts__bg-band { height: 260px; }
  .facts__list { column-gap: 12px; }
  .facts__list li { padding: 12px 0; gap: 2px; }
  .facts__list li:last-child { grid-column: 1 / -1; }
  .facts__about { padding-top: 48px; gap: 24px; }
  .facts__about .sec-title, .facts__about .desc, .leed { margin-top: 16px; }
  .photo-slider { margin-top: 40px; }
  .photo-slider__slide { width: 82vw; }
  .slider-ctrl { margin-top: 24px; padding-right: var(--gutter); }
  .slider-ctrl__bar { width: 120px; }
  .spaces__cols { margin-top: 32px; }
  .space-group { gap: 20px; }
  .gallery__title { font-size: 24px; }
  .gallery__watermark { font-size: 88px; }
  .g-card { width: 240px; }
  .g-card:nth-child(odd) { margin-top: 32px; }
  .play-btn { width: 112px; height: 112px; }
  .play-btn__inner { width: 76px; height: 76px; font-size: 24px; }
  .location__map { height: 260px; }
  .location__card { gap: 24px; }
  .location__card h2 { font-size: 24px; }
  .def-list div { grid-template-columns: 72px 1fr; }
  .map-marker { transform: scale(.75); }
  .quick { padding: 48px 0; }
  .quick__list { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .quick__icon { display: none; }
  .quick__item a { padding: 0; gap: 0; }
  .quick__name { font-size: 16px; }
}
.photo-slider .slider-ctrl { width: min(var(--inner), calc(100vw - var(--gutter) * 2)); }
/* 1279 이하: 수치 패널을 블루 밴드로 (배경 높이를 콘텐츠에 맞춤) */
@media (max-width: 1279px) {
  .facts { padding-top: 0; }
  .facts__bg-blue { display: none; }
  .facts__list { background: var(--blue); margin-inline: calc(var(--gutter) * -1); padding: 40px var(--gutter); }
}
@media (max-width: 767px) { .facts__list { padding: 24px var(--gutter); } }

/* 태블릿·모바일: GALLERY 워터마크를 제목 뒤가 아닌 하단 왼쪽(컨트롤 줄 옆)으로 */
@media (max-width: 1023px) {
  .gallery__watermark { top: auto; right: auto; left: var(--gutter); bottom: 24px; font-size: 100px; line-height: 1; }
}
@media (max-width: 767px) {
  .gallery__watermark { font-size: 56px; bottom: 4px; }
}
/* 수치 항목 하단 구분선 (Figma: 흰색 18%, 1px) */
.facts__list li { border-bottom: 1px solid rgba(255,255,255,.18); }
/* 자세히 알아보기: Figma — 120×44, 글자 위 정렬, 하단 1px 라인 */
.link-arrow { display: inline-flex; align-items: flex-start; align-self: flex-start; width: 120px; height: 44px; gap: 0; border-bottom: 1px solid var(--text); line-height: 19px; white-space: nowrap; transition: color .2s, border-color .2s; }
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }

.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 영상은 확대(줌) 효과를 빼서 원본 화질 그대로 표시 */
.hero__slide .hero__video, .hero__slide.is-active .hero__video { transform: none; transition: none; }

/* 피그마 자간 맞춤 (p00) */
.btn-line { letter-spacing: 1.82px; }
.gallery__watermark { letter-spacing: -0.02em; }

/* 홍보 영상: 제자리 재생 */
.video-band__player { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-band.is-playing::before, .video-band.is-playing .play-btn { opacity: 0; visibility: hidden; }
.has-motion .video-band.is-playing { clip-path: none; }
/* 태블릿·모바일: 재생 중에는 영역을 영상 비율(16:9)로 맞춰 위아래 검은 여백 없이 */
@media (max-width: 1023px) { .video-band.is-playing { min-height: 0; height: 56.25vw; } }

/* 히어로 영상 슬라이드: 파란 덮개를 옅게 해 원본 밝기에 가깝게 (왼쪽 아래 글자 영역만 살짝 유지) */
.hero__shade { transition: opacity 1.2s ease; }
.hero.is-video .hero__shade { opacity: .45; }

/* 홍보 영상 자체 조작 버튼: 영상 위에 덮개·그라데이션 없이 아이콘·글자 그림자로만 구분 */
.vb-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter) 28px; color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.video-band.is-ctrl .vb-ctrl, .video-band.is-paused .vb-ctrl, .vb-ctrl:focus-within { opacity: 1; }
.video-band.is-playing:not(.is-ctrl):not(.is-paused) { cursor: none; }
.vb-ctrl__btn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; flex: none; }
.vb-ctrl__time { font-family: var(--font-en); font-size: 15px; min-width: 96px; font-variant-numeric: tabular-nums; }
.vb-ctrl__bar { flex: 1; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.vb-ctrl__bar::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.4) var(--p)); }
.vb-ctrl__bar::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #fff; }
.vb-ctrl__bar::-moz-range-track { height: 3px; background: rgba(255,255,255,.4); }
.vb-ctrl__bar::-moz-range-progress { height: 3px; background: #fff; }
.vb-ctrl__bar::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.video-band:fullscreen { max-height: none; height: 100%; }
@media (max-width: 767px) {
  .vb-ctrl { gap: 6px; padding: 0 12px 6px; }
  .vb-ctrl__btn { width: 36px; height: 36px; font-size: 18px; }
  .vb-ctrl__time { font-size: 12px; min-width: 70px; }
}

/* 카카오맵 타일은 사이트 공통 img 규칙(max-width:100%) 적용 제외 */
.location__map img { max-width: none; }
/* INSIDE THE TOWER 한 줄 배치: 임대문의 사진·글 → 입점매장 → 호텔 순서 (2026.11.27 수정사항) */
@media (max-width: 1023px) {
  .spaces__cols { display: flex; flex-direction: column; row-gap: 48px; }
  .spaces__col, .spaces__col--right { display: contents; }
  .sp-o1 { order: 1; } .sp-o2 { order: 2; margin-top: -24px; } .sp-o3 { order: 3; } .sp-o4 { order: 4; }
}

/* ---------- 메인 팝업 (home/_popup, popup.js) ----------
   상자 크기는 이미지 비율을 따른다: 가로 최대 520px(화면 폭 - 32px), 세로는 화면 높이에 맞춰 줄인다 */
.popup { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; background: rgba(0,20,38,.6); outline: none; }
.popup[hidden] { display: none; }
.popup__box { position: relative; display: flex; flex-direction: column; max-width: 100%; background: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: popupIn .3s ease-out; }
.popup__slides { position: relative; display: grid; justify-items: center; background: var(--sand); }
.popup__slide { display: none; }
.popup__slide.is-active { display: block; animation: popupFade .4s ease; }
.popup__slide a { display: block; }
.popup__img { display: block; width: auto; height: auto; max-width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px - 56px); }
.popup__nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--text); font-size: 18px; transition: background .2s, color .2s; }
.popup__nav:hover, .popup__nav:focus-visible { background: var(--blue); color: var(--white); }
.popup__nav--prev { left: 12px; }
.popup__nav--next { right: 12px; }
.popup__counter { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 12px; border-radius: 9999px; background: rgba(0,20,38,.6); color: var(--white); font: 400 13px/1.4 var(--font-en); }
.popup__counter strong { font-weight: 600; }
.popup__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 16px 0 20px; background: var(--navy); color: var(--white); font-size: 14px; white-space: nowrap; }
.popup__today { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.popup__today input { width: 18px; height: 18px; margin: 0; accent-color: var(--light-blue); }
.popup__close { padding: 8px 4px; color: var(--white); font-size: 14px; font-weight: 600; }
.popup__close:hover, .popup__close:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
@keyframes popupIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .popup__box, .popup__slide.is-active { animation: none; } }
@media (max-width: 767px) {
  .popup__foot { min-height: 48px; font-size: 13px; padding: 0 12px 0 16px; }
  .popup__img { max-height: calc(100dvh - 32px - 48px); }
  .popup__nav { width: 32px; height: 32px; margin-top: -16px; font-size: 16px; }
}
