/* ============================================================
 * skin/board/hive_event/style.css
 * 이벤트 예약 게시판 스킨 — 공통 스타일 (list / view / write)
 * Module: hive_event_reservation / Version: 1.0.0
 * ============================================================ */

.hev-wrap { max-width:1280px; margin:24px auto; padding:0 16px; font-family:'Noto Sans KR','Pretendard',sans-serif; color:#222; }

/* 슈퍼관리자 도구바 */
.hev-admin-bar { display:flex; gap:8px; padding:10px 14px; background:#fff8e8; border:1px solid #f4d27a; border-radius:8px; margin-bottom:16px; align-items:center; font-size:13px; flex-wrap:wrap; }
.hev-admin-label { color:#5a4a20; font-weight:600; margin-right:6px; }
.hev-toggle { color:#666; }
.hev-toggle a { color:#999; text-decoration:none; padding:4px 10px; border-radius:4px; border:1px solid transparent; }
.hev-toggle a.on { background:#3a3a3a; color:#fff; }
.hev-admin-btn { padding:6px 12px; background:#9b8056; color:#fff; border:0; border-radius:4px; cursor:pointer; font-size:12px; text-decoration:none; }
.hev-admin-btn.outline { background:#fff; color:#9b8056; border:1px solid #9b8056; }
.hev-admin-btn.danger { background:#dc2626; color:#fff; }
.hev-admin-bar .hev-admin-btn:last-of-type { margin-left:auto; }

/* 카테고리 탭 (밑줄 스타일) */
.hev-cats {
    display:flex; gap:0; margin-bottom:18px;
    border-bottom:1px solid #e5e7eb; overflow-x:auto;
}
.hev-cat {
    padding:12px 18px; color:#888; text-decoration:none;
    font-size:14px; border-bottom:2px solid transparent; white-space:nowrap;
    transition:color .15s, border-color .15s;
}
.hev-cat:hover { color:#1f2937; }
.hev-cat.active {
    color:var(--hev-main, #9b8056); font-weight:700;
    border-bottom-color:var(--hev-main, #9b8056);
}
.hev-cat .cnt { color:#aaa; font-size:12px; margin-left:4px; }
.hev-cat.active .cnt { color:var(--hev-main, #9b8056); }

/* 툴바 */
.hev-toolbar {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:16px; flex-wrap:wrap; gap:12px;
}
.hev-title { font-size:22px; font-weight:700; margin:0; }
.hev-title small { color:#888; font-weight:400; font-size:14px; margin-left:6px; }
.hev-toolbar-right { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* 검색 + 정렬 */
.hev-search { display:flex; align-items:center; gap:6px; }
.hev-search select,
.hev-sort {
    height:36px; padding:0 28px 0 10px; border:1px solid #e5e7eb;
    border-radius:6px; font-size:13px; background:#fff; color:#333;
    appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/></svg>");
    background-repeat:no-repeat; background-position:right 10px center;
    font-family:inherit; cursor:pointer;
}
.hev-search input[type="text"] {
    height:36px; padding:0 12px; border:1px solid #e5e7eb; border-radius:6px;
    font-size:13px; min-width:180px;
}
.hev-search input[type="text"]:focus {
    outline:none; border-color:var(--hev-main, #9b8056);
    box-shadow:0 0 0 3px rgba(155,128,86,.12);
}
.hev-search button {
    height:36px; padding:0 16px;
    background:var(--hev-main, #9b8056); color:#fff;
    border:0; border-radius:6px; font-size:13px; cursor:pointer; font-weight:500;
}
.hev-search button:hover { filter:brightness(.95); }

/* 정원바 */
.hev-cap { background:#f3f3f3; height:6px; border-radius:3px; margin:8px 0 4px; position:relative; overflow:hidden; }
.hev-cap-bar { background:linear-gradient(90deg,#3aa395,#2d8a7e); height:100%; transition:width .3s; }
.hev-cap small { display:block; margin-top:4px; font-size:11px; color:#888; }

.hev-dday { position:absolute; top:8px; left:8px; padding:3px 8px; background:#dc2626; color:#fff; border-radius:4px; font-size:11px; font-weight:700; }

/* ============ 리스트형 (기본) ============ */
.hev-list { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.hev-row { display:flex; padding:18px 20px; gap:18px; align-items:center; border-bottom:1px solid #f0f0f0; }
.hev-row:last-child { border-bottom:0; }
.hev-row-thumb { width:120px; height:120px; flex-shrink:0; background:#f3eee5; background-size:cover; background-position:center; border-radius:10px; position:relative; display:block; }
.hev-row-body { flex:1; min-width:0; }
.hev-row-meta { display:flex; gap:8px; font-size:11px; color:#999; margin-bottom:6px; flex-wrap:wrap; align-items:center; }
.hev-row-cat { padding:2px 8px; background:#f3eee5; color:#9b8056; border-radius:3px; font-weight:500; }
.hev-row-period { color:#666; }
.hev-row-title { display:block; font-weight:600; font-size:16px; color:#222; text-decoration:none; margin-bottom:6px; }
.hev-row-title:hover { color:#9b8056; }
.hev-row-note { color:#666; font-size:13px; line-height:1.5; }
.hev-row-right { text-align:right; flex-shrink:0; min-width:140px; }
.hev-row-price-old { font-size:12px; color:#aaa; text-decoration:line-through; }
.hev-row-price { font-size:20px; font-weight:700; color:#222; margin-bottom:8px; }
.hev-row-actions { display:flex; gap:6px; justify-content:flex-end; }

/* ============ 그리드형 ============ */
.hev-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:1024px){ .hev-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .hev-grid { grid-template-columns:1fr; } }
.hev-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); transition:all .15s; }
.hev-card:hover { transform:translateY(-3px); box-shadow:0 6px 16px rgba(0,0,0,.1); }
.hev-card-thumb { display:block; width:100%; aspect-ratio:1/1; background:#f3eee5; background-size:cover; background-position:center; position:relative; }
.hev-card-body { padding:14px 16px 16px; }
.hev-card-cat { font-size:11px; color:#9b8056; font-weight:500; margin-bottom:4px; }
.hev-card-title { display:block; font-size:14px; font-weight:600; color:#222; text-decoration:none; line-height:1.4; min-height:38px; }
.hev-card-note { font-size:11px; color:#888; margin:6px 0; line-height:1.5; }
.hev-card-price { display:flex; align-items:baseline; gap:6px; margin-top:8px; }
.hev-card-price .strike { font-size:11px; color:#aaa; text-decoration:line-through; }
.hev-card-price .price { font-size:18px; font-weight:700; color:#222; }

/* 시술담기·예약 버튼 */
.hev-btn-add, .hev-btn-book { padding:8px 14px; border:0; border-radius:6px; cursor:pointer; font-size:13px; font-weight:600; }
.hev-btn-add { background:#fff; color:#9b8056; border:1px solid #9b8056; }
.hev-btn-add.added { background:#5a4a30; color:#fff; border-color:#5a4a30; }
.hev-btn-book { background:#9b8056; color:#fff; }
.hev-btn-book:hover { background:#5a4a30; }
.hev-card-body .hev-btn-add, .hev-card-body .hev-btn-book { display:block; width:100%; margin-top:6px; padding:10px; }

.hev-empty { padding:80px 20px; text-align:center; color:#999; background:#fff; border-radius:12px; }

/* 페이징 (그누보드 $write_pages wrap) */
.hev-paging { margin:32px 0 20px; text-align:center; }
.hev-paging .pg_wrap { display:inline-flex; gap:4px; }
.hev-paging .pg_page,
.hev-paging .pg_current,
.hev-paging .pg_start, .hev-paging .pg_prev,
.hev-paging .pg_end,   .hev-paging .pg_next {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:36px; height:36px; padding:0 10px;
    border:1px solid #e5e7eb; border-radius:6px;
    color:#666; text-decoration:none; font-size:13px;
    transition:border-color .15s, color .15s, background .15s;
}
.hev-paging .pg_page:hover { border-color:var(--hev-main, #9b8056); color:var(--hev-main, #9b8056); }
.hev-paging .pg_current {
    background:var(--hev-main, #9b8056); color:#fff !important;
    border-color:var(--hev-main, #9b8056); font-weight:600;
}

/* ============ VIEW (글 상세) ============ */
.hev-view { background:#fff; border-radius:12px; padding:32px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.hev-view-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid #f0f0f0; }
.hev-view-back { color:#666; text-decoration:none; font-size:13px; }
.hev-view-actions { display:flex; gap:6px; }
.hev-view-grid { display:grid; grid-template-columns:1fr 360px; gap:32px; align-items:start; }
.hev-view-side { position:sticky; top:80px; align-self:start; }
@media (max-width:900px){
    .hev-view-grid { grid-template-columns:1fr; }
    .hev-view-side { position:static; }
}
.hev-view-cat { color:#9b8056; font-size:13px; font-weight:500; margin-bottom:8px; }
.hev-view-title { font-size:26px; font-weight:700; margin:0 0 12px; line-height:1.3; }
.hev-view-note { color:#666; font-size:14px; margin:0 0 16px; }
.hev-view-meta { display:flex; gap:14px; padding:12px 0; border-top:1px solid #f0f0f0; border-bottom:1px solid #f0f0f0; font-size:13px; color:#666; flex-wrap:wrap; align-items:center; }
.hev-dday-text { padding:3px 10px; background:#dc2626; color:#fff; border-radius:4px; font-size:12px; font-weight:700; }
.hev-view-content { margin-top:24px; line-height:1.7; font-size:15px; color:#333; }
/* 본문/갤러리 이미지 — 인라인 width/height 속성, 외부 에디터 스타일 충돌 강제 차단
   (그누보드 get_view_thumbnail() 이 width="..." height="..." 를 박는 케이스 대응) */
.hev-view-content img,
.hev-view-images img {
    max-width:100% !important;
    height:auto !important;
    object-fit:contain;
    display:block;
}
.hev-view-content img { border-radius:6px; }
.hev-view-images { margin-bottom:20px; display:flex; flex-direction:column; gap:10px; }
.hev-view-images img { width:100%; border-radius:8px; }
.hev-view-content p > img,
.hev-view-content figure img { margin-left:auto; margin-right:auto; }
.hev-view-attachments { margin-top:24px; padding-top:16px; border-top:1px solid #eee; }
.hev-view-attachments h4 { font-size:13px; font-weight:600; margin:0 0 8px; color:#666; }
.hev-view-file { display:block; padding:8px 12px; margin-bottom:4px; background:#f9f7f3; border-radius:6px; text-decoration:none; color:#5a4a30; font-size:13px; }
.hev-view-file:hover { background:#f0eee8; }

/* 우측 예약 카드 (sticky 는 부모 aside 에 적용됨) */
.hev-buy-card { background:#fafafa; border:1px solid #eee; border-radius:12px; padding:20px; }
.hev-buy-title { font-size:15px; font-weight:600; margin:0 0 14px; padding-bottom:14px; border-bottom:1px solid #eee; }
.hev-buy-price { padding:14px 0; border-bottom:1px solid #eee; margin-bottom:16px; position:relative; }
.hev-buy-price-old { color:#aaa; text-decoration:line-through; font-size:13px; }
.hev-buy-price-now { font-size:32px; font-weight:800; color:#9b8056; margin-top:4px; }
.hev-buy-price-now small { font-size:16px; font-weight:400; color:#666; margin-left:2px; }
.hev-buy-discount { position:absolute; top:14px; right:0; padding:4px 8px; background:#dc2626; color:#fff; border-radius:4px; font-size:13px; font-weight:700; }
.hev-buy-paynote { display:block; margin-top:8px; color:#999; font-size:11px; }

.hev-options { margin-bottom:14px; }
.hev-option { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #eee; border-radius:8px; margin-bottom:6px; cursor:pointer; }
.hev-option:hover { border-color:#9b8056; background:#fff; }
.hev-option input { flex-shrink:0; }
.hev-option-name { flex:1; font-size:13px; }
.hev-option-name em { display:inline-block; padding:1px 6px; background:#f0eee8; color:#9b8056; font-size:10px; border-radius:3px; font-style:normal; margin-left:4px; }
.hev-option-price { font-weight:600; font-size:13px; white-space:nowrap; }
.hev-option-price .strike { color:#aaa; text-decoration:line-through; font-weight:400; margin-right:4px; font-size:11px; }

.hev-buy-cta, .hev-buy-consult { display:block; width:100%; padding:14px; border:0; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; margin-top:8px; }
.hev-buy-cta { background:#9b8056; color:#fff; }
.hev-buy-consult { background:#fff; color:#9b8056; border:1px solid #9b8056; }
.hev-buy-cta:hover { background:#5a4a30; }

/* ============ 본문 2칼럼: 좌(목록) + 우(카트) ============ */
.hev-body { display:grid; grid-template-columns:1fr 320px; gap:24px; align-items:start; margin-top:0; }
.hev-body-main { min-width:0; }
.hev-cart-side { position:sticky; top:80px; }
@media (max-width:900px){
    .hev-body { grid-template-columns:1fr; }
    .hev-cart-side { position:static; order:-1; }
}

.hev-cart-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.hev-cart-head { padding:14px 18px; border-bottom:1px solid #eee; display:flex; justify-content:space-between; align-items:center; font-weight:600; }
.hev-cart-head .cnt { color:#3aa395; font-weight:700; }
.hev-cart-list { max-height:50vh; overflow-y:auto; }
.hev-cart-item { padding:12px 18px; border-bottom:1px solid #f5f5f5; display:flex; gap:8px; align-items:center; font-size:13px; }
.hev-cart-item-name { flex:1; min-width:0; }
.hev-cart-item-price { font-weight:600; white-space:nowrap; }
.hev-cart-item-rm { color:#bbb; cursor:pointer; padding:0 4px; font-size:18px; line-height:1; }
.hev-cart-item-rm:hover { color:#dc2626; }
.hev-cart-empty { padding:40px 18px; text-align:center; color:#aaa; font-size:13px; }
.hev-cart-foot { padding:16px 18px; border-top:1px solid #eee; }
.hev-cart-total { display:flex; justify-content:space-between; margin-bottom:12px; align-items:baseline; }
.hev-cart-total b { font-size:18px; color:#9b8056; }
.hev-cart-cta { display:block; width:100%; padding:14px; background:#9b8056; color:#fff; border:0; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; }
.hev-cart-cta:hover { background:#5a4a30; }
.hev-cart-cta:disabled { background:#ccc; cursor:not-allowed; }
.hev-cart-note { margin:8px 0 0; text-align:center; color:#999; font-size:11px; }

/* ============ 모달 (AJAX 인젝트) — 콘텐츠만큼만 차지 ============ */
.hev-modal { position:fixed; inset:0; z-index:99999; display:none; }
.hev-modal.open { display:block; }
.hev-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.55); animation:hevFadeIn .2s; }

/* 프레임 = 위치 컨테이너 (스크롤 X, ✕ 버튼의 anchor) */
.hev-modal-frame {
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:96%; max-width:1140px; max-height:92vh;
    background:transparent;
    animation:hevScaleIn .2s;
}
/* 흰 카드 + 둥근 모서리 + 스크롤 한 번에 처리 */
.hev-modal-scroll {
    width:100%; max-height:92vh; overflow-y:auto;
    background:#fff; border-radius:14px;
    -webkit-overflow-scrolling:touch;
}
.hev-modal-content {
    background:transparent; border-radius:0; padding:0; box-shadow:none;
    position:relative;
}
.hev-modal-content .eb-modal { box-shadow:none !important; margin:0 !important; max-width:100% !important; border-radius:0 !important; background:transparent !important; }
.hev-modal-loading { padding:60px 20px; text-align:center; color:#9b8056; font-size:14px; background:transparent; }

/* ✕ 버튼: 프레임 우상단 모서리에 부착 (스크롤 무관) */
.hev-modal-close {
    position:absolute; top:10px; right:10px; z-index:10;
    background:#fff; border:1px solid #e5e5e5; width:34px; height:34px;
    border-radius:50%; cursor:pointer; font-size:18px; line-height:1;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.hev-modal-close:hover { background:#f5f5f5; }

@keyframes hevFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes hevScaleIn { from{opacity:0;transform:translate(-50%,-50%) scale(.96)} to{opacity:1;transform:translate(-50%,-50%) scale(1)} }
@media (max-width:768px){
    .hev-modal-frame { width:100%; max-width:100%; max-height:100vh; top:0; left:0; transform:none; }
    .hev-modal-scroll { max-height:100vh; border-radius:0; }
    .hev-modal-content { border-radius:0; }
    @keyframes hevScaleIn { from{opacity:0} to{opacity:1} }
}

/* ============ 글쓰기 폼 ============ */
.hev-write { background:#fff; border-radius:12px; padding:32px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.hev-write-head { margin-bottom:20px; }
.hev-write-head h2 { margin:0 0 6px; font-size:22px; font-weight:700; }
.hev-write-help { color:#888; font-size:13px; margin:0; }
.hev-form-tbl { width:100%; border-collapse:collapse; margin-bottom:20px; }
.hev-form-tbl th { width:160px; padding:14px 16px; text-align:left; vertical-align:top; background:#fafafa; border-bottom:1px solid #eee; font-weight:500; color:#444; font-size:13px; }
.hev-form-tbl td { padding:14px 16px; border-bottom:1px solid #eee; font-size:13px; }
.hev-form-tbl .req { color:#dc2626; }
.hev-form-tbl .hev-section th { background:#9b8056; color:#fff; padding:10px 16px; border:0; font-weight:600; font-size:13px; }
.hev-help { display:block; margin-top:4px; color:#888; font-size:11px; }
.hev-input { padding:8px 10px; border:1px solid #d1d5db; border-radius:4px; font-size:13px; box-sizing:border-box; }
.hev-input.wide { width:100%; }
.hev-input.small { width:140px; }
.hev-input.mono { font-family:monospace; }
.hev-input:focus { outline:none; border-color:#9b8056; box-shadow:0 0 0 2px rgba(155,128,86,.15); }
.hev-file-row { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.hev-file-row .hev-input { flex:1; }
.hev-write-actions { display:flex; gap:8px; padding-top:20px; border-top:1px solid #eee; }
.hev-btn-submit { padding:12px 28px; background:#9b8056; color:#fff; border:0; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; }
.hev-btn-cancel { padding:12px 28px; background:#fff; color:#666; border:1px solid #ccc; border-radius:6px; font-size:14px; text-decoration:none; }

/* ============================================================
 *  MOBILE / TABLET — 통합 반응형
 * ============================================================ */

/* 본문(목록) + 카트 사이드 — 900px 이하: 1칼럼, 카트는 본문 아래로 (기존 order:-1 → 0) */
@media (max-width:900px){
    .hev-body { grid-template-columns:1fr; gap:16px; }
    .hev-cart-side { position:static; order:0; }
    .hev-cart-list { max-height:40vh; }
}

/* ============ 태블릿 / 큰 모바일 (≤768px) ============ */
@media (max-width:768px){
    .hev-wrap {
        margin:12px auto;
        padding-left:12px !important;
        padding-right:12px !important;
        padding-top:14px !important;
        padding-bottom:18px !important;
    }

    /* 관리자 바 */
    .hev-admin-bar { padding:8px 10px; font-size:12px; gap:6px; border-radius:6px; margin-bottom:12px; }
    .hev-admin-bar .hev-admin-btn:last-of-type { margin-left:0; }
    .hev-admin-btn { padding:5px 10px; font-size:11.5px; }

    /* 카테고리 탭 — 가로 스크롤 유지, 셀 작게 */
    .hev-cats { margin-bottom:14px; -webkit-overflow-scrolling:touch; }
    .hev-cat { padding:10px 12px; font-size:13px; }

    /* 툴바 — 제목줄 / 컨트롤줄 2단 스택 */
    .hev-toolbar { gap:8px; margin-bottom:12px; }
    .hev-title { font-size:17px; width:100%; }
    .hev-title small { font-size:12px; }
    .hev-toolbar-right { width:100%; gap:6px; }
    .hev-search { flex:1 1 auto; min-width:0; gap:4px; }
    .hev-search select { min-width:88px; flex-shrink:0; padding:0 24px 0 8px; font-size:12px; }
    .hev-search input[type="text"] { flex:1; min-width:0; height:34px; padding:0 10px; font-size:12px; }
    .hev-search button { height:34px; padding:0 12px; font-size:12px; }
    .hev-sort { height:34px; min-width:96px; flex-shrink:0; padding:0 24px 0 8px; font-size:12px; }

    /* ─── 리스트형 (기본) ─── */
    .hev-list { border-radius:10px; }
    .hev-row {
        padding:12px;
        gap:12px;
        flex-wrap:wrap;            /* 좁은 화면에서 right 영역이 다음줄로 */
        align-items:flex-start;
    }
    .hev-row-thumb { width:96px; height:96px; border-radius:8px; }
    .hev-row-body { flex:1 1 calc(100% - 108px); min-width:0; }
    .hev-row-meta { font-size:10.5px; gap:6px; margin-bottom:4px; }
    .hev-row-cat { padding:1px 6px; font-size:10px; }
    .hev-row-title {
        font-size:14px; margin-bottom:4px;
        display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
        overflow:hidden; line-height:1.35;
    }
    .hev-row-note {
        font-size:12px; line-height:1.45;
        display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    }
    .hev-row-right {
        flex:1 1 100%;
        min-width:0;
        text-align:left;
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:8px;
        padding-top:10px;
        margin-top:4px;
        border-top:1px dashed #f0f0f0;
    }
    .hev-row-price-old { font-size:11px; display:inline-block; margin-right:4px; }
    .hev-row-price { font-size:16px; margin-bottom:0; }
    .hev-row-actions { gap:6px; justify-content:flex-end; flex-shrink:0; }
    .hev-row-actions .hev-btn-add,
    .hev-row-actions .hev-btn-book { padding:7px 11px; font-size:12px; }

    /* ─── 그리드형 — 좁은 모바일은 1칼럼이지만, 카드 내부 컴팩트화 ─── */
    .hev-grid { gap:12px; }
    .hev-card-body { padding:12px 14px 14px; }
    .hev-card-title { font-size:14px; min-height:0; }
    .hev-card-note { font-size:11px; margin:4px 0; }
    .hev-card-price .price { font-size:16px; }
    .hev-card-body .hev-btn-add,
    .hev-card-body .hev-btn-book { padding:9px; font-size:12.5px; margin-top:4px; }

    /* D-day 라벨 */
    .hev-dday { top:6px; left:6px; font-size:10px; padding:2px 6px; }

    /* 페이징 */
    .hev-paging { margin:22px 0 8px; }
    .hev-paging .pg_wrap { flex-wrap:wrap; justify-content:center; }
    .hev-paging .pg_page,
    .hev-paging .pg_current,
    .hev-paging .pg_start, .hev-paging .pg_prev,
    .hev-paging .pg_end,   .hev-paging .pg_next {
        min-width:32px; height:32px; padding:0 8px; font-size:12px;
    }

    /* ─── VIEW (상세) ─── */
    .hev-view { padding:16px; border-radius:10px; }
    .hev-view-head { margin-bottom:14px; padding-bottom:12px; }
    .hev-view-back { font-size:12px; }
    .hev-view-grid { gap:18px; }
    .hev-view-cat { font-size:12px; margin-bottom:6px; }
    .hev-view-title { font-size:19px; margin-bottom:8px; line-height:1.3; }
    .hev-view-note { font-size:13px; margin-bottom:12px; }
    .hev-view-meta { gap:8px; font-size:12px; padding:10px 0; }
    .hev-view-content { margin-top:18px; font-size:14px; line-height:1.65; }
    .hev-view-images { gap:8px; margin-bottom:14px; }
    .hev-view-attachments { margin-top:18px; padding-top:14px; }

    /* 우측 예약 카드 — 본문 아래로 풀폭 */
    .hev-buy-card { padding:16px; border-radius:10px; }
    .hev-buy-title { font-size:14px; margin-bottom:12px; padding-bottom:12px; }
    .hev-buy-price-now { font-size:26px; }
    .hev-buy-price-now small { font-size:14px; }
    .hev-option { padding:9px; gap:8px; }
    .hev-buy-cta, .hev-buy-consult { padding:13px; font-size:14px; }

    /* 카트 사이드 — 본문 아래 풀폭 */
    .hev-cart-card { border-radius:10px; }
    .hev-cart-head { padding:12px 14px; font-size:14px; }
    .hev-cart-item { padding:11px 14px; font-size:12.5px; }
    .hev-cart-empty { padding:28px 14px; font-size:12px; }
    .hev-cart-foot { padding:14px; }
    .hev-cart-total b { font-size:16px; }
    .hev-cart-cta { padding:13px; font-size:14px; }
}

/* ============ 작은 모바일 (≤480px) — 핵심 컴팩트화 ============ */
@media (max-width:480px){
    .hev-wrap { padding-left:10px !important; padding-right:10px !important; }

    .hev-admin-bar { font-size:11.5px; padding:7px 9px; }
    .hev-admin-bar .hev-toggle { width:100%; }
    .hev-admin-bar .hev-admin-btn { padding:5px 9px; font-size:11px; }

    .hev-cat { padding:9px 10px; font-size:12.5px; }

    /* 툴바 정렬 셀렉트는 다음줄로 */
    .hev-toolbar-right { flex-direction:column; align-items:stretch; }
    .hev-search { width:100%; }
    .hev-sort { width:100%; }

    /* 리스트 row — 썸네일 더 작게 */
    .hev-row { padding:10px; gap:10px; }
    .hev-row-thumb { width:80px; height:80px; }
    .hev-row-body { flex:1 1 calc(100% - 90px); }
    .hev-row-title { font-size:13.5px; }
    .hev-row-note { -webkit-line-clamp:1; }
    .hev-row-price { font-size:15px; }
    .hev-row-actions { flex-wrap:wrap; }
    .hev-row-actions .hev-btn-add,
    .hev-row-actions .hev-btn-book { flex:1 1 auto; min-width:72px; padding:7px 8px; font-size:11.5px; }

    /* 그리드 카드 */
    .hev-card-thumb { aspect-ratio:4/3; }   /* 1:1 → 4:3 로 시각 안정 */

    /* VIEW */
    .hev-view { padding:14px; }
    .hev-view-title { font-size:17px; }
    .hev-view-meta { font-size:11.5px; gap:6px; }
    .hev-view-meta > span { padding:2px 0; }

    .hev-buy-price-now { font-size:24px; }
    .hev-buy-cta, .hev-buy-consult { padding:12px; font-size:13.5px; }

    .hev-paging .pg_page,
    .hev-paging .pg_current,
    .hev-paging .pg_start, .hev-paging .pg_prev,
    .hev-paging .pg_end,   .hev-paging .pg_next {
        min-width:28px; height:28px; padding:0 6px; font-size:11.5px;
    }

    /* 모달 — 모바일에서 본문 패딩 살짝 확보 */
    .hev-modal-close { top:8px; right:8px; width:30px; height:30px; font-size:16px; }
}

/* ============ 본문 에디터가 박아둔 인라인 width/height 안전 보호 ============ */
.hev-view-content table,
.hev-view-content iframe,
.hev-view-content video {
    max-width:100% !important;
    height:auto;
}
.hev-view-content iframe { aspect-ratio:16/9; width:100%; }
.hev-view-content figure { margin:0 0 12px; }
