/* ==========================================================================
   SUDA CUSTOM (2026-10-21): 카테고리 리스트 히어로 배너 + 여행 검색 패널
   - 마크업: extend/suda_cathero.lib.extend.php (head.php run_event('suda_before_wrapper') 에서 #wrapper 앞에 출력 → 화면 전체 폭)
   - 검색결과 페이지: shop/suda_trip_search.php (.suda-trip-search)
   - 동작: js/suda_cathero.js
   ========================================================================== */
:root{
    --suda-cathero-blue: var(--suda-blue, #4154ff);
    --suda-cathero-pink: #f5426c;
    --suda-cathero-col: 1200px;
}

.suda-cathero-wrap{ position: relative; }
.suda-cathero{
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #1f2937;
    color: #fff;
}
.suda-cathero-slides{ position: absolute; inset: 0; }
.suda-cathero-slide{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease;
}
.suda-cathero-slide.is-active{ opacity: 1; }
.suda-cathero-slide::after{
    /* 사진이 밝아도 왼쪽 글상자 주변이 너무 튀지 않게 아주 옅은 그림자 */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 55%);
}

.suda-cathero-inner{
    position: relative;
    z-index: 2;
    max-width: var(--suda-cathero-col);
    height: 100%;
    margin: 0 auto;
    padding: 56px 16px 0;
    box-sizing: border-box;
}
.suda-cathero-box{
    display: flex;
    flex-direction: column;
    width: 440px;
    max-width: 100%;
    min-height: 400px;
    padding: 40px 40px 32px;
    box-sizing: border-box;
    background: var(--suda-cathero-blue);
    background: color-mix(in srgb, var(--suda-cathero-blue) 94%, transparent);
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(17,24,39,.18);
}
.suda-cathero-type{
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    margin-bottom: 20px;
}
.suda-cathero-texts{ flex: 1 1 auto; }
.suda-cathero-text[hidden]{ display: none; }
.suda-cathero-title{
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #fff;
    word-break: keep-all;
}
.suda-cathero-tags{
    margin: 22px 0 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    word-break: keep-all;
}
.suda-cathero-desc{
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    word-break: keep-all;
}
.suda-cathero-more{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.suda-cathero-more:hover, .suda-cathero-more:focus{ color: #fff; }

.suda-cathero-ctrl{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}
.suda-cathero-btn{
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.suda-cathero-btn:hover:not(:disabled){ background: #fff; color: var(--suda-cathero-blue); }
.suda-cathero-btn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.suda-cathero-btn:disabled{ opacity: .4; cursor: default; }
.suda-cathero-pause{ font-size: 14px; }
.suda-cathero-ic-play{ display: none; }
.suda-cathero-pause[aria-pressed="true"] .suda-cathero-ic-play{ display: block; }
.suda-cathero-pause[aria-pressed="true"] .suda-cathero-ic-pause{ display: none; }
.suda-cathero-count{
    margin-left: 6px;
    font-size: 15px;
    color: rgba(255,255,255,.8);
    font-variant-numeric: tabular-nums;
}
.suda-cathero-count b{ color: #fff; font-weight: 700; }

/* ---------- 검색 패널 ---------- */
.suda-cathero-search-row{
    position: relative;
    z-index: 6; /* 인원 팝오버가 아래 본문(#wrapper, z-index:5) 위로 펼쳐지도록 */
    max-width: var(--suda-cathero-col);
    margin: -56px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}
.suda-cathero-search{
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17,24,39,.14);
    box-sizing: border-box;
}
.suda-cathero-field{
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    border: 1px solid var(--suda-gray-200, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.suda-cathero-field-kw{ flex-grow: 1.6; }
.suda-cathero-field:focus-within{
    border-color: var(--suda-cathero-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--suda-cathero-blue) 18%, transparent);
}
.suda-cathero-field-icon{ flex: 0 0 auto; font-size: 18px; color: var(--suda-gray-400, #9ca3af); }
.suda-cathero-field input,
.suda-cathero-field select{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--suda-gray-900, #111827);
}
.suda-cathero-field select{ cursor: pointer; }
.suda-cathero-field input::placeholder{ color: var(--suda-gray-400, #9ca3af); }

.suda-cathero-submit{
    flex: 0 0 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 56px;
    border: 0;
    border-radius: 10px;
    background: var(--suda-cathero-pink);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s ease;
}
.suda-cathero-submit:hover{ filter: brightness(.94); }
.suda-cathero-submit:focus-visible{ outline: 3px solid color-mix(in srgb, var(--suda-cathero-pink) 40%, transparent); outline-offset: 2px; }

/* 히어로가 있는 리스트: 본문 위 여백을 줄인다 (검색 패널이 이미 공간을 차지) */
.suda-cathero-wrap ~ #wrapper #container.suda-sub-container{ padding-top: 48px; }
/* 큰 페이지 제목(#container_title)이 빠지면 오른쪽 위 절대배치 위치표시(breadcrumb)가 분류 목록과 겹치므로 일반 흐름으로 내린다 */
.suda-cathero-wrap ~ #wrapper #sct_location{
    position: static;
    float: none;
    display: block;
    overflow: hidden;
    text-align: right;
    margin-bottom: 12px;
}

/* ---------- 여행 검색 결과 페이지 ---------- */
.suda-trip-search{ padding-bottom: 20px; }
.suda-trip-search-head{ margin-bottom: 20px; }
.suda-trip-search-head h1{
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--suda-gray-900, #111827);
}
.suda-trip-search-head p{ margin: 8px 0 0; font-size: 15px; color: var(--suda-gray-500, #6b7280); }
.suda-trip-search-head p b{ color: var(--suda-cathero-blue); }
.suda-cathero-search.is-standalone{
    box-shadow: none;
    border: 1px solid var(--suda-gray-200, #e5e7eb);
    margin-bottom: 32px;
}
.suda-trip-search-empty{
    padding: 64px 16px;
    text-align: center;
    font-size: 16px;
    color: var(--suda-gray-500, #6b7280);
    background: var(--suda-gray-50, #f9fafb);
    border-radius: 14px;
}
.suda-trip-search-empty a{ display: inline-block; margin-top: 12px; color: var(--suda-cathero-blue); font-weight: 700; }
.suda-product-dep{
    display: flex;
    align-items: center;
    gap: 5px;
    margin: -4px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--suda-cathero-blue);
}

@media (max-width: 1024px){
    .suda-cathero{ height: 520px; }
    .suda-cathero-box{ width: 400px; min-height: 340px; padding: 32px 32px 26px; }
    .suda-cathero-title{ font-size: 34px; }
    .suda-cathero-submit{ flex-basis: 120px; }
}

@media (max-width: 768px){
    .suda-cathero{ height: 360px; }
    .suda-cathero-inner{ padding: 20px 16px 0; }
    .suda-cathero-box{ width: 100%; min-height: 0; padding: 20px 20px 18px; }
    .suda-cathero-type{ font-size: 12px; margin-bottom: 12px; }
    .suda-cathero-title{ font-size: 24px; }
    .suda-cathero-tags{ margin-top: 10px; font-size: 14px; }
    .suda-cathero-desc{ margin-top: 4px; font-size: 13px; }
    .suda-cathero-ctrl{ margin-top: 14px; }
    .suda-cathero-btn{ width: 32px; height: 32px; font-size: 16px; }
    .suda-cathero-search-row{ margin-top: -28px; }
    .suda-cathero-search{ flex-direction: column; gap: 8px; padding: 12px; }
    .suda-cathero-field{ flex: 0 0 auto; height: 50px; }
    .suda-cathero-submit{ flex: 0 0 auto; height: 50px; width: 100%; }
    .suda-cathero-wrap ~ #wrapper #container.suda-sub-container{ padding-top: 32px; }
    .suda-trip-search-head h1{ font-size: 22px; }
}

@media (prefers-reduced-motion: reduce){
    .suda-cathero-slide, .suda-cathero-btn, .suda-cathero-field, .suda-cathero-submit{ transition: none; }
}
