/* MidwestLakeCams layout refresh — shared production styles */
:root {
  --mlc-navy: #173a4d;
  --mlc-blue: #4f9ec5;
  --mlc-accent: #e96969;
  --mlc-surface: #ffffff;
  --mlc-page: #f4f7f8;
  --mlc-text: #26323a;
  --mlc-muted: #687780;
}

html { scroll-behavior: smooth; }
body { background: var(--mlc-page); color: var(--mlc-text); }

/* A cleaner, more compact shared header. */
#top.topBar { min-height: 32px; }
#navBar .top-bar { min-height: 86px; }
#navBar .top-bar .menu-text img,
#navBar .title-bar-title img { max-height: 52px; width: auto; }
#navBar .top-bar-right .menu > li > a {
  font-weight: 600;
  letter-spacing: .01em;
}

/* Homepage hero and featured cameras. */
/* UPDATED: Taller full-width desktop carousel for a more useful camera view. */
#layerslider { height: 650px !important; max-height: none; }
/* UPDATED: Show the full camera frame instead of zooming/cropping it to fill the slide. */
#layerslider .ls-slide { background: var(--mlc-navy); }
#layerslider .ls-slide .ls-bg {
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  width: 100% !important;
}
#layerslider .ls-slide > div.ls-l {
  /* UPDATED: Reserve vertical room for a two-line title and its button. */
  left: 63px !important;
  top: 205px !important;
  max-width: min(1000px, calc(100vw - 126px));
  line-height: 1.2;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
#layerslider .ls-slide > a.ls-l.button {
  /* UPDATED: Fixed position below the longest possible headline. */
  left: 63px !important;
  top: 330px !important;
}
#premium { background: var(--mlc-surface); padding: 26px 0 32px; }
#premium .heading h4,
.content .main-heading .head-title h1 {
  color: var(--mlc-navy);
  font-weight: 700;
}

/* Camera directory controls and cards. */
.mlc-directory-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 14px 22px;
}
.mlc-directory-tools button {
  appearance: none;
  border: 1px solid #c8d7df;
  border-radius: 999px;
  background: #fff;
  color: var(--mlc-navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mlc-directory-tools button:hover,
.mlc-directory-tools button.is-active {
  background: var(--mlc-navy);
  border-color: var(--mlc-navy);
  color: #fff;
}
.mlc-directory-empty {
  color: var(--mlc-muted);
  display: none;
  margin: 0 14px 24px;
}
.mlc-directory-empty.is-visible { display: block; }
.content { padding-top: 30px; }
.content .main-heading { margin-bottom: 0; }
.content .main-heading .head-title h1 { font-size: clamp(24px, 3vw, 32px) !important; }
.content .list-group .item { margin-bottom: 26px; }
.content .list-group .item .post {
  background: var(--mlc-surface);
  border: 1px solid #dde6ea;
  box-shadow: 0 5px 18px rgba(23,58,77,.07);
  height: 100%;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.content .list-group .item .post:hover {
  box-shadow: 0 12px 26px rgba(23,58,77,.14);
  transform: translateY(-3px);
}
.content .post .post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dce8ed, #b9cdd6);
  overflow: hidden;
}
.content .post .post-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.content .post .post-thumb.mlc-camera-unavailable::after {
  align-items: center;
  color: var(--mlc-navy);
  content: "Camera temporarily unavailable";
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.content .post .post-thumb.mlc-camera-unavailable img { display: none; }
.content .list-group .item .post .post-des { padding: 15px 14px 17px; }
.content .list-group .grid-medium .post-des h6,
.content .list-group .item .post-des h6 { margin: 0; min-height: 42px; }
.content .list-group .item .post-des h6 a {
  color: var(--mlc-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.content .list-group .item.is-filtered-out { display: none; }

/* Place paid promotions in their own tidy container instead of a blank gap. */
.googleAdv { min-height: 0 !important; margin: 0 auto 20px; max-width: 1180px; padding: 0 14px; }

/* More legible footer and form controls. */
footer { margin-top: 40px; }
footer .widgetBox .widgetTitle h5 { color: #fff; font-weight: 700; }
footer .widgetBox .widgetContent { color: #d1d9dd; }
footer .widgetBox .widgetContent input { border-radius: 4px; }

@media screen and (max-width: 639px) {
  #top.topBar { display: none; }
  /* UPDATED: Mobile keeps enough image height while preventing title/button collisions. */
  #layerslider { height: 390px !important; max-height: none; }
  #layerslider .ls-slide > div.ls-l {
    font-size: 21px !important;
    left: 22px !important;
    top: 170px !important;
    max-width: calc(100vw - 44px);
  }
  #layerslider .ls-slide > a.ls-l.button { left: 22px !important; top: 290px !important; }
  .content { padding-top: 22px; }
  .mlc-directory-tools { gap: 7px; }
  .mlc-directory-tools button { font-size: 12px; padding: 7px 11px; }
}
