/**
 * Hotel Rinker - Frontend Styles
 *
 * Rinker風の宿泊施設紹介カードスタイル
 */

/* カードコンテナ */
.hotel-rinker-card {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hotel-rinker-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 画像エリア */
.hotel-rinker-image {
    flex: 0 0 200px;
    margin-right: 16px;
}

.hotel-rinker-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.hotel-rinker-no-image {
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* コンテンツエリア */
.hotel-rinker-content {
    flex: 1;
    min-width: 250px;
}

.hotel-rinker-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.hotel-rinker-title a {
    color: #333;
    text-decoration: none;
}

.hotel-rinker-title a:hover {
    color: #0066cc;
}

/* レビュー評価 */
.hotel-rinker-review {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.hotel-rinker-stars {
    color: #ffb400;
    font-size: 16px;
    margin-right: 8px;
}

.hotel-rinker-rating {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.hotel-rinker-rating-value {
    color: #ff6600;
    font-size: 16px;
}

/* 価格 */
.hotel-rinker-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.hotel-rinker-price-value {
    font-size: 20px;
    font-weight: bold;
    color: #e60000;
}

.hotel-rinker-price-unit {
    font-size: 12px;
    color: #999;
}

/* アクセス情報 */
.hotel-rinker-access {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.hotel-rinker-access-icon {
    margin-right: 4px;
}

/* ボタンエリア */
.hotel-rinker-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.hotel-rinker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
    min-width: 140px;
}

.hotel-rinker-button:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* 楽天トラベルボタン */
.hotel-rinker-button-rakuten {
    background: #bf0000;
    color: #fff;
}

.hotel-rinker-button-rakuten:hover {
    color: #fff;
}

/* じゃらんボタン */
.hotel-rinker-button-jalan {
    background: #ff6600;
    color: #fff;
}

.hotel-rinker-button-jalan:hover {
    color: #fff;
}

/* Booking.comボタン */
.hotel-rinker-button-booking {
    background: #003580;
    color: #fff;
}

.hotel-rinker-button-booking:hover {
    color: #fff;
}

/* 一休ボタン */
.hotel-rinker-button-ikyu {
    background: #c8a063;
    color: #fff;
}

.hotel-rinker-button-ikyu:hover {
    color: #fff;
}

/* エラー表示 */
.hotel-rinker-error {
    padding: 16px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #cc0000;
    font-size: 14px;
    margin: 20px 0;
}

/* ローディング */
.hotel-rinker-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

.hotel-rinker-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: hotel-rinker-spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes hotel-rinker-spin {
    to {
        transform: rotate(360deg);
    }
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .hotel-rinker-card {
        flex-direction: column;
    }

    .hotel-rinker-image {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .hotel-rinker-image img {
        height: 180px;
    }

    .hotel-rinker-content {
        min-width: auto;
    }

    .hotel-rinker-buttons {
        flex-direction: column;
    }

    .hotel-rinker-button {
        width: 100%;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .hotel-rinker-card {
        background: #1a1a1a;
        border-color: #333;
    }

    .hotel-rinker-title,
    .hotel-rinker-title a {
        color: #e0e0e0;
    }

    .hotel-rinker-price,
    .hotel-rinker-access,
    .hotel-rinker-rating {
        color: #aaa;
    }

    .hotel-rinker-no-image {
        background: #2a2a2a;
        color: #666;
    }
}
