.rakuten-tab-container {
    margin-bottom: 5px;
}

.rakuten-tab-list {
    display: flex;
    overflow-x: auto; /* スマホで横スクロール */
    border-bottom: 1px solid #ccc;
}

.rakuten-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.rakuten-tab.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

.rakuten-tab-content {
    margin-top: 10px;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

/* PC用のスタイル */
@media (min-width: 768px) {
    .tab-list {
        display: block;
        overflow: visible; /* PCでは横スクロールなし */
    }
}
/* ===== 楽天ブック ===== */
.books-controls {
    padding: 8px 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.books-genre-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.books-sort-selector {
    display: flex;
    gap: 5px;
}

.books-genre-btn,
.books-sort-btn {
    padding: 3px 10px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
}

.books-genre-btn.active,
.books-sort-btn.active {
    background: #bf0000;
    color: white;
    border-color: #bf0000;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 12px;
}

.book-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-image {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #f5f5f5;
}

.book-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.book-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
}

.book-title a { color: #333; text-decoration: none; }
.book-title a:hover { color: #bf0000; }

.book-author,
.book-publisher,
.book-date {
    font-size: 11px;
    color: #666;
}

.book-price {
    font-size: 13px;
    font-weight: bold;
    color: #bf0000;
    margin-top: auto;
    padding-top: 4px;
}

.book-buy-btn {
    display: block;
    background: #bf0000;
    color: white !important;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 12px;
    margin-top: 6px;
}

.book-buy-btn:hover { background: #990000; }

/* ===== 楽天トラベル ===== */
.travel-coupon-banner {
    padding: 10px 12px;
    background: #fff3f3;
    border-bottom: 1px solid #f8d4d4;
}

.travel-coupon-btn {
    display: inline-block;
    background: #bf0000;
    color: white !important;
    padding: 7px 18px;
    border-radius: 18px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
}

.travel-coupon-btn:hover { background: #990000; }

.travel-search-form {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

#travel-prefecture {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.travel-coupon-label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#travel-search-btn {
    padding: 5px 14px;
    background: #bf0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#travel-search-btn:hover { background: #990000; }

/* 地図 + 情報パネルのレイアウト */
#travel-map-container {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 12px;
}

#travel-map {
    width: 55%;
    height: 380px;
    flex-shrink: 0;
}

#travel-info-panel {
    width: 45%;
    height: 380px;
    overflow-y: auto;
    padding: 14px;
    background: #fafafa;
    border-left: 1px solid #ddd;
    box-sizing: border-box;
}

.travel-info-placeholder {
    color: #aaa;
    font-size: 13px;
    text-align: center;
    margin-top: 40%;
    line-height: 1.8;
}

.panel-hotel-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.panel-hotel-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.panel-hotel-name a { color: #333; text-decoration: none; }
.panel-hotel-name a:hover { color: #bf0000; }

.panel-hotel-address { font-size: 11px; color: #888; margin-bottom: 4px; }
.panel-hotel-price   { font-size: 15px; font-weight: bold; color: #bf0000; margin-bottom: 4px; }
.panel-hotel-review  { font-size: 12px; color: #666; margin-bottom: 10px; }

.panel-hotel-special {
    font-size: 12px;
    color: #555;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.panel-book-btn {
    display: block;
    background: #bf0000;
    color: white !important;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
}

.panel-book-btn:hover { background: #990000; }

/* ホテルリスト（地図下） */
.hotels-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
}

.hotel-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
    font-size: 12px;
}

.hotel-card:hover { border-color: #bf0000; }
.hotel-card.active { border-color: #bf0000; background: #fff8f8; }

.hotel-image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.hotel-name {
    font-size: 12px;
    font-weight: bold;
    padding: 5px 6px 2px;
    line-height: 1.3;
}

.hotel-name a { color: #333; text-decoration: none; }
.hotel-name a:hover { color: #bf0000; }

.hotel-price  { font-size: 12px; font-weight: bold; color: #bf0000; padding: 0 6px; }
.hotel-review { font-size: 11px; color: #888; padding: 1px 6px; }

.hotel-book-btn {
    display: block;
    background: #bf0000;
    color: white !important;
    text-align: center;
    padding: 5px;
    text-decoration: none !important;
    font-size: 11px;
    margin: 5px 6px 6px;
    border-radius: 3px;
}

.hotel-book-btn:hover { background: #990000; }

.loading-text,
.error-text {
    text-align: center;
    padding: 20px;
    color: #666;
}

#travel-keyword {
    flex: 1;
    min-width: 140px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

/* 選択中のマーカーをオレンジに変色 */
.leaflet-marker-icon.marker-selected {
    filter: hue-rotate(175deg) saturate(2) brightness(0.95);
}

/* 地図上の金額ラベル */
.map-price-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #bf0000;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
    padding: 0 !important;
}

.travel-keyword-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 10px;
}

.travel-kw-btn {
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 14px;
    background: #fff;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.travel-kw-btn:hover,
.travel-kw-btn.selected {
    border-color: #bf0000;
    color: #bf0000;
    background: #fff5f5;
}

@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #travel-map-container {
        flex-direction: column;
        height: auto;
    }

    #travel-map {
        width: 100%;
        height: 250px;
        flex-shrink: 0;
    }

    #travel-info-panel {
        width: 100%;
        height: 250px;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .hotels-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== トラベル 価格フィルタ ===== */
.travel-price-range {
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-price-range input[type="number"] {
    width: 90px;
    padding: 5px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.price-range-sep {
    font-size: 13px;
    color: #666;
}

