/* =========================================
   1. 기본 설정 및 변수 (Variables & Reset)
   ========================================= */
:root {
    --primary-color: #1cb6f1; /* 메인 파란색 */
    --primary-hover: #c3eeff;
    --text-dark: #111827;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --header-height: 80px;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

/* 유틸리티 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }
.full-width { width: 100%; }

/* =========================================
   2. 공통 컴포넌트 (Buttons, Inputs)
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 8px; font-weight: 600;
    transition: all 0.2s ease-in-out; cursor: pointer; border: none;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover {
    color: white;
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-white {
    background-color: white; color: var(--primary-color);
}
.btn-white:hover {
    background-color: #f0f0f0; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-outline {
    background: white; border: 1px solid var(--border-color); color: var(--text-dark);
}
.btn-outline:hover { background: #f9f9f9; }
.btn-success { background-color: #10b981; color: white; }
.btn-success:hover { background-color: #059669; }

/* 폼 요소 공통 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; opacity: 0.9; }
.form-select, input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color);
    font-size: 1rem;
}


/* --- 헤더 (Header) 스타일 --- */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 헤더 내부 레이아웃 */
.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 스타일 */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    /* 로고가 눌리지 않게 최소 너비 확보 */
    flex-shrink: 0;
}
.logo i { color: var(--primary-color); }

/* 우측 메뉴 영역 (네비게이션 + 예약버튼) */
.header-actions {
    display: flex;
    align-items: center;
    /* 버튼들이 모여있으므로 간격을 12px정도로 좁힘 (기존 32px은 너무 넓음) */
    gap: 12px;
}

/* 네비게이션 메뉴 */
.nav-menu {
    display: flex;
    /* 네비게이션 버튼들 사이의 간격 */
    gap: 12px;
    gap: 12px;
}

.nav-menu .btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}


/* 버튼 스타일 (기존 유지) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap; /* 줄바꿈 방지 */
    border: none; /* 테두리 제거 */
    font-size: 0.95rem; /* 글자 크기 조정 */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}



/* 푸터 */
.footer { background-color: var(--bg-light-gray); padding: 80px 0 30px; margin-top: 100px; }
.footer-bottom {
    display: flex; justify-content: center; align-items: center;
    position: relative; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 20px; color: var(--text-light);
}

/* 관리자 로그인 버튼 (푸터 좌측 하단) */
.admin-login-btn {
    position: absolute; left: 0;
    background: none; border: none; color: #9CA3AF;
    font-size: 0.85rem; cursor: pointer; padding: 5px;
}
.admin-login-btn:hover { color: var(--primary-color); }

/* =========================================
   4. 히어로 섹션 (Hero Sections)
   ========================================= */
/* --- 히어로 섹션 (Hero Section) --- */
.hero {
    position: relative;
    height: 600px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-top: -1px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* HTML에서 인라인 스타일로 이미지를 넣었으므로 여기서는 설정 유지 */
    /* background-image: url('...'); */

    background-size: cover;
    background-position: center;
    z-index: -2;

    /* ✅ 핵심 수정 1: 배경을 훨씬 어둡게(0.8 -> 0.45) 하고, 살짝 흐리게(blur) 처리 */
    filter: brightness(0.45) blur(3px);

    transform: scale(1.05); /* 블러 처리 시 테두리 번짐 방지를 위해 스케일 약간 확대 */
}

/* ✅ 배경이 어두워졌으니 컨텐츠가 잘 보임 */
.hero-content {
    z-index: 1;
    max-width: 800px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;

    /* ✅ 핵심 수정 2: 텍스트 그림자를 더 진하고 넓게 설정 */
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.3rem; /* 크기 약간 키움 */
    margin-bottom: 40px;
    opacity: 1; /* 투명도 제거 (선명하게) */
    font-weight: 500; /* 굵기 약간 추가 */

    /* ✅ 핵심 수정 3: 서브 타이틀에도 그림자 추가 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
/* 서브 페이지 히어로 공통 */
.page-hero {
    position: relative; height: 400px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    background-size: cover; background-position: center;
}
.page-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.page-hero-content { position: relative; z-index: 1; }
.page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.page-subtitle { font-size: 1.1rem; opacity: 0.9; }

/* 공통 섹션 스타일 */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.section-desc { color: var(--text-medium); max-width: 600px; margin: 0 auto; }
/* =========================================
   5. 페이지: 객실 안내 (Rooms)
   ========================================= */

/* 이미지 갤러리 레이아웃 수정 */
.room-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 큰 이미지(2) : 작은 이미지들(1) 비율 */
    gap: 10px;
    margin-bottom: 60px; /* 갤러리와 아래 상세 정보 사이의 여백을 넉넉하게 추가 */
    /* height: 500px;  <-- 이 고정 높이 설정을 제거합니다! */
    /* 대신, 이미지의 비율(aspect-ratio)을 사용하여 높이를 제어합니다. */
}

/* 갤러리 이미지 공통 설정 */
.room-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 비율 유지하며 꽉 채우기 */
    display: block;
}

/* 메인 이미지 (왼쪽) */
.gallery-main {
    /* 메인 이미지 영역의 높이를 확보합니다. (예: 500px) */
    /* 혹은 aspect-ratio를 사용하여 반응형으로 만들 수도 있습니다. */
    height: 500px;
}

.gallery-main img {
    border-radius: 8px 0 0 8px;
}

/* 서브 이미지 그리드 (오른쪽 4개) */
.gallery-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 500px; /* 메인 이미지와 동일한 높이로 설정하여 그리드 균형 맞춤 */
}

/* 서브 이미지 둥근 모서리 처리 */
.gallery-sub img:nth-child(2) { border-radius: 0 8px 0 0; }
.gallery-sub img:last-child { border-radius: 0 0 8px 0; }


/* 객실 상세 정보 레이아웃 (기존 유지, margin-top 추가 가능) */
.room-details-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    /* 만약 위에서 margin-bottom을 줬는데도 겹친다면, 여기서 margin-top을 추가하세요 */
    /* margin-top: 50px; */
}

.room-info-box { flex: 2; }
.info-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 15px;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block;
}
.room-intro { font-size: 1.05rem; line-height: 1.7; color: var(--text-medium); margin-bottom: 30px; }

/* 스펙 테이블 */
.specs-table {
    width: 100%; border-top: 1px solid var(--text-dark); border-bottom: 1px solid #ddd;
    margin-bottom: 40px; border-collapse: collapse;
}
.specs-table th {
    width: 20%; background-color: #f9f9f9; padding: 15px; text-align: left;
    font-weight: 600; color: var(--text-dark); border-bottom: 1px solid #eee;
}
.specs-table td {
    padding: 15px; color: var(--text-medium); border-bottom: 1px solid #eee; line-height: 1.5;
}

/* 어메니티 아이콘 */
.amenities-section h4 { font-size: 1.2rem; margin-bottom: 20px; }
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amenity-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; background-color: #f8f9fa; border-radius: 8px;
    color: var(--text-medium); text-align: center; transition: all 0.2s;
}
.amenity-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.amenity-item i { font-size: 1.8rem; margin-bottom: 10px; color: var(--primary-color); }
.amenity-item span { font-size: 0.9rem; }

/* 사이드바 (객실 & 예약 공통 사용 가능) */
.room-sidebar { flex: 1; position: sticky; top: 100px; }
.notice-box {
    background-color: #fff4e5; padding: 25px; border-radius: 8px; margin-bottom: 20px;
}
.notice-box h4 { color: #d97706; margin-bottom: 15px; font-weight: 700; }
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li {
    position: relative; padding-left: 15px; margin-bottom: 8px;
    font-size: 0.9rem; color: #555; line-height: 1.4;
}
.notice-list li::before { content: "•"; position: absolute; left: 0; color: #d97706; }

.sidebar-cta {
    background: white; border: 1px solid #eee; padding: 25px;
    border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.price-tag { margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.price-tag strong { font-size: 1.8rem; color: var(--text-dark); }

/* CTA 섹션 (하단) */
.cta-section { padding: 60px 0; background-color: white; }
.cta-box {
    background-color: var(--primary-color); border-radius: 20px; padding: 60px;
    color: white; display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}
.cta-content h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-content p { opacity: 0.9; max-width: 500px; }

/* =========================================
   6. 페이지: 예약 안내 (Booking Info)
   ========================================= */
.info-block { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-color); }
.info-block.no-border { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.info-desc { color: var(--text-medium); margin-bottom: 30px; }

/* 계좌 정보 카드 */
.account-card {
    background-color: var(--bg-light-gray); border-radius: 16px; padding: 40px;
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
    border: 1px solid var(--border-color);
}
.account-item { display: flex; flex-direction: column; gap: 8px; }
.account-item .label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }
.account-item .value { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); }
.account-item .value.highlight { color: var(--primary-color); }

/* 문의 방법 리스트 */
.method-list { display: flex; flex-direction: column; gap: 20px; }
.method-item {
    display: flex; align-items: center; gap: 20px; padding: 20px;
    border-radius: 12px; border: 1px solid var(--border-color);
}
.icon-box {
    width: 48px; height: 48px; background-color: var(--bg-light-gray); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-medium); font-size: 1.2rem;
}
.highlight-text { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.sub-text { font-size: 0.9rem; color: #666; display: block; margin-top: 5px; }

/* 유의사항 리스트 박스 */
.notice-list-box { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 30px; }
.notice-list-box ul { list-style: none; padding: 0; margin: 0; }
.notice-list-box li {
    position: relative; padding-left: 15px; margin-bottom: 15px; line-height: 1.6; color: #444;
}
.notice-list-box li::before {
    content: "•"; position: absolute; left: 0; top: 0;
    color: var(--primary-color); font-size: 1.2rem;
}

/* 환불 규정 테이블 */
.refund-table-wrapper { overflow-x: auto; border-radius: 8px; border: 1px solid #ddd; }
.refund-table { width: 100%; border-collapse: collapse; text-align: center; }
.refund-table th { background-color: #f1f5f9; padding: 15px; font-weight: 600; color: #333; border-bottom: 1px solid #ddd; }
.refund-table td { padding: 15px; border-bottom: 1px solid #eee; color: #555; }
.refund-table tr:hover { background-color: #fcfcfc; }
.text-blue { color: #2563eb; font-weight: 700; }
.text-red { color: #dc2626; font-weight: 700; }
.policy-note { margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }

/* =========================================
   7. 페이지: 실시간 예약 (Booking)
   ========================================= */
.booking-container { display: flex; gap: 40px; align-items: flex-start; }

/* 캘린더 */
.calendar-wrapper {
    flex: 2; background: white; border: 1px solid var(--border-color);
    border-radius: 16px; padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calendar-header h2 { font-size: 1.5rem; font-weight: 700; }
.cal-nav-btn {
    background: none; border: 1px solid var(--border-color); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; color: var(--text-medium);
}
.cal-nav-btn:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.calendar-days-header {
    display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
    font-weight: 600; color: var(--text-medium); margin-bottom: 16px; border-bottom: 1px solid #eee;
}
.calendar-days-header .sun { color: #ef4444; }
.calendar-days-header .sat { color: #3b82f6; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-cell {
    height: 100px; border: 1px solid #f3f4f6; border-radius: 8px; padding: 8px;
    display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer; transition: all 0.2s;
}
.day-cell:hover:not(.disabled) { border-color: var(--primary-color); background-color: #eff6ff; }
.day-cell.disabled { background-color: #f9fafb; color: #d1d5db; cursor: not-allowed; pointer-events: none; }
.day-cell.selected { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.day-price { font-size: 0.8rem; text-align: right; }
.day-cell.selected .day-price { color: rgba(255,255,255,0.9); }

/* 예약 사이드바 */
.booking-sidebar {
    flex: 1; background: #1f2937; color: white; border-radius: 16px;
    padding: 30px; position: sticky; top: 100px;
}
.sidebar-title { font-size: 1.3rem; margin-bottom: 24px; font-weight: 700; }
.display-box {
    background: rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; font-weight: 500;
}
.display-box.placeholder { color: rgba(255,255,255,0.5); }
.price-summary {
    margin: 24px 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2);
}
.price-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.price-row.total { font-size: 1.2rem; font-weight: 700; color: #fbbf24; margin-top: 10px; }

/* =========================================
   8. 페이지: 오시는 길 (Directions)
   ========================================= */
.map-container {
    width: 100%; height: 450px; border-radius: 16px; overflow: hidden;
    margin-bottom: 60px; background-color: #f3f4f6; border: 1px solid var(--border-color);
}
.map-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.address-box {
    background-color: white; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 30px; margin-bottom: 60px;
}
.address-row { display: flex; padding: 12px 0; border-bottom: 1px solid #eee; }
.address-row:last-child { border-bottom: none; }
.addr-label { width: 120px; font-weight: 600; color: var(--text-medium); flex-shrink: 0; }

.transport-list { display: flex; flex-direction: column; gap: 24px; }
.transport-item { display: flex; gap: 20px; }
.trans-icon {
    width: 40px; height: 40px; background-color: rgba(37, 99, 235, 0.1); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trans-text h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }

.map-app-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.map-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s; min-width: 140px;
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.map-btn.kakao { background-color: #FEE500; color: #3C1E1E; }
.map-btn.naver { background-color: #03C75A; color: white; }
.map-btn.tmap { background-color: white; color: #242424; border: 1px solid #ddd; }

/* =========================================
   9. 모달 및 팝업 (Modals & Chat)
   ========================================= */
/* 공통 모달 오버레이 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 1; transition: opacity 0.3s;
}
.modal-overlay.hidden { display: none; opacity: 0; }

/* 모달 컨텐츠 */
.modal-content {
    background: white; width: 90%; max-width: 500px;
    border-radius: 16px; padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.btn-close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

/* 예약 요약 박스 */
.booking-summary { background-color: #f9fafb; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.summary-item.total { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e7eb; font-weight: 700; font-size: 1.1rem; }
.summary-item .highlight { color: var(--primary-color); }
.info-text {
    font-size: 0.85rem; margin-bottom: 20px; background-color: #fff7ed;
    padding: 10px; border-radius: 6px; border: 1px solid #ffedd5; color: #9a3412;
}

/* 챗봇 FAB 및 팝업 */
.chat-fab {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary-color); color: white;
    padding: 14px 28px; border-radius: 50px; font-weight: 600; border: none;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); cursor: pointer; z-index: 90;
    transition: all 0.3s;
}
.chat-fab:hover { transform: translateY(-4px) scale(1.05); }

.chat-popup {
    position: fixed; bottom: 100px; right: 30px; width: 380px; height: 600px;
    background-color: white; border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    display: flex; flex-direction: column; z-index: 1000; overflow: hidden;
    transition: all 0.3s; transform-origin: bottom right;
}
.chat-popup.hidden { opacity: 0; transform: scale(0); pointer-events: none; }
.chat-window-header {
    background-color: var(--primary-color); padding: 15px 20px; color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-history { flex: 1; padding: 20px; overflow-y: auto; background-color: #fff; display: flex; flex-direction: column; gap: 15px; }
.message { max-width: 80%; display: flex; flex-direction: column; }
.message-content { padding: 12px 16px; border-radius: 16px; font-size: 0.95rem; word-break: keep-all; }
.message.bot { align-self: flex-start; }
.message.bot .message-content { background-color: #f3f4f6; border-top-left-radius: 4px; }
.message.user { align-self: flex-end; }
.message.user .message-content { background-color: var(--primary-color); color: white; border-top-right-radius: 4px; }
.chat-input-area { padding: 20px; background-color: white; border-top: 1px solid #eee; display: flex; gap: 10px; }
.btn-send { width: 50px; height: 50px; background-color: var(--primary-color); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* =========================================
   10. 관리자 대시보드 (Admin)
   ========================================= */
.admin-layout { display: flex; min-height: 100vh; background-color: #f3f4f6; }
.sidebar {
    width: 250px; background-color: #1f2937; color: white;
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar-header {
    height: 80px; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 15px 25px;
    color: #9ca3af; transition: all 0.2s;
}
.menu-item:hover, .menu-item.active { background-color: #374151; color: white; border-left: 4px solid var(--primary-color); }
.admin-content { flex: 1; margin-left: 250px; padding: 30px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.admin-section {
    background: white; border-radius: 12px; padding: 25px; margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 15px; background: #f9fafb; color: #666; }
.admin-table td { padding: 15px; border-bottom: 1px solid #eee; }
.hover-table tbody tr { cursor: pointer; transition: background-color 0.2s; }
.hover-table tbody tr:hover { background-color: #f1f5f9; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge.pending { background-color: #fef3c7; color: #d97706; }
.badge.confirmed { background-color: #d1fae5; color: #059669; }

/* 관리자 상세 모달 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.detail-item { display: flex; flex-direction: column; gap: 5px; }
.detail-item.full { grid-column: span 2; }
.detail-item .label { font-size: 0.85rem; color: #6b7280; font-weight: 500; }
.detail-item .value { font-size: 1rem; color: #111827; font-weight: 600; }

/* 로그인 모달 */
.login-modal-content { max-width: 400px; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon i { position: absolute; left: 15px; color: #9ca3af; }
.input-with-icon input { padding-left: 40px; }

/* =========================================
   11. 반응형 (Media Queries)
   ========================================= */
@media (max-width: 900px) {
    .room-details-container { flex-direction: column; }
    .booking-container { flex-direction: column; }
    .room-sidebar, .booking-sidebar { width: 100%; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .room-gallery {
        grid-template-columns: 1fr; /* 1열로 변경 */
        height: auto; /* 높이 자동 */
    }

    .gallery-main {
        height: auto; /* 높이 자동 해제 */
    }

    .gallery-main img {
        height: 300px; /* 모바일에서 메인 이미지 높이 */
        border-radius: 8px 8px 0 0;
    }

    /* 모바일에서는 서브 이미지 그리드도 높이 자동 */
    .gallery-sub {
        height: auto;
        grid-template-columns: repeat(2, 1fr); /* 2열로 작은 이미지 표시 */
    }

    .gallery-sub img {
        height: 150px; /* 작은 이미지 높이 지정 */
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    .nav-menu { display: none; }
    .hero-title { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-box { flex-direction: column; text-align: center; }
    .account-card { flex-direction: column; align-items: center; text-align: center; }
    .notes-grid { grid-template-columns: 1fr; }
    .map-app-buttons .map-btn { flex: 1; }
    .chat-popup { width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; }
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .header-content { justify-content: space-between; }
}