.caution-ck-content { font-size:15px; padding:8px 4px 0; line-height:1.8; }
.caution-ck-content p { margin:0 0 .6em; }
.caution-ck-content ul, .caution-ck-content ol { margin:.4em 0 .6em 1.6em; padding:0; }
.caution-ck-content li { margin-bottom:.2em; }
.caution-ck-content strong { font-weight:700; }
.caution-ck-content a { color:#223f83; text-decoration:underline; }
.bed-booking-wrap { max-width: 900px; margin: 0 auto; }
.booking-section { margin-bottom: 28px; }
.booking-label { font-size: 16px; font-weight: 700; color: #223f83; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #e8edf5; }
#bed_rv_date { display: inline-block; }
#bed_rv_date .ui-datepicker { position: static !important; display: block !important; border: 2px solid #dde3ee; border-radius: 12px; font-size: 16px; width: 420px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(0,0,0,.10); }
#bed_rv_date .ui-datepicker-header { background: #223f83; color: #fff; border: none; border-radius: 8px; padding: 10px 0; margin-bottom: 10px; }
#bed_rv_date .ui-datepicker-title { color: #fff; font-size: 18px; font-weight: 700; }
#bed_rv_date .ui-datepicker-prev, #bed_rv_date .ui-datepicker-next { top: 6px; cursor: pointer; }
#bed_rv_date .ui-datepicker-prev span, #bed_rv_date .ui-datepicker-next span { display: none; }
#bed_rv_date .ui-datepicker-prev::after { content: '‹'; color: #fff; font-size: 26px; font-weight: 700; }
#bed_rv_date .ui-datepicker-next::after { content: '›'; color: #fff; font-size: 26px; font-weight: 700; }
#bed_rv_date .ui-datepicker th { color: #555; font-size: 14px; padding: 6px 0; }
#bed_rv_date .ui-datepicker td { padding: 3px; }
#bed_rv_date .ui-datepicker td a, #bed_rv_date .ui-datepicker td span { text-align: center; padding: 9px 4px; border-radius: 6px; display: block; font-size: 15px; font-weight: 500; line-height: 1.2; }
#bed_rv_date .ui-datepicker td a:hover { background: #e8edf5; color: #223f83; }
#bed_rv_date .ui-datepicker td.ui-datepicker-current-day a { background: #223f83 !important; color: #fff !important; border-radius: 6px !important; border: none !important; }
#bed_rv_date .ui-datepicker td.ui-datepicker-today:not(.ui-datepicker-current-day) a { background: transparent !important; color: #223f83 !important; border: 2px solid #223f83 !important; border-radius: 6px !important; font-weight: 700 !important; }
#bed_rv_date.no-selection .ui-datepicker td.ui-datepicker-current-day a { background: transparent !important; color: #223f83 !important; border: 2px solid #223f83 !important; border-radius: 6px !important; font-weight: 700 !important; }
#bed_rv_date .ui-datepicker .ui-state-disabled span { color: #ddd; }
#bed_rv_date .ui-datepicker .ui-datepicker-week-end a { color: #c00; }
@media (max-width: 480px) {
    .date-col { width: 100%; }
    .time-col { width: 100%; }
    #bed_rv_date { display: block; }
    #bed_rv_date .ui-datepicker { width: 100%; font-size: 14px; padding: 10px; }
    #bed_rv_date .ui-datepicker td a, #bed_rv_date .ui-datepicker td span { padding: 7px 2px; font-size: 13px; }
}
.room-card-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.room-card { border: 2px solid #d0d8ea; border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .18s, box-shadow .18s; background: #fff; display: flex; flex-direction: column; }
.room-card:hover { border-color: #223f83; box-shadow: 0 4px 16px rgba(34,63,131,.12); }
.room-card.active { border-color: #223f83; box-shadow: 0 4px 16px rgba(34,63,131,.18); }
.room-card.active .room-card-body { background: #223f83; color: #fff; }
.room-card.active .room-card-loc { color: rgba(255,255,255,.8); }
.room-slide { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #eee; }
.room-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.room-slide-img.on { opacity: 1; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.38); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.slide-arrow:hover { background: rgba(0,0,0,.62); }
.slide-prev { left: 8px; }
.slide-next { right: 8px; }
.slide-dots { position: absolute; bottom: 7px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.slide-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .15s; }
.slide-dot.on { background: #fff; }
.room-card-body { padding: 12px 16px; flex: 1; }
.room-card-name { font-size: 15px; font-weight: 700; }
.room-card-loc { font-size: 12px; color: #888; margin-top: 3px; }
@media (max-width: 540px) {
    .room-card-wrap { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .room-card-name { font-size: 13px; }
    .room-card-loc { font-size: 11px; }
}
.date-time-row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.date-col { flex-shrink: 0; }
.time-col { flex: 1; min-width: 220px; }
.timeslot-btns { display: flex; flex-wrap: wrap; gap: 7px; }
.time-slot-btn { padding: 10px 16px; border: 1px solid #ccc; background: #fff; color: #333; border-radius: 5px; cursor: pointer; font-size: 14px; line-height: 1.3; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.time-slot-btn.active { border-color: #223f83; background: #223f83; color: #fff !important; }
.time-slot-btn.full { background: #f5f5f5; color: #bbb !important; cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .time-slot-btn:hover:not(.full):not(.active) { border-color: #223f83; color: #223f83; }
}
.timeslot-hint { font-size: 12px; color: #999; margin-top: 8px; }
.bed-grid-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid #eee; margin-bottom: 16px; font-size: 14px; }
.bed-date { font-weight: 700; font-size: 16px; color: #223f83; }
.bed-time-badge { background: #e9f0fb; color: #223f83; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.bed-count-info { color: #888; font-size: 13px; }
.bed-legend { display: flex; gap: 8px; margin-left: auto; }
.legend-item { padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.leg-avail     { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.leg-occupied  { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.leg-taken     { background: #f5f5f5; color: #999; border: 1px solid #ddd; }
.leg-broken    { background: #e8e8e8; color: #666; border: 1px solid #aaa; }
.leg-locked    { background: #2c2c2c; color: #fff; border: 1px solid #333; }
.leg-mine      { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 4px 0 10px; justify-items: center; }
.bed-grid.layout-mode { display: grid; gap: 6px; padding: 8px; width: max-content; }
.bed-layout-outer { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.bed-layout-middle { display: flex; align-items: stretch; gap: 6px; }
.bed-layout-entry { background: #223f83; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 6px; text-align: center; display: flex; align-items: center; justify-content: center; white-space: pre-line; }
.bed-layout-entry.entry-lr { writing-mode: vertical-rl; text-orientation: mixed; padding: 18px 6px; }
.bed-cell { border: 2px solid #e0e0e0; border-radius: 6px; padding: 4px 3px; text-align: center; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all .15s; }
.bed-grid.layout-mode .bed-cell { width: 56px; height: 56px; min-height: unset; padding: 4px 2px; }
.bed-cell.available    { border-color: #28a745; background: #f0fff4; cursor: pointer; }
.bed-cell.available:hover { background: #c8f0d3; border-color: #1e7e34; transform: scale(1.04); }
.bed-cell.occupied     { border-color: #e53935; background: #fff0f0; color: #c0392b; }
.bed-cell.occupied .bed-lbl { font-size: 9px; }
.bed-cell.occupied .countdown { display: block; font-size: 10px; font-weight: 700; color: #e53935; margin-top: 1px; }
.bed-cell.reserved     { border-color: #d0d0d0; background: #f8f8f8; color: #bbb; }
.bed-cell.mine         { border-color: #0d6efd; background: #e7f1ff; color: #0d3f8f; }
.bed-cell.blocked      { border-color: #eee; background: #fafafa; color: #ccc; }
.bed-cell.broken       { border-color: #aaa; background: #e8e8e8; color: #666; cursor: default; }
.bed-cell.broken .bed-lbl { font-size: 8px; word-break: keep-all; }
.bed-cell.admin-locked { border-color: #333; background: #2c2c2c; color: #fff; cursor: not-allowed; }
.bed-cell.admin-locked .bed-num  { color: #fff; }
.bed-cell.admin-locked .bed-lbl  { color: #ccc; font-size: 9px; }
.bed-num  { font-size: 15px; font-weight: 700; line-height: 1.1; }
.bed-name { display: none; }
.bed-lbl  { font-size: 9px; margin-top: 1px; }
.bed-msg  { color: #aaa; padding: 18px 0; text-align: center; }
@media (max-width: 600px) {
    .bed-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .bed-num { font-size: 16px; }
    .room-tab-btn { padding: 9px 14px; font-size: 13px; }
    .timeslot-btns { gap: 5px; }
    .time-slot-btn { padding: 9px 10px; font-size: 13px; white-space: normal; word-break: keep-all; }
}
