@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* 커스텀 알림창 스타일 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 20001;
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-icon {
    font-size: 48px;
    color: #8d6c4b;
    margin-bottom: 20px;
}

.custom-alert-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.custom-alert-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-alert-button {
    background: #8d6c4b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-alert-button:hover {
    background: #6b5139;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard-Regular', sans-serif;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* Top Navigation Bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(141, 108, 75, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 80px;
    width: 100%;
}

.topbar-logo {
    flex-shrink: 0;
    padding-left: 30px;
}

.topbar-logo img {
    height: 50px;
    width: auto;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #fff;
}

.nav-item.has-submenu .nav-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.nav-item.has-submenu:hover .nav-link::after {
    transform: rotate(225deg);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    margin-top: 1px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #8d6c4b;
    padding-left: 25px;
}

/* Mobile Menu Button */
.topbar-right {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #8d6c4b;
    border: 1px solid #8d6c4b;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 30px;
}

.quick-link:hover {
    background: #6b5139;
    transform: translateY(-1px);
}

.quick-link i {
    font-size: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn i {
    transition: all 0.3s ease;
}

.mobile-menu-btn .fa-bars {
    display: block;
}

.mobile-menu-btn .fa-times {
    display: none;
}

.mobile-menu-btn.active .fa-bars {
    display: none;
}

.mobile-menu-btn.active .fa-times {
    display: block;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 30px 0;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(141, 108, 75, 0.1);
}

.mobile-nav-item.has-submenu .mobile-nav-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.mobile-nav-item.show-submenu .mobile-nav-link::after {
    transform: rotate(45deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    background: rgba(141, 108, 75, 0.05);
    transition: max-height 0.3s ease;
}

.mobile-nav-item.show-submenu .mobile-dropdown {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: block;
    padding: 15px 50px;
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(141, 108, 75, 0.1);
    color: #333;
    padding-left: 55px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: calc(100vh - 80px);
    color: #333;
}

/* 헤더 섹션 */
.content-header {
    background: linear-gradient(135deg, rgba(141, 108, 75, 0.05) 0%, rgba(255, 134, 0, 0.03) 100%);
    padding: 40px 50px 20px 50px;
    text-align: center;
    border-bottom: 1px solid rgba(141, 108, 75, 0.1);
}

.header-title {
	font-family: 'Pretendard-Regular', sans-serif;
	font-size: 2.8rem;
	font-weight: 600;
	margin-bottom: 10px;
	position: relative;
}

.header-subtitle {
	color: #666;
  font-size: 1.2rem;
  line-height: 2.6;
  text-align: center;
  margin-bottom: 0px;
  word-break: keep-all;
}

.header-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.header-info-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(141, 108, 75, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(141, 108, 75, 0.15);
    border-color: rgba(141, 108, 75, 0.3);
}

.info-icon {
    font-size: 1.8rem;
    color: #8d6c4b;
    margin-bottom: 12px;
    display: block;
}

.info-label {
    font-size: 0.9rem;
    color: #8d6c4b;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* 컨텐츠 영역 */
.content-area {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 예약 컨테이너 */
.reservation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.reservation-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(141, 108, 75, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.reservation-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(141, 108, 75, 0.15);
    border-color: rgba(141, 108, 75, 0.4);
}

.box-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.box-title i {
    color: #8d6c4b;
    font-size: 1.5rem;
}

.box-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.2rem !important;
    font-weight: 500;
    letter-spacing: unset !important;
    
}

/* 새로운 달력 스타일 - 이미지 기반 디자인 */
.calendar-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-month {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* 새로운 달력 테이블 스타일 */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    background: #ffffff;
}

.calendar-table th {
    padding: 15px 8px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 요일별 헤더 색상 */
.calendar-table th:first-child {
    color: #dc3545; /* 일요일 빨간색 */
}

.calendar-table th:last-child {
    color: #007bff; /* 토요일 파란색 */
}

.calendar-table td {
    padding: 0;
    text-align: center;
    position: relative;
    height: 40px;
    vertical-align: middle;
}

.cal-date {
    width: 100%;
    /*height: 100%;*/
    display: flex;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* 일요일 스타일 (휴관일) */
.sunday .cal-date {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
    font-weight: 600;
}

/* 예약 완료 (회색) */
.finish .cal-date {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    font-weight: 600;
}

/* 신청 가능 (파란색) */
.available .cal-date {
    background: #ffffff;
    color: #007bff;
    border: 2px solid #e9ecef;
    font-weight: 500;
}

.available:hover .cal-date {
    background: #007bff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 선택된 날짜 */
.selected .cal-date {
    background: #28a745 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    font-weight: 600;
}

/* 빈 날짜 (이전/다음 달) */
.cal-blank {
    /*opacity: 0.3;*/
}

.cal-blank .cal-date {
    /*background: #f8f9fa;*/
    color: #adb5bd;
    cursor: not-allowed;
}

/* 토요일 스타일 */
.saturday .cal-date {
    color: #007bff;
}

/* 오늘 날짜 강조 */
.today .cal-date {
    position: relative;
}

.today .cal-date::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ffc107;
    border-radius: 50%;
}

/* 휴일 스타일 (기존 holiday 클래스 대체) */
.holiday .cal-date {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
    font-weight: 600;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid transparent;
}

.legend-holiday { 
    background: #dc3545; 
}

.legend-finish { 
    background: #6c757d; 
}

.legend-available { 
    background: #ffffff; 
    border: 2px solid #e9ecef;
}

/* 폼 스타일 */
.form-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group-half {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #8d6c4b;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #8d6c4b;
    box-shadow: 0 0 0 2px rgba(141, 108, 75, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 개인정보 동의 */
.privacy-agreement {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(141, 108, 75, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.privacy-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.privacy-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    border: 1px solid #e9ecef;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8d6c4b;
}

.privacy-check label {
    color: #333;
    font-size: 14px;
}

/* 제출 버튼 */
.submit-button {
    width: 300px;
    padding: 15px;
    background: linear-gradient(135deg, #8d6c4b, #6b5139);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0 auto;
    display: block;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(141, 108, 75, 0.3);
}

.submit-button:disabled {
    background: #dee2e6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
	
	
    .header-subtitle {
        color: #666;
        font-size: 1.0rem;
        line-height: 1.3;
        font-weight: 300;
    }   	
		
	
	
	
	
    .topbar-container {
        padding: 0 20px;
        height: 70px;
    }

    .topbar-logo img {
        height: 30px;
    }

    .topbar-nav {
        display: none;
    }

    .quick-link {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        color: white;
    }

    .mobile-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .main-content {
        margin-top: 70px;
    }

    .content-header {
        padding: 40px 20px 20px 20px;
    }

    .header-title {
        font-size: 2rem;
    }

    .content-area {
        padding: 30px 20px;
    }

    .reservation-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reservation-box {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-half {
        margin-bottom: 25px;
    }

    .privacy-agreement {
        padding: 25px;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 8px 4px;
    }

    .cal-date {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.popup-content {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 17px;
	cursor: pointer;
}

.calendar-head2 {text-align:center; margin-bottom:30px; padding-top:15px;}
.calendar-head2 h3 {display:inline-block; vertical-align:middle; margin:0 40px; font-weight:400;color:#242424; font-size:30px; line-height:1.3em; font-family:'Noto Sans KR';}
.calendar-head2 .cal-btn {display:inline-block; vertical-align:middle; width:35px; height:35px; background-color:#6a4634; border-radius:50%; overflow:hidden; text-indent:-999em; background-position:50% 50%; background-repeat:no-repeat;}
.calendar-head2 .cal-prev {background-image:url("/img/cal_prev.png");}
.calendar-head2 .cal-next {background-image:url("/img/cal_next.png");}

.calendar-head .cal-btn {display:inline-block; vertical-align:middle; width:25px; height:25px; overflow:hidden; text-indent:-999em; background-position:50% 50%; background-repeat:no-repeat;}
.calendar-head2 .cal-btn {display:inline-block; vertical-align:middle; width:35px; height:35px; background-color:#6a4634; border-radius:50%; overflow:hidden; text-indent:-999em; background-position:50% 50%; background-repeat:no-repeat;}

.calendar-head .cal-prev {background-image:url("/img/calendar_arrow_prev.png");}
.calendar-head .cal-next {background-image:url("/img/calendar_arrow_next.png");}

.calendar-head2 .cal-prev {background-image:url("/img/cal_prev.png");}
.calendar-head2 .cal-next {background-image:url("/img/cal_next.png");}

.calendar2 table {width:100%; table-layout:fixed; border-collapse:collapse; border-spacing:0px;}
.calendar2 table th {padding:12px 4px; text-align:center; border:1px solid #ddd; background:#eee; color:#505050; font-size:20px; line-height:1.4em;}
.calendar2 table td {height:120px; padding:10px; vertical-align:top; border:1px solid #ddd; color:#454545; font-size:17px; line-height:1.4em; letter-spacing:-.03em;}
.calendar2 table tr th:first-child,
.calendar2 table tr td:first-child .cal-date {color:#e51b1b;}
.calendar2 table tr th:last-child,
.calendar2 table tr td:last-child .cal-date {color:#15a9d2;}
.calendar2 ul {
	list-style: none;
	padding-left: 0; /* 필요 시 */
	margin: 0; /* 필요 시 */
}
.calendar2 ul li {position:relative; padding-left:25px; font-size:16px ;line-height:1.4em; margin-bottom:8px; color:#b07a60}
.calendar2 ul li:last-child {margin-bottom:0;}
.calendar2 ul li:before {content:""; position:absolute; top:4px; left:0; width:16px; height:16px; background:#6a4634 url('../images/bbs/cal_check.png') 50% 50% no-repeat; border-radius:100%;}
.calendar2 ul li a {display:block; line-height:1.4em; letter-spacing:-.03em; max-height:2.8em; overflow:hidden; text-overflow:ellipsis; word-break:break-all; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.calendar2 .cal-date {line-height:1em; font-weight:500; color:#767676; margin-bottom:10px;}
.calendar2 .cal-blank {background:#fcfcfc;}
.calendar2 .cal-holiday .cal-date {color:#ea4044 !important;}