/* CoralBay UI legacy presentation rules used outside the three form/UI pages.
 * Keep single-listing photo ratios and My Listings panel styling intact.
 * This small file is loaded only where those components may render.
 */
/* CoralBay shared single-listing main photo presentation
 * Keep the full image at its natural aspect ratio instead of constraining it
 * into a fixed-height contain box, which creates visible side bars.
 */
.single-coral_listing .cbcc-single-featured{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:initial!important;
  background:transparent!important;
  border-radius:18px!important;
}
.single-coral_listing .cbcc-single-featured-wrap{
  border-radius:18px!important;
  overflow:hidden!important;
  background:transparent!important;
}

.single-marine_market_item .cbmm-single-main-photo{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:initial!important;
  background:transparent!important;
  border-radius:16px!important;
}
.single-marine_market_item .cbmm-single-main-photo-link{
  display:block!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:transparent!important;
}

/* CoralBay shared My Listings status filters + bulk controls
 * Marine Marketplace's existing compact controls are the visual benchmark.
 * Community Corals and Marine Marketplace add these semantic cb-* classes;
 * plugin-specific classes remain only for behavior/backward compatibility.
 */
.cb-my-listings-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
.cb-my-listings-pill,
.cb-my-listings-bulk-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  border:1px solid rgba(46,163,242,.38)!important;
  background:#fff!important;
  color:#168ee4!important;
  padding:7px 12px!important;
  font-size:13px!important;
  font-weight:800!important;
  text-decoration:none!important;
  line-height:1.1!important;
  box-shadow:0 2px 7px rgba(20,73,110,.08)!important;
  cursor:pointer!important;
}
.cb-my-listings-pill-active,
.cb-my-listings-bulk-button{
  background:#209ceb!important;
  color:#fff!important;
  border-color:#209ceb!important;
}
.cb-my-listings-bulk{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 14px!important;
  color:#25445d!important;
  font-weight:700!important;
}
.cb-my-listings-bulk-select{
  width:auto!important;
  min-width:150px!important;
  border:1px solid rgba(0,0,0,.18)!important;
  border-radius:8px!important;
  background:#fff!important;
  padding:6px 8px!important;
  font-size:13px!important;
}
.cb-my-listings-bulk-hint{
  font-size:13px!important;
  opacity:.86!important;
}
@media(max-width:560px){
  .cb-my-listings-bulk-select{
    min-width:120px!important;
    flex:1!important;
  }
}

/* CoralBay shared "My Listings" dashboard panel.
 * Marine Marketplace's existing look is the visual benchmark (matches
 * the pattern established above for tabs/bulk controls). Both plugins
 * add .cb-my-listings-panel to their existing wrapper markup; this is
 * now the ONLY place the panel's background/border/heading is defined -
 * cbcc.css and cbmm.css previously each carried their own slightly
 * different, occasionally conflicting copies of this same styling,
 * which is what caused the two panels to visibly drift apart.
 */
.cb-my-listings-panel{
  width:min(1600px, calc(100vw - 48px))!important;
  max-width:none!important;
  margin:34px auto 28px!important;
  padding:26px 28px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(46,163,242,.34)!important;
  border-radius:22px!important;
  background:linear-gradient(to bottom right,#c4e5f8 0%,#d7eefc 36%,#e7f5ff 70%,#f8fcff 100%)!important;
  box-shadow:0 18px 45px rgba(20,73,110,.13)!important;
  color:#18364d!important;
}
.cb-my-listings-panel > h2,
.cb-my-listings-panel > h3{
  margin:0 0 12px!important;
  color:#123c59!important;
  font-size:24px!important;
  line-height:1.15!important;
}
.cb-my-listings-panel .cbcc-notice,
.cb-my-listings-panel .cbmm-notice{
  margin:14px 0 0!important;
  padding:14px 16px!important;
  border:1px solid rgba(46,163,242,.22)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.86)!important;
  color:#314f62!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78)!important;
}
@media(max-width:980px){
  .cb-my-listings-panel{
    padding:22px!important;
  }
}
@media(max-width:760px){
  .cb-my-listings-panel{
    width:100%!important;
    max-width:100%!important;
    padding:18px!important;
    border-radius:18px!important;
  }
}
