/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    /* ICR BRAND PALETTE (Revised: Gold/Orange instead of Green) */
    --icr-gold: #D4A017;
    /* Rich Gold (Text/Lines) */
    --icr-orange: #cc9f12;
    /* Modified Orange Accent */
    --icr-orange-light: #FFB74D;
    --icr-blue: #002D56;
    /* Deep Navy */
    --icr-blue-light: #004B8D;

    --bg-gray: #F5F7FA;
    --text-main: #111111;
    --text-sub: #555555;
    --white: #ffffff;

    --container-width: 1320px;
    --header-height: 90px;
    --section-spacing: 120px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Logo Font Style */
.icr-logo-text {
    font-family: 'Times New Roman';
    font-weight: 700;
    letter-spacing: -0.01em;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* 헤더 높이(90px)를 고려한 여백 */
}

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

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
li {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--icr-orange);
    position: relative;
}

.section-desc {
    font-size: 1.3rem;
    color: #666;
    font-weight: 300;
}

/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   TOP BAR & HEADER
   ========================================= */
.top-bar {
    background-color: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    padding: 10px 0;
    color: #fff;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a:hover {
    color: var(--icr-orange);
    font-weight: 600;
}

/* Increased specificity to override GnuBoard Theme */
#header.site-header {
    position: absolute;
    top: 42px;
    /* Adjusted to match top bar height */
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: background 0.4s, top 0.4s;
}

#header.site-header .logo a,
#header.site-header .gnb a {
    color: #fff;
    /* Force white on transparent header */
}

#header.site-header.fixed {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 80px;
}

#header.site-header.fixed .logo a,
#header.site-header.fixed .gnb a {
    color: #222;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a img {
    height: 30px;
    /* 로고 크기 조정 */
    width: auto;
    transition: var(--transition);
}

.logo-black {
    display: none !important;
}

.site-header.fixed .logo-white {
    display: none !important;
}

.site-header.fixed .logo-black {
    display: block !important;
}

.gnb ul {
    display: flex;
    gap: 40px;
}

.gnb a {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    padding: 10px 0;
    position: relative;
}

.gnb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--icr-orange);
    transition: 0.3s;
}

.gnb a:hover::after {
    width: 100%;
}

.header-action {
    margin-left: 20px;
}

.btn-inquiry {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;

    /* Default Top State (Gold) */
    background: #E5A823;
    color: #fff !important;
    border: 1px solid #E5A823;
}

.btn-inquiry:hover {
    background: #fff;
    color: #E5A823 !important;
    border: 1px solid #fff;
}

/* Fixed Header State */
#header.site-header.fixed .btn-inquiry {
    background: #fff;
    color: #1a237e !important;
    border: 1px solid #1a237e;
}

#header.site-header.fixed .btn-inquiry:hover {
    background: #fff;
    color: #1a237e !important;
    border: 1px solid #1a237e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* =========================================
   HERO SLIDER
   ========================================= */
.hero-section {
    position: relative;
    height: 900px;
    background: #111;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s, transform 6s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 45, 86, 0.85) 0%, rgba(245, 124, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding-top: 60px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--icr-gold);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 800;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--icr-orange);
}

.hero-desc {
    font-size: 1.3rem;
    margin-bottom: 50px;
    max-width: 600px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-hero {
    padding: 18px 45px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid transparent;
}

.btn-orange {
    background: var(--icr-orange);
    color: #fff;
}

.btn-orange:hover {
    background: #fff;
    color: var(--icr-orange);
    border-color: #fff;
}

.btn-outline {
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--icr-blue);
}

/* =========================================
   QUICK MENU (White Card - Reverted)
   ========================================= */
.quick-menu-container {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 20px;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 items */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qm-item {
    position: relative;
    padding: 30px 10px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.qm-item:last-child {
    border-right: none;
}

/* Orange Top Line Hover (Removed or kept? kept as accent, but background changes) */
.qm-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--icr-orange);
    transition: 0.3s;
    z-index: 0;
}

.qm-item:hover {
    background: var(--icr-blue);
}

.qm-item:hover::before {
    height: 4px;
}

.qm-content {
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.qm-item:hover .qm-content {
    transform: translateY(-5px);
}

/* Icons: Material Symbols */
.qm-icon-material {
    font-size: 3rem;
    color: #aaa;
    margin-bottom: 15px;
    transition: 0.3s;
    display: block;
}

.qm-item:hover .qm-icon-material {
    color: #fff;
}

.qm-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: block;
    transition: 0.3s;
}

.qm-item:hover .qm-title {
    color: #fff;
}

.qm-desc {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    transition: 0.3s;
}

.qm-item:hover .qm-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   OVERVIEW Split
   ========================================= */
.sec-overview {
    padding: var(--section-spacing) 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ov-img-box {
    position: relative;
}

.ov-img-main {
    border-radius: 0 50px 0 50px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--icr-orange);
    /* Orange Shadow */
}

.ov-text h3 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--icr-blue);
}

.ov-text p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
}

.check-list li {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
}

.check-list li .material-symbols-rounded {
    color: var(--icr-orange);
    margin-right: 15px;
    font-size: 1.5rem;
}

/* =========================================
   GALLERY FULL (Manual Control + Rolling)
   ========================================= */
.sec-gallery {
    background: #111;
    padding: 0;
    position: relative;
    height: 900px;
    /* Full Screen Feel */
    overflow: hidden;
}

.gallery-header-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.gallery-header-overlay h3 {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-full-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.g-full-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.g-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g-text-box {
    position: absolute;
    bottom: 80px;
    left: 100px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 50px;
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--icr-orange);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.5s;
}

.g-full-item.active .g-text-box {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.g-text-box h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--icr-orange);
}

.g-text-box p {
    font-size: 1.2rem;
}

.g-controls {
    position: absolute;
    bottom: 80px;
    right: 100px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.g-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.g-btn:hover {
    background: var(--icr-orange);
    border-color: var(--icr-orange);
}

.g-btn span {
    font-size: 2rem;
}

/* =========================================
   FAQ (Accordion - Expanded)
   ========================================= */
.sec-faq {
    padding: var(--section-spacing) 0;
}

.faq-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.faq-item {
    border: 1px solid #eee;
    padding: 0 20px;
    border-radius: 8px;
    background: #fff;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--icr-orange);
}

.faq-toggle {
    font-size: 1.5rem;
    color: #ccc;
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    color: #666;
    line-height: 1.6;
    font-size: 1.2rem;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
    border-top-color: #f5f5f5;
    padding-top: 10px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--icr-blue);
}

/* Only for FAQ Section styling */
.faq-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   COST & LOCATION
   ========================================= */
.sec-cost {
    background: var(--bg-gray);
    padding: var(--section-spacing) 0;
}

.cost-table-wrap {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
}

.cost-table th {
    background: #f8f9fa;
    color: var(--icr-blue);
    padding: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--icr-blue);
}

.cost-table td {
    padding: 25px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #444;
    font-size: 1.3rem;
}

.cost-highlight {
    color: var(--icr-orange);
    font-weight: 700;
}

.cost-sub-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--icr-blue);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cost-sub-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--icr-orange);
    border-radius: 2px;
}

.cost-table-wrap+.cost-sub-title {
    margin-top: 60px;
}

.cost-note {
    margin-top: 20px;
    padding: 15px 25px;
    background: #fffbe6;
    border-radius: 8px;
    font-size: 1rem;
    color: #856404;
    border-left: 5px solid #ffe58f;
}

.sec-location {
    padding-bottom: 120px;
}

.loc-grid {
    display: flex;
    gap: 0;
    height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.loc-map {
    flex: 1.5;
    background: #eee;
    position: relative;
}

.loc-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loc-info {
    flex: 1;
    background: var(--icr-blue);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loc-info h4 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--icr-gold);
}

.loc-detail div {
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Footer */
.site-footer {
    background: #111;
    color: #888;
    padding: 80px 0;
    font-size: 0.95rem;
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

/* =========================================
   RESPONSIVE (3-Stage Breakpoints)
   ========================================= */

/* 1. Laptop/Small Desktop (1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
        --section-spacing: 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .qm-item:nth-child(4) {
        border-right: none;
    }

    .split-grid {
        gap: 40px;
    }

    .ov-text h3 {
        font-size: 2.2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 2. Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --header-height: 70px;
        --section-spacing: 60px;
    }

    .top-bar {
        display: none;
    }

    /* Hide utility on mobile */
    .site-header {
        top: 0;
        background: #fff;
    }

    .site-header .logo .logo-white {
        display: none !important;
    }

    .site-header .logo .logo-black {
        display: block !important;
    }

    .site-header .gnb,
    .site-header .header-action {
        display: none;
    }

    .btn-menu {
        display: flex !important;
    }

    .hero-section {
        height: 600px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-desc {
        font-size: 1.3rem;
    }

    .quick-menu-container {
        margin-top: -50px;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .qm-item:nth-child(3n) {
        border-right: none;
    }

    .split-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ov-img-main {
        border-radius: 0 30px 0 30px;
        margin-bottom: 30px;
    }

    .ov-img-main img {
        height: auto !important;
        max-height: 400px;
    }

    .check-list li {
        justify-content: center;
    }

    .sec-gallery {
        height: 600px;
    }

    .g-text-box {
        left: 20px;
        right: 20px;
        bottom: 120px;
        padding: 20px;
        width: calc(100% - 40px);
    }

    .g-controls {
        right: 20px;
        bottom: 40px;
    }

    .cost-table-wrap {
        padding: 15px;
        overflow-x: auto;
    }

    .cost-table {
        min-width: 600px;
    }

    .loc-grid {
        flex-direction: column;
        height: auto;
    }

    .loc-map {
        height: 300px;
    }

    .loc-info {
        padding: 40px 20px;
    }
}

/* 3. Mobile (480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qm-item:nth-child(2n) {
        border-right: none;
    }

    .qm-icon-material {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .ov-text h3 {
        font-size: 1.8rem;
    }

    .ov-text p {
        font-size: 1rem;
    }

    .g-text-box h4 {
        font-size: 1.5rem;
    }

    .g-text-box p {
        font-size: 0.95rem;
    }
}

/* Mobile Menu Style */
.btn-menu {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--icr-blue);
}

.btn-menu span {
    font-size: 2rem;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    padding: 80px 40px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul li {
    margin-bottom: 25px;
}

.mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 2rem;
    color: #222;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* =========================================
   SUB PAGES (Common)
   ========================================= */
.sub-visual {
    position: relative;
    height: 350px;
    background: url('../img/hero-01.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    /* Fixed Header Height */
}

.sub-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 86, 0.7);
    /* Deep Blue Overlay */
}

.sub-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.sub-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* =========================================
   CALENDAR SECTION
   ========================================= */
.sec-calendar {
    padding: 80px 0;
    background: #fff;
    min-height: 800px;
}

.calendar-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.calendar-header h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 800;
    min-width: 200px;
    text-align: center;
}

.cal-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #555;
    font-size: 1.2rem;
}

.cal-btn:hover {
    background: var(--icr-blue);
    color: #fff;
    border-color: var(--icr-blue);
}

.btn-my-reservation {
    position: absolute;
    right: 0;
    padding: 12px 20px;
    border: 1px solid var(--icr-blue);
    background: #fff;
    color: var(--icr-blue);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-my-reservation:hover {
    background: var(--icr-blue);
    color: #fff;
}

/* Calendar Grid */
.calendar-body {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.cal-days div {
    padding: 20px 0;
    text-align: center;
    font-weight: 700;
    color: #444;
}

.cal-days .sun {
    color: #e53935;
}

.cal-days .sat {
    color: #1e88e5;
}

.cal-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fff;
}

.date-cell {
    min-height: 140px;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.date-cell:nth-child(7n) {
    border-right: none;
}

/* Remove right border for Saturday */

.date-cell:hover {
    background: #fafafa;
}

.date-num {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

/* Day Colors */
.date-cell.sun .date-num {
    color: #e53935;
}

.date-cell.sat .date-num {
    color: #1e88e5;
}

.date-cell.today .date-num {
    background: var(--icr-blue);
    color: #fff;
}

/* Other Month */
.date-cell.other-month {
    background: #fdfdfd;
    cursor: default;
}

.date-cell.other-month .date-num {
    color: #ccc;
}

/* Status Badges */
.status-badge {
    display: block;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.status-badge.full {
    background: rgba(0, 0, 0, 0.05);
    color: #aaa;
    text-decoration: line-through;
}

.status-badge.available {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

/* Legend */
.calendar-legend {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.legend-item .dot.available {
    background: #e3f2fd;
    border: 1px solid #1565c0;
}

.legend-item .dot.full {
    background: #eee;
}

.legend-item .dot.past {
    background: #fff;
    border: 1px solid #ddd;
}

/* =========================================
   APPLICATION FORM
   ========================================= */
.sec-apply-form {
    padding: 60px 0 120px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--icr-blue);
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.05rem;
}

.rental-form {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group-row {
    display: flex;
    gap: 30px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

.full-width {
    width: 100%;
}

.f-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.f-label.required::after {
    content: '*';
    color: #e53935;
    margin-left: 4px;
}

.f-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.f-input:focus {
    border-color: var(--icr-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 45, 86, 0.1);
}

textarea.f-input {
    resize: none;
}

/* Time Select Row */
.time-select-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-select-row span {
    font-weight: 600;
}

/* Time Status */
.time-status-msg {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.room-status-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.room-status-row .r-name {
    font-weight: 700;
    color: #333;
}

.room-status-row .r-status {
    font-size: 0.95rem;
}

.time-range-text {
    font-size: 0.95rem;
    color: #555;
    margin-left: 5px;
}

/* Checkbox Options */
.check-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkbox-box {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.checkbox-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: 0.2s;
}

.checkbox-box:hover input~.checkmark {
    background-color: #f0f0f0;
}

.checkbox-box input:checked~.checkmark {
    background-color: var(--icr-blue);
    border-color: var(--icr-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-box input:checked~.checkmark:after {
    display: block;
}

.checkbox-box .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Applicant Info */
.applicant-section {
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.app-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-2 .full-width {
    grid-column: span 2;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Cost Summary */
.cost-summary-box {
    margin-top: 40px;
    background: #f4f6f8;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--icr-gold);
}

.cost-summary-box .row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #555;
}

.cost-summary-box .row.total {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--icr-blue);
}

.cost-summary-box .note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
    text-align: right;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.btn-submit {
    padding: 18px 60px;
    background: var(--icr-blue);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--icr-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 45, 86, 0.2);
}

.btn-cancel {
    padding: 18px 40px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

/* Selected Date in Calendar */
.date-cell.selected {
    border: 2px solid var(--icr-blue);
    background: rgba(0, 45, 86, 0.05);
}

@media (max-width: 768px) {
    .rental-form {
        padding: 30px 20px;
    }

    .form-group-row,
    .form-grid-2 {
        flex-direction: column;
        display: flex;
    }

    .form-grid-2 .full-width {
        grid-column: span 1;
    }
}

/* ===========================
   Modal Style (Appended)
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    display: none;
    /* Default hidden, switched to flex by JS */
}

/* Ensure JS overriding display works correctly */
.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeUp 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.btn-close-modal {
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
}

.modal-body {
    padding: 30px 20px;
    background: #fcfcfc;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fff;
}

.modal-input-group {
    margin-bottom: 15px;
}

.modal-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-modal-check {
    background: var(--icr-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-modal-cancel {
    background: #ccc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

/* History List Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table th {
    background: #eee;
    padding: 8px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

.history-table td {
    border-bottom: 1px solid #eee;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

.badge-status {
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.8rem;
}

.badge-status.접수 {
    background: #999;
}

.badge-status.확정 {
    background: var(--icr-blue);
}

.badge-status.취소 {
    background: #e53935;
}

/* ===========================
   Responsive Header (Added)
   =========================== */
/* Default (Desktop) */
#btnMenu {
    display: none;
}

/* Initially hidden, shown when active via JS */
#mobileNav,
#mobileOverlay {
    display: none;
}

/* Force display block when active, overriding the ID-based display:none */
#mobileNav.active,
#mobileOverlay.active {
    display: block;
}

@media (max-width: 900px) {

    #header.site-header .gnb,
    #header.site-header .header-action {
        display: none;
    }

    #btnMenu {
        display: block;
        color: #fff;
        /* White on transparent */
    }

    #header.site-header.fixed #btnMenu {
        color: #222;
    }

    /* Adjust padding/height if needed */
    #header.site-header {
        height: 60px;
    }

    #header.site-header .logo img {
        height: 30px !important;
    }
}

/* Mobile Nav Styles */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    display: block;
    /* ensure visible */
    text-align: right;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 30px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: block;
}

/* ===========================
   Sub Visual
   =========================== */
.sub-visual {
    position: relative;
    width: 100%;
    height: 480px;
    /* Increased height to accommodate padding and content */
    background: #333 url('../img/hero-02.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -80px;
    /* Pull visual up */
    padding-top: 140px;
    /* Push content down below header */
}

/* Sub Visual Modifications */
.sub-visual.sv-rental {
    background: url('../img/hero-02.jpg') no-repeat center/cover;
}

.sub-visual.sv-member {
    background: url('../img/hero-03.jpg') no-repeat center/cover;
}

.sub-visual.sv-recruit {
    background: url('../img/hero-01.jpg') no-repeat center/cover;
}

.sub-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sub-visual .container {
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.sub-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.sub-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}