/* ===================================================
   CB Reef Shop Directory — UI (clean, sharp, Divi-safe)
   Markup uses: .cb-reefdir + .cb-reefdir__*
   =================================================== */

.cb-reefdir{
  margin: 18px 0;
}

/* ---------------------------
   Controls / filter bar
   --------------------------- */
.cb-reefdir .cb-reefdir__controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 12px;
  margin: 12px 0 10px;
}

/* Search field grows on desktop */
.cb-reefdir .cb-reefdir__search{
  flex: 1 1 360px;
  min-width: 280px;
}

/* Checkbox strip */
.cb-reefdir .cb-reefdir__modes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;

  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  background: rgba(0,0,0,0.015);
}

.cb-reefdir .cb-reefdir__check{
  display:flex;
  align-items:center;
  gap:6px;
  user-select:none;
  font-size: 13px;
}

.cb-reefdir .cb-reefdir__check input{
  transform: translateY(1px);
}

/* Keep Region + County + Reset together on desktop */
.cb-reefdir .cb-reefdir__loc{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

@media (max-width: 980px){
  .cb-reefdir .cb-reefdir__loc{
    flex-wrap:wrap;
    white-space:normal;
  }
}

/* Make controls bigger + override Divi defaults (minimal !important) */
.cb-reefdir .cb-reefdir__controls input[type="search"],
.cb-reefdir .cb-reefdir__controls select,
.cb-reefdir .cb-reefdir__controls button{
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px !important;

  font-size: 14px !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) !important;
}

.cb-reefdir .cb-reefdir__controls select{
  padding-right: 30px !important;
}

.cb-reefdir .cb-reefdir__controls button{
  cursor:pointer;
  padding: 0 16px !important;
}

.cb-reefdir .cb-reefdir__controls button:hover{
  border-color: rgba(0,0,0,0.30) !important;
}

/* ---------------------------
   Meta line
   --------------------------- */
.cb-reefdir .cb-reefdir__meta{
  margin: 10px 0 12px;
  font-size: 13px;
  opacity: .85;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.cb-reefdir .cb-reefdir__hint code{
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------------------------
   Table
   --------------------------- */
.cb-reefdir .cb-reefdir__tablewrap{
  overflow:auto;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background:#fff;
}

.cb-reefdir .cb-reefdir__table{
  width: 100%;
  border-collapse: collapse;
  min-width: 980px; /* keeps columns readable on desktop */
}

.cb-reefdir .cb-reefdir__table th,
.cb-reefdir .cb-reefdir__table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  font-size: 14px;
}

/* Sticky header */
.cb-reefdir .cb-reefdir__table th{
  position: sticky;
  top: 0;
  z-index: 1;

  background: rgba(0,0,0,0.045);
  font-size: 13px;
  font-weight: 600;

  text-align:left;
  cursor:pointer;
  white-space:nowrap;
}

/* Zebra + hover */
.cb-reefdir .cb-reefdir__table tbody tr:nth-child(even){
  background: rgba(0,0,0,0.022);
}

.cb-reefdir .cb-reefdir__table tbody tr:hover{
  background: rgba(0,0,0,0.04);
}

.cb-reefdir .cb-reefdir__table tbody tr{
  transition: background 0.15s ease;
}

/* First column slightly bolder (shop name) */
.cb-reefdir .cb-reefdir__table tbody td:first-child{
  font-weight: 600;
}

/* Links */
.cb-reefdir .cb-reefdir__shop a{
  text-decoration:none;
}

.cb-reefdir .cb-reefdir__shop a:hover{
  text-decoration:underline;
}

/* ---------------------------
   "See more" button
   --------------------------- */
.cb-reefdir .cb-rsd-see-more{
  margin-top: 10px;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  cursor: pointer;
}

.cb-reefdir .cb-rsd-see-more:hover{
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.30);
}

/* ---------------------------
   Disclaimer / Suggest blocks
   --------------------------- */
.cb-reefdir .cb-reefdir__blocks{
  margin-top: 14px;
  display:grid;
  gap:12px;
}

.cb-reefdir .cb-reefdir__disclaimer,
.cb-reefdir .cb-reefdir__suggest{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.02);
  font-size: 14px;
  line-height: 1.4;
}

.cb-reefdir .cb-reefdir__suggest ul{
  margin: 8px 0 0 18px;
}