/*
 * TabiPark Rakuten Monitor — 公開ショートコード [tabipark_rakuten_availability] 用CSS。
 *
 * v0.7.3：それまでshortcode本文内へ<style>として直接埋め込んでいたが（print_public_styles_once()、
 * 「一度だけ出力」staticフラグ方式）、WordPress/テーマが同一リクエスト内でshortcodeを複数回
 * 評価した場合に最終出力からCSSが失われる不具合が確認されたため（Availability Hubと同一の
 * 構造上の欠陥）、wp_enqueue_style()によるWordPress標準の読み込み方式へ変更した。
 * このファイル自体はshortcodeの評価回数に一切依存しない。
 *
 * デザイン値（色・余白・カード・アコーディオン等）は、旧inline版から一切変更していない。
 */

.tp-rm-public {
    max-width: 100%;
    color: #1f2d3d;
    background: #fff;
}
.tp-rm-public, .tp-rm-public * { box-sizing: border-box; }
.tp-rm-public a { color: #1f7ea8; }

.tp-rm-overview-title {
    margin: 0.2em 0 1em;
    color: #16283d;
}

.tp-rm-hotel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 680px) {
    .tp-rm-hotel-grid { grid-template-columns: 1fr; }
}

.tp-rm-hotel-card {
    background: #fff;
    border: 1px solid #dce7ee;
    border-top: 3px solid #29abe2;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}
.tp-rm-hotel-card-name {
    margin: 0 0 6px;
    color: #16283d;
    overflow-wrap: break-word;
    word-break: break-word;
}
.tp-rm-hotel-card-count {
    font-weight: bold;
    color: #1f7ea8;
    margin-bottom: 10px;
}

.tp-rm-summary-list { list-style: none !important; margin: 0 0 14px !important; padding: 0 !important; }
.tp-rm-summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #e6edf2;
    font-size: 0.97em;
}
.tp-rm-summary-list li:last-child { border-bottom: none; }

.tp-rm-dot { color: #2e9e3e; margin-right: 4px; font-size: 0.75em; vertical-align: middle; }

.tp-rm-count-badge, .tp-rm-day-count {
    display: inline-block;
    background: #eaf6fb;
    color: #12689b;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.88em;
    font-weight: bold;
    white-space: nowrap;
}

.tp-rm-detail-btn {
    display: inline-block;
    color: #fff !important;
    background: #29abe2;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
}
.tp-rm-detail-btn:hover { background: #1f8fbf; }

.tp-rm-detail-head { margin-bottom: 18px; }
.tp-rm-hotel-name {
    margin: 0 0 4px;
    color: #16283d;
    overflow-wrap: break-word;
    word-break: break-word;
}
.tp-rm-provider-label { font-size: 0.85em; color: #7c8894; margin-bottom: 6px; }
.tp-rm-hotel-checked { font-size: 0.9em; color: #6b7785; margin-bottom: 4px; }
.tp-rm-count { font-weight: bold; color: #1f7ea8; }

.tp-rm-none-message { margin: 0.6em 0; }

.tp-rm-accordion { display: flex; flex-direction: column; gap: 10px; }

.tp-rm-day-accordion {
    border: 1px solid #dce7ee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.tp-rm-day-accordion[open] { border-color: #29abe2; }

.tp-rm-day-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}
.tp-rm-day-summary::-webkit-details-marker { display: none; }
.tp-rm-day-summary:hover { background: #f5fbfd; }

.tp-rm-day-summary-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.tp-rm-day-date { font-weight: bold; color: #16283d; }
.tp-rm-day-price { color: #6b7785; font-size: 0.92em; white-space: nowrap; }

.tp-rm-chevron {
    color: #9aa7b2;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.tp-rm-day-accordion[open] .tp-rm-chevron { transform: rotate(180deg); }

.tp-rm-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 4px 14px 16px;
    border-top: 1px solid #eef3f6;
}
@media (max-width: 480px) {
    .tp-rm-room-grid { grid-template-columns: 1fr; }
}

.tp-rm-room-card {
    background: #fafcfd;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 0;
}
.tp-rm-room-name {
    font-weight: bold;
    color: #16283d;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 2px;
}
.tp-rm-room-plan {
    font-size: 0.92em;
    color: #4a5a68;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 4px;
}
.tp-rm-room-charge { font-size: 0.95em; color: #1f7ea8; font-weight: bold; margin-bottom: 8px; }

.tp-rm-reserve-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #bf0000;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
}
.tp-rm-reserve-btn:hover { background: #950000; }

.tp-rm-room-empty { color: #6b7785; font-size: 0.92em; }

.tp-rm-guest-cta {
    background: #f5fbfd;
    border: 1px solid #29abe2;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.tp-rm-guest-cta-title {
    font-weight: bold;
    color: #16283d;
    margin-bottom: 6px;
}
.tp-rm-guest-cta-text {
    margin: 0 0 10px;
    font-size: 0.92em;
    color: #4a5a68;
}
.tp-rm-guest-cta-btn {
    display: inline-block;
    background: #fff;
    color: #12689b !important;
    border: 1px solid #29abe2;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
}
.tp-rm-guest-cta-btn:hover { background: #eaf6fb; }

.tp-rm-day-cta {
    padding: 2px 14px 14px;
    border-top: 1px solid #eef3f6;
}
.tp-rm-day-cta-link {
    display: inline-block;
    margin-top: 10px;
    color: #12689b !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #29abe2;
    font-size: 0.9em;
    font-weight: bold;
}
.tp-rm-day-cta-link:hover { color: #1f8fbf !important; border-bottom-color: #1f8fbf; }
