/* ====================================================================
   CityMarketeer V6 - Master Style Sheet (master-style.css)
   (Unified & Collision-Free CSS with Namespace Prefixing)
   (Latest Updates: 59% Opacity Chips, Square Corners, Footer Fix)
   ==================================================================== */

/* 🌍 0. 공통 초기화 (Global Reset) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; background-color: #0d0d0f; }


/* ====================================================================
   🌍 1. MAIN PORTAL (index.php) - prefix: .page-index
   ==================================================================== */
body.page-index { background: #fff; color: #333; font-family: 'Inter', sans-serif; line-height: 1.1; font-size: 0.8rem; display: flex; flex-direction: column; min-height: 100vh; top: 0px !important; position: static !important; }
.page-index html.translated-ltr, .page-index html.translated-rtl { margin-top: 0 !important; padding-top: 0 !important; }
.page-index iframe.goog-te-banner-frame, .page-index .goog-te-banner-frame, .page-index .goog-te-balloon-frame, .page-index #goog-gt-tt, .page-index .VIpgJd-Zvi9od-ORHb-OEVmcd, .page-index .VIpgJd-Zvi9od-aZ2wEe, .page-index body > .skiptranslate, .page-index #google_translate_element { display: none !important; opacity: 0 !important; position: absolute !important; top: -9999px !important; }

.page-index .mega-header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: none; border-bottom: none; padding-bottom: 10px; }
.page-index .header-top { width: 92%; max-width: 1400px; margin: 0 auto; padding: 15px 0 10px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: none; }
.page-index .header-logo-link { display: flex; align-items: center; text-decoration: none; transition: 0.2s; gap: 8px; }
.page-index .header-logo-link:hover { opacity: 0.8; }
.page-index .brand-icon { height: 42px; width: auto; object-fit: contain; }

.page-index .desktop-search-banner { display: flex; justify-content: center; width: 92%; max-width: 1400px; margin: 0 auto 15px; }
.page-index .search-input-wrapper { display: flex; width: 70%; max-width: 350px; background: #f4f6f9; border-radius: 11px; padding: 5px 12px; align-items: center; border: 1.2px solid #ddd; }
.page-index .search-input-wrapper input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.85rem; font-weight: 500; color:#111; }
.page-index .search-input-wrapper input::placeholder { color: #999; font-style: italic; }
.page-index .search-input-wrapper button { background: transparent; border: none; color: #e50914; display: flex; align-items: center; cursor: pointer; }

.page-index .right-header-actions { display: flex; align-items: center; gap: 12px; }
.page-index .post-btn { color: #111; text-decoration: none; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.page-index .post-btn .material-icons-outlined { font-size: 28px; font-weight: 900; }
.page-index .post-btn:hover { color: #e50914; transform: scale(1.1); }
.page-index .user-id-text { color: #111; font-weight: 800; font-size: 0.95rem; text-decoration: none; padding: 0; border: none; transition: 0.2s; white-space: nowrap; }
.page-index .user-id-text:hover { color: #007bff; }

.page-index .header-bottom { width: 92%; max-width: 1400px; margin: 0 auto; }
.page-index .section-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto 15px; width: 100%; max-width: 500px; flex-wrap: wrap; }
.page-index .sec-btn { font-weight: 800; font-size: 0.68rem; padding: 0; border: none; background: transparent; cursor: pointer; text-transform: uppercase; transition: 0.2s; color: silver; text-decoration: none; }
.page-index .sec-btn.has-data { color: #000; }
.page-index .sec-btn.has-data.active, .page-index .sec-btn.active { color: #ea580c !important; font-weight: 900; transform: scale(1.05); text-decoration: none; }
.page-index .sec-separator { color: #ddd; font-size: 0.68rem; }

.page-index .filter-group { display: flex; flex-direction: row; align-items: center; margin-bottom: 6px; width: 100%; gap: 6px; flex-wrap: wrap; }
.page-index .loc-title { color: #007bff; font-weight: 800; font-size: 0.85rem; font-style: italic; margin: 0; padding-right: 4px; display: flex; align-items: center; }
.page-index .filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; flex: 1; }

/* 💡 칩 라운딩 10% 축소(4px) 적용 */
.page-index .radio-label { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; color: #000; text-decoration: none; }

/* 💡 59% Opacity 컬러 및 검정 텍스트 */
.page-index .cat-label { background: #fff5f5; border: 1px solid #ffdbdb; color: #000; }
.page-index .cat-label:hover { background: #ffebeb; }
.page-index .cat-label.active-sub { background: rgba(229, 9, 20, 0.59) !important; border-color: rgba(229, 9, 20, 0.59) !important; color: #000 !important; }

.page-index .loc-label { background: #f4f6f9; border: 1px solid #eaeaea; color: #000; }
.page-index .loc-label:hover { background: #e2e6ea; }
.page-index .loc-label.active-sub { background: rgba(0, 123, 255, 0.59) !important; border-color: rgba(0, 123, 255, 0.59) !important; color: #000 !important; }

.page-index .count-badge { font-size: 0.65rem; margin-left: 4px; opacity: 0.7; font-weight: 700; background: rgba(0,0,0,0.08); padding: 2px 5px; border-radius: 4px; color: #000; }
.page-index .radio-label.active-sub .count-badge { color: #000; background: rgba(255,255,255,0.4); opacity: 1; }

.page-index .more-toggle { cursor: pointer; font-weight: 800; font-size: 0.76rem; text-transform: uppercase; color: #007bff; background: transparent; border: none; padding: 4px 8px; transition: 0.2s; white-space: nowrap; }
.page-index .more-toggle:hover { text-decoration: underline; opacity: 0.8; }

/* 💡 하단 여백 완벽 방지를 위한 flex 속성 (본문 영역 팽창) */
.page-index .main-content { flex: 1 0 auto; display: flex; flex-direction: column; background: #fff; }

.page-index .feed-container { width: 92%; max-width: 1400px; margin: 5px auto 40px; flex-grow: 1; }
.page-index .feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.page-index .card { position: relative; border-radius: 12px; overflow: hidden; background: #111; text-decoration: none; aspect-ratio: 2/3; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.page-index .card video, .page-index .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.page-index .card-top-info { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 12px; background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%); display: flex; flex-direction: column; gap: 2px; }
.page-index .ct-adno { font-size: 0.78rem; color: #ddd; font-weight: normal; text-shadow: 0 1px 3px #000; letter-spacing: 0.5px; }
.page-index .ct-company { font-size: 0.9rem; color: #fff; font-weight: 900; text-shadow: 0 1px 4px #000; text-transform: uppercase; }

.page-index .bot-text { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; color: #fff; padding: 15px 12px 12px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%); }
.page-index .card-line1 { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.page-index .price-original { font-size: 0.75rem; color: #aaa; text-decoration: line-through; font-weight: normal; }
.page-index .price-hl { font-weight: 900; font-size: 1rem; color: #fff; }
.page-index .card-line2 { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }

/* 💡 푸터가 무조건 바닥에 붙도록 flex-shrink: 0 부여 */
.page-index .premium-footer { flex-shrink: 0; background: #0d0d0f; color: #a1a1aa; padding: 60px 20px 30px; font-family: 'Inter', sans-serif; border-top: 1px solid #1f1f22; margin-top: auto; }
.page-index .footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.page-index .footer-brand h2 { color: #ffffff; font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
.page-index .footer-brand h2 span { color: #e50914; }
.page-index .footer-col h3 { color: #ffffff; font-size: 1.1rem; margin-bottom: 20px; font-weight: 800; text-transform: uppercase; }
.page-index .footer-col ul { list-style: none; }
.page-index .footer-col ul li { margin-bottom: 10px; }
.page-index .footer-col ul li a { color: #a1a1aa; text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.page-index .footer-col ul li a:hover { color: #e50914; transform: translateX(5px); display: inline-block; }
.page-index .footer-bottom { max-width: 1200px; margin: 50px auto 0; padding-top: 20px; border-top: 1px solid #1f1f22; display: flex; justify-content: space-between; font-size: 0.85rem; }

@media (max-width: 768px) {
    .page-index .header-top { padding: 10px 15px; }
    .page-index .header-bottom { width: 96%; padding-top: 5px; }
    .page-index .feed { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}


/* ====================================================================
   📱 2. CUSTOMER BOOKING UI (booking.php) - prefix: .page-booking
   ==================================================================== */
body.page-booking { background: #f4f7f6; color: #111; font-family: 'Inter', sans-serif; padding-bottom: 90px; -webkit-font-smoothing: antialiased; }
/* (중략 - 기존 Booking CSS 그대로 유지) */

/* ====================================================================
   🎧 3. CUSTOMER SERVICE DESK (booking-cs.php) - prefix: .page-cs
   ==================================================================== */
body.page-cs { margin: 0; background: #f8fafc; color: #000; font-family: 'Inter', sans-serif; padding-bottom: 60px; }
/* (중략 - 기존 CS CSS 그대로 유지) */