/* CSS가 여기에 내장됩니다 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500&family=Cormorant+Garamond:wght@400;500&display=swap');

/* 언어 선택 모달 스타일 */
.language-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.language-modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-modal-title {
    margin: 0 0 30px 0;
    font-size: 1.4em;
    color: var(--primary-color);
    font-weight: 500;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 500;
}

.language-option:hover {
    border-color: var(--accent-color);
    background-color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 167, 106, 0.2);
}

.language-option:active {
    transform: translateY(0);
}

.flag {
    font-size: 1.5em;
}

.lang-text {
    color: var(--primary-color);
}

/* 모달 숨김 상태 */
.language-modal.hidden {
    display: none;
}

:root {
    --primary-color: #333;
    --secondary-color: #777;
    --background-color: #fdfdfd;
    --accent-color: #d4a76a;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    background-color: var(--background-color);
    line-height: 1.8;
    transition: background-color 0.3s;
}

.vi body {
    font-family: 'Cormorant Garamond', serif;
}

.language-buttons {
    text-align: center;
    padding: 10px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.language-buttons button {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

.language-buttons button.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.section:last-child {
    border-bottom: none;
}

h1, h2, h3 {
    font-weight: 400;
}

h1 {
    font-size: 1.2em;
    color: var(--secondary-color);
}

h2 {
    font-size: 1.8em;
    margin: 10px 0;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

p {
    font-size: 1em;
    color: var(--secondary-color);
}

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

.main-photo {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
.heart {
    color: var(--accent-color);
}
.date-info, .location-info {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 500;
}

.parent-info {
    margin-top: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-img {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s;
}
.gallery-img:hover {
    transform: scale(1.05);
}

#map {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
}
.address-text {
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
}
.transport-info {
    text-align: center;
    margin-top: 15px;
}

.btn {
    background-color: #888;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 10px 0 5px;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    max-width: 300px;
    font-size: 1em;
}
.account-info {
    display: none;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 0 auto 10px;
    width: 80%;
    max-width: 300px;
}
.btn-copy {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    user-select: none;
    overflow: hidden;
    /* 사파리 호환성 */
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-swiper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 사파리 호환성을 위한 설정 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* 사파리 터치 이벤트 개선 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-swiper .swiper-slide img {
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    /* 사파리 이미지 터치 개선 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Swiper 페이지네이션 커스터마이징 */
.modal-swiper .swiper-pagination {
    bottom: 30px;
}

.modal-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.modal-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* 계좌번호 전화번호 자동 링크 방지 */
.account-number {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* 사파리에서 전화번호 자동 링크 방지 */
.account-info a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

/* 전체 계좌 정보 영역에서 전화번호 자동 링크 방지 */
.account-info {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Footer 스타일 */
footer {
    margin-top: auto;
    padding: 20px 0 40px 0;
    border-top: 1px solid #eee;
    min-height: 120px;
    text-align: center;
}

footer p {
    margin: 10px 0;
    color: var(--secondary-color);
    font-size: 0.9em;
}

footer p:last-child {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 0.6em;
    color: #c5c5c5;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-lang-vi] { display: none; }
html.vi [data-lang-ko] { display: none; }
html.vi [data-lang-vi] { display: inline; }
html.vi p[data-lang-vi], html.vi h3[data-lang-vi] { display: block; }