:root {
    --primary-yellow: #ffc905;
    --text-black: #111111;
    --bg-white: #ffffff;
    --light-yellow-bg: #fffbf0;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-id-4492 {
    /* 배경 그라데이션 적용: 상단 흰색 -> 하단 연한 노란색 */
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100px, var(--light-yellow-bg) 600px, var(--light-yellow-bg) 100%);
    background-attachment: fixed;
    color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* --- Page Header Section --- */
.page-header-section {
    padding-top: 150px;
    padding-bottom: 60px;
    background-color: transparent;
    text-align: center;
}

.page-title {
    font-size: 3.5rem !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px !important;
    color: #000;
    line-height: 1.1;
}

.jp-sub {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-yellow);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Locator/Order Section --- */
.locator-section {
    padding: 30px 0 100px 0;
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
}

.locator-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.locator-container {
    display: flex;
    height: 750px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.locator-sidebar {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background: #fff;
}

.sidebar-controls {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    background: #fff;
}

.search-wrap {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 14px 80px 14px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background: #fdfdfd;
    transition: 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-yellow);
    background: #fff;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #aaa;
    pointer-events: none;
}

.search-btn-group {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-search-action {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: 0.2s;
    color: #999;
}

.btn-search-action:hover {
    background-color: #f0f0f0;
    color: var(--primary-yellow);
}

#btnClearSearch {
    display: none;
    font-size: 18px;
    line-height: 1;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 18px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    background: #f4f4f4;
}

.filter-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #000;
}

.store-list-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.list-count-bar {
    padding: 10px 25px;
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

/* Order Card Styling */
body.page-id-4492 .store-card {
    padding: 25px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    position: relative !important;
}

body.page-id-4492 .store-card:hover {
    background-color: #fffcee !important;
}

body.page-id-4492 .store-card.selected {
    background-color: #fffcee !important;
    border-left: 5px solid var(--primary-yellow) !important;
}

body.page-id-4492 .store-card h4 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    color: #000 !important;
    line-height: 1.3 !important;
}

body.page-id-4492 .store-card p {
    font-size: 0.9rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

/* Desktop: Row layout, space-between */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.badge-state {
    font-size: 10px;
    font-weight: 800;
    color: #000;
    background: var(--primary-yellow);
    padding: 2px 6px;
    border-radius: 3px;
}

.btn-order-now {
    background-color: var(--primary-yellow);
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid var(--primary-yellow);
    text-decoration: none;
}

.btn-order-now:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

.btn-map-link {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-decoration: underline;
    text-transform: uppercase;
}

.btn-map-link:hover {
    color: #000;
}

.locator-map {
    flex-grow: 1;
    background: #f0f0f0;
    position: relative;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

.gm-ui-hover-effect {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    z-index: 10 !important;
    opacity: 0.6 !important;
    background: transparent !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    padding: 0 !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.2) !important;
    max-width: 280px !important;
}

.custom-popup {
    padding: 10px 20px 30px 20px;
    width: 280px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    background: #fff;
    position: relative;
}

.popup-icon-wrap {
    margin-bottom: 15px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup h3 {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.custom-popup p.addr {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 500;
}

.popup-btns {
    display: flex;
    justify-content: center;
    width: 100%;
}

.popup-btn {
    display: block;
    width: 200px;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-btn.primary {
    background-color: var(--primary-yellow);
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.popup-btn.primary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* ======================================================
   WP/Astra 영향 제거 + 디자이너 레이아웃을 전체폭으로
   (store-new 페이지에서만 로드되므로 안전)
====================================================== */

/* 1) 본문 폰트 통일 */
body {
  font-family: 'Montserrat', sans-serif;
}

/* 2) Astra 컨테이너 폭/패딩 제거 -> 가로 꽉 차게 */
.ast-container,
.site-content .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3) 페이지 기본 여백(위아래) 제거 */
.site-content {
  padding-top: 0 !important;
}
.entry-content {
  margin-top: 0 !important;
}

/* 4) 디자이너 페이지 헤더(SELECT A STORE) 위 여백을 원하는 값으로 고정 */
.page-header-section {
  padding-top: 60px;   /* 필요시 90~130에서 조절 */
  padding-bottom: 40px;
}

/* 5) locator 영역(카드/지도) 폭 & 높이 확보 */
/* ======================================================
   FIX: locator-section width
   Stage 1200px → Designer 1654px 맞추기
   (Store List New 페이지 전용)
====================================================== */

/* 1️⃣ Astra의 1200px 제한 제거 */
body.page-id-4492 .site-content .ast-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2️⃣ entry-content도 같이 풀어줌 */
body.page-id-4492 .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* 3️⃣ locator-section을 디자이너 폭으로 정확히 고정 */
body.page-id-4492 section.locator-section {
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* 4️⃣ 내부 wrapper도 동일 폭 기준 */
body.page-id-4492 .locator-wrapper {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* ======================================================
   JP Sub Text (注文する店舗を選択)
   Match Designer EXACTLY
====================================================== */

.page-header-section .jp-sub {
  font-family:
    "Yu Gothic Medium",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Meiryo",
    "MS PGothic",
    "Microsoft YaHei",
    "Montserrat",
    sans-serif !important;

  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  line-height: 39.6px !important;

  color: rgb(255, 201, 5) !important;

  margin-top: 0 !important;
  margin-bottom: 15px !important;

  text-align: center !important;
}

/* ======================================================
   Search input – match designer EXACTLY
====================================================== */

.search-wrap {
  position: relative;
}

/* 돋보기 아이콘 위치 고정 */
.search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
  pointer-events: none;
}

/* Search input 본체 */
.search-wrap input#storeSearch,
.search-wrap .search-input {
  width: 100%;
  height: 56px !important;

  background-color: #ffffff !important;
  border: 1px solid #e6e6e6 !important;   /* 2px → 1px */
  border-radius: 8px !important;

  padding-left: 52px !important;          /* ⭐ 겹침 해결 핵심 */
  padding-right: 56px !important;

  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;

  box-sizing: border-box !important;
}

/* Placeholder 컬러 */
.search-wrap input#storeSearch::placeholder {
  color: #8a8a8a !important;
  font-weight: 600 !important;
}

/* Focus 상태 (디자이너처럼 과하지 않게) */
.search-wrap input#storeSearch:focus {
  outline: none !important;
  border-color: #d6d6d6 !important;
  box-shadow: none !important;
}

/* 지도 영역이 작게 잡히는 경우 대비 */
#map {
  width: 100%;
  height: 100%;
  min-height: 650px;
}

/* =========================
   Store List – ORDER NOW (Designer match)
   ========================= */

/* 버튼: a 태그든 button이든 둘 다 커버 */
#storeListContainer .store-card .btn-order-now,
#storeListContainer .store-card a.btn-order-now,
#storeListContainer .store-card button.btn-order-now {
  /* 디자이너 computed 기준 */
  background-color: rgb(255, 201, 5) !important;
  border: 1px solid rgb(255, 201, 5) !important;
  border-radius: 4px !important;

  display: block !important;
  height: 38px !important;

  padding: 10px 20px !important; /* top/bottom 10, left/right 20 */
  margin: 0 !important;

  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;

  color: rgb(0, 0, 0) !important;
  text-decoration: none !important;

  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;

  /* 혹시 Astra/Woo가 inline-flex로 만들면 block으로 강제 */
  line-height: 18px !important; /* height 38 + padding 10이면 실제 렌더링 안정 */
}

/* hover (디자이너가 hover 지정 없으면 살짝만) */
#storeListContainer .store-card .btn-order-now:hover {
  filter: brightness(0.98);
}

/* Coming soon/disabled */
#storeListContainer .store-card .btn-order-now.disabled,
#storeListContainer .store-card .btn-order-now[disabled] {
  background-color: rgb(204, 204, 204) !important;
  border-color: rgb(204, 204, 204) !important;
  color: rgb(0, 0, 0) !important;
  cursor: not-allowed !important;
  filter: none !important;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
    .page-header-section {
        padding-top: 20px !important;
        padding-bottom: 40px;
    }

    .page-header-section .page-title {
        font-size: 2.2rem !important;
    }

    .page-header-section .page-desc {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 15.2px !important;
        font-weight: 500 !important;
        line-height: 24.32px !important;
        color: rgb(85,85,85) !important;
    
        max-width: 600px !important;
        margin: 0 auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    
        text-align: center !important;
    }

    .locator-section {
        padding: 0 0 60px 0;
    }

    .locator-wrapper {
        padding: 0 15px;
    }

    .locator-container {
        flex-direction: column-reverse;
        /* Map on top, List below */
        height: auto;
        border: none;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .locator-map {
        height: 400px;
        width: 100%;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .locator-sidebar {
        width: 100%;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        overflow: hidden;
        height: auto;
        background: #fff;
    }

    .store-list-scroll {
        max-height: 500px;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 8px 16px;
    }

    .store-card {
        padding: 20px;
    }

    /* [수정 3] 모바일 UI 스타일링 - 데스크탑과 동일하게 (가로 배치) */
    .card-actions {
        /* 모바일에서도 Row 형태 유지, 양쪽 정렬 */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 15px;
    }

    .btn-order-now {
        /* 버튼 너비 자동 (꽉 차지 않게) */
        width: auto;
        display: inline-block;
        text-align: center;
        padding: 10px 20px;
    }

    .btn-map-link {
        /* 기본 스타일(데스크탑 스타일) 유지 */
        text-align: right;
        display: inline-block;
        width: auto;
        padding: 0;
        font-size: 11px;
        text-decoration: underline;
        color: #888;
    }

    /* [모바일 전용 팝업] 작고 컴팩트하게 */
    .gm-style .gm-style-iw-c {
        max-width: 260px !important;
    }

    .custom-popup {
        padding: 10px 15px 25px 15px;
        width: 100%;
    }

    .popup-icon-wrap {
        margin-bottom: 10px;
        height: 30px;
    }

    .custom-popup h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .custom-popup p.addr {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .popup-btn {
        width: 170px;
        padding: 10px 0;
        font-size: 11px;
        border-radius: 4px;
    }

}