* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #222D11;
    --secondary: #666;
    --accent: #222D11;
    --light: #ffffff;
    --light-bg: #fafafa;
    --border: #e5e5e5;
    --dark: #111;
    --text: #333;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* 스크롤바 숨기기 */
* {
    -ms-overflow-style: none;  /* IE, Edge */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    .calendar-day,
    .time-slot,
    .slider-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 인디케이터는 작은 크기 유지 */
    .banner-indicator,
    .portfolio-indicators .indicator {
        min-height: auto;
        min-width: auto;
    }
}

/* 헤더 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
    z-index: 1000;
    transition: all 0.3s;
}

header.hero-section {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    box-shadow: none;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

nav {
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    font-family: 'Segoe UI', sans-serif;
    transition: color 0.3s;
}

header.hero-section .logo {
    color: white;
}

.logo span {
    color: var(--primary);
    font-weight: 300;
    transition: color 0.3s;
}

header.hero-section .logo span {
    color: white;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

header.hero-section .nav-links a {
    color: white;
}

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

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
    pointer-events: none;
}

header.hero-section .mobile-menu-btn span {
    background: white;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 네비게이션 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 65%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 70px 30px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* 모바일 네비게이션 닫기 버튼 */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
    line-height: 1;
}

.mobile-nav-close:active {
    color: var(--primary);
    transform: rotate(90deg);
}

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

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

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 400;
    display: block;
    padding: 14px 0;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-bottom: 1px solid var(--border);
}

.mobile-nav ul li:last-child a {
    border-bottom: none;
}

.mobile-nav ul li a:active {
    color: var(--primary);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    visibility: hidden;
}

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

/* 히어로 섹션 */
.hero {
    margin-top: 0;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    pointer-events: none;
}

.hero-content .btn,
.hero-content a {
    pointer-events: auto;
}

.hero h1 {
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
    color: white;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 배너 슬라이더 */
.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slider.no-banners {
    display: none;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 800px;
    width: 90%;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.banner-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.banner-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-link {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 배너 네비게이션 버튼 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.banner-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 배너 인디케이터 (포트폴리오 인디케이터와 동일 스타일) */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.banner-indicator.active {
    background: var(--light);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:active {
    background: #1a2108;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 45, 17, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 섹션 공통 스타일 */
section {
    padding: 100px 40px;
    max-width: 100vw;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-title p {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 300;
}

/* 스튜디오 소개 */
.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.studio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.studio-card:hover,
.studio-card:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.studio-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.studio-image.horizon {
    background-image: url('https://images.unsplash.com/photo-1606761568499-6d2451b23c66?w=800&h=600&fit=crop');
}

.studio-image.kitchen {
    background-image: url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=800&h=600&fit=crop');
}

.studio-image.antique {
    background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=800&h=600&fit=crop');
}

.studio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.studio-content {
    padding: 30px;
}

.studio-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 400;
}

.studio-content p {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.studio-price {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 8px;
}

.studio-price-note {
    font-size: 13px;
    color: var(--secondary);
}

/* 갤러리 그리드 */
#gallery {
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-item:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1598899134739-24c46f58b8c0?w=600&h=600&fit=crop');
}

.gallery-item:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1536924940846-227afb31e2a5?w=600&h=600&fit=crop');
}

.gallery-item:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1556912173-46c336c7fd55?w=600&h=600&fit=crop');
}

.gallery-item:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&h=600&fit=crop');
}

.gallery-item:nth-child(5) {
    background-image: url('https://images.unsplash.com/photo-1460518451285-97b6aa326961?w=600&h=600&fit=crop');
}

.gallery-item:nth-child(6) {
    background-image: url('https://images.unsplash.com/photo-1558036117-15d82a90b9b1?w=600&h=600&fit=crop');
}

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

.gallery-item::after {
    content: '클릭하여 확대';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

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

/* 슬라이더 */
.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1574634534894-89d7576c8259?w=1200&h=800&fit=crop');
}

.slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200&h=800&fit=crop');
}

.slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1598899134739-24c46f58b8c0?w=1200&h=800&fit=crop');
}

.slide:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1556912173-46c336c7fd55?w=1200&h=800&fit=crop');
}

.slide:nth-child(5) {
    background-image: url('https://images.unsplash.com/photo-1536924940846-227afb31e2a5?w=1200&h=800&fit=crop');
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-btn {
    background: white;
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

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

.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 0;
}

/* 캘린더 예약 섹션 */
#booking {
    background: var(--light-bg);
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: none;
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.booking-info {
    background: var(--light-bg);
    border-left: 3px solid var(--primary);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.booking-info h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 400;
}

.booking-info ul {
    list-style: none;
    padding-left: 0;
}

.booking-info li {
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
}

.booking-info li::before {
    content: '·';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.calendar-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light);
}

.calendar-header h3 {
    font-size: 18px;
    color: var(--primary);
    font-weight: 400;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: white;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    color: var(--primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.calendar-nav button:hover,
.calendar-nav button:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #9ca3af;
    font-size: 13px;
    padding: 8px 4px;
    word-break: keep-all;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    min-height: 0; /* 그리드 아이템 overflow 방지 */
}

.calendar-day {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
    position: relative;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    min-height: 0; /* aspect-ratio와 min-height 충돌 방지 */
    box-sizing: border-box;
}

.calendar-day:not(.empty):not(.disabled):hover,
.calendar-day:not(.empty):not(.disabled):active {
    background: var(--light-bg);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 45, 17, 0.2);
    transform: scale(1.05);
}

.calendar-day.has-booking {
    background: rgba(34, 45, 17, 0.05);
    color: var(--primary);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group select,
.form-group input {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.time-slot {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.time-slot:hover,
.time-slot:active {
    border-color: var(--primary);
    background: rgba(34, 45, 17, 0.02);
}

.time-slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot.booked {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
    opacity: 0.6;
}

.time-slot.booked:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

/* 예약 항목에 추가된 시간 (삭제 가능) */
.time-slot.pending-booked {
    background: #fff7ed;
    color: #f59e0b;
    cursor: not-allowed;
    border: 2px solid #fed7aa;
    opacity: 0.8;
    position: relative;
}

.time-slot.pending-booked:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.time-slot.pending-booked::after {
    content: '📋';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.booking-summary {
    background: var(--light-bg);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid var(--border);
}

.booking-summary h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.booking-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--border);
}

.booking-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.booking-item-remove:hover,
.booking-item-remove:active {
    background: #dc2626;
    color: white;
}

.booking-item-info {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.booking-item-price {
    font-size: 16px;
    font-weight: 400;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 500;
    font-size: 20px;
    color: var(--primary);
    margin-top: 12px;
    padding-top: 20px;
    border-top: 2px solid var(--primary);
}

/* 예약자 정보 섹션 */
.form-section {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.form-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--primary);
}

.form-section small {
    color: var(--secondary);
    display: block;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.btn-add-booking {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

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

.btn-add-booking:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.btn-booking {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-booking:hover,
.btn-booking:active {
    background: #1a2108;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 45, 17, 0.2);
}

.btn-booking:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.modal-close:hover,
.modal-close:active {
    color: var(--primary);
}

.modal h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 300;
}

.modal p {
    color: var(--secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* 오시는길 */
#location {
    padding: 100px 20px;
    background: var(--light-bg);
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 60px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: var(--primary);
    font-weight: 600;
}

.btn-copy-address {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-copy-address:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 45, 17, 0.3);
}

.map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* 지도 위치 카드 */
.map-location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 30px;
    text-align: center;
}

.map-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(34, 45, 17, 0.2);
}

.map-pin-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.map-info {
    margin-bottom: 30px;
}

.map-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.map-address {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
}

.map-address-sub {
    font-size: 14px;
    color: #666;
}

.map-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 130px;
}

.map-open-btn.kakao-btn {
    background: #FEE500;
    color: #191919;
}

.map-open-btn.kakao-btn:hover {
    background: #E6CF00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}

.map-open-btn.naver-btn {
    background: #03C75A;
    color: white;
}

.map-open-btn.naver-btn:hover {
    background: #02B351;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.4);
}

.map-open-btn.google-btn {
    background: #4285F4;
    color: white;
}

.map-open-btn.google-btn:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

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

.footer-content {
    max-width: 100vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* 플로팅 메뉴 */
.floating-menu {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(34, 45, 17, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(34, 45, 17, 0.4);
    background: #1a2108;
}

/* 반응형 디자인 */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    nav {
        padding: 20px 30px;
    }

    section {
        padding: 80px 30px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .studios-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

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

    .booking-container {
        padding: 40px;
    }

    .floating-menu {
        right: 30px;
    }
}

/* 모바일 가로 / 태블릿 세로 (768px 이하) */
@media (max-width: 768px) {
    /* 네비게이션 */
    nav {
        padding: 15px 20px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav,
    .mobile-overlay {
        display: block;
    }

    /* 히어로 섹션 */
    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 배너 슬라이드 모바일 */
    .banner-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* 모바일에서는 화살표 숨기고 스와이프 + 인디케이터로 네비게이션 */
    .banner-nav {
        display: none;
    }

    .banner-indicators {
        bottom: 16px;
        gap: 6px;
    }

    .banner-indicator {
        width: 6px;
        height: 6px;
    }

    .banner-content {
        bottom: 12%;
    }

    .banner-link {
        padding: 10px 24px;
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        padding: 14px 32px;
    }

    /* 섹션 공통 */
    section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* 스튜디오 그리드 */
    .studios-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .studio-image {
        height: 240px;
    }

    .studio-content {
        padding: 24px;
    }

    .studio-content h3 {
        font-size: 20px;
    }

    .studio-price {
        font-size: 24px;
    }

    /* 갤러리 */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gallery-item {
        height: 250px;
    }

    /* 슬라이더 */
    .slide {
        height: 400px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* 예약 섹션 */
    .booking-container {
        padding: 20px 15px;
        margin: 0 10px;
        border-radius: 8px;
    }

    .booking-info {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 6px;
    }

    .booking-info h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .booking-info li {
        font-size: 12px;
        padding: 6px 0;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calendar-section {
        padding: 16px;
        margin: 0;
    }

    .calendar {
        padding: 12px;
    }

    .calendar-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .calendar-header h3 {
        font-size: 15px;
    }

    .calendar-nav {
        gap: 8px;
    }

    .calendar-nav button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .calendar-weekdays {
        gap: 2px;
    }

    .calendar-weekdays div {
        font-size: 11px;
        padding: 6px 2px;
    }

    .calendar-days {
        gap: 3px;
    }

    .calendar-day {
        font-size: 12px;
        /* aspect-ratio는 유지하고 min-height 제거 */
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .time-slot {
        padding: 10px 6px;
        font-size: 11px;
    }

    .booking-summary {
        padding: 20px;
    }

    .booking-summary h4 {
        font-size: 14px;
    }

    .booking-item {
        padding: 14px;
    }

    .booking-item-info {
        font-size: 12px;
    }

    .booking-item-price {
        font-size: 14px;
    }

    .summary-row {
        font-size: 13px;
    }

    .summary-row:last-child {
        font-size: 18px;
    }

    /* 모달 */
    .modal-content {
        padding: 40px 24px;
        width: 95%;
    }

    .modal h2 {
        font-size: 24px;
    }

    .modal p {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* 오시는길 */
    #location {
        padding: 60px 20px;
    }

    .location-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p {
        font-size: 13px;
    }

    /* 지도 위치 카드 모바일 */
    .map-location-card {
        padding: 40px 20px;
    }

    .map-icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .map-pin-icon {
        width: 32px;
        height: 32px;
    }

    .map-info h4 {
        font-size: 18px;
    }

    .map-address {
        font-size: 14px;
    }

    .map-address-sub {
        font-size: 13px;
    }

    .map-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .map-open-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* 푸터 */
    footer {
        padding: 50px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }

    /* 플로팅 메뉴 */
    .floating-menu {
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
}

/* 모바일 세로 (480px 이하) */
@media (max-width: 480px) {
    /* 네비게이션 */
    nav {
        padding: 12px 16px;
    }

    .logo {
        font-size: 18px;
    }

    /* 히어로 */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* 섹션 */
    section {
        padding: 50px 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    /* 스튜디오 */
    .studio-image {
        height: 200px;
    }

    .studio-content {
        padding: 20px;
    }

    .studio-content h3 {
        font-size: 18px;
    }

    .studio-content p {
        font-size: 13px;
    }

    .studio-price {
        font-size: 20px;
    }

    .studio-price-note {
        font-size: 12px;
    }

    /* 갤러리 */
    .gallery-item {
        height: 200px;
    }

    /* 슬라이더 */
    .slide {
        height: 300px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .slider-dots {
        gap: 8px;
        margin-top: 20px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 24px;
    }

    /* 예약 섹션 */
    .booking-container {
        padding: 16px 12px;
        margin: 0 5px;
    }

    .booking-info {
        padding: 12px;
        margin-bottom: 20px;
    }

    .booking-info h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .booking-info li {
        font-size: 11px;
        padding: 5px 0;
    }

    .calendar-section {
        padding: 12px;
    }

    .calendar {
        padding: 10px;
    }

    .calendar-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .calendar-header h3 {
        font-size: 14px;
    }

    .calendar-nav {
        gap: 6px;
    }

    .calendar-nav button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .calendar-weekdays {
        gap: 2px;
        margin-bottom: 6px;
    }

    .calendar-weekdays div {
        font-size: 11px;
        padding: 6px 2px;
    }

    .calendar-days {
        gap: 2px;
    }

    .calendar-day {
        font-size: 11px;
        border-radius: 6px;
        /* aspect-ratio 유지, min-height 제거 */
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group select,
    .form-group input {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .time-slot {
        padding: 14px 8px;
        font-size: 12px;
        min-height: 44px;
    }

    .booking-summary {
        padding: 16px;
    }

    .booking-summary h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .booking-item {
        padding: 12px;
    }

    .booking-item-remove {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .booking-item-info {
        font-size: 11px;
    }

    .booking-item-price {
        font-size: 13px;
    }

    .summary-row {
        font-size: 12px;
        padding: 10px 0;
    }

    .summary-row:last-child {
        font-size: 16px;
    }

    .btn-add-booking,
    .btn-booking {
        padding: 14px;
        font-size: 12px;
    }

    /* 모달 */
    .modal-content {
        padding: 32px 20px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .modal h2 {
        font-size: 22px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 13px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    /* 푸터 */
    footer {
        padding: 40px 16px 16px;
    }

    .footer-section h3 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }

    /* 플로팅 메뉴 */
    .floating-menu {
        right: 12px;
        gap: 8px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 9px;
    }
}

/* 아주 작은 화면 (360px 이하) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .booking-container {
        padding: 12px 8px;
        margin: 0;
    }

    .calendar-section {
        padding: 10px;
    }

    .calendar {
        padding: 8px;
    }

    .calendar-header h3 {
        font-size: 13px;
    }

    .calendar-nav button {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .calendar-weekdays div {
        font-size: 9px;
        padding: 3px 0;
    }

    .calendar-day {
        font-size: 9px;
        min-height: 36px;
        padding: 4px;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .time-slot {
        padding: 14px 10px;
        font-size: 12px;
        min-height: 44px;
    }

    .form-group select,
    .form-group input {
        padding: 10px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* 가로 모드 최적화 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    section {
        padding: 50px 20px;
    }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .studio-image,
    .gallery-item,
    .slide {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ==================== 스튜디오 갤러리 버튼 ==================== */
.studio-gallery-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.studio-gallery-btn:hover,
.studio-gallery-btn:active {
    background: #1a2108;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 45, 17, 0.2);
}

/* ==================== 스튜디오 갤러리 모달 ==================== */
.studio-gallery-modal-content {
    max-width: 1200px;
    padding: 40px;
}

.studio-gallery-modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary);
}

/* 갤러리 슬라이더 */
.studio-gallery-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.studio-gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.studio-gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.studio-gallery-slide.active {
    display: flex;
}

.studio-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 네비게이션 버튼 */
.studio-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.studio-gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.studio-gallery-prev {
    left: 20px;
}

.studio-gallery-next {
    right: 20px;
}

/* 점 네비게이션 */
.studio-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 0;
}

.studio-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.studio-gallery-dot:hover {
    background: var(--secondary);
}

.studio-gallery-dot.active {
    background: var(--primary);
    width: 14px;
    height: 14px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .studio-gallery-modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .studio-gallery-modal-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .studio-gallery-slider {
        height: 400px;
    }

    /* 모바일에서는 화살표 숨기고 스와이프로 네비게이션 */
    .studio-gallery-nav {
        display: none;
    }

    .studio-gallery-dots {
        gap: 8px;
    }

    .studio-gallery-dot {
        width: 10px;
        height: 10px;
    }

    .studio-gallery-dot.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .studio-gallery-slider {
        height: 300px;
    }

    .studio-gallery-modal-content {
        padding: 15px;
    }

    .studio-gallery-modal-content h2 {
        font-size: 18px;
    }
}

/* ==================== 알림 모달 ==================== */
.alert-modal-content {
    max-width: 420px;
    text-align: center;
    padding: 32px 28px;
}

.alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.alert-icon.success {
    background: #e8f5e9;
    color: #4caf50;
}

.alert-icon.success::before {
    content: '✓';
}

.alert-icon.error {
    background: #ffebee;
    color: #f44336;
}

.alert-icon.error::before {
    content: '✕';
}

.alert-icon.warning {
    background: #fff3e0;
    color: #ff9800;
}

.alert-icon.warning::before {
    content: '⚠';
}

.alert-icon.info {
    background: #e3f2fd;
    color: #2196f3;
}

.alert-icon.info::before {
    content: 'ℹ';
}

.alert-modal-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.alert-modal-content p {
    color: var(--secondary);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.alert-btn {
    min-width: 100px;
    padding: 10px 28px;
    font-size: 14px;
}

/* ==================== 확인 대화상자 모달 ==================== */
.confirm-modal-content {
    max-width: 380px;
    padding: 32px 28px;
    text-align: center;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fff4e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.confirm-modal-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.confirm-modal-content p {
    color: var(--secondary);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    min-width: 100px;
    padding: 10px 24px;
    font-size: 14px;
}

.confirm-buttons .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.confirm-buttons .btn-secondary:hover {
    background: #e8e8e8;
}

/* ==================== 토스트 알림 ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid var(--primary);
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-out forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.success .toast-icon {
    background: #4caf50;
    color: white;
}

.toast.success .toast-icon::before {
    content: '✓';
}

.toast.error {
    border-left-color: #f44336;
}

.toast.error .toast-icon {
    background: #f44336;
    color: white;
}

.toast.error .toast-icon::before {
    content: '✕';
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.warning .toast-icon {
    background: #ff9800;
    color: white;
}

.toast.warning .toast-icon::before {
    content: '⚠';
}

.toast.info {
    border-left-color: #2196f3;
}

.toast.info .toast-icon {
    background: #2196f3;
    color: white;
}

.toast.info .toast-icon::before {
    content: 'ℹ';
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--light-bg);
    color: var(--primary);
}

/* 모바일 토스트 */
@media (max-width: 768px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .alert-modal-content {
        padding: 24px 18px;
        max-width: 90%;
    }

    .alert-modal-content h3 {
        font-size: 18px;
    }

    .alert-modal-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .alert-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .alert-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ==================== 이용수칙 아코디언 ==================== */

.rules-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.rules-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

/* FAQ 아코디언 스타일 */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 32px;
}

.faq-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    padding-left: 4px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

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

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.8;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 16px;
    margin-top: 0;
}

.faq-answer-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* 이용수칙 카드 그리드 (레거시 호환) */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.rules-loading,
.rules-empty {
    text-align: center;
    color: var(--secondary);
    padding: 40px 20px;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* 이용수칙 카드 */
.rule-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.rule-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2d2d2d 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rule-card-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.rule-card-content {
    padding: 0;
}

.rule-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.rule-item-content {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .rules-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .rules-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* FAQ 아코디언 모바일 */
    .faq-accordion {
        padding: 0 16px;
    }
    
    .faq-category {
        margin-bottom: 24px;
    }
    
    .faq-category-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .faq-question {
        padding: 14px 16px;
    }
    
    .faq-question-text {
        font-size: 14px;
    }
    
    .faq-answer-content {
        padding: 0 16px 16px 16px;
        font-size: 13px;
        padding-top: 14px;
    }
    
    /* 레거시 카드 그리드 모바일 */
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rule-card-header {
        padding: 16px 20px;
    }
    
    .rule-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .rule-card-title {
        font-size: 16px;
    }
    
    .rule-item {
        padding: 14px 20px;
    }
    
    .rule-item-title {
        font-size: 14px;
    }
    
    .rule-item-content {
        font-size: 13px;
    }
}

/* ===========================================
   포트폴리오 섹션
   =========================================== */
#portfolios {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 필터 버튼 */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--secondary);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* 포트폴리오 그리드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 포트폴리오 카드 */
.portfolio-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 포트폴리오 슬라이더 */
.portfolio-slider {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-slides {
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 슬라이더 네비게이션 */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-card:hover .portfolio-nav {
    opacity: 1;
}

.portfolio-nav.prev {
    left: 10px;
}

.portfolio-nav.next {
    right: 10px;
}

.portfolio-nav:hover {
    background: var(--light);
}

/* 슬라이더 인디케이터 */
.portfolio-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

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

.portfolio-indicators .indicator.active {
    background: var(--light);
}

/* 썸네일 */
.portfolio-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-no-image {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

/* 포트폴리오 콘텐츠 */
.portfolio-content {
    padding: 20px;
}

.portfolio-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.portfolio-summary {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-detail-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.portfolio-detail-btn:hover {
    background: var(--dark);
}

/* 더보기 버튼 */
.portfolio-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--primary);
    color: var(--light);
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    #portfolios {
        padding: 40px 4%;
    }
    
    .portfolio-filter {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 모바일에서는 화살표 숨기고 스와이프로 네비게이션 */
    .portfolio-nav {
        display: none;
    }
    
    .portfolio-content {
        padding: 16px;
    }
    
    .portfolio-title {
        font-size: 16px;
    }
    
    .portfolio-summary {
        font-size: 13px;
    }
    
    .btn-more {
        padding: 12px 32px;
        font-size: 14px;
    }
}
