/**
 * 楽天トラベル検索プラグイン スタイルシート
 */

/* 全体のコンテナ */
.rakuten-travel-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* 検索フォーム */
.rts-search-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rts-search-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #bf0000;
}

/* 検索ボタン */
.search-button,
.geocode-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #bf0000, #a00000);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.geocode-button {
    font-size: 14px;
    padding: 10px;
    margin-top: 8px;
    background: linear-gradient(to right, #2196f3, #1976d2);
}

.search-button:hover,
.geocode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(191, 0, 0, 0.3);
}

.geocode-button:hover {
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.search-button:active,
.geocode-button:active {
    transform: translateY(0);
}

.description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 地図 */
#hotel-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ローディング表示 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 検索結果 */
#search-results {
    margin-top: 30px;
}

.results-header {
    margin-bottom: 20px;
}

.results-header h3 {
    color: #333;
    font-size: 22px;
    margin: 0;
}

/* エラーメッセージ */
.error-message,
.no-results {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.error-message p,
.no-results p {
    margin: 5px 0;
    color: #856404;
}

/* 検索情報 */
.search-info {
    color: #666;
    font-size: 14px;
    margin: 10px 0 0 0;
}

.page-info {
    color: #999;
    font-size: 13px;
    margin: 5px 0 0 0;
}

/* ページング */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 45px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: #f5f5f5;
    border-color: #bf0000;
    color: #bf0000;
}

.pagination-btn.active {
    background: #bf0000;
    color: #fff;
    border-color: #bf0000;
    font-weight: bold;
}

.pagination-btn.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.pagination-dots {
    padding: 0 5px;
    color: #999;
}

/* ホテルリスト */
.hotels-list {
    display: grid;
    gap: 20px;
}

/* ホテルカード */
.hotel-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.hotel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #bf0000;
}

.hotel-card.highlighted {
    border: 3px solid #bf0000;
    box-shadow: 0 6px 20px rgba(191, 0, 0, 0.3);
    transform: translateY(-4px);
}

/* ホテル画像 */
.hotel-image {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 地図ピンボタン */
.map-pin-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #bf0000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.map-pin-btn svg {
    color: #bf0000;
    transition: transform 0.3s;
}

.map-pin-btn:hover {
    background: #bf0000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(191, 0, 0, 0.4);
}

.map-pin-btn:hover svg {
    color: #fff;
    transform: translateY(-2px);
}

.map-pin-btn:active {
    transform: scale(0.95);
}

/* ホテル情報 */
.hotel-info {
    padding: 20px;
    flex: 1;
}

.hotel-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.hotel-address {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.hotel-price {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.hotel-price strong {
    color: #bf0000;
    font-size: 20px;
}

.hotel-review {
    margin: 10px 0;
    color: #ff9800;
    font-size: 14px;
}

/* プラン情報 */
.hotel-rooms {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.hotel-rooms h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #555;
}

.room-plan {
    background: #f8f8f8;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plan-name {
    margin: 0;
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    color: #333;
}

.meal-info {
    display: inline-block;
    padding: 4px 8px;
    background: #4caf50;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.room-price {
    font-weight: bold;
    color: #bf0000;
    font-size: 14px;
}

.reserve-btn-small {
    padding: 6px 12px;
    background: #bf0000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.3s;
}

.reserve-btn-small:hover {
    background: #a00000;
    color: #fff;
}

/* ボタン */
.hotel-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reserve-btn,
.detail-btn {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.reserve-btn {
    background: #bf0000;
}

.reserve-btn:hover {
    background: #a00000;
    color: #fff;
    transform: translateY(-2px);
}

.detail-btn {
    background: #2196f3;
}

.detail-btn:hover {
    background: #1976d2;
    color: #fff;
    transform: translateY(-2px);
}

/* 地図ポップアップ */
.hotel-popup h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.hotel-popup p {
    margin: 5px 0;
    font-size: 14px;
}

.hotel-popup a {
    display: inline-block;
    margin-top: 5px;
    color: #bf0000;
    text-decoration: none;
    font-weight: bold;
}

.hotel-type-label {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    margin: 5px 0 !important;
}

/* マーカー凡例 */
.map-legend {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 20px 0;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.legend-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* 楽天クレジット表示 */
.rakuten-credit {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.rakuten-credit a {
    color: #bf0000;
    text-decoration: none;
    font-size: 14px;
}

.rakuten-credit a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .rakuten-travel-search {
        padding: 10px;
    }
    
    .rts-search-form {
        padding: 20px;
    }
    
    .hotel-card {
        flex-direction: column;
    }
    
    .hotel-image {
        width: 100%;
        height: 200px;
    }
    
    .hotel-info {
        padding: 15px;
    }
    
    .room-plan {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meal-info {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .reserve-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Leafletのポップアップをカスタマイズ */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
}
/* 絞込み条件のスタイル
   style.css に以下を追加してください */

/* 絞込み条件のコンテナ */
.squeeze-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

/* チェックボックスラベル */
.squeeze-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
}

.squeeze-checkbox:hover {
    background: #fff;
    border-color: #bf0000;
}

/* チェックボックス本体 */
.squeeze-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #bf0000;
}

/* チェックされた状態 */
.squeeze-checkbox:has(input:checked) {
    background: #fff0f0;
    border-color: #bf0000;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .squeeze-conditions {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .squeeze-checkbox {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .squeeze-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}