/* ==========================================================================
   店舗検索ページ（page-shop-search.php）
   Phase 1：骨組み＋ダミーデータ
   ========================================================================== */

.bf-shop-search-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.bf-shop-search-header {
    text-align: center;
    margin-bottom: 24px;
}
.bf-shop-search-lead {
    color: #555;
    font-size: 14px;
    margin: 8px 0 0;
}

/* ---------- 検索バー ---------- */
.bf-shop-search-bar {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 16px;
}
.bf-shop-search-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background-color: #3e7708;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.bf-shop-search-geo:hover { background-color: #2d5a06; }
.bf-shop-search-geo-icon { font-size: 16px; }

.bf-shop-search-input-wrap {
    flex: 1;
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.bf-shop-search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
    background: transparent;
}
.bf-shop-search-submit {
    border: none;
    background: #f7faf4;
    padding: 0 16px;
    font-size: 18px;
    cursor: pointer;
    border-left: 1px solid #e0e0e0;
}
.bf-shop-search-submit:hover { background: #e8ede2; }

/* ---------- ブランド絞り込み ---------- */
.bf-shop-search-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
}
.bf-shop-search-chips-label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}
.bf-shop-search-chips-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.bf-shop-search-chips-list::-webkit-scrollbar { display: none; }
.bf-shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.bf-shop-chip:hover { border-color: #3e7708; }
.bf-shop-chip.is-active {
    background-color: #3e7708;
    color: #fff;
    border-color: #3e7708;
}
.bf-shop-chip input { display: none; }

/* ---------- 地図＋リスト ---------- */
.bf-shop-search-main {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 16px;
    height: 70vh;
    min-height: 480px;
}

.bf-shop-search-map-wrap {
    position: relative;
    height: 100%;
    min-height: 0;
}
.bf-shop-search-map {
    width: 100%;
    height: 100%;
    background: #e9eef1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.bf-shop-search-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
    padding: 20px;
}
.bf-shop-search-map-fallback p { margin: 6px 0; font-size: 14px; }
.bf-shop-search-map-fallback strong { color: #333; }

.bf-shop-search-list-toggle {
    display: none; /* PCでは非表示、モバイルで表示 */
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    padding: 10px 16px;
    border: none;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.bf-shop-search-list-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.bf-shop-search-list-header {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.bf-shop-search-count {
    font-size: 13px;
    color: #555;
    font-weight: bold;
}
.bf-shop-search-list-close {
    display: none; /* モバイルのみ表示 */
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}
.bf-shop-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.bf-shop-card {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s;
}
.bf-shop-card:hover,
.bf-shop-card.is-active {
    background-color: #f7faf4;
}
.bf-shop-card-name {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 0 0 4px;
}
.bf-shop-card-address {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.5;
}
.bf-shop-card-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.bf-shop-card-brand-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e8ede2;
    color: #3e7708;
    font-size: 11px;
    font-weight: bold;
}
.bf-shop-card-actions {
    display: flex;
    gap: 8px;
}
.bf-shop-card-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #3e7708;
    border-radius: 4px;
    color: #3e7708;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.15s;
}
.bf-shop-card-action:hover {
    background-color: #3e7708;
    color: #fff;
    text-decoration: none;
}

/* ---------- メタ情報 ---------- */
.bf-shop-search-meta {
    margin-top: 16px;
    text-align: right;
    font-size: 12px;
    color: #888;
}

/* ---------- モバイル ---------- */
@media (max-width: 768px) {
    .bf-shop-search-wrap {
        padding: 12px;
    }
    .bf-shop-search-bar {
        flex-direction: column;
        gap: 8px;
    }
    .bf-shop-search-geo {
        justify-content: center;
    }
    .bf-shop-search-main {
        grid-template-columns: 1fr;
        height: calc(100vh - 280px);
        min-height: 400px;
    }
    .bf-shop-search-map-wrap {
        height: 100%;
    }
    .bf-shop-search-list-toggle {
        display: inline-block;
    }
    .bf-shop-search-list-wrap {
        position: fixed;
        inset: 0;
        z-index: 10000;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .bf-shop-search-list-wrap.is-open {
        transform: translateY(0);
    }
    .bf-shop-search-list-close {
        display: inline-block;
    }
}
