/*------------------------------------------------------
· Location Latest Skin Style
· Type : style.css
· 게시판 스킨: skin/latest/location
---------------------------------------------------------*/

@charset "utf-8";

/* 지역 필터 탭 */
.yhd-about-location-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.375rem, 0.5vw, 0.625rem);
    margin-bottom: clamp(2.5rem, 2.5vw + 1rem, 5rem);
}

.yhd-about-location-tab {
    padding: clamp(0.5rem, 0.5vw + 0.25rem, 0.75rem) clamp(1rem, 1vw + 0.5rem, 1.75rem);
    border: 1px solid var(--yhd-black-15);
    border-radius: 100px;
    background: transparent;
    color: var(--yhd-black-40);
    font-size: clamp(0.875rem, 0.2vw + 0.75rem, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.yhd-about-location-tab:hover {
    border-color: var(--yhd-point);
    color: var(--yhd-point);
}

.yhd-about-location-tab.is-active {
    background: var(--yhd-point);
    border-color: var(--yhd-point);
    color: var(--yhd-black);
    font-weight: 600;
}

/* 카드 그리드 */
.yhd-about-location-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1.25rem, 1.5vw + 0.5rem, 2.5rem);
}

/* ── 운영중 카드 (배경 사진 + 오버레이, 클릭 시 팝업) ── */
.yhd-about-location-card--active {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: clamp(0.875rem, 1vw + 0.125rem, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    gap: clamp(0.375rem, 0.4vw + 0.125rem, 0.625rem);
    background-color: var(--yhd-surface-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow:
        0 0 clamp(2rem, 3vw, 4rem) var(--yhd-point-04);
}

/* 사진 위 어둡게 깔리는 그라디언트 오버레이 */
.yhd-about-location-card--active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    border-radius: inherit;
    z-index: 1;
    transition: background 0.4s;
}

.yhd-about-location-card--active:hover {
    transform: translateY(-3px);
    box-shadow:
        0 clamp(0.5rem, 1vw, 1.5rem) clamp(2rem, 3vw, 4rem) rgba(0,0,0,0.25),
        0 0 clamp(3rem, 4vw, 5rem) var(--yhd-point-04);
}

.yhd-about-location-card--active:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* 카드 내부 요소는 오버레이 위에 표시 */
.yhd-about-location-card--active > * {
    position: relative;
    z-index: 2;
}

.yhd-about-location-card--active .yhd-about-location-card-region {
    font-size: clamp(0.875rem, 0.12vw + 0.75rem, 1rem);
    font-weight: 600;
    color: var(--yhd-point);
    letter-spacing: 0.06em;
    padding: clamp(0.25rem, 0.3vw + 0.125rem, 0.4375rem) clamp(0.75rem, 0.8vw + 0.25rem, 1.125rem);
    background: var(--yhd-point-04);
    border: 1px solid var(--yhd-point-15);
    border-radius: 100px;
}

.yhd-about-location-card--active .yhd-about-location-card-name {
    font-size: clamp(0.9375rem, 0.3vw + 0.75rem, 1.25rem);
    font-weight: 700;
    color: var(--yhd-white);
    letter-spacing: -0.01em;
    text-align: center;
    padding: 0 clamp(0.5rem, 0.5vw, 0.75rem);
}

.yhd-about-location-card-capacity {
    font-size: clamp(0.875rem, 0.15vw + 0.75rem, 1rem);
    font-weight: 400;
    color: var(--yhd-white);
    margin-top: auto;
}

.yhd-about-location-card-status.is-open {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.875rem, 0.12vw + 0.75rem, 1rem);
    font-weight: 500;
    color: var(--yhd-point);
    letter-spacing: 0.08em;
    order: 10;
}

/* 기본 이미지 카드 — 준비중과 동일한 레이아웃 */
.yhd-about-location-card--active.is-default-img {
    justify-content: center;
    padding-top: 45%;
}

.yhd-about-location-card--active.is-default-img .yhd-about-location-card-region {
    position: absolute;
    top: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    left: 50%;
    transform: translateX(-50%);
}

.yhd-about-location-card--active.is-default-img .yhd-about-location-card-name {
    position: absolute;
    top: clamp(3.75rem, 3.5vw + 1.5rem, 5.5rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.yhd-about-location-card--active.is-default-img .yhd-about-location-card-capacity {
    position: absolute;
    bottom: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

.yhd-about-location-card-status.is-open::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--yhd-status-open);
    border-radius: 50%;
    margin-right: 0.4375rem;
    box-shadow: 0 0 0.5rem var(--yhd-status-open-60);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── 팝업 (Liquid Glass) ── */
.yhd-location-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.yhd-location-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.yhd-location-popup-backdrop {
    position: absolute;
    inset: 0;
    background: var(--yhd-black-80);
    backdrop-filter: blur(clamp(1.25rem, 2vw, 2.5rem));
    -webkit-backdrop-filter: blur(clamp(1.25rem, 2vw, 2.5rem));
}

.yhd-location-popup-container {
    position: relative;
    width: 90%;
    max-width: 44rem;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(clamp(2.5rem, 4vw, 5rem)) saturate(1.4);
    -webkit-backdrop-filter: blur(clamp(2.5rem, 4vw, 5rem)) saturate(1.4);
    border-radius: clamp(1.25rem, 2vw, 2.5rem);
    box-shadow:
        0 clamp(1.5rem, 3vw, 3rem) clamp(3rem, 6vw, 6rem) var(--yhd-black-40);
}

.yhd-location-popup-close {
    position: absolute;
    top: clamp(0.875rem, 1vw + 0.25rem, 1.5rem);
    right: clamp(0.875rem, 1vw + 0.25rem, 1.5rem);
    z-index: 2;
    width: clamp(2.25rem, 2.5vw + 1rem, 3rem);
    height: clamp(2.25rem, 2.5vw + 1rem, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yhd-black-60);
    border-radius: 50%;
    color: var(--yhd-white-85);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
}

.yhd-location-popup-close:hover {
    background: var(--yhd-black-80);
    color: var(--yhd-white);
    transform: rotate(90deg);
}

.yhd-location-popup-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: clamp(1.25rem, 2vw, 2.5rem) clamp(1.25rem, 2vw, 2.5rem) 0 0;
    position: relative;
}

.yhd-location-popup-slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.yhd-location-popup-slider-track img {
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.yhd-location-popup-slider:empty,
.yhd-location-popup-slider:not(:has(img)) {
    display: none;
}

.yhd-location-popup-body {
    padding: clamp(2.25rem, 3vw + 0.75rem, 4rem);
}

.yhd-location-popup-head {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 0.5vw + 0.25rem, 0.75rem);
    margin-bottom: clamp(0.5rem, 0.5vw, 0.75rem);
}

.yhd-location-popup-region {
    font-size: clamp(0.875rem, 0.15vw + 0.75rem, 1rem);
    font-weight: 600;
    color: var(--yhd-point);
    letter-spacing: 0.06em;
    padding: clamp(0.1875rem, 0.2vw + 0.0625rem, 0.3125rem) clamp(0.5rem, 0.5vw + 0.125rem, 0.75rem);
    background: var(--yhd-point-10);
    border-radius: 100px;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

.yhd-location-popup-status {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.875rem, 0.15vw + 0.75rem, 1rem);
    font-weight: 500;
    color: var(--yhd-point);
    letter-spacing: 0.08em;
}

.yhd-location-popup-status::before {
    content: "";
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    background: var(--yhd-status-open);
    border-radius: 50%;
    margin-right: 0.4375rem;
    box-shadow: 0 0 0.5rem var(--yhd-status-open-60);
    animation: statusPulse 2s ease-in-out infinite;
}

.yhd-location-popup-name {
    font-size: clamp(1.125rem, 0.6vw + 0.75rem, 1.75rem);
    font-weight: 700;
    color: var(--yhd-white);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: clamp(1.25rem, 1.25vw + 0.25rem, 2rem);
}

.yhd-location-popup-details {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 0.5vw + 0.25rem, 0.875rem);
    padding: clamp(1rem, 1vw + 0.25rem, 1.75rem) 0;
    margin-bottom: clamp(1.25rem, 1.25vw + 0.5rem, 2rem);
}

.yhd-location-popup-details div {
    display: flex;
    gap: clamp(0.75rem, 1vw, 1.25rem);
    align-items: baseline;
}

.yhd-location-popup-details dt {
    font-weight: 500;
    color: var(--yhd-white-40);
    min-width: clamp(4rem, 4vw + 1rem, 6rem);
    font-size: clamp(0.875rem, 0.2vw + 0.75rem, 1.0625rem);
    flex-shrink: 0;
}

.yhd-location-popup-details dd {
    color: var(--yhd-white-85);
    font-size: clamp(0.875rem, 0.2vw + 0.75rem, 1.0625rem);
    font-weight: 400;
}

.yhd-location-popup-row[data-field] { display: none; }
.yhd-location-popup-row.is-visible { display: flex; }

.yhd-location-popup-cta {
    display: flex;
    flex-direction: row;
    gap: clamp(0.5rem, 0.75vw + 0.125rem, 1rem);
}

.yhd-about-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: clamp(0.875rem, 0.75vw + 0.375rem, 1.25rem) clamp(1rem, 1vw + 0.25rem, 1.75rem);
    border: none;
    border-radius: clamp(0.75rem, 0.875vw, 1.125rem);
    font-size: clamp(0.875rem, 0.2vw + 0.75rem, 1rem);
    font-weight: 600;
    color: var(--yhd-white-70);
    text-decoration: none;
    background: var(--yhd-white-06);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    transition: all 0.3s;
}

.yhd-about-location-btn svg,
.yhd-about-location-btn img {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.yhd-about-location-btn:hover {
    background: var(--yhd-white-15);
    color: var(--yhd-white);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem var(--yhd-black-25);
}

.yhd-about-location-btn:hover svg,
.yhd-about-location-btn:hover img {
    opacity: 1;
}

.yhd-about-location-btn--tel {
    background: var(--yhd-point);
    color: var(--yhd-black);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.yhd-about-location-btn--tel svg {
    stroke: var(--yhd-black);
    opacity: 1;
}

.yhd-about-location-btn--tel:hover {
    background: var(--yhd-point-hover);
    color: var(--yhd-black);
}

.yhd-about-location-btn--kakao {
    background: var(--yhd-kakao);
    color: var(--yhd-kakao-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.yhd-about-location-btn--kakao svg,
.yhd-about-location-btn--kakao img {
    opacity: 1;
}

.yhd-about-location-btn--kakao:hover {
    background: #e6cf00;
    color: var(--yhd-kakao-text);
}

/* 기본 이미지(로고) 적용 시 — 운영중/준비중 공통 */
.yhd-about-location-card.is-default-img {
    background-size: clamp(10rem, 12vw + 4rem, 20rem) auto;
    background-position: center 40%;
    background-repeat: no-repeat;
}

/* ── 준비중 카드 (배경 이미지 + 오버레이) ── */
.yhd-about-location-card--coming {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: clamp(0.875rem, 1vw + 0.125rem, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    padding-top: 45%;
    gap: clamp(0.375rem, 0.4vw + 0.125rem, 0.625rem);
    background-color: var(--yhd-surface-dark);
    background-size: clamp(10rem, 12vw + 4rem, 20rem) auto;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s;
}

.yhd-about-location-card--coming::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    border-radius: inherit;
    z-index: 1;
    transition: background 0.4s;
}

.yhd-about-location-card--coming:hover {
    transform: translateY(-2px);
}

.yhd-about-location-card--coming > * {
    position: relative;
    z-index: 2;
}

.yhd-about-location-card--coming .yhd-about-location-card-name {
    font-size: clamp(0.9375rem, 0.3vw + 0.75rem, 1.25rem);
    font-weight: 600;
    color: var(--yhd-white-50);
    letter-spacing: -0.01em;
}

.yhd-about-location-card-status.is-coming {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.875rem, 0.12vw + 0.75rem, 1rem);
    font-weight: 500;
    color: var(--yhd-status-coming, #ff4d4d);
    letter-spacing: 0.08em;
}

.yhd-about-location-card-status.is-coming::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: #ff4d4d;
    border-radius: 50%;
    margin-right: 0.4375rem;
    box-shadow: 0 0 0.5rem rgba(255, 77, 77, 0.6);
}

/* 필터링 숨김 */
.yhd-about-location-card.is-hidden {
    display: none;
}

/* **************************************************************
    Responsive Area
************************************************************** */

/* 1280px 이하 — 5열 → 4열 */
@media screen and (max-width: 1280px) {

    .yhd-about-location-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

/* 1024px 이하 (태블릿) — 4열 → 3열 */
@media screen and (max-width: 1024px) {

    .yhd-about-location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* 768px 이하 — 3열 → 2열, 필터 가로스크롤, 팝업 확장 */
@media screen and (max-width: 768px) {

    /* 카테고리 필터 가로 스크롤 */
    .yhd-about-location-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 5%;
    }

    .yhd-about-location-filter::-webkit-scrollbar {
        display: none;
    }

    .yhd-about-location-tab {
        flex-shrink: 0;
    }

    .yhd-about-location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .yhd-location-popup-container {
        width: 95%;
    }

    .yhd-location-popup-details dt {
        min-width: clamp(3.5rem, 3vw + 1rem, 4.5rem);
    }

}

/* 480px 이하 — 카드 간소화, 팝업 풀스크린 */
@media screen and (max-width: 480px) {

    /* 카테고리 탭 최소 폰트 */
    .yhd-about-location-tab {
        font-size: 0.875rem;
    }

    /* 운영중·준비중 공통 — 중앙 배치 통일 */
    .yhd-about-location-card--active,
    .yhd-about-location-card--coming {
        justify-content: center;
        padding-top: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    }

    /* 카테고리·구좌수 숨기기 */
    .yhd-about-location-card--active .yhd-about-location-card-region,
    .yhd-about-location-card--active .yhd-about-location-card-capacity {
        display: none;
    }

    /* 제목·상태 최소 폰트 */
    .yhd-about-location-card--active .yhd-about-location-card-name {
        font-size: 0.875rem;
    }

    .yhd-about-location-card-status.is-open {
        font-size: 0.875rem;
    }

    .yhd-about-location-card-status.is-coming {
        display: none;
    }

    .yhd-about-location-card-status.is-open {
        order: 0;
    }

    /* 기본 이미지 카드 — absolute 해제 */
    .yhd-about-location-card--active.is-default-img .yhd-about-location-card-name {
        white-space: normal;
        position: static;
        transform: none;
    }

    /* 팝업 풀스크린 */
    .yhd-location-popup-container {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .yhd-location-popup-slider {
        border-radius: 0;
    }

    .yhd-location-popup-body {
        padding: clamp(1.5rem, 4vw, 2.25rem);
    }

    .yhd-location-popup-name {
        font-size: clamp(1rem, 3.5vw + 0.25rem, 1.25rem);
    }

    .yhd-location-popup-cta {
        flex-direction: column;
    }

}
