/* ===================================
   店舗表示ショートコードのスタイル
   [shops_by_type] 用

   カラートークン（shop-detail.css と統一）
   #8b4513  primary（ブラウン）
   #e8d5c4  placeholder-bg
   =================================== */


/* ── グリッド ── */
.nsb-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 1rem 0;
}

/* ── カード ── */
.nsb-shop-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px  rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nsb-shop-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.13),
        0 4px  8px  rgba(0, 0, 0, 0.07);
}

/* ── 画像エリア ── */
.nsb-shop-card__image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.nsb-shop-card__image img,
.nsb-shop-card__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nsb-shop-card__image-placeholder {
    background: #e8d5c4; /* 画像なし時のフォールバック */
}

/* 白タイトルを読みやすくするグラデーションオーバーレイ */
.nsb-shop-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 15, 5, 0.80) 0%,
        rgba(30, 15, 5, 0.30) 40%,
        transparent 70%
    );
}

/* タイトルブロック（画像下部に絶対配置） */
.nsb-shop-card__title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0px 13px 0px 11px ;
}

/* 業態バッジ */
.nsb-shop-card__type {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 5px;
}

/* 店舗名（白抜き） */
.nsb-shop-card__title {
    color: #fff;
    font-size: 13px;
    background: none !important; /* ← 追加：テーマのh3背景色を打ち消す */
    padding: 0 !important;       /* ← 追加：テーマのh3パディングも念のためリセット */
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* ── 本文エリア ── */
.nsb-shop-card__body {
    padding: 12px 15px 15px;
}

.nsb-shop-card__address {
    font-size: 12px;
    color: #777;
    margin: 0 0 12px;
    line-height: 1.5;
}

.nsb-shop-card__btn {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 0;
    text-decoration: none;
    transition: background 0.15s;
}

.nsb-shop-card__btn:hover {
    background: #f5f5f5;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
    .nsb-shops-grid {
        grid-template-columns: 1fr;
    }
}