/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5530;
    --secondary-color: #8b9556;
    --accent-color: #d4a574;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .reservation-nav {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.nav-menu .reservation-nav:hover {
    background: #1e3a20;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 히어로 슬라이더 컨테이너 */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* 슬라이드 인디케이터 */
.hero-slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-indicators .indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero-slider-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta.secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.hero-cta.secondary:hover {
    background: linear-gradient(135deg, #1e3e22, #6d7a44);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 소개 섹션 */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

/* 객실 섹션 */
.rooms {
    padding: 80px 0;
    background: var(--bg-light);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.room-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-image {
    overflow: hidden;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-info {
    padding: 2rem;
}

.room-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.room-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.room-features {
    list-style: none;
}

.room-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.room-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 시설 섹션 */
.facilities {
    padding: 80px 0;
    background: var(--white);
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.facility-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
    opacity: 0;
}

.facility-item.in-view .facility-overlay {
    transform: translateY(0);
    opacity: 1;
}

.facility-item.in-view img {
    transform: scale(1.05);
}

/* 데스크톱에서는 호버 효과 유지 */
@media (hover: hover) {
    .facility-item:hover .facility-overlay {
        transform: translateY(0);
        opacity: 1;
    }

    .facility-item:hover img {
        transform: scale(1.1);
    }
}

.facility-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 갤러리 섹션 */
.gallery {
    padding: 80px 0 100px 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 1) 0%, 
        rgba(241, 245, 249, 1) 50%,
        rgba(248, 250, 252, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(44, 85, 48, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 85, 48, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.gallery .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.gallery .section-header h2 {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.gallery .section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 5개 이미지 - 매거진 스타일 레이아웃 */
.gallery-container[data-count="5"] .gallery-item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 400px;
}

.gallery-container[data-count="5"] .gallery-item:nth-child(2) {
    grid-column: span 5;
    min-height: 190px;
}

.gallery-container[data-count="5"] .gallery-item:nth-child(3) {
    grid-column: span 5;
    min-height: 190px;
}

.gallery-container[data-count="5"] .gallery-item:nth-child(4) {
    grid-column: span 6;
    min-height: 280px;
}

.gallery-container[data-count="5"] .gallery-item:nth-child(5) {
    grid-column: span 6;
    min-height: 280px;
}

/* 6개 이미지 - 대칭적 매거진 레이아웃 */
.gallery-container[data-count="6"] .gallery-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 420px;
}

.gallery-container[data-count="6"] .gallery-item:nth-child(2) {
    grid-column: span 4;
    min-height: 200px;
}

.gallery-container[data-count="6"] .gallery-item:nth-child(3) {
    grid-column: span 4;
    min-height: 200px;
}

.gallery-container[data-count="6"] .gallery-item:nth-child(4) {
    grid-column: span 4;
    min-height: 260px;
}

.gallery-container[data-count="6"] .gallery-item:nth-child(5) {
    grid-column: span 4;
    min-height: 260px;
}

.gallery-container[data-count="6"] .gallery-item:nth-child(6) {
    grid-column: span 4;
    min-height: 260px;
}

/* 7개 이미지 - 복잡한 매거진 레이아웃 */
.gallery-container[data-count="7"] .gallery-item:nth-child(1) {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 380px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(2) {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 380px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(3) {
    grid-column: span 4;
    min-height: 180px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(4) {
    grid-column: span 4;
    min-height: 180px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(5) {
    grid-column: span 4;
    min-height: 180px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(6) {
    grid-column: span 6;
    min-height: 240px;
}

.gallery-container[data-count="7"] .gallery-item:nth-child(7) {
    grid-column: span 6;
    min-height: 240px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.gallery-item.in-view .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 갤러리 아이템에 특별한 강조 효과 */
.gallery-item:nth-child(1) {
    position: relative;
}

.gallery-item:nth-child(1)::after {
    content: '✨ 메인';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.gallery-item:nth-child(1):hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-view-all {
    text-align: center;
    padding: 2rem 0;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 데스크톱에서는 호버 효과 유지 */
@media (hover: hover) {
    .gallery-item:hover::after {
        opacity: 1;
    }
    
    .gallery-item:hover img {
        transform: scale(1.15);
    }
    
    .gallery-item:hover {
        transform: scale(1.03);
        z-index: 2;
    }
    
    .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 위치 섹션 */
.location {
    padding: 80px 0;
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.location-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.location-info h3:first-child {
    margin-top: 0;
}

.location-info p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 0.5rem !important;
}

.reservation-notice {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0 !important;
}

.directions {
    list-style: none;
    padding-left: 0;
}

.directions li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.directions strong {
    color: var(--text-dark);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

/* 공지사항 섹션 */
.notice {
    padding: 5rem 0;
    background: #f8f9fa;
}

.notice-container {
    max-width: 800px;
    margin: 0 auto;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow: hidden;
}

.notice-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notice-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.notice-header:hover {
    background: rgba(44, 85, 48, 0.05);
}

.notice-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.notice-item.expanded .notice-toggle {
    transform: rotate(180deg);
}

.notice-item.important {
    border-left: 4px solid #ff5252;
}

.notice-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.notice-badge {
    background: #ff5252;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.notice-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.notice-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.notice-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty-notice {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* 관리자 공지사항 스타일 */
.notice-admin {
    margin-top: 2rem;
}

.add-notice-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.add-notice-btn:hover {
    background: #1e3a20;
    transform: translateY(-2px);
}

.admin-notice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-notice-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-notice-item.important {
    border-left: 4px solid #ff5252;
}

.notice-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.notice-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.edit-btn:hover {
    background: #1976D2;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer h3,
.footer h4 {
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.copyright {
    margin-top: 1rem;
    opacity: 0.7;
}

/* 레이지 로딩 이미지 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 팝업 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal.show .gallery-modal-content {
    transform: scale(1);
}

.modal.show .image-detail-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.modal-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 3rem;
    overflow-y: auto;
    max-height: 70vh;
}

/* 스크롤바 스타일링 */
.modal-info::-webkit-scrollbar {
    width: 8px;
}

.modal-info::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.modal-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-info .tagline {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.modal-info .description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-info .features-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-info .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-info .feature-box {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.modal-info .feature-box strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-reservation {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--bg-light);
    text-align: center;
}

.reservation-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

.reservation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.reservation-btn span {
    font-size: 1.2rem;
}

.reservation-info {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 갤러리 모달 스타일 */
.gallery-modal-content {
    background-color: var(--white);
    max-width: 95vw;
    width: 1200px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--bg-light);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gallery-modal-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--bg-light);
    background: transparent;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-grid-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-grid-item:hover .overlay {
    transform: translateY(0);
}

.gallery-grid-item .overlay h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-grid-item .overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 이미지 상세 모달 */
.image-detail-content {
    background-color: var(--white);
    max-width: 95vw;
    width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-detail-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.image-detail-main {
    flex: 1;
    text-align: center;
    padding: 2rem;
}

.image-detail-main img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.image-detail-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-detail-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.room-card {
    cursor: pointer;
}

/* 갤러리 모달 반응형 */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .gallery-modal-header {
        padding: 1.5rem;
    }
    
    .gallery-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .gallery-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-modal-body {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .image-detail-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .image-detail-main {
        padding: 1rem;
    }
    
    .image-detail-main img {
        max-height: 50vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 5vh auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-image {
        height: 250px;
        flex-shrink: 0;
    }
    
    .modal-info {
        padding: 1.5rem;
        overflow-y: auto;
        max-height: calc(85vh - 250px);
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-info h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .modal-info .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-info .description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .modal-info .features-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-info .features-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .modal-info .feature-box {
        padding: 0.8rem;
    }
    
    .modal-info .feature-box strong {
        font-size: 0.9rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    .modal-reservation {
        margin-top: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .reservation-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .reservation-info {
        font-size: 0.9rem;
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(8, 1fr);
        gap: 1rem;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(1) {
        grid-column: span 5;
        min-height: 320px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(2) {
        grid-column: span 3;
        min-height: 150px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(3) {
        grid-column: span 3;
        min-height: 150px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(4) {
        grid-column: span 4;
        min-height: 200px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(5) {
        grid-column: span 4;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.8rem;
        padding: 0 15px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(1) {
        grid-column: span 6;
        min-height: 280px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(2) {
        grid-column: span 3;
        min-height: 180px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(3) {
        grid-column: span 3;
        min-height: 180px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(4) {
        grid-column: span 6;
        min-height: 220px;
    }
    
    .gallery-container[data-count="5"] .gallery-item:nth-child(5) {
        grid-column: span 6;
        min-height: 220px;
    }
    
    /* 6개, 7개도 동일한 패턴 적용 */
    .gallery-container[data-count="6"] .gallery-item,
    .gallery-container[data-count="7"] .gallery-item {
        grid-column: span 6 !important;
        min-height: 220px !important;
    }
    
    .gallery-container[data-count="6"] .gallery-item:nth-child(1),
    .gallery-container[data-count="7"] .gallery-item:nth-child(1) {
        grid-column: span 6 !important;
        min-height: 280px !important;
    }
    
    .gallery-container[data-count="7"] .gallery-item:nth-child(2),
    .gallery-container[data-count="7"] .gallery-item:nth-child(3) {
        grid-column: span 6 !important;
        min-height: 220px !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-content,
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .gallery-container .gallery-item {
        grid-column: 1 !important;
        min-height: 280px !important;
        margin-bottom: 0.5rem;
    }
    
    .gallery-item {
        border-radius: 15px;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
}