@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-dark: #5c2510;
    --brand-light: #f4f7d6;
    --brand-medium: #8b4a2f;
    --text-light: #86868b;
    --text-dark: #5c2510;
    --bg-light: #fbfbfd;
    --gradient-1: linear-gradient(135deg, #5c2510 0%, #8b4a2f 100%);
    --gradient-2: linear-gradient(135deg, #f4f7d6 0%, #e8ecc0 100%);
    --gradient-3: linear-gradient(135deg, #5c2510 0%, #f4f7d6 100%);
    --gradient-4: linear-gradient(135deg, #8b4a2f 0%, #c8a882 100%);
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #5c2510;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.map-section .container,
.reservation-section .container {
    max-width: 1200px;
    padding: 0 22px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a0a04;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}


.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    opacity: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 37, 16, 1);
    z-index: 1;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: opacity 1s ease-out;
    -webkit-transition: opacity 1s ease-out;
    will-change: opacity;
}



.hero-logo {
    position: relative;
    z-index: 10;
    width: clamp(146px, 21vw, 291px);
    height: auto;
    opacity: 1;
}

/* Logo and Navigation */
.header-container {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.dada-logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.dada-logo:hover {
    opacity: 1;
}

.main-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-tabs {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-tab a {
    display: block;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-tab.active a {
    background: white;
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-tab:not(.active) a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}


/* Map Section */
.map-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.map-container {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(92, 37, 16, 0.12);
}

.map-info {
    padding: 0;
}

.info-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(92, 37, 16, 0.15);
}

.info-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-group p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
    word-wrap: break-word;
}

.info-group p:first-child {
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.map-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.map-btn {
    flex: 1;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    min-width: 140px;
}

.naver-map {
    background: white;
    color: #03c75a;
    border-color: #03c75a;
}

.naver-map:hover {
    background: #03c75a;
    color: white;
    box-shadow: 0 8px 20px rgba(3, 199, 90, 0.25);
}

.kakao-map {
    background: white;
    color: #3c1e1e;
    border-color: #fee500;
}

.kakao-map:hover {
    background: #fee500;
    color: #3c1e1e;
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.25);
}

/* About Section */
.about-section {
    padding: 0;
    background: #000;
    width: 100%;
    overflow-x: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
}

.about-item {
    text-align: center;
    padding: 0;
    background: #000;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 80px 0;
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.about-item[data-image="nature"] .about-bg-image {
    background-image: url('optimized_nature.jpg');
}

.about-item[data-image="culture"] .about-bg-image {
    background-image: url('optimized_culture.jpg');
}

.about-item[data-image="history"] .about-bg-image {
    background-image: url('optimized_history.jpg');
}

.about-item[data-image="creative"] .about-bg-image {
    background-image: url('optimized_creative.jpg');
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 호버 효과 제거 - 스크롤 기반으로 변경 */


.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.about-content p {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    max-width: 450px;
    margin: 0 auto;
    word-break: keep-all;
    word-wrap: break-word;
}

/* Reservation Section */
.reservation-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #5c2510;
}

.reservation-section .section-title {
    color: white;
    position: relative;
    margin-bottom: 30px;
}

.reservation-btn {
    display: inline-block;
    padding: 16px 40px;
    margin-top: 20px;
    background: white;
    color: #5c2510;
    border: 1px solid #5c2510;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.reservation-btn:hover {
    background: #a5674a;
    color: white;
    box-shadow: 0 8px 20px rgba(165, 103, 74, 0.25);
}

/* Footer Section */
.footer-section {
    padding: 40px 0 30px;
    background: #1a0a04;
    color: white;
    border-top: 1px solid rgba(244, 247, 214, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .map-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-width: 120px;
    }

    .reservation-btn {
        padding: 14px 32px;
        font-size: 1rem;
        min-width: 160px;
    }

    .info-group p {
        font-size: 0.95rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-content h3 {
        font-size: 1.9rem;
        margin-bottom: 24px;
    }

    .header-container {
        top: 20px;
        left: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dada-logo {
        width: 60px;
    }

    .nav-tab a {
        padding: 6px 16px;
        font-size: 0.75rem;
    }

    .hero-logo {
        width: clamp(156px, 40vw, 260px);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .map-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
    }

    .about-item {
        height: auto;
        min-height: 40vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0 !important;
        padding: 60px 0;
    }

    .reservation-btn {
        padding: 16px 50px;
        font-size: 1.0625rem;
    }

    .map-section {
        padding: 80px 0;
    }

    .about-section {
        padding: 0;
    }

    .reservation-section {
        padding: 80px 0;
    }

    .footer-section {
        padding: 30px 0 20px;
    }

    .map-buttons {
        flex-direction: column;
    }

    .map-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .reservation-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        min-width: 140px;
    }

    .info-group p {
        font-size: 0.9rem;
    }

    .about-content p {
        font-size: 0.95rem;
        max-width: 90%;
        line-height: 1.8;
    }

    .about-content h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-logo {
        width: clamp(130px, 45vw, 208px);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .about-icon {
        font-size: 3rem;
    }

    .about-item h3 {
        font-size: 1.5rem;
    }

    .map-info p {
        font-size: 1rem;
    }

    .map-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .about-section {
        margin: 0;
        padding: 0;
    }

}

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    max-width: 380px;
    width: 85%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.55);
}

.popup-body {
    padding: 0;
    text-align: center;
}

.popup-image-wrapper {
    position: relative;
    line-height: 0;
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.popup-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 24px 28px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    text-align: left;
}

.popup-text-main {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    word-break: keep-all;
    margin: 0;
}

.popup-footer {
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.popup-today-close {
    width: 100%;
    padding: 14px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.popup-today-close:hover {
    color: #666;
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 320px;
        width: 82%;
        border-radius: 14px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .popup-today-close {
        padding: 12px;
        font-size: 0.8rem;
    }

    .popup-text {
        padding: 60px 20px 22px;
    }

    .popup-text-main {
        font-size: 1.8rem;
    }
}