/* Align finding room tabs with the native management vacant-room tabs. */
@media(min-width:769px){
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant{height:48px!important;min-height:48px!important;gap:2px!important;border:1px solid var(--wp-color-border-soft,#e2e8f0)!important;border-radius:10px!important;background:rgba(255,255,255,.9)!important;color:#dc2626!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant .rt-main{justify-content:center!important;gap:4px!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant .rt-room{color:#dc2626!important;font-size:14px!important;font-weight:700!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant .rt-price{color:#94a3b8!important;font-size:10px!important;font-weight:500!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant .rt-date{color:#ef4444!important;font-size:9px!important;line-height:14px!important;text-align:center!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant.active{background:linear-gradient(135deg,#ef4444,#f87171)!important;border-color:#ef4444!important;color:#fff!important;box-shadow:0 2px 8px rgba(37,99,235,.25)!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant.active :is(.rt-room,.rt-date){color:#fff!important}
body .desktop-house-detail-dialog.find-room-view #room-tabs .room-tab.vacant.active .rt-price{color:rgba(255,255,255,.9)!important;font-weight:600!important}
body .desktop-house-detail-dialog #ym-rh-info button[onclick^="consultLandlordAction"]:hover{background:var(--wp-color-primary,#2563eb)!important;background-image:none!important;border-color:var(--wp-color-primary,#2563eb)!important;color:#fff!important;box-shadow:0 2px 8px rgba(37,99,235,.25)!important}
body .desktop-house-detail-dialog #ym-rh-info button[onclick^="consultLandlordAction"]:focus-visible{outline:3px solid #93c5fd!important;outline-offset:2px!important}
}

/* Keep the desktop modal frame stable while native room/public renderers change classes. */
@media(min-width:769px){
body #desktop-house-detail-modal>.desktop-house-detail-dialog{box-sizing:border-box!important;width:min(1320px,calc(100vw - 64px))!important;min-width:0!important;max-width:calc(100vw - 64px)!important;height:min(960px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;transition:box-shadow .15s,border-color .15s!important}
body #desktop-house-detail-modal>.desktop-house-detail-dialog>.detail-content{box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:auto!important}
}

/* Selected vacant-room chips have a red background; preserve readable vacancy days. */
#room-tabs .room-tab.vacant.active .rt-date{color:#fff!important}

/* 20261017roomcommonalign2: one header/selector canvas when switching public/room.
 * Scoped to house management; finding-room cards retain their existing rules.
 */
@media(min-width:769px){
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) .detail-top-bar{
  position:relative;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
  gap:10px!important;align-items:center!important;padding:0 42px 0 0!important;
  height:auto!important;min-height:56px!important;
  font-family:-apple-system,"PingFang SC","Helvetica Neue","Microsoft YaHei","Noto Sans SC",sans-serif!important;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) .detail-title-area.gq-summary-title{
  display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;
  gap:6px 12px!important;align-items:center!important;min-width:0!important;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) #detail-title{
  grid-column:1/-1;font-size:20px!important;line-height:27px!important;font-weight:700!important;
  margin:0!important;padding-right:100px;box-sizing:border-box;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) .gq-history{
  position:absolute;top:0;right:42px;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) .gq-house-summary{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:5px 16px!important;margin-left:6px!important;font-family:inherit!important;font-size:16px!important;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) #room-tabs-scroll{
  width:100%!important;height:auto!important;min-height:59px!important;margin:0!important;
  overflow-x:auto!important;font-family:-apple-system,"PingFang SC","Helvetica Neue","Microsoft YaHei","Noto Sans SC",sans-serif!important;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) #room-tabs{
  display:flex!important;width:100%!important;gap:6px!important;padding:0 0 8px!important;
  box-sizing:border-box;align-items:stretch!important;
 }
 body #desktop-house-detail-modal .desktop-house-detail-dialog:not(.find-room-view) #room-tabs .room-tab{
  flex:1 1 0!important;min-width:0!important;height:50px!important;min-height:50px!important;
  padding:8px 14px!important;box-sizing:border-box!important;font-family:inherit!important;
 }
}
