/* Beach Conditions Panel — .hg-bcond, injected under the hero action bar on
   beach pages by beach-conditions-v1.js. px font sizes per site convention;
   card has background + border-radius so the ad injector's card heuristic
   skips it (plus the no-ad-inject class as the explicit layer). */

.hg-bcond {
  background: #fff;
  border: 1px solid #dce8ee;
  border-radius: 14px;
  padding: 14px 18px 16px;
  margin: 14px 0 18px;
  box-sizing: border-box;
  box-shadow: 0 3px 14px rgba(23, 33, 49, .06);
}
.hg-bcond .hg-bcond-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hg-bcond .hg-bcond-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2b3c;
  letter-spacing: .3px;
}
.hg-bcond .hg-bcond-title .fa {
  color: #1866B4;
  margin-right: 6px;
}
.hg-bcond .hg-bcond-links {
  font-size: 15px;
}
.hg-bcond .hg-bcond-links a {
  color: #0a5793;
  font-weight: 700;
  text-decoration: none;
}
.hg-bcond .hg-bcond-links a:hover { text-decoration: underline; }

/* Stat tiles */
.hg-bcond .hg-bcond-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.hg-bcond .hg-bcond-tile {
  background: #f7fafc;
  border: 1px solid #e6eef3;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hg-bcond .hg-bcond-tile-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #5b6b76;
}
.hg-bcond .hg-bcond-tile-value {
  font-size: 23px;
  font-weight: 800;
  color: #1a2b3c;
  line-height: 1.2;
}
.hg-bcond .hg-bcond-tile-sub {
  font-size: 14.5px;
  font-weight: 700;
  color: #6a7884;
}
.hg-bcond .hg-bcond-tile-sub.is-green  { color: #1D9771; }
.hg-bcond .hg-bcond-tile-sub.is-yellow { color: #b07e00; }
.hg-bcond .hg-bcond-tile-sub.is-orange { color: #c4590c; }
.hg-bcond .hg-bcond-tile-sub.is-red    { color: #c3232f; }

/* 3-day strip */
.hg-bcond .hg-bcond-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.hg-bcond .hg-bcond-day {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fbfdfe;
  border: 1px dashed #e2ecf2;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 15px;
  min-width: 0;
}
.hg-bcond .hg-bcond-day-name {
  font-weight: 800;
  color: #34434e;
  flex: 0 0 auto;
}
.hg-bcond .hg-bcond-day-surf {
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: #1D9771;
}
.hg-bcond .hg-bcond-day-surf.is-yellow { background: #d99a00; }
.hg-bcond .hg-bcond-day-surf.is-orange { background: #c4590c; }
.hg-bcond .hg-bcond-day-surf.is-red    { background: #c3232f; }
.hg-bcond .hg-bcond-day-wx {
  color: #5b6b76;
  font-size: 14.5px;
}

/* Buoy / source footnote */
.hg-bcond .hg-bcond-foot {
  margin-top: 9px;
  font-size: 14.5px;
  color: #6a7884;
}
.hg-bcond .hg-bcond-foot .fa {
  margin-right: 5px;
  color: #8aa0ae;
}

/* Live cam block */
.hg-bcond .hg-bcond-cam { margin-top: 11px; }
.hg-bcond .hg-bcond-cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a5793;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}
.hg-bcond .hg-bcond-cam-btn:hover { filter: brightness(.93); }
.hg-bcond .hg-bcond-cam-prov {
  font-size: 13px;
  font-weight: 600;
  opacity: .8;
  margin-left: 2px;
}
.hg-bcond .hg-bcond-cam-frame {
  position: relative;
  margin-top: 10px;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1b26;
}
.hg-bcond .hg-bcond-cam-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .hg-bcond { padding: 12px 13px 14px; }
  .hg-bcond .hg-bcond-days { grid-template-columns: 1fr; gap: 7px; }
  .hg-bcond .hg-bcond-tile-value { font-size: 18px; }
}
@media print {
  .hg-bcond { display: none; }
}
