/* =========================================================
   Storm Ready — Florida Services Directory
   Styling inspired by Mike's Weather Page (spaghettimodels.com)
   ========================================================= */

:root {
  --mwp-navy: #0b2948;
  --mwp-navy-2: #143a66;
  --mwp-page-bg: #1a3585;   /* spaghettimodels.com page background blue */
  --mwp-sky: #2f80ed;
  --mwp-orange: #ff6a00;
  --mwp-orange-2: #ffb347;
  --mwp-sand: #fff8ec;
  --mwp-ink: #222;
  --mwp-muted: #5a6c80;
  --mwp-border: #cfd8e3;
  --mwp-cream: #fdfbf5;
  --mwp-red: #c0392b;
  --mwp-green: #27714d;
  --mwp-shadow: 0 2px 6px rgba(10, 31, 60, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: var(--mwp-ink);
  background: var(--mwp-page-bg);
  line-height: 1.45;
}

a { color: var(--mwp-sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top banner (Mike's-style) ---------- */
.mwp-banner {
  background: linear-gradient(180deg, var(--mwp-navy) 0%, var(--mwp-navy-2) 100%);
  color: #fff;
  padding: 32px 20px;
  border-bottom: 4px solid var(--mwp-orange);
}
.mwp-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.mwp-brand-wrap {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.mwp-brand {
  display: block;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.mwp-brand:hover { opacity: 0.92; }
.mwp-brand img {
  height: 130px;
  width: auto;
  display: block;
}
.mwp-title-link {
  color: inherit;
  text-decoration: none;
}
.mwp-title-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .mwp-banner { padding: 20px 16px; }
  .mwp-brand-wrap { gap: 12px; }
  .mwp-brand img { height: 90px; }
}
.mwp-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
}
.mwp-title small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0;
  margin-top: 3px;
}
.mwp-home-link a {
  color: var(--mwp-orange-2);
  font-weight: 600;
  font-size: 14px;
}
.mwp-home-link a:hover { color: #fff; }

/* ---------- Sub-nav strip ---------- */
.mwp-subnav {
  background: #fff;
  border-bottom: 1px solid var(--mwp-border);
  padding: 8px 20px;
  font-size: 13px;
}
.mwp-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--mwp-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.mwp-subnav a { margin-right: 10px; }
.mwp-submit-link {
  margin-left: auto !important;
  margin-right: 0 !important;
  font-weight: 700;
  color: var(--mwp-orange);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
  padding: 3px 12px;
  border: 1px solid var(--mwp-orange);
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.mwp-submit-link:hover,
.mwp-submit-link:focus {
  background: var(--mwp-orange);
  color: #fff;
  text-decoration: none;
}

/* ---------- Page container ---------- */
.mwp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- Hero block ---------- */
.mwp-hero {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 6px solid var(--mwp-orange);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--mwp-shadow);
}
.mwp-hero h2 {
  margin: 0 0 6px;
  color: var(--mwp-navy);
  font-size: 22px;
}
.mwp-hero p {
  margin: 0;
  color: var(--mwp-muted);
  font-size: 15px;
}

/* ---------- Disclaimer / warning strip ---------- */
.mwp-warn {
  background: #fff3e0;
  border: 1px solid #ffb347;
  color: #7a3e00;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* ---------- Map area ---------- */
.mwp-map-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mwp-border);
  box-shadow: var(--mwp-shadow);
  padding: 10px;
}
#florida-map {
  width: 100%;
  background: #ffffff;
}

/* Image + overlay (MapWise GIF with transparent clickable anchors) */
.mwp-map-shell {
  position: relative;
  width: 100%;
  max-width: 785px;   /* the GIF's native pixel width */
  margin: 0 auto;
  line-height: 0;     /* kill inline-image whitespace so overlay lines up */
}
.mwp-map-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: -webkit-optimize-contrast;
}
/* SVG overlay — one <a> per county wrapping one or more transparent polygons.
   Polygons scale with the image because the SVG uses preserveAspectRatio="none"
   and covers the whole shell. */
.mwp-county-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;  /* individual polygons opt in below */
}
.mwp-poly-link { cursor: pointer; outline: none; }
.mwp-poly {
  fill: rgba(255, 215, 0, 0);   /* invisible by default */
  stroke: transparent;
  stroke-width: 0;
  pointer-events: all;           /* whole county shape is clickable */
  transition: fill 0.12s ease, stroke 0.12s ease;
}
.mwp-poly-link:hover .mwp-poly,
.mwp-poly-link:focus .mwp-poly {
  fill: rgba(255, 215, 0, 0.32);
  stroke: #c79a10;
  stroke-width: 1.5;
}
.mwp-poly-link:focus .mwp-poly {
  stroke: #ff6a00;
  stroke-width: 2;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mwp-map-legend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--mwp-navy);
  border: 1px solid var(--mwp-border);
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: var(--mwp-shadow);
  z-index: 2;
  letter-spacing: 0.2px;
}

.mwp-map-credit {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--mwp-muted);
  text-align: right;
  font-style: italic;
}
.mwp-map-credit a {
  color: var(--mwp-muted);
  text-decoration: underline;
}

/* Floating county-name tooltip */
#mwp-county-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: rgba(11, 41, 72, 0.96);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  letter-spacing: 0.3px;
  border-radius: 3px;
  border-left: 3px solid var(--mwp-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* ---------- County list fallback ---------- */
.mwp-county-index {
  background: #fff;
  border: 1px solid var(--mwp-border);
  padding: 18px 22px;
  margin-top: 18px;
  column-count: 4;
  column-gap: 24px;
}
.mwp-county-index h3 {
  column-span: all;
  margin: 0 0 10px;
  color: var(--mwp-navy);
  font-size: 17px;
}
.mwp-county-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mwp-county-index li {
  padding: 3px 0;
  break-inside: avoid;
}
@media (max-width: 900px) {
  .mwp-county-index { column-count: 2; }
}
@media (max-width: 600px) {
  .mwp-county-index { column-count: 1; }
}

/* ---------- County page ---------- */
.mwp-county-header {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-top: 4px solid var(--mwp-orange);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--mwp-shadow);
}
.mwp-county-header h2 {
  margin: 0 0 4px;
  color: var(--mwp-navy);
  font-size: 26px;
}
.mwp-county-header .meta {
  color: var(--mwp-muted);
  font-size: 14px;
}

/* ---------- Three-column service lists ---------- */
.mwp-lists {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1160px) { .mwp-lists { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .mwp-lists { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .mwp-lists { grid-template-columns: 1fr; } }

.mwp-card {
  background: #fff;
  border: 1px solid var(--mwp-border);
  box-shadow: var(--mwp-shadow);
  display: flex;
  flex-direction: column;
}
.mwp-card header {
  background: var(--mwp-navy);
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  /* 14px (was 15px) lets "Public & Emergency Services" wrap to 2 lines
     instead of 3 in the narrow 5-column layout. */
  font-size: 14px;
  line-height: 1.25;
  border-bottom: 3px solid var(--mwp-orange);
  letter-spacing: 0.2px;
  /* Keep all five card headers the same height regardless of title length.
     76px covers worst-case 3-line wrap; 14px font + tight spacing should
     keep the long title to 2 lines in practice. */
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mwp-card header a {
  color: #fff;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.mwp-card header a::after {
  content: " →";
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-block;
  margin-left: 4px;
}
.mwp-card header a:hover {
  text-decoration: underline;
}
.mwp-card header a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}
.mwp-card header .count {
  flex: 0 0 auto;
  background: var(--mwp-orange);
  color: #fff;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  align-self: center;
}
.mwp-card .body {
  padding: 10px 12px;
}
.mwp-service {
  padding: 10px 10px;
  border: 1px solid #e5ecf3;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 8px;
  background: #fbfdff;
  position: relative;
}
.mwp-service:first-child { margin-top: 2px; }
.mwp-service.sponsor {
  background: #fff7e6;
  border-color: #ffb347;
  border-left: 4px solid var(--mwp-orange);
}
.mwp-service .name {
  font-weight: 700;
  color: var(--mwp-navy);
  font-size: 15px;
}
.mwp-service .desc {
  color: #36506e;
  font-size: 13px;
  margin: 4px 0 6px;
}
.mwp-service .links {
  font-size: 13px;
  white-space: nowrap;          /* keep phone + website on one line */
  overflow: hidden;
  text-overflow: ellipsis;
}
.mwp-service .links a { margin-right: 6px; }
.mwp-service .scope {
  position: absolute;
  top: -9px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(10, 31, 60, 0.25);
}
.mwp-service .scope.statewide { background: #3478c7; }
.mwp-service .scope.local { background: #27714d; }
.mwp-service .scope.national { background: #6a4aa0; }
.mwp-badge-sponsor {
  display: inline-block;
  background: var(--mwp-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}
.mwp-empty {
  color: var(--mwp-muted);
  font-size: 13px;
  font-style: italic;
  padding: 12px 4px;
}

/* ---------- Footer ---------- */
.mwp-footer {
  background: var(--mwp-navy);
  color: #cfdced;
  padding: 24px 20px 30px;
  margin-top: 30px;
  font-size: 13px;
  border-top: 4px solid var(--mwp-orange);
}
.mwp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.mwp-footer h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mwp-footer a { color: var(--mwp-orange-2); }
.mwp-footer a:hover { color: #fff; }
.mwp-disclaimer {
  max-width: 1200px;
  margin: 14px auto 0;
  font-size: 11px;
  color: #8ea4bd;
  border-top: 1px solid #244a78;
  padding-top: 12px;
  line-height: 1.5;
}
@media (max-width: 680px) {
  .mwp-footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Leaflet tooltip override ---------- */
.leaflet-tooltip.mwp-tip {
  background: var(--mwp-navy);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  box-shadow: var(--mwp-shadow);
}
.leaflet-tooltip.mwp-tip::before { border-top-color: var(--mwp-navy); }

/* ---------- Category sub-page (wide list) ---------- */
.mwp-category-hero {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 6px solid var(--mwp-orange);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--mwp-shadow);
}
.mwp-category-hero h2 {
  margin: 0 0 4px;
  color: var(--mwp-navy);
  font-size: 26px;
}
.mwp-category-hero .sub {
  color: var(--mwp-muted);
  font-size: 14px;
}
.mwp-category-hero .county-back {
  margin-top: 8px;
  font-size: 13px;
}

.mwp-service-wide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mwp-service-wide {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 5px solid var(--mwp-navy);
  padding: 18px 22px 16px;
  box-shadow: var(--mwp-shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 20px;
  position: relative;
}
.mwp-service-wide.sponsor {
  background: #fff7e6;
  border-color: #ffb347;
  border-left-color: var(--mwp-orange);
}
.mwp-service-wide .main h3 {
  margin: 0 0 6px;
  color: var(--mwp-navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.mwp-service-wide .main .desc {
  margin: 0;
  color: #2e4a66;
  font-size: 15px;
  line-height: 1.55;
}
.mwp-service-wide .contact {
  background: #f4f8fc;
  border: 1px solid #dfe8f1;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  align-self: start;
}
.mwp-service-wide.sponsor .contact {
  background: #fffaf0;
  border-color: #ffd9a0;
}
.mwp-service-wide .contact dl {
  margin: 0;
}
.mwp-service-wide .contact dt {
  font-weight: 700;
  color: var(--mwp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}
.mwp-service-wide .contact dl > dt:first-child { margin-top: 0; }
.mwp-service-wide .contact dd {
  margin: 2px 0 0;
  color: var(--mwp-ink);
  word-break: break-word;
}
.mwp-service-wide .contact dd a { color: var(--mwp-sky); }
.mwp-service-wide .scope {
  position: absolute;
  top: -9px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(10, 31, 60, 0.25);
}
.mwp-service-wide .scope.statewide { background: #3478c7; }
.mwp-service-wide .scope.local     { background: #27714d; }
.mwp-service-wide .scope.national  { background: #6a4aa0; }
@media (max-width: 720px) {
  .mwp-service-wide { grid-template-columns: 1fr; }
}



/* ---------- Per-listing logo slot ---------- */
.mwp-service-wide .main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mwp-service-wide .logo-slot {
  margin-top: auto;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 280px;
  min-height: 56px;
}
.mwp-service-wide .logo-slot img {
  display: block;
  max-width: 240px;
  max-height: 80px;
  width: auto;
  height: auto;
}
.mwp-service-wide .logo-slot a {
  display: block;
  line-height: 0;
}

/* ---------- Submission form (bottom of every page) ---------- */
.mwp-submit {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 6px solid var(--mwp-orange);
  padding: 22px 26px;
  margin-top: 24px;
  box-shadow: var(--mwp-shadow);
}
.mwp-submit h2 {
  margin: 0 0 6px;
  color: var(--mwp-navy);
  font-size: 22px;
}
.mwp-submit .lead {
  color: var(--mwp-muted);
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.mwp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mwp-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .mwp-form .row { grid-template-columns: 1fr; }
}
.mwp-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  color: var(--mwp-navy);
  letter-spacing: 0.2px;
  gap: 5px;
}
.mwp-form input[type="text"],
.mwp-form input[type="tel"],
.mwp-form input[type="url"],
.mwp-form input[type="email"],
.mwp-form input:not([type]),
.mwp-form select,
.mwp-form textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--mwp-ink);
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-radius: 3px;
  padding: 9px 11px;
  width: 100%;
  box-sizing: border-box;
}
.mwp-form textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.mwp-form input:focus,
.mwp-form select:focus,
.mwp-form textarea:focus {
  outline: none;
  border-color: var(--mwp-orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
}
.mwp-form details {
  font-size: 13px;
  color: var(--mwp-muted);
  border-top: 1px dashed var(--mwp-border);
  padding-top: 12px;
}
.mwp-form details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--mwp-navy);
  padding: 4px 0;
  user-select: none;
}
.mwp-form details > .row { margin-top: 10px; }
.mwp-form button[type="submit"] {
  background: var(--mwp-navy);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid var(--mwp-orange);
  align-self: flex-start;
  margin-top: 4px;
  transition: background 0.15s ease;
}
.mwp-form button[type="submit"]:hover { background: var(--mwp-navy-2); }
.mwp-form button[type="submit"]:active { transform: translateY(1px); }
.mwp-form-note {
  font-size: 12px;
  color: var(--mwp-muted);
  font-style: italic;
  margin-top: -2px;
  min-height: 1em;
}

/* ---------- Star ratings (category subpage cards + company page) ---------- */
.stars { display: inline-block; letter-spacing: 1px; line-height: 1; }
.stars .on  { color: #ff6a00; }
.stars .off { color: #cfd8e3; }
.stars.big  { font-size: 22px; }

.mwp-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  margin-top: 8px;
  background: #f4f8fc;
  border: 1px solid var(--mwp-border);
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  color: var(--mwp-navy);
  align-self: flex-start;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mwp-rating-link:hover {
  background: #fff7e6;
  border-color: var(--mwp-orange);
  text-decoration: none;
}
.mwp-rating-meta { color: var(--mwp-muted); font-size: 12px; font-weight: 600; }
.mwp-rating-meta.empty { font-style: italic; }

/* ---------- Star input on the review submission form ---------- */
.mwp-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;  /* enables :hover to color earlier stars */
  font-size: 32px;
  line-height: 1;
}
.mwp-rating-input input { display: none; }
.mwp-rating-input label {
  cursor: pointer;
  color: #cfd8e3;
  padding: 0 3px;
  transition: color 0.1s ease;
}
.mwp-rating-input label:hover,
.mwp-rating-input label:hover ~ label,
.mwp-rating-input input:checked ~ label { color: #ff6a00; }

/* ---------- Review cards on the company page ---------- */
.mwp-review {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 4px solid var(--mwp-orange);
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--mwp-shadow);
}
.mwp-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.mwp-review-head .stars { font-size: 16px; }
.mwp-review-head .mwp-review-name { font-weight: 700; color: var(--mwp-navy); }
.mwp-review-head .mwp-review-date { color: var(--mwp-muted); }
.mwp-review-body {
  margin: 4px 0 0;
  color: #2e4a66;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Mike's Favorites — 3-section layout (try / see / eat) ---------- */
.mwp-favsec {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-left: 6px solid var(--mwp-orange);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--mwp-shadow);
}
.mwp-favsec-title {
  margin: 0 0 4px;
  color: var(--mwp-navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.mwp-favsec-desc {
  margin: 0 0 14px;
  color: var(--mwp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.mwp-favsec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Mike's Favorites — 3-column grid (Try / See / Eat) ---------- */
.mwp-favsec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 4px;
  align-items: start;
}
/* When inside the grid, each subsection card stacks vertically and removes
   its own bottom margin (the grid gap handles spacing between columns). */
.mwp-favsec-grid > .mwp-favsec { margin-bottom: 0; }
.mwp-favsec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 1000px) { .mwp-favsec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .mwp-favsec-grid { grid-template-columns: 1fr; } }

/* ---------- Compact "favorites column" card ---------- */
.mwp-fav-card {
  background: #fbfdff;
  border: 1px solid #e5ecf3;
  border-left: 4px solid var(--mwp-navy);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-fav-card.sponsor {
  background: #fff7e6;
  border-color: #ffb347;
  border-left-color: var(--mwp-orange);
}
.mwp-fav-card .logo-slot {
  background: #fff;
  border: 1px solid var(--mwp-border);
  border-radius: 4px;
  padding: 8px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.mwp-fav-card .logo-slot a { display: block; line-height: 0; }
.mwp-fav-card .logo-slot img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
}
.mwp-fav-card .name {
  font-weight: 800;
  color: var(--mwp-navy);
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}
.mwp-fav-card .desc {
  color: #36506e;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.mwp-fav-card .links {
  font-size: 13px;
  color: var(--mwp-muted);
  word-break: break-word;
  margin: 0;
}
.mwp-fav-card .links a { margin-right: 6px; }
.mwp-fav-card .mwp-rating-link {
  margin-top: 0;
  align-self: flex-start;
  font-size: 12px;
  padding: 3px 8px;
}
.mwp-fav-card .sponsor-news {
  font-size: 12px;
  color: #7a3e00;
  background: #fff3e0;
  border-left: 3px solid var(--mwp-orange);
  padding: 6px 10px;
  margin: 0;
}
.mwp-fav-card .sponsor-news strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c25a00;
  margin-bottom: 2px;
}

/* ---------- Stars-only rating badge (county top page compact cards) ---------- */
.mwp-service.has-rating .name { padding-right: 70px; } /* only the name avoids the stars; description + links use full width */
.mwp-service .mwp-stars-only {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
}
.mwp-service .mwp-stars-only .stars .on  { color: #ff6a00; }
.mwp-service .mwp-stars-only .stars .off { color: #cfd8e3; }
.mwp-service .mwp-stars-only:hover .stars .on  { color: #c25a00; }
