/*
 * common.css — 전체 공통 스타일 (골드 럭셔리 테마)
 * =====================================================
 * 팀 전체가 공유하는 공통 CSS
 * 모든 페이지에서 이 파일을 불러다 씀
 *
 * 테마 컬러
 * --primary  : #1c1c1e  (거의 검정 — 메인 바탕/텍스트)
 * --gold     : #c9a84c  (골드 — 포인트 컬러)
 * --gold-light: #e8c96d (밝은 골드)
 * --gold-soft : #fdf8ee (연한 골드 배경)
 * --white    : #ffffff  (흰색)
 * --bg-soft  : #fafaf8  (아이보리 배경)
 *
 * 폰트
 * 본문  : Malgun Gothic / Apple SD Gothic Neo
 * 로고/제목: Georgia (세리프체, 고급감)
 *
 * 목차
 * 1. 폰트 & 변수
 * 2. 기본 초기화
 * 3. 공통 레이아웃
 * 4. Topbar
 * 5. Header Main
 * 6. 로고
 * 7. GNB (가로 주 메뉴)
 * 8. 드롭다운 패널
 * 9. 검색창 + 예약 버튼
 * 10. 모바일 헤더 / 서랍 메뉴
 * 11. 버튼
 * 12. 카드
 * 13. 폼 (입력창)
 * 14. 테이블
 * 15. 배지 / 태그
 * 16. 페이지네이션
 * 17. 알림 메시지
 * 18. 로딩 스피너
 * 19. 푸터
 * 20. 유틸리티 클래스
 * 21. 반응형
 */


/* =============================================
   1. 폰트 & CSS 변수
   ============================================= */

:root {
    --font-body        : "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
    --font-heading     : "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
    --font-display     : Georgia, "Times New Roman", serif;
    /* ── 메인 컬러 ── */
    --primary         : #1c1c1e;   /* 거의 검정 */
    --primary-hover   : #000000;

    /* ── 골드 컬러 ── */
    --gold            : #c9a84c;   /* 기본 골드 */
    --gold-light      : #e8c96d;   /* 밝은 골드 */
    --gold-soft       : #fdf8ee;   /* 연한 골드 배경 */
    --gold-border     : #e8d5a3;   /* 골드 경계선 */

    /* ── 배경 ── */
    --white           : #ffffff;
    --bg-soft         : #fafaf8;   /* 아이보리 배경 */
    --bg-card         : #ffffff;

    /* ── 텍스트 ── */
    --text-main       : #1c1c1e;
    --text-sub        : #6b6b6b;
    --text-muted      : #b0b0b0;

    /* ── 경계선 ── */
    --border          : #ebebeb;
    --border-dark     : #d0d0d0;

    /* ── 상태 컬러 ── */
    --success         : #2e7d32;
    --warning         : #f57f17;
    --danger          : #c62828;
    --info            : #1565c0;

    /* ── 그림자 ── */
    --shadow-sm       : 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md       : 0 6px 20px rgba(0,0,0,0.09);
    --shadow-lg       : 0 12px 36px rgba(0,0,0,0.12);
    --shadow-gold     : 0 4px 16px rgba(201,168,76,0.32);

    /* ── 모서리 ── */
    --radius-sm       : 6px;
    --radius-md       : 10px;
    --radius-lg       : 18px;
    --radius-full     : 9999px;

    /* ── 간격 ── */
    --spacing-xs      : 4px;
    --spacing-sm      : 8px;
    --spacing-md      : 16px;
    --spacing-lg      : 24px;
    --spacing-xl      : 40px;

    /* ── 네비게이션 바 높이 ── */
    --topbar-height   : 38px;
    --navbar-height   : 78px;
    --header-total    : 116px;   /* topbar + navbar */

    /* ── 전환 속도 ── */
    --transition      : all 0.2s ease;
    --transition-slow : all 0.3s ease;
}


/* =============================================
   2. 기본 초기화
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.68;
    letter-spacing: -0.012em;
    color: var(--text-main);
    background-color: var(--bg-soft);
    /* 고정 헤더 높이만큼 위에 여백 */
    padding-top: var(--header-total);
    -webkit-font-smoothing: antialiased;
}

/* 제목 — 세리프체로 고급감 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.03em;
    word-break: keep-all;
    text-wrap: balance;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.05rem; }
h2 { font-size: 1.62rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem;   }
h6 { font-size: 0.9rem; }

p,
li,
label,
button,
.btn,
input,
select,
textarea,
.page-header p,
.catalog-hero__subtitle,
.catalog-results-head h2 {
    word-break: keep-all;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: inherit;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

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

ul, ol { list-style: none; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--spacing-lg) 0;
}

/* 접근성용 숨김 텍스트 */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}


/* =============================================
   3. 공통 레이아웃
   ============================================= */

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

.section { padding: var(--spacing-xl) 0; }

.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--gold-border);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}
.page-header h1 { font-size: 1.5rem; margin-bottom: 4px; }
.page-header p  { color: var(--text-sub); font-size: 0.9rem; margin: 0; }

.catalog-hero {
    max-width: 920px;
    margin: 0 auto 32px;
    padding: 0 0 24px;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.catalog-hero__eyebrow,
.catalog-results-head__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.catalog-hero__title {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: clamp(1.9rem, 2.8vw, 2.3rem);
    line-height: 1.24;
    letter-spacing: -0.03em;
}

.catalog-hero__subtitle {
    margin: 0 auto;
    max-width: 700px;
    color: #7b6e56;
    font-size: 1rem;
    line-height: 1.72;
}

.catalog-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.catalog-results-head h2 {
    margin: 0;
    color: #2d261b;
    font-size: 1.46rem;
}

.catalog-results-head h2 span {
    color: var(--gold);
}

.catalog-search-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    color: var(--text-main);
}

.catalog-search-context__label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.catalog-search-context strong {
    color: var(--text-main);
}

/* =============================================
   본문 중앙 정렬 보강
   ============================================= */

main {
    display: block;
    width: 100%;
    padding: var(--spacing-xl) 0;
}

.layout-main {
    width: 100%;
}

.layout-main > .container,
main > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* 페이지 내부에서 자주 쓰는 영역들 폭 정리 */
.search-form,
.page-actions,
.form-actions,
.detail-card,
.service-form,
.data-table,
.card,
.list-wrap,
.form-wrap,
.table-wrap {
    width: 100%;
}

/* 검색폼이 너무 왼쪽에 붙어 보이지 않게 */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

/* 액션 버튼 영역 여백 */
.page-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

/* 카드/상세/폼 박스가 가운데 영역 안에서 자연스럽게 보이게 */
.detail-card,
.service-form,
.form-wrap,
.list-wrap,
.table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

/* 테이블 래핑 */
.table-wrap {
    overflow-x: auto;
}

/* 테이블 기본 폭 보강 */
.data-table {
    width: 100%;
    background: var(--white);
}


/* =============================================
   4. Topbar
   ============================================= */

.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    height: var(--topbar-height);
    background: var(--primary);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    letter-spacing: .01em;
}

.topbar__divider {
    opacity: .3;
}

/* 골드 세로 구분선 */
.topbar__sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(201,168,76,0.35);
    vertical-align: middle;
    margin: 0 4px;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__right a {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.topbar__right a:hover {
    color: var(--gold-light);
}

/* 로그아웃 버튼 — form 안의 button */
.topbar__logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-family: inherit;
    padding: 0;
    transition: var(--transition);
}
.topbar__logout-btn:hover {
    color: var(--gold-light);
}


/* =============================================
   5. Header Main
   ============================================= */

.site-header {
    /* 스크롤해도 상단 고정 */
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.header-main {
    position: absolute;
    top: var(--topbar-height);
    left: 0; right: 0;
    background: var(--white);
    /* 하단 골드 라인 강조 */
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 2px 0 0 rgba(201,168,76,0.18), var(--shadow-sm);
}

.header-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    min-height: var(--navbar-height);
    display: flex;         /* 가로 배치 */
    align-items: center;
    gap: 24px;
}


/* =============================================
   6. 로고
   ============================================= */

.brand-area { flex-shrink: 0; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}
.brand-logo:hover { text-decoration: none; }

/* 임시 텍스트 로고 박스 */
.brand-logo__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .06em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border: 1px solid rgba(201,168,76,0.3);
    flex-shrink: 0;
}

/* 실제 로고 이미지 크기 */
.brand-logo__img {
    height: 44px;
    width: auto;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-logo__text strong {
    font-size: 17px;
    color: var(--text-main);
    letter-spacing: .04em;
    font-family: Georgia, serif;
}
.brand-logo__text small {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
}


/* =============================================
   7. GNB — 가로 주 메뉴
   ============================================= */

.gnb {
    flex: 1;               /* 남은 공간 차지 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 핵심: 가로 배치 */
.gnb__menu {
    display: flex;          /* 가로 */
    flex-direction: row;    /* 명시적 가로 */
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gnb__item { position: relative; }

.gnb__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    text-decoration: none;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}
.gnb__link:hover {
    color: var(--primary);
    background: var(--gold-soft);
    text-decoration: none;
}

/* 현재 페이지 강조 */
.gnb__link.active {
    color: var(--primary);
    font-weight: 700;
}

/* 골드 밑줄 호버 효과 */
.gnb__item {
    position: relative;
}
.gnb__item::after {
    content: '';
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    width: 0;
    transition: width .22s ease;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.gnb__item:hover::after { width: 50%; }

.gnb__arrow {
    font-size: 9px;
    opacity: .5;
    margin-left: 2px;
}


/* =============================================
   8. 드롭다운 패널
   ============================================= */

/* 드롭다운 기본 숨김 */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 480px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--gold-border);
    border-top: 2px solid var(--gold);  /* 골드 상단 라인 */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    /* 기본: 숨김 */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: var(--transition-slow);
    z-index: 200;
}

/* 작은 드롭다운 (항목 1그룹) */
.dropdown-panel--small {
    min-width: 200px;
    grid-template-columns: 1fr;
    left: 0;
    transform: translateY(8px);
}

.dropdown-panel--medium {
    min-width: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 호버 시 드롭다운 표시 */
.gnb__item:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.gnb__item:hover .dropdown-panel--small {
    transform: translateY(0);
}

/* 드롭다운 그룹 제목 */
.dropdown-panel__group h4 {
    font-family: "Malgun Gothic", sans-serif;
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gold-border);
}

/* 드롭다운 항목 */
.dropdown-panel__group a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.dropdown-panel__group a:hover {
    background: var(--gold-soft);
    color: var(--primary);
    padding-left: 14px;  /* 호버 시 살짝 오른쪽으로 */
    text-decoration: none;
}


/* =============================================
   9. 검색창 + 예약 버튼
   ============================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 검색창 */
.quick-search {
    display: flex;
    align-items: center;
    width: 250px;
    height: 44px;
    padding: 3px;
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    transition: var(--transition);
}
.quick-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
    background: var(--white);
}

.quick-search__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    background: transparent;
    font-size: 12.5px;
    color: var(--text-main);
    font-family: inherit;
}
.quick-search__input::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.quick-search__button {
    align-self: stretch;
    min-width: 62px;
    padding: 0 18px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    letter-spacing: .02em;
}
.quick-search__button:hover { background: #333; }

/* 예약하기 버튼 — 골드 */
.reserve-button {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(201,168,76,0.5);
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: .02em;
}
.reserve-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201,168,76,0.42);
    color: var(--primary);
    text-decoration: none;
}


/* =============================================
   10. 모바일 헤더 / 서랍 메뉴
   ============================================= */

/* 데스크탑에서 모바일 헤더 숨김 */
.mobile-header { display: none; }

.mobile-header__logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    font-family: Georgia, serif;
    text-decoration: none;
}

.mobile-menu-button,
.mobile-drawer__close {
    border: none;
    background: var(--white);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
    transition: var(--transition);
}
.mobile-menu-button:hover,
.mobile-drawer__close:hover {
    background: var(--gold-soft);
}

/* 서랍 메뉴 */
.mobile-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 1200;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transition: right .3s ease;
    padding: 20px;
    overflow-y: auto;
}
.mobile-drawer.is-open { right: 0; }

.mobile-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold);
}
.mobile-drawer__header strong {
    font-size: 16px;
    font-family: Georgia, serif;
    color: var(--text-main);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    color: var(--text-sub);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}
.mobile-nav a:hover {
    background: var(--gold-soft);
    color: var(--primary);
    border-color: var(--gold-border);
}

/* 모바일 예약 버튼 */
.mobile-reserve-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    text-align: center;
    border: none !important;
    box-shadow: var(--shadow-gold);
    margin-top: 8px;
}

/* 배경 어두운 오버레이 */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: var(--transition-slow);
}
.mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}


/* =============================================
   11. 버튼
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* 메인 버튼 — 검정 */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
}

/* 골드 버튼 */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    box-shadow: 0 8px 22px rgba(201,168,76,0.42);
    color: var(--primary);
}

/* 외곽선 버튼 */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-dark);
}
.btn-outline:hover { background: var(--bg-soft); }

/* 외곽선 골드 버튼 */
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-soft); }

/* 위험 버튼 */
.btn-danger {
    background: #c62828;
    color: var(--white);
    border-color: #c62828;
}
.btn-danger:hover { filter: brightness(0.9); }

/* 크기 */
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-lg { padding: 12px 30px; font-size: 15px; }


/* =============================================
   12. 카드
   ============================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

/* 호버 효과 */
.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold-border);
}

.card-body   { padding: var(--spacing-lg); }
.card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-sub);
}

/* 골드 상단 강조 카드 */
.card-gold {
    border-top: 3px solid var(--gold);
}

/* 프로필 카드 */
.profile-card { text-align: center; padding: var(--spacing-lg); }
.profile-card .avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--gold-border);
}
.profile-card .name   { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.profile-card .role   { font-size: 0.8rem; color: var(--gold); font-weight: 600; }


/* =============================================
   13. 폼
   ============================================= */

.form-group { margin-bottom: var(--spacing-md); }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: var(--white);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
}
.form-control:disabled {
    background: var(--bg-soft);
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    appearance: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { display: block; font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-text        { font-size: 12px; color: var(--text-sub); margin-top: 4px; }


/* =============================================
   14. 테이블
   ============================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
}

.table thead th {
    padding: 12px 16px;
    background: var(--primary);
    color: var(--gold-light);  /* 골드 텍스트 */
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--gold);
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.table tbody tr:hover { background: var(--gold-soft); }
.table tbody tr:last-child td { border-bottom: none; }

.table-card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}


/* =============================================
   15. 배지 / 태그
   ============================================= */

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: .02em;
}

/* 예약 상태 */
.badge-reserved  { background: #e3f2fd; color: #1565c0; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }
.badge-cancelled { background: #fce4ec; color: #c62828; }

/* 권한 */
.badge-admin    { background: var(--primary); color: var(--gold-light); }
.badge-designer { background: var(--gold-soft); color: #7a5c1e; }
.badge-user     { background: var(--bg-soft); color: var(--text-sub); }

/* 골드 강조 */
.badge-gold     { background: var(--gold-soft); color: #7a5c1e; border: 1px solid var(--gold-border); }

/* 공지 타입 */
.badge-notice   { background: #fff3e0; color: #e65100; }
.badge-qna      { background: #e3f2fd; color: #1565c0; }


/* =============================================
   16. 페이지네이션
   ============================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: var(--spacing-xl) 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    background: var(--white);
    transition: var(--transition);
    text-decoration: none;
}
.page-item .page-link:hover {
    background: var(--gold-soft);
    color: var(--primary);
    border-color: var(--gold-border);
    text-decoration: none;
}
.page-item.active .page-link {
    background: var(--primary);
    color: var(--gold-light);
    border-color: var(--primary);
}
.page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}


/* =============================================
   17. 알림 메시지
   ============================================= */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.alert-warning { background: #fff8e1; color: #f57f17; border-color: #ffe082; }
.alert-danger  { background: #fce4ec; color: #c62828; border-color: #ef9a9a; }
.alert-info    { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.alert-gold    { background: var(--gold-soft); color: #7a5c1e; border-color: var(--gold-border); }


/* =============================================
   18. 로딩 스피너
   ============================================= */

.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--spacing-xl);
    color: var(--text-sub);
    font-size: 14px;
}


/* =============================================
   19. 푸터
   ============================================= */

.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    margin-top: var(--spacing-xl);
}

/* 골드 상단 강조 라인 */
.footer__gold-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 28px 28px;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 32px;
}

/* 브랜드 영역 */
.footer-brand { display: flex; gap: 16px; }

.footer-brand__logo {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--gold-light);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(201,168,76,0.3);
}

/* 실제 로고 이미지 */
.footer-brand__img {
    height: 52px;
    width: auto;
}

.footer-brand__text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    letter-spacing: .04em;
    color: var(--white);
}
.footer-brand__text p {
    margin: 0;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.75;
}

/* 링크 그룹 */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-links__group h4 {
    font-family: inherit;
    color: var(--gold-light);
    font-size: 11px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-links__group a {
    display: block;
    padding: 5px 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links__group a:hover {
    color: var(--gold-light);
    padding-left: 4px;
    text-decoration: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 28px 24px;
    text-align: center;
    color: rgba(255,255,255,0.38);
    font-size: 12px;
    line-height: 1.9;
}


/* =============================================
   20. 유틸리티 클래스
   ============================================= */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary { color: var(--primary); }
.text-gold    { color: var(--gold); }
.text-sub     { color: var(--text-sub); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

.text-sm  { font-size: 12px; }
.text-md  { font-size: 14px; }
.text-lg  { font-size: 17px; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 600; }
.fw-bold   { font-weight: 700; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm          { gap: var(--spacing-sm); }
.gap-md          { gap: var(--spacing-md); }

/* 별점 */
.star-filled { color: var(--gold); }
.star-empty  { color: var(--border-dark); }

/* 골드 섹션 제목 */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    font-family: Georgia, serif;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-md);
    color: var(--gold-border);
}


/* =============================================
   21. 반응형
   ============================================= */

/* 태블릿 이하 */
@media (max-width: 1024px) {

    /* 데스크탑 헤더 숨김 */
    .topbar,
    .header-main { display: none; }

    /* 모바일 헤더 표시 */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: var(--white);
        border-bottom: 2px solid var(--gold);
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1000;
        height: 60px;
        box-shadow: var(--shadow-sm);
    }

    /* 모바일 상단 여백 조정 */
    body { padding-top: 60px; }

    /* 푸터 1컬럼 */
    .footer__inner { grid-template-columns: 1fr; }
    .footer-links  { grid-template-columns: 1fr 1fr; }
}

/* 모바일 */
@media (max-width: 768px) {

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .container { padding: 0 var(--spacing-md); }
    .section   { padding: var(--spacing-lg) 0; }

    .card-body { padding: var(--spacing-md); }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer__inner  { padding: 32px 20px 20px; }
    .footer-links   { grid-template-columns: 1fr; }
    .footer__bottom { padding: 14px 20px 20px; }
}

/* =========================================
   SIMPLE HEADER (로그인/회원가입 전용)
   구조만 최소 유지, 스타일은 JS에서 처리
========================================= */

.simple-page {
    padding-top: 80px;
}
