/*------------------------------------------------------
 * 윤회당 구좌현황 플랫폼
 * Type : platform.css
 * Author : Albatross Pictures Kim Hyun Gyu
 * Date : 2026-03-05
 * Copyright @ 2026 윤회당 all rights reserved
 ---------------------------------------------------------*/

@charset "utf-8";

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Pretendard Variable", sans-serif;
    font-weight: 400;
    color: #000;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Variables ===== */
:root {
    --pf-point: #fbc100;
    --pf-point-hover: #e5af00;
    --pf-black: #000;
    --pf-dark-gray: #333;
    --pf-dark: #111;
    --pf-white: #fff;
    --pf-grey: #f5f5f5;
    --pf-border: #e0e0e0;
    --pf-text: #333;
    --pf-text-sub: #888;
    --pf-occupied: #e4312a;
    --pf-font: "Pretendard Variable", sans-serif;
}

/* ===== Skip Navigation ===== */
.pf-skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--pf-point);
    color: var(--pf-black);
    font-weight: 600;
    font-size: clamp(0.875rem, 0.9vw, 1rem);
}

.pf-skip-nav:focus {
    top: 0;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid var(--pf-point);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--pf-point);
    outline-offset: 2px;
}

/* ===== Intro ===== */
.pf-intro {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-intro-bg {
    position: absolute;
    inset: 0;
}

.pf-intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-intro-bg-fallback {
    position: absolute;
    inset: 0;
    z-index: 3;
    transition: opacity 1s ease;
}

.pf-intro-bg-fallback.fade-out {
    opacity: 0;
    pointer-events: none;
}

.pf-intro-bg-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-intro-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(20,18,15,0.6) 0%,
        rgba(15,13,10,0.8) 18%,
        rgba(10,8,5,0.93) 32%,
        rgba(5,3,0,0.97) 45%,
        rgba(5,3,0,0.97) 100%
    );
    pointer-events: none;
}

.pf-intro-point-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
    background: rgba(5,3,0,0.97);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

.pf-intro-point-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    mix-blend-mode: screen;
}

/* Top-right music control */
.pf-intro-utils {
    position: absolute;
    top: clamp(1.5rem, 2vw, 2.5rem);
    right: clamp(1.5rem, 2vw, 2.5rem);
    z-index: 10;
}

.pf-intro-music-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.pf-intro-music-btn:hover .pf-intro-music-label {
    color: rgba(255,255,255,0.8);
}

.pf-intro-music-label {
    font-size: clamp(0.75rem, 0.75vw, 0.875rem);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.12em;
    transition: color 0.4s ease;
}

.pf-intro-music-btn.playing .pf-intro-music-label {
    color: var(--pf-point);
    transition: color 0.4s ease;
}

/* Equalizer bars */
.pf-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.pf-equalizer span {
    display: block;
    width: 3px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 1px;
    transition: background 0.4s ease, height 0.4s ease;
}

.pf-intro-music-btn.playing .pf-equalizer span {
    background: var(--pf-point);
    animation: eq-bounce ease-in-out infinite;
}

.pf-intro-music-btn.playing .pf-equalizer span:nth-child(1) { animation-duration: 1.6s; }
.pf-intro-music-btn.playing .pf-equalizer span:nth-child(2) { animation-duration: 2s; animation-delay: 0.2s; }
.pf-intro-music-btn.playing .pf-equalizer span:nth-child(3) { animation-duration: 1.4s; animation-delay: 0.4s; }
.pf-intro-music-btn.playing .pf-equalizer span:nth-child(4) { animation-duration: 1.8s; animation-delay: 0.15s; }

@keyframes eq-bounce {
    0%   { height: 4px; }
    50%  { height: 16px; }
    100% { height: 4px; }
}

.pf-intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.pf-intro-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--pf-white);
}

.pf-intro-title-point {
    color: var(--pf-point);
    font-weight: 500;
}

/* Mandala */
.pf-intro-symbol-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.pf-mandala {
    position: absolute;
    width: clamp(160px, 16vw, 220px);
    height: clamp(160px, 16vw, 220px);
    animation: mandala-spin 60s linear infinite;
    opacity: 0.15;
}

.pf-mandala img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes mandala-spin {
    to { transform: rotate(360deg); }
}

.pf-intro-symbol {
    width: clamp(100px, 10vw, 140px);
    height: clamp(100px, 10vw, 140px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Rotating gradient ring */
.pf-intro-symbol::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        rgba(251,193,0,0.6),
        transparent 20%,
        transparent 100%
    );
    animation: symbol-spin 4s linear infinite;
}

/* Glow pulse */
.pf-intro-symbol::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(251,193,0,0.4), 0 0 35px rgba(251,193,0,0.22), 0 0 55px rgba(251,193,0,0.1);
    animation: symbol-glow 2.5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes symbol-spin {
    to { transform: rotate(360deg); }
}

@keyframes symbol-glow {
    0%   { opacity: 0.35; }
    100% { opacity: 0.85; }
}

.pf-intro-symbol-inner {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-radius: 50%;
    background: var(--pf-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.pf-intro-symbol img {
    width: 45%;
    height: 45%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pf-intro-copy {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: var(--pf-white);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.pf-intro-copy-point {
    color: var(--pf-point);
}

.pf-intro-btn {
    display: inline-block;
    padding: clamp(0.75rem, 1vw, 1rem) clamp(2rem, 3vw, 3rem);
    background: var(--pf-black);
    color: var(--pf-white);
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.6s ease;
    letter-spacing: 0.05em;
}

.pf-intro-btn:hover {
    background: var(--pf-point);
    color: var(--pf-black);
}

.pf-intro-copyright {
    font-size: clamp(0.75rem, 0.7vw, 0.875rem);
    color: rgba(255,255,255,0.5);
    margin-top: clamp(1rem, 2vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Intro Transition */
.pf-intro-swap {
    display: grid;
}
.pf-intro-swap > * {
    grid-area: 1 / 1;
}
.pf-intro-title-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.pf-intro-title-area.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}
.pf-intro-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.pf-intro-loading.active {
    opacity: 1;
    transform: translateY(0);
}
.pf-intro-loading-flower {
    width: clamp(80px, 10vw, 130px);
    height: auto;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}
.pf-intro-loading-text {
    font-size: clamp(0.9rem, 1.1vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.pf-intro-loading-point {
    color: var(--pf-point);
    font-weight: 700;
}
.pf-intro.page-exit {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.pf-page-enter {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Intro Responsive */
@media (max-width: 768px) {
    .pf-intro-bg::after {
        background: rgba(5,3,0,0.85);
    }

    .pf-intro-point-video {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
        background: rgba(5,3,0,0.92);
    }

    .pf-intro-point-video video {
        opacity: 0.05;
    }

    .pf-intro-content {
        padding: 0 clamp(1.5rem, 5vw, 3rem);
    }

    .pf-intro-music-label {
        display: none;
    }
}

/* ===== Music Control ===== */
.pf-music { display: none; }

.pf-music-control {
    position: fixed;
    top: clamp(1rem, 1.5vw, 1.5rem);
    right: clamp(1rem, 1.5vw, 1.5rem);
    z-index: 200;
}

.pf-music-btn {
    width: clamp(36px, 3vw, 44px);
    height: clamp(36px, 3vw, 44px);
    border-radius: 50%;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pf-music-btn:hover {
    border-color: var(--pf-point);
}

.pf-music-btn.playing {
    background: var(--pf-point);
    border-color: var(--pf-point);
}

.pf-music-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--pf-text);
}

.pf-music-btn.playing svg {
    fill: var(--pf-white);
}

/* ===== Main - Header ===== */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--pf-white);
    text-align: center;
    padding: clamp(1rem, 1.5vw, 1.5rem) 0;
    border-bottom: 1px solid var(--pf-border);
}

.pf-header-logo {
    display: inline-block;
}

.pf-header-logo img {
    height: clamp(40px, 4vw, 60px);
}

/* ===== Main Logo ===== */
.pf-main-logo {
    text-align: center;
    padding: clamp(3rem, 5vw, 5rem) 0 0;
}

.pf-main-logo a {
    display: inline-block;
}

.pf-main-logo img {
    height: clamp(36px, 3.5vw, 55px);
}

/* ===== Branch Tab ===== */
.pf-branch-nav {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pf-branch-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

.pf-branch-nav::-webkit-scrollbar {
    display: none;
}

.pf-branch-tabs {
    display: flex;
    gap: clamp(0.5rem, 0.75vw, 0.75rem);
}

.pf-branch-tab {
    position: relative;
    flex-shrink: 0;
    padding: clamp(0.75rem, 1vw, 1.25rem) clamp(1.5rem, 2vw, 3rem);
    border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
    font-size: clamp(0.9rem, 0.2vw + 0.8rem, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    color: rgba(255,255,255,0.4);
    background: transparent;
    text-align: center;
}

.pf-branch-tab.active {
    color: var(--pf-point);
    font-weight: 600;
    background: transparent;
}

.pf-branch-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pf-point);
    box-shadow: 0 0 8px rgba(251,193,0,0.4);
}

@media (hover: hover) {
    .pf-branch-tab:not(.active):hover {
        color: rgba(255,255,255,0.7);
        background: rgba(255,255,255,0.04);
    }
}

/* Placeholder (지점 1개일 때) */
.pf-branch-placeholder {
    position: relative;
    flex-shrink: 0;
    width: clamp(0.625rem, 0.5vw + 0.5rem, 0.875rem);
    height: clamp(0.625rem, 0.5vw + 0.5rem, 0.875rem);
    margin-left: clamp(0.75rem, 1vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-branch-placeholder-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #28a745;
}

.pf-branch-placeholder-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(40,167,69,0.7);
    opacity: 0;
    pointer-events: none;
    animation: pf-ripple 2.5s ease-out infinite;
}

.pf-branch-placeholder-ripple-2 {
    animation-delay: 1.25s;
}

@keyframes pf-ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    70% { opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* ===== Section Title ===== */
.pf-section {
    width: 90%;
    margin: 0 auto;
    padding: clamp(2rem, 3vw, 4rem) 0;
}

.pf-section-header {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    flex-wrap: wrap;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-section-title {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-weight: 300;
    line-height: 1.4;
}

.pf-section-title strong {
    color: var(--pf-point);
    font-weight: 600;
}

.pf-section-desc {
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    color: var(--pf-text-sub);
    position: relative;
    padding-left: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-section-desc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pf-point);
}

.pf-section-btns-left {
    display: flex;
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
}

.pf-section-btns {
    display: flex;
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
    margin-left: auto;
}

.pf-section-footer {
    display: flex;
    justify-content: center;
    padding: clamp(1.5rem, 2vw, 2rem) 0;
}

.pf-info-btn {
    padding: clamp(0.625rem, 0.8vw, 0.875rem) clamp(1rem, 1.2vw, 1.2rem);
    border: 1px solid var(--pf-border);
    border-radius: 0.5rem;
    font-size: clamp(0.8rem, 0.85vw, 0.85rem);
    font-weight: 600;
    color: var(--pf-text);
    cursor: pointer;
    transition: all 0.3s;
}

.pf-info-btn:hover {
    border-color: var(--pf-point);
    color: var(--pf-point);
}

/* ===== Floor Plan ===== */

/* ===== Floor Plan ===== */
.pf-floor-plan {
    position: relative;
    background: var(--pf-grey);
    border-radius: 0;
    overflow: hidden;
    height: clamp(31.25rem, 60vw, 56.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-floor-plan img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pf-floor-plan-controls {
    position: absolute;
    right: clamp(0.5rem, 1vw, 1rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pf-zoom-btn {
    width: clamp(2rem, 2.5vw, 2.5rem);
    height: clamp(2rem, 2.5vw, 2.5rem);
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    cursor: pointer;
    transition: background 0.2s;
}

.pf-zoom-btn:hover {
    background: var(--pf-grey);
}

/* ===== Zone Buttons ===== */
.pf-zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 1vw, 1rem);
    margin-top: clamp(1.5rem, 2vw, 2.5rem);
}

.pf-zone-card {
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    padding: clamp(1rem, 1.2vw, 1.5rem);
    text-align: center;
    transition: box-shadow 0.3s;
}

.pf-zone-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pf-zone-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 2vw, 36px);
    height: clamp(28px, 2vw, 36px);
    border-radius: 50%;
    background: var(--pf-dark);
    color: var(--pf-white);
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 800;
    margin-bottom: clamp(0.5rem, 0.6vw, 0.75rem);
}

.pf-zone-grades {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.pf-grade-btn {
    flex: 1;
    padding: clamp(0.75rem, 1vw, 1rem) 0;
    border: 1px solid var(--pf-border);
    border-radius: 4px;
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    font-weight: 600;
    color: var(--pf-text);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.pf-grade-btn:hover,
.pf-grade-btn.active {
    background: var(--pf-point);
    border-color: var(--pf-point);
    color: var(--pf-white);
}

/* ===== Guza List ===== */
.pf-guza-list {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: clamp(0.5rem, 0.8vw, 1rem);
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-guza-card {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.pf-guza-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pf-guza-thumb-bg {
    position: absolute;
    left: 50%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pf-guza-thumb-img {
    position: relative;
    width: auto;
    object-fit: contain;
    z-index: 1;
}

/* 기본(분양가능): 흑백 → 호버 시 컬러 */
.pf-guza-card .pf-guza-thumb-img {
    filter: grayscale(1);
    transition: filter 0.3s;
}
.pf-guza-card:hover .pf-guza-thumb-img {
    filter: grayscale(0);
}

/* 분양완료(안식중): 컬러 고정, 호버 효과 없음 */
.pf-guza-card.sold .pf-guza-thumb-img {
    filter: grayscale(0);
}

/* 분양예약/진행중: 컬러 고정, 호버 효과 없음 */
.pf-guza-card.reserved .pf-guza-thumb-img {
    filter: grayscale(0);
}

.pf-guza-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.35rem;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: var(--pf-text);
}

.pf-guza-zone {
    font-weight: 700;
    color: var(--pf-white);
}

.pf-guza-grade {
    color: var(--pf-point);
    font-weight: 500;
}

.pf-guza-dan-num {
    color: var(--pf-text-sub);
}

.pf-guza-enshrinee {
    display: block;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: var(--pf-white);
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.pf-guza-status {
    font-weight: 600;
}

.pf-guza-status.sold {
    color: var(--pf-point);
}

.pf-guza-status.reserved {
    color: var(--pf-point);
}

/* ===== Modal ===== */
.pf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pf-modal-overlay.active {
    display: flex;
    animation: pf-modal-fadein 0.3s ease forwards;
}

@keyframes pf-modal-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

#modal-privacy.active {
    z-index: 1010;
}

.pf-modal {
    background: var(--pf-white);
    width: clamp(320px, 40vw, 550px);
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    position: relative;
    animation: pf-modal-scalein 0.3s ease forwards;
}

@keyframes pf-modal-scalein {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pf-modal::-webkit-scrollbar {
    display: none;
}

.pf-modal-close {
    position: absolute;
    top: clamp(1rem, 1.5vw, 1.5rem);
    right: clamp(1rem, 1.5vw, 1.5rem);
    width: clamp(1.5rem, 1.8vw, 1.875rem);
    height: clamp(1.5rem, 1.8vw, 1.875rem);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.pf-modal-close span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--pf-text-sub);
    border-radius: 1px;
    transition: background 0.2s;
}
.pf-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}
.pf-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.pf-modal-close:hover span {
    background: var(--pf-point);
}

.pf-modal-title {
    font-size: clamp(1.1rem, 1.3vw, 1.4rem);
    font-weight: 600;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-modal-note {
    text-align: right;
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    color: var(--pf-point);
    margin-bottom: 0.75rem;
    border-top: 2px solid var(--pf-point);
    padding-top: 0.5rem;
}

.pf-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-modal th,
.pf-modal td {
    padding: clamp(0.5rem, 0.7vw, 0.75rem);
    text-align: center;
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    border-bottom: 1px solid var(--pf-border);
}

.pf-modal th {
    font-weight: 600;
    color: var(--pf-text);
}

.pf-modal td {
    color: var(--pf-text-sub);
}

.pf-modal-section-title {
    background: var(--pf-black);
    color: var(--pf-white);
    text-align: center;
    padding: clamp(0.5rem, 0.7vw, 0.75rem);
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 500;
    margin-bottom: clamp(0.75rem, 1vw, 1rem);
}

.pf-modal-image {
    width: 100%;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

/* ===== Loading ===== */
.pf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 5vw, 5rem);
    color: var(--pf-text-sub);
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
}

/* ===== Responsive ===== */

/* --- 1024px 이하 --- */
@media (max-width: 1024px) {
    .pf-zones {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-guza-list {
        grid-template-columns: repeat(10, 1fr);
    }

    .pf-floor-plan {
        height: clamp(18.75rem, 50vw, 37.5rem);
    }
}

/* --- 768px 이하 --- */
@media (max-width: 768px) {
    .pf-section {
        width: 94%;
    }

    .pf-branch-nav {
        width: 94%;
    }

    .pf-section-header {
        gap: clamp(0.5rem, 1.5vw, 1rem);
        margin-bottom: clamp(2rem, 4vw, 3rem);
    }

    .pf-guza-list {
        grid-template-columns: repeat(8, 1fr);
    }

    .pf-guza-info {
        font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    }

    .pf-guza-enshrinee {
        font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    }

    /* 모달 전체 폭 대응 */
    .pf-modal {
        width: 92vw;
        max-height: 80vh;
        padding: clamp(1.25rem, 3vw, 2rem);
    }

    .pf-modal-table th,
    .pf-modal-table td {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        padding: clamp(0.5rem, 1.5vw, 0.75rem);
    }
}

/* --- 640px 이하 --- */
@media (max-width: 640px) {
    .pf-zones {
        grid-template-columns: 1fr;
    }

    .pf-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-section-btns-left {
        width: 100%;
    }

    .pf-section-btns {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .pf-info-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .pf-guza-list {
        grid-template-columns: repeat(6, 1fr);
        gap: clamp(0.25rem, 0.6vw, 0.5rem);
    }

    .pf-floor-plan {
        height: clamp(15rem, 55vw, 25rem);
    }

    /* 상담 모달 */
    .pf-modal-consult {
        max-width: none;
        width: 92vw;
    }

    .pf-consult-agree {
        flex-wrap: wrap;
    }
}

/* --- 480px 이하 --- */
@media (max-width: 480px) {
    .pf-section {
        width: 96%;
    }

    .pf-branch-nav {
        width: 96%;
    }

    .pf-main-logo {
        padding-top: clamp(2rem, 4vw, 3rem);
    }

    .pf-guza-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .pf-guza-info {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }

    .pf-guza-enshrinee {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }

    .pf-guza-thumb {
        margin-bottom: 0.25rem;
    }

    .pf-floor-plan {
        height: clamp(12.5rem, 65vw, 18.75rem);
    }

    .pf-floor-plan-controls {
        right: 0.25rem;
    }

    .pf-zoom-btn {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* 모달 */
    .pf-modal {
        width: 96vw;
        padding: 1rem;
    }

    .pf-modal-title {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding-right: 1.5rem;
    }

    .pf-section-footer .pf-info-btn {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    }
}

/* --- 360px 이하 --- */
@media (max-width: 360px) {
    .pf-guza-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .pf-info-btn {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .pf-branch-tab {
        padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1.5rem);
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }
}

/* ===== Dark Theme (main.php) ===== */
.pf-dark-theme {
    background: var(--pf-black);
    color: var(--pf-white);
}

.pf-dark-theme .pf-music-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    box-shadow: none;
}

.pf-dark-theme .pf-music-btn svg {
    fill: var(--pf-white);
}

.pf-dark-theme .pf-music-btn:hover {
    border-color: var(--pf-point);
}

.pf-dark-theme .pf-music-btn.playing {
    background: var(--pf-point);
    border-color: var(--pf-point);
}


.pf-dark-theme .pf-section {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pf-dark-theme .pf-section-title {
    color: var(--pf-white);
}

.pf-dark-theme .pf-section-desc {
    color: rgba(255,255,255,0.5);
}

.pf-dark-theme .pf-info-btn {
    border-color: transparent;
    color: var(--pf-white);
    background: var(--pf-dark-gray, #333);
}

.pf-dark-theme .pf-info-btn:hover {
    border-color: transparent;
    background: var(--pf-point);
    color: var(--pf-dark-gray, #333);
}




.pf-dark-theme .pf-floor-plan {
    background: rgba(255,255,255,0.03);
}

.pf-dark-theme .pf-zoom-btn {
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.2);
    color: var(--pf-white);
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
}

.pf-dark-theme .pf-zoom-btn:hover {
    background: rgba(0,0,0,0.75);
    border-color: var(--pf-point);
    color: var(--pf-point);
}

.pf-dark-theme .pf-zone-card {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.pf-dark-theme .pf-zone-card:hover {
    box-shadow: 0 2px 16px rgba(251,193,0,0.08);
    border-color: rgba(251,193,0,0.2);
}

.pf-dark-theme .pf-zone-label {
    background: var(--pf-point);
    color: var(--pf-black);
}

.pf-dark-theme .pf-grade-btn {
    border-color: rgba(255,255,255,0.12);
    color: var(--pf-white);
    background: transparent;
}

.pf-dark-theme .pf-grade-btn:hover,
.pf-dark-theme .pf-grade-btn.active {
    background: var(--pf-point);
    border-color: var(--pf-point);
    color: var(--pf-black);
}

.pf-dark-theme .pf-guza-name {
    color: var(--pf-white);
}

.pf-dark-theme .pf-guza-dan {
    color: rgba(255,255,255,0.4);
}

.pf-dark-theme .pf-guza-card.occupied .pf-guza-thumb::after {
    background: rgba(0, 0, 0, 0.5);
}

.pf-dark-theme .pf-loading {
    color: rgba(255,255,255,0.4);
}

.pf-dark-theme .pf-modal {
    background: #1a1a1a;
    color: var(--pf-white);
}

.pf-dark-theme .pf-modal-close span {
    background: rgba(255,255,255,0.5);
}
.pf-dark-theme .pf-modal-close:hover span {
    background: var(--pf-point);
}

.pf-dark-theme .pf-modal-title {
    color: var(--pf-white);
}

.pf-dark-theme .pf-modal th {
    color: var(--pf-white);
    border-bottom-color: rgba(255,255,255,0.1);
}

.pf-dark-theme .pf-modal td {
    color: rgba(255,255,255,0.6);
    border-bottom-color: rgba(255,255,255,0.06);
}

.pf-dark-theme .pf-modal-section-title {
    background: var(--pf-point);
    color: var(--pf-black);
}

.pf-dark-theme .pf-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== Mobile Performance ===== */
@media (max-width: 768px) {
    .pf-mandala {
        animation-duration: 120s;
    }

    .pf-intro-symbol::before {
        animation: none;
        background: conic-gradient(
            rgba(251,193,0,0.4),
            transparent 30%,
            transparent 100%
        );
    }

    .pf-intro-symbol::after {
        animation: none;
        opacity: 0.5;
    }

    .pf-branch-placeholder-ripple,
    .pf-branch-placeholder-ripple-2 {
        animation: none;
        opacity: 0;
    }
}

/* ===== Capture Mode ===== */
.capture-mode #smooth-wrapper,
.capture-mode #smooth-content {
    transform: none !important;
    position: static !important;
    overflow: visible !important;
    height: auto !important;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .pf-intro-symbol::after {
        opacity: 0.6;
    }
}

/* ═══════════ 섹션 전환 애니메이션 ═══════════ */
.pf-section-exit {
    opacity: 1;
    transform: translateY(0);
    animation: pf-section-fadeout 0.3s ease forwards;
}

@keyframes pf-section-fadeout {
    to {
        opacity: 0;
        transform: translateY(-1rem);
    }
}

.pf-section-enter {
    opacity: 0;
    transform: translateY(1.5rem);
}

.pf-section-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ═══════════ 상담 예약 모달 ═══════════ */
.pf-modal-consult {
    max-width: 28rem;
    width: 90%;
}

.pf-consult-field {
    margin-bottom: 0.875rem;
}

.pf-consult-input,
.pf-consult-select,
.pf-consult-textarea {
    width: 100%;
    padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    font-family: inherit;
    color: var(--pf-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s;
}

.pf-consult-input:focus,
.pf-consult-select:focus,
.pf-consult-textarea:focus {
    border-color: var(--pf-point);
    outline: none;
}

.pf-consult-input::placeholder,
.pf-consult-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.pf-consult-input[readonly] {
    color: var(--pf-point);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.pf-consult-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.pf-consult-select option {
    background: #1a1a1a;
    color: var(--pf-white);
}

.pf-consult-textarea {
    resize: vertical;
    min-height: 5rem;
}

.pf-consult-agree {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: clamp(0.8125rem, 1vw, 0.875rem);
    color: rgba(255, 255, 255, 0.6);
}

.pf-consult-agree label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.pf-consult-privacy-btn {
    flex-shrink: 0;
    padding: 0;
    font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
    font-family: inherit;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.pf-consult-privacy-btn:hover {
    color: var(--pf-point);
    border-bottom-color: var(--pf-point);
}

.pf-privacy-content {
    font-size: clamp(0.8125rem, 1vw, 0.875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.pf-privacy-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    font-weight: 600;
    color: var(--pf-white);
}

.pf-privacy-content p {
    margin-bottom: 0.5rem;
}

.pf-consult-agree input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--pf-point);
    flex-shrink: 0;
}

.pf-consult-submit {
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 0.875rem);
    margin-top: 0.5rem;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    font-weight: 600;
    font-family: inherit;
    color: #000;
    background: var(--pf-point);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pf-consult-submit:hover {
    opacity: 0.85;
}

.pf-consult-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SUT 결제 모달 ===== */
.pf-modal-sut {
    text-align: center;
}

.pf-modal-sut .pf-modal-title {
    text-align: left;
}

.pf-sut-qr {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.pf-sut-qr img {
    width: clamp(10rem, 18vw, 14rem);
    height: auto;
    border-radius: 0.5rem;
}

.pf-sut-address {
    text-align: left;
}

.pf-sut-address-label {
    font-size: clamp(0.75rem, 0.85vw, 0.875rem);
    font-weight: 500;
    color: var(--pf-text-sub);
    margin-bottom: 0.375rem;
}

.pf-sut-address-box {
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--pf-border);
    border-radius: 0.375rem;
    padding: clamp(0.625rem, 1vw, 0.75rem);
    word-break: break-all;
    font-family: "Pretendard Variable", monospace;
    font-size: clamp(0.6875rem, 0.8vw, 0.8125rem);
    color: var(--pf-text);
    line-height: 1.5;
    user-select: all;
}

.pf-sut-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: clamp(0.75rem, 1vw, 1rem);
}

.pf-sut-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    justify-content: center;
    padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(0.75rem, 1.2vw, 1rem);
    font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
    font-weight: 500;
    font-family: inherit;
    color: var(--pf-text);
    background: transparent;
    border: 1px solid var(--pf-border);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 2.75rem;
}

.pf-sut-btn:hover {
    border-color: var(--pf-point);
    color: var(--pf-point);
}

.pf-sut-btn.copied {
    border-color: var(--pf-point);
    background: var(--pf-point);
    color: #000;
}

/* SUT 다크모드 */
.pf-dark-theme .pf-sut-address-box {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: var(--pf-white);
}

.pf-dark-theme .pf-sut-address-label {
    color: rgba(255,255,255,0.5);
}

.pf-dark-theme .pf-sut-btn {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.15);
}

.pf-dark-theme .pf-sut-btn:hover {
    border-color: var(--pf-point);
    color: var(--pf-point);
}

.pf-dark-theme .pf-sut-btn.copied {
    border-color: var(--pf-point);
    background: var(--pf-point);
    color: #000;
}

