/* ============================================================
   CAROLINA CONTENT — STYLES (v2, matched to real brand assets)
   Palette (pulled from the actual Spotlight/logo materials):
     --ink       #121110  (near-black, primary background)
     --ink-2     #1B1917  (raised surface on dark)
     --cream     #F4EFE3  (warm off-white, light surface/text)
     --gold      #C6A455  (metallic gold accent — spotlight rules/quotes)
     --palmetto  #37503F  (deep palmetto green)
     --charcoal  #21201C  (body text on cream)
   Type:
     Display: 'Playfair Display' (editorial serif — spotlight headlines)
     Script:  'Playfair Display' italic (used sparingly for taglines)
     Body:    'Jost' (clean geometric sans)
     Eyebrow: 'Jost' uppercase + tracked (matches "CAROLINA CONTENT SPOTLIGHT")
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Jost:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B2A33;
  --ink-2: #24363F;
  --cream: #F4EFE3;
  --gold: #C6A455;
  --gold-dim: #9C7F3E;
  --palmetto: #37503F;
  --charcoal: #21201C;
  --line: rgba(244, 239, 227, 0.14);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
}

body.on-light { background: var(--cream); color: var(--charcoal); }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

.script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
}

.eyebrow, .mono {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- Brand mark ---------------- */

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--cream); }
.on-light .brand-mark { color: var(--charcoal); }
.brand-name {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}
.brand-name .sub { display: block; font-size: 0.82rem; opacity: 0.75; letter-spacing: 0.2em; }

/* ---------------- Header ---------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.on-light .masthead { border-bottom-color: rgba(33,32,28,0.12); }

.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--gold); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------------- Layout ---------------- */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px) 100px;
}

.eyebrow.tag { color: var(--gold); margin-bottom: 16px; display: inline-block; }

.hero-title { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 16px; }
.hero-title .accent { font-style: italic; color: var(--gold); }

.subtitle { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 58ch; opacity: 0.8; margin-bottom: 44px; }

.rule {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 18px 0;
}

/* ---------------- State picker ---------------- */

.state-split { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 520px; }

.state-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px) clamp(24px, 4vw, 40px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.state-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.state-card .kicker { color: var(--gold); margin-bottom: 10px; }
.state-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
.state-card p { margin: 0; opacity: 0.72; max-width: 40ch; font-family: 'Jost', sans-serif; }
.state-card .go {
  position: absolute; top: 24px; right: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem; color: var(--gold);
}

/* ---------------- Card grids ---------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.tile {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.on-light .tile { background: #fff; border-color: rgba(33,32,28,0.1); box-shadow: 0 1px 2px rgba(33,32,28,0.05); }
a.tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.tile.empty { opacity: 0.5; cursor: default; }
.tile.empty:hover { transform: none; border-color: var(--line); }
.tile h3 { font-size: 1.2rem; }
.tile .count { margin-top: auto; color: var(--gold); }
.tile .desc { font-size: 0.9rem; opacity: 0.7; font-family: 'Jost', sans-serif; text-transform: none; letter-spacing: normal; }

/* ---------------- Town image cards ---------------- */
.region-layout-main .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.town-image-card {
  min-height: 245px; border-radius: 18px; border: 1px solid rgba(255,255,255,.18);
  background-size: cover; background-position: center; padding: 22px; display: flex;
  flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
  box-shadow: 0 18px 38px rgba(0,0,0,.22); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.town-image-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.town-card-kicker { width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(18,35,42,.72); color: #fff; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.town-card-copy h3 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 6px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.town-card-count { color: #f4d58d; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 720px) { .town-image-card { min-height: 205px; } }

/* ---------------- Category tag ---------------- */

.pin {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  width: fit-content;
}

/* ---------------- Spotlight listing cards ---------------- */

.listing-list { display: flex; flex-direction: column; gap: 18px; }

.listing {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  position: relative;
}
.on-light .listing { background: #fff; border-color: rgba(33,32,28,0.1); }

.listing-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.listing-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.listing-head-text { min-width: 0; }
.listing-head .eyebrow { margin-bottom: 4px; }

.listing .eyebrow { color: var(--gold); margin-bottom: 10px; display: block; }
.listing h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 4px;
}
.listing .tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  opacity: 0.75;
  margin: 0 0 14px;
  font-size: 0.98rem;
}
.listing .quote {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 14px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.85;
}
.listing .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--gold);
}
.listing .meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing p.note { margin: 0; font-size: 0.92rem; opacity: 0.7; font-family: 'Jost', sans-serif; }

/* ---------------- Empty states ---------------- */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  opacity: 0.75;
}
.empty-state .eyebrow { display: block; margin-bottom: 8px; color: var(--gold); }

footer { text-align: center; padding: 30px 20px 50px; opacity: 0.5; font-size: 0.85rem; }

/* ---------------- State silhouettes (home page) ---------------- */

.state-silhouette {
  width: 100%;
  max-height: 150px;
  margin: 8px 0 4px;
  overflow: visible;
}

.silhouette-fill {
  fill: var(--gold-dim);
  stroke: var(--gold);
  stroke-width: 2;
  transition: fill 0.2s ease;
}

.state-card:hover .silhouette-fill { fill: var(--gold); }

/* ---------------- Region map (state/region page) ---------------- */

.map-wrap {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 4vw, 32px);
  margin-bottom: 28px;
}
.on-light .map-wrap { background: #fff; border-color: rgba(33,32,28,0.1); }

.state-map {
  width: 100%;
  height: auto;
  max-height: 60vh;
  overflow: visible;
}

.map-region-link { cursor: pointer; }

.map-region {
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0.88;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: center;
}
.on-light .map-region { stroke: var(--cream); }

.map-region-link:hover .map-region,
.map-region-link:focus .map-region {
  opacity: 1;
  filter: brightness(1.18);
}

.map-border {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  pointer-events: none;
}

.map-label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  fill: var(--cream);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--ink);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-fill-1 { fill: #37503F; }
.map-fill-2 { fill: #4A6B54; }
.map-fill-3 { fill: #C6A455; }
.map-fill-4 { fill: #8C6D3F; }
.map-fill-5 { fill: #5C7A63; }
.map-fill-6 { fill: #A98A4E; }

.region-list { margin-top: 8px; }

/* ---------------- Real logo image ---------------- */

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------------- Hero banner (home page) ---------------- */

.hero-banner--plain {
  height: clamp(160px, 30vw, 280px);
  background-image: linear-gradient(180deg, rgba(27,42,51,0.05) 0%, rgba(27,42,51,0.75) 100%), url('hero-banner.jpg');
  background-size: cover;
  background-position: center 40%;
}

.home-page {
  padding-top: clamp(4px, 1.2vw, 16px);
}

/* ---------------- Clickable combined state map (home page) ---------------- */

.carolina-map-wrap {
  position: relative;
  max-width: 800px;
  width: 85%;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .carolina-map-wrap { width: 100%; }
}

.carolina-map-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.carolina-map-wrap:has(.state-hotspot:hover) .carolina-map-img,
.carolina-map-wrap:has(.state-hotspot:focus-visible) .carolina-map-img {
  transform: scale(1.02);
  filter: brightness(1.08) drop-shadow(0 0 18px rgba(198, 164, 85, 0.35));
}

.state-hotspot {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  outline-offset: -3px;
}
.state-hotspot:hover,
.state-hotspot:focus-visible {
  background: rgba(198, 164, 85, 0.35);
}

.hotspot-nc {
  clip-path: polygon(12.07% 7.17%, 96.58% 19.71%, 100% 35.84%, 92.56% 53.76%, 60.36% 46.59%, 30.18% 39.43%, 14.08% 34.05%);
}
.hotspot-sc {
  clip-path: polygon(6.04% 32.26%, 30.18% 39.43%, 60.36% 46.59%, 64.39% 78.85%, 44.27% 100%, 12.07% 86.02%, 4.02% 53.76%);
}

.choose-state-heading {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 22px;
}

.choose-state-subtext {
  text-align: center;
  margin-top: 10px;
  opacity: 0.75;
}

.mission-text {
  text-align: center;
  max-width: 700px;
  margin: 28px auto 0;
}
.mission-line-1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 8px;
}
.mission-line-2 {
  font-family: 'Jost', sans-serif;
  opacity: 0.75;
  margin: 0;
}

/* ---------------- Full-bleed photo backgrounds (region/town pages) ---------------- */

.photo-bg-wrap {
  width: 100%;
  min-height: calc(100vh - 90px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.photo-bg-wrap .page {
  background: transparent;
}
@media (max-width: 720px) {
  .photo-bg-wrap { background-attachment: scroll; }
}

/* ---------------- Source link (schools, official data) ---------------- */

.source-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  text-decoration: underline;
}
.source-link:hover { color: var(--gold-dim); }

/* ---------------- Contact box (home page) ---------------- */

.contact-box {
  margin: 48px auto 0;
  max-width: 520px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--ink-2);
}

.contact-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-box p {
  font-family: 'Jost', sans-serif;
  opacity: 0.75;
  margin: 0 0 20px;
}

.contact-button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.contact-button:hover { background: var(--cream); }

/* ---------------- Region layout with events sidebar ---------------- */

.region-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .region-layout { grid-template-columns: 1fr; }
}

.events-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
@media (max-width: 900px) {
  .events-sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }
}

.events-sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.event-sidebar-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.event-sidebar-item:last-of-type {
  border-bottom: none;
}
.event-sidebar-item h4 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 6px;
}
.event-sidebar-date,
.event-sidebar-town {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  margin-top: 2px;
}

.events-sidebar-empty {
  opacity: 0.6;
}

.events-sidebar-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  text-decoration: underline;
  font-size: 0.85rem;
}
.events-sidebar-more:hover { color: var(--gold-dim); }

/* ============================================================
   CAROLINA CONTENT — VERSION 2 HOMEPAGE & USABILITY UPDATES
   ============================================================ */

.main-nav { display:flex; align-items:center; gap:22px; margin-left:auto; margin-right:28px; }
.main-nav a { font-size:.76rem; text-transform:uppercase; letter-spacing:.12em; opacity:.82; }
.main-nav a:hover { color:var(--gold); opacity:1; }
@media (max-width: 900px) {
  .main-nav { display:none; }
  .masthead { gap:16px; }
  .breadcrumbs { margin-left:auto; }
}

.home-hero {
  position:relative;
  min-height:clamp(390px, 64vh, 650px);
  background:url('hero-banner.jpg') center center/cover no-repeat;
  overflow:hidden;
}
.home-hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(15,27,35,.02) 0%, rgba(15,27,35,.06) 72%, rgba(15,27,35,.42) 100%);
  pointer-events:none;
}

.home-v2 { padding-top:clamp(56px, 8vw, 96px); }
.state-selector { text-align:center; }
.section-heading { max-width:700px; margin:0 auto 24px; }
.section-heading h2 { font-size:clamp(2.1rem, 5vw, 4rem); margin-bottom:14px; }
.section-heading p { margin:0; opacity:.72; line-height:1.65; }

.carolina-map-wrap { width:min(780px, 100%); margin:22px auto 8px; }
.carolina-map-img { filter:drop-shadow(0 24px 45px rgba(0,0,0,.35)); }
.carolina-map-wrap:has(.state-hotspot:hover) .carolina-map-img,
.carolina-map-wrap:has(.state-hotspot:focus-visible) .carolina-map-img {
  transform:scale(1.015);
  filter:brightness(1.06) drop-shadow(0 24px 50px rgba(0,0,0,.4));
}
.state-hotspot:hover, .state-hotspot:focus-visible { background:transparent; }
.state-hotspot:focus-visible { outline:2px solid var(--gold); }

.state-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:980px; margin:28px auto 0; text-align:left; }
.state-choice { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center; padding:24px; border:1px solid var(--line); background:rgba(36,54,63,.78); border-radius:14px; transition:.2s ease; }
.state-choice:hover { transform:translateY(-3px); border-color:var(--gold); background:var(--ink-2); }
.state-abbr { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; border:1px solid var(--gold); color:var(--gold); font-weight:700; letter-spacing:.08em; }
.state-choice strong { display:block; font-family:'Playfair Display',serif; font-size:1.24rem; margin-bottom:5px; }
.state-choice small { display:block; opacity:.68; line-height:1.4; }
.choice-arrow { color:var(--gold); font-size:1.45rem; }

.home-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:clamp(70px,10vw,120px) 0 0; }
.home-feature-card { min-height:300px; padding:clamp(28px,4vw,44px); border:1px solid var(--line); background:linear-gradient(145deg,rgba(36,54,63,.95),rgba(27,42,51,.86)); border-radius:16px; }
.home-feature-card h3 { font-size:clamp(1.7rem,3vw,2.55rem); margin:8px 0 14px; }
.home-feature-card p { opacity:.73; line-height:1.65; }
.text-link { display:inline-block; margin-top:18px; color:var(--gold); font-weight:600; }

.submit-card { margin:26px 0 0; display:flex; justify-content:space-between; align-items:center; gap:30px; padding:clamp(28px,5vw,52px); border-radius:16px; border:1px solid rgba(198,164,85,.42); background:linear-gradient(120deg,rgba(198,164,85,.13),rgba(36,54,63,.76)); }
.submit-card h3 { font-size:clamp(1.7rem,3.3vw,2.65rem); margin:8px 0 10px; }
.submit-card p { margin:0; opacity:.74; max-width:700px; }
.primary-button { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; padding:14px 24px; border-radius:999px; background:var(--gold); color:var(--ink); font-weight:700; }
.primary-button:hover { background:var(--cream); }

.listing-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.listing-actions a { border:1px solid rgba(33,32,28,.15); border-radius:999px; padding:8px 13px; font-size:.78rem; font-weight:600; color:var(--charcoal); background:#f8f5ee; }
.listing-actions a:hover { border-color:var(--gold); color:#6e5522; }
.business-hours { margin:14px 0 0; font-size:.88rem; opacity:.75; }

@media (max-width: 760px) {
  .home-hero { min-height:clamp(420px, 72vw, 560px); background-position:center center; }
  .state-choice-grid, .home-feature-grid { grid-template-columns:1fr; }
  .submit-card { align-items:flex-start; flex-direction:column; }
  .primary-button { width:100%; }
  .state-choice { padding:20px; grid-template-columns:auto 1fr auto; }
}


/* ============================================================
   VERSION 2.2 — STATEWIDE EVENTS HUB
   ============================================================ */
.events-hub-page { max-width: 1180px; }
.event-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}
.event-category-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid rgba(27,42,51,.14);
  border-radius: 16px;
  background: #fff;
  color: #1b2a33;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(27,42,51,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.event-category-card:hover,
.event-category-card.active {
  transform: translateY(-2px);
  border-color: #d99727;
  box-shadow: 0 12px 30px rgba(27,42,51,.11);
}
.event-category-card h3 { margin: 0 0 .45rem; }
.event-category-card p { margin: 0 0 .8rem; color: #5d6970; line-height: 1.5; }
.events-results-section { margin-top: 1rem; }
.events-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.events-results-heading h2 { margin: .3rem 0 0; }
.state-switch-link { color: #9b5f00; font-weight: 700; text-decoration: none; }
.event-hub-list { display: grid; gap: 1rem; }
.event-hub-listing {
  background: #fff;
  border: 1px solid rgba(27,42,51,.12);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(27,42,51,.05);
}
.event-hub-listing h3 { margin: .7rem 0 .45rem; color: #1b2a33; }
.event-hub-topline { display:flex; justify-content:space-between; align-items:center; gap:1rem; color:#66747b; font-size:.78rem; }
.event-type-pill { display:inline-flex; padding:.35rem .65rem; border-radius:999px; background:#f2e5c9; color:#6b4a0b; font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
@media (max-width: 860px) {
  .event-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-results-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .event-category-grid { grid-template-columns: 1fr; }
}


/* Version 2.4 — suggestion email actions */
.submit-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.submit-email-link {
  color: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.88;
}
.submit-email-link:hover { opacity: 1; }
@media (max-width: 700px) {
  .submit-actions { width: 100%; align-items: stretch; }
  .submit-actions .primary-button { text-align: center; }
  .submit-email-link { text-align: center; overflow-wrap: anywhere; }
}

/* ============================================================
   VERSION 2.5 — SITE-WIDE SEARCH
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.search-panel {
  margin: 0 auto 3rem;
  padding: 1.45rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
}
.on-light .search-panel {
  border-color: rgba(28,58,72,.13);
  background: #fff;
  box-shadow: 0 14px 38px rgba(28,58,72,.09);
}
.search-panel-copy h2 { margin: .3rem 0 .35rem; }
.search-panel-copy p { margin: 0 0 1rem; opacity: .8; }
.site-search-form {
  display: flex;
  gap: .7rem;
  width: 100%;
}
.site-search-form input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 1.1rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  color: #1b2a33;
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.site-search-form input:focus {
  border-color: #e4a23b;
  box-shadow: 0 0 0 4px rgba(228,162,59,.18);
}
.site-search-form button {
  min-width: 112px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 12px;
  background: #e4a23b;
  color: #17242c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.site-search-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.search-examples { margin-top: .7rem; font-size: .78rem; opacity: .68; }
.search-panel-compact {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
}
.search-panel-compact .search-panel-copy { display: none; }
.search-panel-compact .search-examples { margin-left: .15rem; }
.search-results-heading { margin: 2rem 0 1.1rem; }
.search-results-heading h2 { margin: 0 0 .3rem; }
.search-results-heading p { margin: 0; opacity: .7; }
.search-results-list { display: grid; gap: 1rem; }
.search-result-card {
  padding: 1.35rem;
  border: 1px solid rgba(28,58,72,.13);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28,58,72,.07);
}
.search-result-type {
  display: inline-flex;
  margin-bottom: .55rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: #edf4f6;
  color: #42616f;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.search-result-card h3 { margin: 0 0 .25rem; color: #1b2a33; }
.search-result-card p { color: #546873; }
.search-result-subtitle { margin: 0 0 .65rem; font-weight: 700; }
.search-result-meta { font-size: .8rem; }
.search-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(28,58,72,.1);
}
.search-result-actions { margin: 0; }
@media (max-width: 680px) {
  .search-panel { padding: 1rem; border-radius: 15px; }
  .site-search-form { flex-direction: column; }
  .site-search-form button { min-height: 50px; width: 100%; }
  .search-result-footer { align-items: flex-start; flex-direction: column; }
}

/* VERSION 2.8 — FEATURED HOMEPAGE EVENT */
.featured-event-section {
  margin: 3.5rem 0;
}
.featured-event-heading {
  margin-bottom: 1.25rem;
}
.featured-event-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: stretch;
  padding: 1.25rem;
  border: 1px solid rgba(206, 157, 59, 0.45);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(249,246,238,0.98));
  box-shadow: 0 18px 50px rgba(14, 35, 51, 0.14);
}
.featured-event-image-link {
  display: block;
  min-height: 100%;
}
.featured-event-image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}
.featured-event-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem 0;
}
.featured-event-copy h3 {
  margin: .8rem 0 .6rem;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  color: #173245;
}
.featured-event-date {
  font-weight: 800;
  color: #9a5b08;
}
.featured-event-meta {
  margin: .75rem 0 1.1rem;
  color: #425867;
}
.featured-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .6rem;
}
.event-listing-image,
.listing-feature-image {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #f3efe6;
  border-radius: 16px;
  margin-bottom: 1rem;
}
@media (max-width: 760px) {
  .featured-event-card {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: .9rem;
  }
  .featured-event-copy {
    padding: .3rem .4rem .8rem;
  }
  .featured-event-image {
    max-height: none;
    height: auto;
  }
}


/* VERSION 2.9 — NORTH CAROLINA REGIONS PAGE REFRESH */
.nc-regions-background {
  position: relative;
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, rgba(7, 27, 48, 0.50) 0%, rgba(7, 27, 48, 0.80) 48%, rgba(7, 27, 48, 0.97) 100%),
    url('north-carolina-regions-bg.jpg') center top / cover fixed no-repeat;
}
.nc-regions-background::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 12%, rgba(237, 177, 37, 0.12), transparent 34%);
}
.nc-regions-page {
  position: relative;
  z-index: 1;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: 72px;
}
.regions-intro-panel {
  max-width: 980px;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(7, 30, 52, 0.88), rgba(8, 42, 68, 0.70));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}
.nc-regions-page .hero-title {
  max-width: 850px;
  margin-bottom: 10px;
}
.nc-regions-page .subtitle {
  max-width: 780px;
  color: rgba(255,255,255,.88);
}
.nc-regions-page .site-search-shell {
  margin-top: 22px;
  background: rgba(6, 31, 53, 0.72);
  border-color: rgba(255, 255, 255, 0.25);
}
.regions-map-panel {
  background: linear-gradient(145deg, rgba(4, 28, 50, 0.88), rgba(8, 54, 78, 0.72));
  border-color: rgba(234, 175, 34, 0.62);
  box-shadow: 0 22px 60px rgba(0,0,0,.30);
  backdrop-filter: blur(7px);
}
.nc-regions-page .state-map {
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.36));
}
.nc-regions-page .map-region {
  opacity: .95;
  stroke: rgba(8, 28, 42, .92);
  stroke-width: 4;
}
.nc-regions-page .map-border {
  stroke: #efb526;
  stroke-width: 5;
}
.nc-regions-page .map-label {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .02em;
  stroke-width: 8px;
}
.nc-regions-page .region-list {
  gap: 18px;
}
.nc-regions-page .region-card {
  background: linear-gradient(145deg, rgba(6, 35, 59, .90), rgba(8, 53, 77, .76));
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.nc-regions-page .region-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,181,38,.75);
  background: linear-gradient(145deg, rgba(9, 46, 74, .96), rgba(11, 66, 91, .88));
}
@media (max-width: 760px) {
  .nc-regions-background { background-attachment: scroll; }
  .nc-regions-page { padding-top: 22px; }
  .regions-intro-panel { border-radius: 18px; }
  .nc-regions-page .map-label { font-size: 48px; stroke-width: 10px; }
  .regions-map-panel { padding: 12px; }
}

/* VERSION 3.0 — NORTH CAROLINA MAP + REGION CARD POLISH */
.nc-regions-page .regions-map-panel {
  border: 0;
  outline: 0;
  padding: clamp(8px, 1.8vw, 18px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(3, 29, 53, .72), rgba(7, 52, 79, .48));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.nc-regions-page .regions-map-panel::before,
.nc-regions-page .regions-map-panel::after {
  display: none;
}
.nc-regions-page .state-map {
  display: block;
  max-height: none;
  padding: clamp(4px, 1vw, 10px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.32));
}
.nc-regions-page .map-border {
  stroke: rgba(239,181,38,.92);
  stroke-width: 3;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.nc-regions-page .map-region {
  stroke: rgba(3, 24, 39, .85);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

/* Photo-backed cards inspired by the approved visual mockup. */
.nc-regions-page .region-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.nc-regions-page .region-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  padding: 22px;
  background-image:
    linear-gradient(180deg, rgba(3,24,43,.14) 0%, rgba(3,24,43,.55) 44%, rgba(3,24,43,.96) 100%),
    url('north-carolina-regions-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.nc-regions-page .region-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(240,181,38,.08), transparent 46%);
  pointer-events: none;
}
.nc-regions-page .region-card-charlotte-region { background-position: 38% center; }
.nc-regions-page .region-card-cape-fear { background-position: 88% center; }
.nc-regions-page .region-card-triangle { background-position: 65% center; }
.nc-regions-page .region-card-triad { background-position: 48% 35%; }
.nc-regions-page .region-card-high-country { background-position: 5% center; }
.nc-regions-page .region-card-obx { background-position: 100% center; }
.nc-regions-page .region-card .pin {
  width: fit-content;
  margin-bottom: auto;
  background: rgba(4,28,48,.64);
  backdrop-filter: blur(6px);
}
.nc-regions-page .region-card h3 {
  margin-top: 44px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.nc-regions-page .region-card .desc {
  color: rgba(255,255,255,.88);
  opacity: 1;
  line-height: 1.45;
  text-shadow: 0 2px 9px rgba(0,0,0,.5);
}
.nc-regions-page .region-card .count {
  margin-top: 10px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.nc-regions-page .region-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239,181,38,.85);
  box-shadow: 0 22px 44px rgba(0,0,0,.34);
  background-size: 104%;
}

@media (max-width: 980px) {
  .nc-regions-page .region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .nc-regions-page .region-list { grid-template-columns: 1fr; }
  .nc-regions-page .region-card { min-height: 190px; }
  .nc-regions-page .regions-map-panel { border-radius: 18px; padding: 6px; }
}


/* Santa Greg public calendar */
.santa-schedule-card {
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(117, 20, 26, 0.96), rgba(26, 64, 54, 0.96));
  color: #fff;
  box-shadow: 0 18px 45px rgba(28, 39, 45, 0.18);
  border: 1px solid rgba(255,255,255,0.18);
}
.santa-schedule-copy { margin-bottom: 1rem; }
.santa-schedule-copy h2 { margin: .35rem 0 .6rem; color: #fff; }
.santa-schedule-copy p { max-width: 760px; color: rgba(255,255,255,.86); }
.santa-schedule-card .listing-actions a {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.calendar-embed-wrap {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.calendar-embed-wrap iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .santa-schedule-card { padding: .85rem; border-radius: 18px; }
  .calendar-embed-wrap, .calendar-embed-wrap iframe { min-height: 620px; }
}

/* ============================================================
   VERSION 3.2 — SEASONAL CHRISTMAS-IN-JULY EVENTS BACKGROUND
   Active through August 1, 2026; JavaScript removes the seasonal
   class automatically beginning August 2, 2026.
   ============================================================ */
.events-page-background {
  min-height: 100vh;
  background:
    linear-gradient(rgba(244, 248, 249, 0.96), rgba(244, 248, 249, 0.98));
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.events-page-background.seasonal-events-theme {
  position: relative;
  background-image:
    linear-gradient(rgba(7, 28, 48, 0.64), rgba(7, 28, 48, 0.82)),
    url('christmas-in-july-events-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.events-page-background.seasonal-events-theme .events-hub-page {
  position: relative;
  z-index: 1;
}

.events-page-background.seasonal-events-theme .events-hub-page > .eyebrow,
.events-page-background.seasonal-events-theme .events-hub-page > .hero-title,
.events-page-background.seasonal-events-theme .events-hub-page > .subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.events-page-background.seasonal-events-theme .events-hub-page > .hero-title .accent {
  color: #ffd166;
}

.events-page-background.seasonal-events-theme .search-shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(7px);
}

.events-page-background.seasonal-events-theme .event-category-card,
.events-page-background.seasonal-events-theme .event-hub-listing,
.events-page-background.seasonal-events-theme .santa-calendar-card,
.events-page-background.seasonal-events-theme .empty-state {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.events-page-background.seasonal-events-theme .events-results-heading h2,
.events-page-background.seasonal-events-theme .events-results-heading .eyebrow,
.events-page-background.seasonal-events-theme .state-switch-link {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  .events-page-background,
  .events-page-background.seasonal-events-theme {
    background-attachment: scroll;
    background-position: 58% top;
  }
}


/* ============================================================
   VERSION 3.3 — MURRELLS INLET EVENTS SEASONAL BACKGROUND FIX
   Applies the Christmas-in-July beach background to the actual
   Murrells Inlet town Events route through August 1, 2026.
   ============================================================ */
.town-events-page-background {
  min-height: 100vh;
  background: linear-gradient(rgba(244, 248, 249, 0.97), rgba(244, 248, 249, 0.99));
  background-size: cover;
  background-position: center top;
}

.town-events-page-background.seasonal-events-theme {
  background-image:
    linear-gradient(rgba(7, 28, 48, 0.58), rgba(7, 28, 48, 0.80)),
    url('christmas-in-july-events-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.town-events-page-background.seasonal-events-theme .town-events-page > .eyebrow,
.town-events-page-background.seasonal-events-theme .town-events-page > .hero-title,
.town-events-page-background.seasonal-events-theme .town-events-page > .subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.58);
}

.town-events-page-background.seasonal-events-theme .search-shell,
.town-events-page-background.seasonal-events-theme .listing,
.town-events-page-background.seasonal-events-theme .santa-calendar-card,
.town-events-page-background.seasonal-events-theme .empty-state {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.town-events-page-background .town-events-page {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

@media (max-width: 760px) {
  .town-events-page-background.seasonal-events-theme {
    background-attachment: scroll;
    background-position: 58% top;
  }
}

/* VERSION 3.4 — SOUTH CAROLINA REGIONS PAGE REFRESH */
.sc-regions-background {
  position: relative;
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, rgba(6, 25, 45, .28) 0%, rgba(7, 30, 52, .68) 48%, rgba(7, 28, 48, .94) 100%),
    url('south-carolina-regions-bg.jpg') center top / cover fixed no-repeat;
}
.sc-regions-background::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(237,177,37,.14), transparent 34%),
    linear-gradient(90deg, rgba(3,24,41,.18), transparent 38%, rgba(3,24,41,.12));
}
.sc-regions-page {
  position: relative;
  z-index: 1;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: 72px;
}
.sc-regions-page .regions-intro-panel {
  max-width: 980px;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(7,30,52,.90), rgba(8,42,68,.72));
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
}
.sc-regions-page .subtitle { color: rgba(255,255,255,.88); max-width: 780px; }
.sc-regions-page .site-search-shell {
  margin-top: 22px;
  background: rgba(6,31,53,.72);
  border-color: rgba(255,255,255,.25);
}
.sc-regions-page .regions-map-panel {
  border: 0;
  outline: 0;
  padding: clamp(8px, 1.8vw, 18px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(3,29,53,.76), rgba(7,52,79,.50));
  box-shadow: 0 20px 55px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  backdrop-filter: blur(7px);
}
.sc-regions-page .regions-map-panel::before,
.sc-regions-page .regions-map-panel::after { display:none; }
.sc-regions-page .state-map {
  display:block;
  max-height:none;
  padding: clamp(4px,1vw,10px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.32));
}
.sc-regions-page .map-border {
  stroke: rgba(239,181,38,.92);
  stroke-width: 3;
  fill:none;
  vector-effect: non-scaling-stroke;
}
.sc-regions-page .map-region {
  stroke: rgba(3,24,39,.85);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.sc-regions-page .region-list {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.sc-regions-page .region-card {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:220px;
  justify-content:flex-end;
  border:1px solid rgba(255,255,255,.20);
  border-radius:18px;
  padding:22px;
  background-size:cover;
  background-repeat:no-repeat;
  box-shadow:0 16px 34px rgba(0,0,0,.24);
}
.sc-regions-page .region-card::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg, rgba(3,24,43,.10) 0%, rgba(3,24,43,.58) 46%, rgba(3,24,43,.96) 100%);
}
/* Version 3.9: unique South Carolina region-card photography */
.sc-regions-page .region-card-upstate {
  background-image:url('hero-banner.jpg');
  background-size:300% auto;
  background-position:0% 8%;
}
.sc-regions-page .region-card-midlands {
  background-image:url('hero-banner.jpg');
  background-size:300% auto;
  background-position:50% 8%;
}
.sc-regions-page .region-card-pee-dee {
  background-image:url('florence-bg.jpg');
  background-position:58% center;
}
.sc-regions-page .region-card-grand-strand {
  background-image:url('grand-strand-bg.jpg');
  background-position:center;
}
.sc-regions-page .region-card-lowcountry {
  background-image:url('charleston-bg.jpg');
  background-position:44% center;
}
.sc-regions-page .region-card-santee-cooper-lake-marion {
  background-image:url('lake-marion-bg.jpg');
  background-position:center;
}
.sc-regions-page .region-card .pin {
  width:fit-content;
  margin-bottom:auto;
  background:rgba(4,28,48,.66);
  backdrop-filter:blur(6px);
}
.sc-regions-page .region-card h3 {
  margin-top:44px;
  font-size:clamp(1.3rem,2vw,1.75rem);
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.sc-regions-page .region-card .desc {
  color:rgba(255,255,255,.90);
  opacity:1;
  line-height:1.45;
  text-shadow:0 2px 9px rgba(0,0,0,.50);
}
.sc-regions-page .region-card .count {
  margin-top:10px;
  font-weight:700;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.sc-regions-page .region-card:hover {
  transform:translateY(-5px);
  border-color:rgba(239,181,38,.85);
  box-shadow:0 22px 44px rgba(0,0,0,.34);
  background-size:104%;
}
@media (max-width:980px) {
  .sc-regions-page .region-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .sc-regions-background { background-attachment:scroll; }
  .sc-regions-page { padding-top:22px; }
  .sc-regions-page .region-list { grid-template-columns:1fr; }
  .sc-regions-page .region-card { min-height:190px; }
  .sc-regions-page .regions-map-panel { border-radius:18px; padding:6px; }
}


/* ============================================================
   VERSION 3.5 — DEDICATED LIVE MUSIC EVENTS PAGE
   Route: #/events/sc/category/live-music (and NC equivalent)
   ============================================================ */
.events-page-background.live-music-theme {
  position: relative;
  background-image:
    linear-gradient(rgba(9, 12, 18, 0.56), rgba(9, 18, 28, 0.86)),
    url('live-music-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Live music should override the temporary Christmas theme when
   the visitor intentionally opens the Live Music category. */
.events-page-background.seasonal-events-theme.live-music-theme {
  background-image:
    linear-gradient(rgba(9, 12, 18, 0.56), rgba(9, 18, 28, 0.86)),
    url('live-music-bg.jpg');
}

.events-page-background.live-music-theme .events-hub-page {
  position: relative;
  z-index: 1;
}

.events-page-background.live-music-theme .events-hub-page > .eyebrow,
.events-page-background.live-music-theme .events-hub-page > .hero-title,
.events-page-background.live-music-theme .events-hub-page > .subtitle {
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
}

.events-page-background.live-music-theme .events-hub-page > .eyebrow {
  color: #ffb11b;
}

.events-page-background.live-music-theme .search-shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 177, 27, 0.8);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.events-page-background.live-music-theme .event-category-card,
.events-page-background.live-music-theme .event-hub-listing,
.events-page-background.live-music-theme .empty-state {
  background: rgba(18, 23, 29, 0.90);
  color: #fff;
  border-color: rgba(255, 177, 27, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.events-page-background.live-music-theme .event-category-card h3,
.events-page-background.live-music-theme .event-hub-listing h3,
.events-page-background.live-music-theme .events-results-heading h2 {
  color: #fff;
}

.events-page-background.live-music-theme .event-category-card p,
.events-page-background.live-music-theme .event-hub-listing .note,
.events-page-background.live-music-theme .event-hub-listing .tagline,
.events-page-background.live-music-theme .event-hub-topline,
.events-page-background.live-music-theme .event-hub-listing .meta {
  color: rgba(255, 255, 255, 0.78);
}

.events-page-background.live-music-theme .event-category-card:hover,
.events-page-background.live-music-theme .event-category-card.active {
  border-color: #ffb11b;
  background: rgba(38, 29, 19, 0.94);
}

.events-page-background.live-music-theme .event-type-pill {
  background: rgba(255, 177, 27, 0.18);
  color: #ffd277;
  border: 1px solid rgba(255, 177, 27, 0.38);
}

.events-page-background.live-music-theme .state-switch-link,
.events-page-background.live-music-theme .events-results-heading .eyebrow {
  color: #ffcf70;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.events-page-background.live-music-theme .listing-actions a {
  border-color: rgba(255, 177, 27, 0.45);
  color: #ffcf70;
}

.events-page-background.live-music-theme .listing-actions a:hover {
  background: #ffb11b;
  color: #111820;
}

@media (max-width: 760px) {
  .events-page-background.live-music-theme,
  .events-page-background.seasonal-events-theme.live-music-theme {
    background-attachment: scroll;
    background-position: 60% top;
  }
}

/* ============================================================
   VERSION 3.6 — FARMERS MARKET / EAT LOCAL EVENTS PAGE
   Route: #/events/sc/category/markets (and NC equivalent)
   ============================================================ */
.events-page-background.markets-theme {
  position: relative;
  background-image:
    linear-gradient(rgba(20, 42, 23, 0.58), rgba(16, 35, 22, 0.90)),
    radial-gradient(circle at 18% 20%, rgba(247, 191, 72, 0.28), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(196, 89, 38, 0.22), transparent 34%),
    linear-gradient(135deg, #416b3a 0%, #7d8d45 42%, #b57535 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* A lightweight farm-pattern overlay built entirely in CSS/SVG,
   so there is no extra image file to maintain. */
.events-page-background.markets-theme::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180' viewBox='0 0 260 180'%3E%3Cg fill='none' stroke='%23fff4d0' stroke-width='2' opacity='.75'%3E%3Cpath d='M28 128h62l-8 25H36z'/%3E%3Cpath d='M40 128l9-34m28 34l-6-39'/%3E%3Ccircle cx='55' cy='101' r='11'/%3E%3Ccircle cx='73' cy='111' r='10'/%3E%3Cpath d='M51 91c-1-11 7-18 14-22m8 32c7-13 18-15 27-14'/%3E%3Cpath d='M154 131c18-45 37-58 58-63m-52 45c17-7 30-5 42 3m-28-25c7-17 18-29 32-37'/%3E%3Cpath d='M145 139h86'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: soft-light;
}

/* Farmers Market deliberately overrides the temporary seasonal
   Christmas background when the category itself is selected. */
.events-page-background.seasonal-events-theme.markets-theme {
  background-image:
    linear-gradient(rgba(20, 42, 23, 0.58), rgba(16, 35, 22, 0.90)),
    radial-gradient(circle at 18% 20%, rgba(247, 191, 72, 0.28), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(196, 89, 38, 0.22), transparent 34%),
    linear-gradient(135deg, #416b3a 0%, #7d8d45 42%, #b57535 100%);
}

.events-page-background.markets-theme .events-hub-page {
  position: relative;
  z-index: 1;
}

.events-page-background.markets-theme .events-hub-page > .eyebrow,
.events-page-background.markets-theme .events-hub-page > .hero-title,
.events-page-background.markets-theme .events-hub-page > .subtitle {
  color: #fffaf0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
}
.events-page-background.markets-theme .events-hub-page > .eyebrow {
  color: #ffd26a;
}
.events-page-background.markets-theme .search-shell {
  background: rgba(255, 252, 239, 0.95);
  border-color: rgba(247, 191, 72, 0.85);
  box-shadow: 0 16px 38px rgba(18, 42, 20, 0.34);
  backdrop-filter: blur(8px);
}
.events-page-background.markets-theme .event-category-card,
.events-page-background.markets-theme .event-hub-listing,
.events-page-background.markets-theme .empty-state {
  background: rgba(29, 55, 31, 0.90);
  color: #fffaf0;
  border-color: rgba(247, 191, 72, 0.30);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.events-page-background.markets-theme .event-category-card h3,
.events-page-background.markets-theme .event-hub-listing h3,
.events-page-background.markets-theme .events-results-heading h2 {
  color: #fffaf0;
}
.events-page-background.markets-theme .event-category-card p,
.events-page-background.markets-theme .event-hub-listing .note,
.events-page-background.markets-theme .event-hub-listing .tagline,
.events-page-background.markets-theme .event-hub-topline,
.events-page-background.markets-theme .event-hub-listing .meta {
  color: rgba(255, 250, 240, 0.80);
}
.events-page-background.markets-theme .event-category-card:hover,
.events-page-background.markets-theme .event-category-card.active {
  border-color: #f7bf48;
  background: rgba(75, 81, 37, 0.95);
}
.events-page-background.markets-theme .event-type-pill {
  background: rgba(247, 191, 72, 0.18);
  color: #ffe29a;
  border: 1px solid rgba(247, 191, 72, 0.42);
}
.events-page-background.markets-theme .state-switch-link,
.events-page-background.markets-theme .events-results-heading .eyebrow {
  color: #ffe29a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.events-page-background.markets-theme .listing-actions a {
  border-color: rgba(247, 191, 72, 0.48);
  color: #ffe29a;
}
.events-page-background.markets-theme .listing-actions a:hover {
  background: #f7bf48;
  color: #18351e;
}

@media (max-width: 760px) {
  .events-page-background.markets-theme,
  .events-page-background.seasonal-events-theme.markets-theme {
    background-attachment: scroll;
    background-position: center top;
  }
}

/* ============================================================
   VERSION 4.0 — SOUTH CAROLINA DESTINATION CARDS
   Larger, more editorial region cards with glass information
   panels and a stronger sense of depth.
   ============================================================ */
.sc-regions-page .region-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.sc-regions-page .region-card {
  min-height: 310px;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.24);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 22px 45px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    background-size .45s ease;
}

.sc-regions-page .region-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(4,20,34,.04) 0%, rgba(4,20,34,.18) 42%, rgba(3,19,33,.82) 100%);
}

.sc-regions-page .region-card::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 46%;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(4,28,48,.91), rgba(9,52,78,.72));
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 13px 28px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc-regions-page .region-card .pin {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(239,181,38,.80);
  border-radius: 999px;
  color: #ffe8a4;
  background: rgba(3,24,42,.70);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
}

.sc-regions-page .region-card h3,
.sc-regions-page .region-card .desc,
.sc-regions-page .region-card .count {
  position: relative;
  z-index: 1;
  margin-left: 30px;
  margin-right: 30px;
}

.sc-regions-page .region-card h3 {
  margin-top: auto;
  padding-top: 177px;
  margin-bottom: 6px;
  font-size: clamp(1.48rem, 2vw, 1.9rem);
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,.55);
}

.sc-regions-page .region-card .desc {
  min-height: 2.8em;
  font-size: .92rem;
  line-height: 1.38;
  color: rgba(255,255,255,.88);
}

.sc-regions-page .region-card .count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  margin-bottom: 24px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #071d2f;
  background: linear-gradient(135deg, #f6c44a, #eaa21c);
  box-shadow: 0 8px 16px rgba(0,0,0,.20);
  text-shadow: none;
  font-size: .72rem;
  letter-spacing: .06em;
}

.sc-regions-page .region-card:hover {
  transform: translateY(-9px) scale(1.012);
  border-color: rgba(246,196,74,.92);
  box-shadow:
    0 32px 62px rgba(0,0,0,.40),
    0 0 0 1px rgba(246,196,74,.20),
    0 0 32px rgba(246,196,74,.16);
  background-size: 108%;
}

.sc-regions-page .region-card:hover::after {
  background: linear-gradient(145deg, rgba(4,28,48,.95), rgba(14,65,94,.82));
}

/* Give each row a slightly varied editorial crop. */
.sc-regions-page .region-card-upstate { background-position: 8% center; }
.sc-regions-page .region-card-midlands { background-position: 52% center; }
.sc-regions-page .region-card-pee-dee { background-position: 57% center; }
.sc-regions-page .region-card-grand-strand { background-position: 50% center; }
.sc-regions-page .region-card-lowcountry { background-position: 44% center; }
.sc-regions-page .region-card-santee-cooper-lake-marion { background-position: 50% center; }

@media (max-width: 1040px) {
  .sc-regions-page .region-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sc-regions-page .region-card { min-height: 295px; }
}

@media (max-width: 650px) {
  .sc-regions-page .region-list { grid-template-columns: 1fr; gap: 18px; }
  .sc-regions-page .region-card { min-height: 285px; }
  .sc-regions-page .region-card h3 { padding-top: 160px; }
}


/* Version 4.1 — South Carolina interactive map redesign */
.sc-regions-page .regions-map-panel {
  background:
    radial-gradient(circle at 50% 42%, rgba(30,122,156,.22), transparent 58%),
    linear-gradient(145deg, rgba(2,27,50,.86), rgba(4,49,75,.72));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}
.sc-regions-page .state-map {
  overflow: visible;
  padding: clamp(14px,2vw,28px);
}
.sc-regions-page .map-region-link {
  cursor: pointer;
  outline: none;
}
.sc-regions-page .map-region-photo,
.sc-regions-page .map-region-shade,
.sc-regions-page .map-label {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .24s ease, filter .24s ease, opacity .24s ease, stroke .24s ease;
}
.sc-regions-page .map-region-photo {
  stroke: rgba(255,255,255,.72);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  filter: saturate(.95) contrast(1.04) brightness(.82);
}
.sc-regions-page .map-region-shade {
  fill: rgba(3,24,39,.28);
  stroke: rgba(239,181,38,.82);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sc-regions-page .map-label {
  fill: #fff;
  font-weight: 800;
  letter-spacing: .035em;
  paint-order: stroke fill;
  stroke: rgba(0,15,28,.88);
  stroke-width: 4px;
  stroke-linejoin: round;
  text-shadow: 0 2px 6px rgba(0,0,0,.65);
  pointer-events: none;
}
.sc-regions-page .map-region-link:hover .map-region-photo,
.sc-regions-page .map-region-link:focus-visible .map-region-photo {
  transform: translateY(-5px) scale(1.025);
  filter: saturate(1.14) contrast(1.06) brightness(1.02);
  stroke: #ffd267;
}
.sc-regions-page .map-region-link:hover .map-region-shade,
.sc-regions-page .map-region-link:focus-visible .map-region-shade {
  transform: translateY(-5px) scale(1.025);
  fill: rgba(3,24,39,.08);
  stroke: #ffd267;
  stroke-width: 3.2;
}
.sc-regions-page .map-region-link:hover .map-label,
.sc-regions-page .map-region-link:focus-visible .map-label {
  transform: translateY(-5px) scale(1.045);
  fill: #fff7da;
}
.sc-regions-page .map-border {
  stroke: rgba(255,209,91,.96);
  stroke-width: 3.4;
  filter: drop-shadow(0 0 7px rgba(239,181,38,.45));
}
@media (max-width: 700px) {
  .sc-regions-page .state-map { padding: 8px; }
  .sc-regions-page .map-label { stroke-width: 3px; }
}


/* Version 4.2 — verified South Carolina map-photo rendering.
   Each region now contains a real SVG <image> clipped to that region polygon. */
.sc-regions-page .map-region-photo {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .24s ease, filter .24s ease;
  filter: saturate(.96) contrast(1.06) brightness(.76);
}
.sc-regions-page .map-region-outline {
  fill: none;
  stroke: rgba(255, 214, 105, .96);
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .24s ease, stroke .24s ease, stroke-width .24s ease;
}
.sc-regions-page .map-region-link:hover .map-region-photo,
.sc-regions-page .map-region-link:focus-visible .map-region-photo {
  transform: translateY(-5px) scale(1.025);
  filter: saturate(1.12) contrast(1.08) brightness(.95);
}
.sc-regions-page .map-region-link:hover .map-region-outline,
.sc-regions-page .map-region-link:focus-visible .map-region-outline {
  transform: translateY(-5px) scale(1.025);
  stroke: #fff1b4;
  stroke-width: 3.4;
}

/* ============================================================
   VERSION 5.0 — COMPACT SOUTH CAROLINA REGION BROWSER
   Keeps the original clean colored map, reduces the tall intro,
   and puts compact destination cards beside the map on desktop.
   ============================================================ */
.sc-regions-page {
  padding-top: clamp(18px, 2.5vw, 34px);
}
.sc-regions-page .regions-intro-panel {
  max-width: none;
  margin-bottom: 14px;
  padding: 18px 22px 16px;
  border-radius: 18px;
}
.sc-regions-page .regions-intro-panel .hero-title {
  font-size: clamp(2rem, 4vw, 3.65rem);
  margin-bottom: 4px;
}
.sc-regions-page .regions-intro-panel .subtitle {
  margin: 0 0 10px;
  max-width: none;
}
.sc-regions-page .site-search-shell {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 15px;
}
.sc-regions-page .site-search-form input {
  min-height: 46px;
}
.sc-regions-page .site-search-form button {
  min-height: 46px;
  padding-inline: 22px;
}
.sc-regions-page .site-search-hints {
  margin-top: 5px;
}

.sc-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.sc-quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(5,39,66,.88), rgba(9,72,98,.72));
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.sc-quick-actions a:hover,
.sc-quick-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,205,73,.72);
  background: linear-gradient(145deg, rgba(9,58,89,.96), rgba(14,89,113,.86));
}

.sc-region-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(330px, .62fr);
  gap: 16px;
  align-items: stretch;
}
.sc-regions-page .sc-region-browser .regions-map-panel {
  margin: 0;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.sc-regions-page .sc-region-browser .state-map {
  width: 100%;
  max-height: 555px;
  padding: 6px;
}

/* Restore the clean, original colored region map. */
.sc-regions-page .map-region {
  stroke: rgba(2,30,50,.9);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.sc-regions-page .map-fill-1,
.sc-regions-page .map-fill-2,
.sc-regions-page .map-fill-5 { fill: #45bd72; }
.sc-regions-page .map-fill-3,
.sc-regions-page .map-fill-4,
.sc-regions-page .map-fill-6 { fill: #f5a51c; }
.sc-regions-page .map-region-link:hover .map-region,
.sc-regions-page .map-region-link:focus-visible .map-region {
  transform: translateY(-3px) scale(1.018);
  filter: brightness(1.12) saturate(1.08) drop-shadow(0 8px 8px rgba(0,0,0,.25));
}
.sc-regions-page .map-label {
  fill: #fff;
  font-weight: 900;
  paint-order: stroke fill;
  stroke: rgba(0,24,40,.88);
  stroke-width: 4px;
  pointer-events: none;
}

.sc-regions-page .sc-region-browser .region-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  align-content: stretch;
}
.sc-regions-page .sc-region-browser .region-card {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 104px minmax(0,1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(5,36,60,.9);
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 10px 25px rgba(0,0,0,.20);
}
.sc-regions-page .sc-region-browser .region-card::before,
.sc-regions-page .sc-region-browser .region-card::after {
  display: none;
}
.sc-regions-page .region-card-thumb {
  display: block;
  min-height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sc-regions-page .region-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(5,36,60,.92));
}
.sc-regions-page .region-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 11px 14px 10px 8px;
}
.sc-regions-page .sc-region-browser .region-card .pin {
  position: static;
  align-self: flex-start;
  margin-bottom: 2px;
  font-size: .61rem;
}
.sc-regions-page .sc-region-browser .region-card h3 {
  padding: 0;
  margin: 0 0 2px;
  font-size: clamp(1.03rem, 1.4vw, 1.32rem);
  line-height: 1.05;
}
.sc-regions-page .sc-region-browser .region-card .desc {
  display: block;
  margin: 0 0 5px;
  font-size: .76rem;
  line-height: 1.25;
  color: rgba(255,255,255,.78);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sc-regions-page .sc-region-browser .region-card .count {
  margin-top: auto;
  color: #ffd15a;
  font-size: .66rem;
}
.sc-regions-page .sc-region-browser .region-card:hover,
.sc-regions-page .sc-region-browser .region-card:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(255,210,91,.72);
  box-shadow: 0 13px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,210,91,.18);
}

@media (max-width: 980px) {
  .sc-region-browser {
    grid-template-columns: 1fr;
  }
  .sc-regions-page .sc-region-browser .regions-map-panel {
    min-height: 440px;
  }
  .sc-regions-page .sc-region-browser .state-map {
    max-height: 430px;
  }
  .sc-regions-page .sc-region-browser .region-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 680px) {
  .sc-quick-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sc-regions-page .regions-intro-panel { padding: 15px; }
  .sc-regions-page .site-search-form { gap: 6px; }
  .sc-regions-page .site-search-form button { padding-inline: 13px; }
  .sc-regions-page .sc-region-browser .regions-map-panel { min-height: 320px; padding: 5px; }
  .sc-regions-page .sc-region-browser .state-map { max-height: 310px; }
  .sc-regions-page .sc-region-browser .region-list { grid-template-columns: 1fr; }
}

/* ============================================================
   VERSION 5.1 — OPEN MAP + 2-COLUMN PHOTO REGION GRID
   Removes the blue map container and restores destination imagery
   while keeping the compact side-by-side desktop layout.
   ============================================================ */
.sc-regions-page .sc-region-browser {
  grid-template-columns: minmax(0, 1.04fr) minmax(500px, .96fr);
  gap: 18px;
  align-items: center;
}

/* Let the South Carolina shape stand on its own. */
.sc-regions-page .sc-region-browser .regions-map-panel {
  min-height: 500px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}
.sc-regions-page .sc-region-browser .regions-map-panel::before,
.sc-regions-page .sc-region-browser .regions-map-panel::after {
  display: none !important;
}
.sc-regions-page .sc-region-browser .state-map {
  width: 100%;
  max-width: 720px;
  max-height: 475px;
  padding: 0;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.28));
}

/* Two cards across and three rows on desktop. */
.sc-regions-page .sc-region-browser .region-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

/* Restore full destination photos instead of the flat blue compact cards. */
.sc-regions-page .sc-region-browser .region-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background-color: #083656;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 13px 28px rgba(0,0,0,.28);
  isolation: isolate;
}
.sc-regions-page .sc-region-browser .region-card::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,22,38,.06) 14%, rgba(2,25,43,.32) 46%, rgba(2,22,38,.94) 100%);
}
.sc-regions-page .sc-region-browser .region-card::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,209,90,.18);
  pointer-events: none;
}
.sc-regions-page .region-card-thumb {
  display: none;
}
.sc-regions-page .region-card-copy {
  width: 100%;
  min-width: 0;
  padding: 18px 16px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}
.sc-regions-page .sc-region-browser .region-card .pin {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffe082;
  background: rgba(2,28,48,.72);
  border: 1px solid rgba(255,205,73,.72);
  backdrop-filter: blur(8px);
}
.sc-regions-page .sc-region-browser .region-card h3 {
  margin: 0 0 4px;
  padding: 0;
  font-size: clamp(1.28rem, 1.7vw, 1.72rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 7px rgba(0,0,0,.8);
}
.sc-regions-page .sc-region-browser .region-card .desc {
  margin: 0 0 9px;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.sc-regions-page .sc-region-browser .region-card .count {
  align-self: flex-start;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: #082a43;
  background: #ffd15a;
  font-size: .64rem;
  box-shadow: 0 5px 12px rgba(0,0,0,.2);
}
.sc-regions-page .sc-region-browser .region-card:hover,
.sc-regions-page .sc-region-browser .region-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255,210,91,.9);
  box-shadow: 0 18px 36px rgba(0,0,0,.34), 0 0 0 2px rgba(255,210,91,.18);
  filter: saturate(1.08) brightness(1.04);
}

/* Explicit real-photo assignments for all six South Carolina regions. */
.sc-regions-page .sc-region-browser .region-card-upstate {
  background-image: url('south-carolina-regions-bg.jpg');
  background-position: 4% center;
}
.sc-regions-page .sc-region-browser .region-card-grand-strand {
  background-image: url('grand-strand-bg.jpg');
  background-position: center;
}
.sc-regions-page .sc-region-browser .region-card-pee-dee {
  background-image: url('florence-bg.jpg');
  background-position: center;
}
.sc-regions-page .sc-region-browser .region-card-santee-cooper-lake-marion {
  background-image: url('lake-marion-bg.jpg');
  background-position: center;
}
.sc-regions-page .sc-region-browser .region-card-lowcountry {
  background-image: url('charleston-bg.jpg');
  background-position: center;
}
.sc-regions-page .sc-region-browser .region-card-midlands {
  background-image: url('south-carolina-regions-bg.jpg');
  background-position: 52% center;
}

@media (max-width: 1120px) {
  .sc-regions-page .sc-region-browser {
    grid-template-columns: 1fr;
  }
  .sc-regions-page .sc-region-browser .regions-map-panel {
    min-height: 390px;
  }
  .sc-regions-page .sc-region-browser .state-map {
    max-height: 390px;
  }
  .sc-regions-page .sc-region-browser .region-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 800px) {
  .sc-regions-page .sc-region-browser .region-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px) {
  .sc-regions-page .sc-region-browser .regions-map-panel {
    min-height: 285px;
  }
  .sc-regions-page .sc-region-browser .state-map {
    max-height: 285px;
  }
  .sc-regions-page .sc-region-browser .region-list {
    grid-template-columns: 1fr;
  }
  .sc-regions-page .sc-region-browser .region-card {
    min-height: 175px;
  }
}

/* ============================================================
   VERSION 5.2 — BALANCED SOUTH CAROLINA TOP LAYOUT
   Compact full-width intro/search, large open map on the left,
   quick actions + 2x3 photo region grid on the right.
   ============================================================ */
.sc-regions-page .regions-intro-panel {
  max-width: none;
  margin-bottom: 14px;
  padding: 18px 22px 16px;
}
.sc-regions-page .regions-intro-panel .hero-title {
  margin-bottom: 5px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: .98;
}
.sc-regions-page .regions-intro-panel .subtitle {
  max-width: none;
  margin-bottom: 11px;
  line-height: 1.35;
}
.sc-regions-page .regions-intro-panel .site-search {
  margin-top: 8px;
}
.sc-regions-page .regions-intro-panel .site-search-form {
  min-height: 48px;
  padding: 5px;
  border-radius: 15px;
}
.sc-regions-page .regions-intro-panel .site-search-form input {
  min-height: 38px;
  padding-block: 7px;
}
.sc-regions-page .regions-intro-panel .site-search-form button {
  min-height: 38px;
  padding: 7px 22px;
}
.sc-regions-page .regions-intro-panel .search-hints {
  margin-top: 5px;
  font-size: .63rem;
}

.sc-regions-page .sc-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, .88fr);
  gap: 22px;
  align-items: stretch;
}
.sc-regions-page .sc-left-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.sc-regions-page .sc-right-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}

/* Open, larger state map — no blue frame. */
.sc-regions-page .sc-top-layout .regions-map-panel {
  width: 100%;
  min-height: 590px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}
.sc-regions-page .sc-top-layout .regions-map-panel::before,
.sc-regions-page .sc-top-layout .regions-map-panel::after {
  display: none !important;
}
.sc-regions-page .sc-top-layout .state-map {
  width: 108%;
  max-width: 790px;
  max-height: 570px;
  padding: 0;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.34));
}

/* Actions sit at the top-right in a compact 2x2 block. */
.sc-regions-page .sc-right-column .sc-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  margin: 0;
}
.sc-regions-page .sc-right-column .sc-quick-actions a {
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 13px;
  justify-content: center;
  font-size: .82rem;
}

/* Six image cards in a two-column / three-row grid. */
.sc-regions-page .sc-right-column .region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
  flex: 1;
  align-content: stretch;
}
.sc-regions-page .sc-right-column .region-card {
  min-height: 166px;
  border-radius: 16px;
}
.sc-regions-page .sc-right-column .region-card-copy {
  padding: 15px 14px 13px;
}
.sc-regions-page .sc-right-column .region-card h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.48rem);
}
.sc-regions-page .sc-right-column .region-card .desc {
  font-size: .73rem;
  margin-bottom: 7px;
}
.sc-regions-page .sc-right-column .region-card .pin {
  top: 10px;
  left: 10px;
}

@media (max-width: 1120px) {
  .sc-regions-page .sc-top-layout {
    grid-template-columns: 1fr;
  }
  .sc-regions-page .sc-top-layout .regions-map-panel {
    min-height: 440px;
  }
  .sc-regions-page .sc-top-layout .state-map {
    width: 100%;
    max-height: 430px;
  }
  .sc-regions-page .sc-right-column .sc-quick-actions {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  .sc-regions-page .sc-right-column .region-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 780px) {
  .sc-regions-page .regions-intro-panel { padding: 15px; }
  .sc-regions-page .sc-right-column .sc-quick-actions {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .sc-regions-page .sc-right-column .region-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px) {
  .sc-regions-page .sc-top-layout .regions-map-panel { min-height: 300px; }
  .sc-regions-page .sc-top-layout .state-map { max-height: 300px; }
  .sc-regions-page .sc-right-column .region-list { grid-template-columns: 1fr; }
  .sc-regions-page .sc-right-column .region-card { min-height: 170px; }
}

/* ============================================================
   VERSION 5.3 — FULL-WIDTH SOUTH CAROLINA LAYOUT
   Uses the available desktop viewport instead of constraining the
   state page to the site's standard 1180px content column.
   ============================================================ */
.sc-regions-background .sc-regions-page {
  width: calc(100% - 48px);
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: 0;
}

.sc-regions-page .regions-intro-panel {
  width: 100%;
  max-width: none;
}

.sc-regions-page .sc-top-layout {
  width: 100%;
  grid-template-columns: minmax(0, 1.28fr) minmax(500px, .72fr);
  gap: clamp(24px, 2.4vw, 42px);
}

.sc-regions-page .sc-top-layout .regions-map-panel {
  min-height: clamp(610px, 66vh, 780px);
}

.sc-regions-page .sc-top-layout .state-map {
  width: min(100%, 920px);
  max-width: 920px;
  max-height: 720px;
}

.sc-regions-page .sc-right-column {
  justify-content: flex-start;
}

.sc-regions-page .sc-right-column .region-card {
  min-height: clamp(174px, 18vh, 220px);
}

@media (min-width: 1500px) {
  .sc-regions-background .sc-regions-page {
    width: calc(100% - 72px);
    max-width: 1840px;
  }
  .sc-regions-page .sc-top-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(540px, .65fr);
  }
  .sc-regions-page .sc-top-layout .state-map {
    max-width: 1020px;
    max-height: 760px;
  }
}

@media (max-width: 1120px) {
  .sc-regions-background .sc-regions-page {
    width: calc(100% - 28px);
  }
}

@media (max-width: 680px) {
  .sc-regions-background .sc-regions-page {
    width: calc(100% - 20px);
  }
}

/* ============================================================
   VERSION 5.4 — SHARED FULL-WIDTH STATE LAYOUT (SC + NC)
   North Carolina now uses the same wide desktop structure as
   South Carolina while retaining its own background and imagery.
   ============================================================ */
.nc-regions-background .nc-regions-page {
  width: calc(100% - 48px);
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: 0;
}

.nc-regions-page .regions-intro-panel {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
  padding: 18px 22px 16px;
}
.nc-regions-page .regions-intro-panel .hero-title {
  margin-bottom: 5px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: .98;
}
.nc-regions-page .regions-intro-panel .subtitle {
  max-width: none;
  margin-bottom: 11px;
  line-height: 1.35;
}
.nc-regions-page .regions-intro-panel .site-search {
  margin-top: 8px;
}
.nc-regions-page .regions-intro-panel .site-search-form {
  min-height: 48px;
  padding: 5px;
  border-radius: 15px;
}
.nc-regions-page .regions-intro-panel .site-search-form input {
  min-height: 38px;
  padding-block: 7px;
}
.nc-regions-page .regions-intro-panel .site-search-form button {
  min-height: 38px;
  padding: 7px 22px;
}
.nc-regions-page .regions-intro-panel .search-hints {
  margin-top: 5px;
  font-size: .63rem;
}

/* Shared two-column state browser. */
.regions-page .state-top-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(500px, .72fr);
  gap: clamp(24px, 2.4vw, 42px);
  align-items: stretch;
}
.regions-page .state-left-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.regions-page .state-right-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
  justify-content: flex-start;
}
.regions-page .state-top-layout .regions-map-panel {
  width: 100%;
  min-height: clamp(610px, 66vh, 780px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}
.regions-page .state-top-layout .regions-map-panel::before,
.regions-page .state-top-layout .regions-map-panel::after {
  display: none !important;
}
.regions-page .state-top-layout .state-map {
  width: min(100%, 920px);
  max-width: 920px;
  max-height: 720px;
  padding: 0;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.34));
}
.regions-page .state-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  margin: 0;
}
.regions-page .state-quick-actions a {
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
}
.regions-page .state-right-column .region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
  flex: 1;
  align-content: stretch;
}
.regions-page .state-right-column .region-card {
  min-height: clamp(174px, 18vh, 220px);
  border-radius: 16px;
}
.regions-page .state-right-column .region-card-copy {
  padding: 15px 14px 13px;
}
.regions-page .state-right-column .region-card h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.48rem);
}
.regions-page .state-right-column .region-card .desc {
  font-size: .73rem;
  margin-bottom: 7px;
}
.regions-page .state-right-column .region-card .pin {
  top: 10px;
  left: 10px;
}

@media (min-width: 1500px) {
  .nc-regions-background .nc-regions-page {
    width: calc(100% - 72px);
    max-width: 1840px;
  }
  .regions-page .state-top-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(540px, .65fr);
  }
  .regions-page .state-top-layout .state-map {
    max-width: 1020px;
    max-height: 760px;
  }
}
@media (max-width: 1120px) {
  .nc-regions-background .nc-regions-page {
    width: calc(100% - 28px);
  }
  .regions-page .state-top-layout {
    grid-template-columns: 1fr;
  }
  .regions-page .state-top-layout .regions-map-panel {
    min-height: 440px;
  }
  .regions-page .state-top-layout .state-map {
    width: 100%;
    max-height: 430px;
  }
  .regions-page .state-quick-actions {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  .regions-page .state-right-column .region-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 780px) {
  .nc-regions-page .regions-intro-panel { padding: 15px; }
  .regions-page .state-quick-actions {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .regions-page .state-right-column .region-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 680px) {
  .nc-regions-background .nc-regions-page {
    width: calc(100% - 20px);
  }
}
@media (max-width: 560px) {
  .regions-page .state-top-layout .regions-map-panel { min-height: 300px; }
  .regions-page .state-top-layout .state-map { max-height: 300px; }
  .regions-page .state-right-column .region-list { grid-template-columns: 1fr; }
  .regions-page .state-right-column .region-card { min-height: 170px; }
}

/* ============================================================
   VERSION 5.5 — STATE QUICK LINKS + CLEAN DESTINATION CARDS
   - Centers the four category links directly beneath search
   - Makes links slightly larger
   - Removes the blue cover panels from region cards
   - Uses full-card scenic photography with readable gradients
   ============================================================ */

.regions-page .state-quick-actions-wide {
  width: min(100%, 1120px);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  padding-inline: clamp(4px, 1vw, 14px);
}
.regions-page .state-quick-actions-wide a {
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 15px;
  font-size: clamp(.86rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(8,112,158,.94), rgba(5,72,112,.96));
  border: 1px solid rgba(255,213,86,.52);
  box-shadow: 0 9px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.regions-page .state-quick-actions-wide a:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.28), 0 0 0 2px rgba(255,197,38,.18);
}

/* The moved quick-action row no longer belongs in the right column. */
.regions-page .state-right-column > .state-quick-actions { display: none !important; }

/* Full-photo destination cards; remove every inherited blue cover block. */
.regions-page .state-right-column .region-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex !important;
  align-items: flex-end;
  min-height: clamp(170px, 18vh, 215px);
  padding: 0 !important;
  border-radius: 17px;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 13px 28px rgba(0,0,0,.28);
}
.regions-page .state-right-column .region-card::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,17,31,.04) 0%, rgba(2,19,34,.18) 38%, rgba(2,19,34,.93) 100%);
}
.regions-page .state-right-column .region-card::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,209,90,.14);
  background: none !important;
}
.regions-page .state-right-column .region-card-thumb {
  display: none !important;
  background: none !important;
}
.regions-page .state-right-column .region-card-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100%;
  padding: 48px 15px 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.regions-page .state-right-column .region-card-copy::before,
.regions-page .state-right-column .region-card-copy::after {
  display: none !important;
  content: none !important;
}
.regions-page .state-right-column .region-card .pin {
  position: absolute !important;
  top: 11px !important;
  left: 11px !important;
  z-index: 4;
  width: fit-content;
  margin: 0 !important;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffd45d;
  background: rgba(2,25,44,.76) !important;
  border: 1px solid rgba(255,201,51,.78);
  backdrop-filter: blur(5px);
}
.regions-page .state-right-column .region-card h3 {
  margin: 0 0 3px !important;
  color: #fff;
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}
.regions-page .state-right-column .region-card .desc {
  color: rgba(255,255,255,.9);
  font-size: .74rem;
  line-height: 1.28;
  text-shadow: 0 2px 8px rgba(0,0,0,.75);
}
.regions-page .state-right-column .region-card .count {
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #10233a;
  background: #ffd02e;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.regions-page .state-right-column .region-card:hover {
  transform: translateY(-5px);
  background-size: 106% !important;
  filter: brightness(1.06) saturate(1.06);
}

/* South Carolina destination imagery — no reused banner artwork. */
.sc-regions-page .region-card-upstate {
  background-image: url('north-carolina-regions-bg.jpg') !important;
  background-position: 8% 46% !important;
}
.sc-regions-page .region-card-midlands {
  background-image: url('south-carolina-regions-bg.jpg') !important;
  background-position: 50% 48% !important;
}
.sc-regions-page .region-card-pee-dee {
  background-image: url('florence-bg.jpg') !important;
  background-position: 56% center !important;
}
.sc-regions-page .region-card-grand-strand {
  background-image: url('grand-strand-bg.jpg') !important;
  background-position: center !important;
}
.sc-regions-page .region-card-lowcountry {
  background-image: url('charleston-bg.jpg') !important;
  background-position: 46% center !important;
}
.sc-regions-page .region-card-santee-cooper-lake-marion {
  background-image: url('lake-marion-bg.jpg') !important;
  background-position: center !important;
}

@media (max-width: 900px) {
  .regions-page .state-quick-actions-wide {
    grid-template-columns: repeat(2, minmax(0,1fr));
    width: 100%;
  }
}
@media (max-width: 520px) {
  .regions-page .state-quick-actions-wide { gap: 9px; }
  .regions-page .state-quick-actions-wide a {
    min-height: 50px;
    padding: 9px 10px;
    font-size: .78rem;
  }
}

/* ===== Version 5.6: clear South Carolina destination photography ===== */
/* Remove the leftover blurred/blue panel entirely and keep the image crisp. */
.sc-regions-page .state-right-column .region-card,
.sc-regions-page .state-right-column .region-card * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-thumb {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.sc-regions-page .state-right-column .region-card-copy {
  background: transparent !important;
  filter: none !important;
  -webkit-filter: none !important;
  padding: 54px 15px 14px !important;
}
/* Only a clean bottom gradient for text readability—no blur and no blue box. */
.sc-regions-page .state-right-column .region-card::before {
  background: linear-gradient(
    180deg,
    rgba(2, 17, 31, 0) 0%,
    rgba(2, 17, 31, 0.02) 44%,
    rgba(2, 17, 31, 0.72) 76%,
    rgba(2, 17, 31, 0.94) 100%
  ) !important;
  filter: none !important;
}
.sc-regions-page .state-right-column .region-card::after {
  background: transparent !important;
  filter: none !important;
}
.sc-regions-page .state-right-column .region-card .pin {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(2, 25, 44, 0.88) !important;
}

/* Real destination photos requested for the two unclear cards. */
.sc-regions-page .region-card-upstate {
  background-image: url('upstate-falls-park.jpg') !important;
  background-position: center 48% !important;
}
.sc-regions-page .region-card-midlands {
  background-image: url('midlands-state-house.jpg') !important;
  background-position: center 42% !important;
}


/* ===== Version 5.7: hard reset for South Carolina region cards =====
   Use a real <img> element rather than layered CSS backgrounds.
   This removes every inherited blur/backdrop layer from the photo. */
.sc-regions-page .state-right-column .region-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #0a3552 !important;
  background-image: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(1,12,22,.28) 63%, rgba(1,12,22,.88) 100%) !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  display: block !important;
  pointer-events: none !important;
  background: transparent !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,215,94,.34) !important;
}
.sc-regions-page .state-right-column .region-card-copy {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-copy::before,
.sc-regions-page .state-right-column .region-card-copy::after,
.sc-regions-page .state-right-column .region-card-thumb {
  content: none !important;
  display: none !important;
  background: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card .pin {
  z-index: 3 !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card:hover .region-card-image {
  transform: scale(1.035) !important;
  transition: transform .25s ease !important;
}

/* ===== Version 5.8: definitive SC region-card overlay cleanup =====
   No pseudo-element overlays, no backdrop filters, no translucent top panel.
   The only overlay is an explicit bottom gradient used behind the text. */
.sc-regions-page .state-right-column .region-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #0b3550 !important;
  background-image: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.sc-regions-page .state-right-column .region-card::before,
.sc-regions-page .state-right-column .region-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
.sc-regions-page .state-right-column .region-card-shade {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 1 !important;
  display: block !important;
  height: 58% !important;
  pointer-events: none !important;
  background: linear-gradient(to bottom, rgba(3,16,28,0), rgba(3,16,28,.42) 48%, rgba(3,16,28,.92) 100%) !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-copy {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 52px 15px 14px !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card-copy::before,
.sc-regions-page .state-right-column .region-card-copy::after,
.sc-regions-page .state-right-column .region-card-thumb {
  content: none !important;
  display: none !important;
}
.sc-regions-page .state-right-column .region-card .pin {
  z-index: 3 !important;
  background: #09283d !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-regions-page .state-right-column .region-card:hover {
  filter: none !important;
  -webkit-filter: none !important;
}
.sc-regions-page .state-right-column .region-card:hover .region-card-image {
  transform: scale(1.025) !important;
  transition: transform .25s ease !important;
}

/* Version 5.9 — raised, carved South Carolina map treatment */
.sc-regions-page .sc-top-layout .state-map {
  overflow: visible;
  filter: drop-shadow(0 20px 25px rgba(0, 18, 34, .34));
}

.sc-regions-page .map-regions-group {
  filter: none;
}

.sc-regions-page .map-region {
  stroke: #f2d27a;
  stroke-width: 3.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.sc-regions-page .map-region-upstate { fill: url(#sc-upstate-gradient); }
.sc-regions-page .map-region-midlands { fill: url(#sc-midlands-gradient); }
.sc-regions-page .map-region-pee-dee { fill: url(#sc-pee-dee-gradient); }
.sc-regions-page .map-region-grand-strand { fill: url(#sc-grand-strand-gradient); }
.sc-regions-page .map-region-lowcountry { fill: url(#sc-lowcountry-gradient); }
.sc-regions-page .map-region-santee-cooper-lake-marion { fill: url(#sc-santee-gradient); }

.sc-regions-page .map-border {
  fill: none;
  stroke: rgba(242, 210, 122, .94);
  stroke-width: 4.25;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 5px 6px rgba(0, 20, 34, .34));
  pointer-events: none;
}

.sc-regions-page .map-label {
  fill: #fff;
  font-weight: 900;
  letter-spacing: .035em;
  paint-order: stroke fill;
  stroke: rgba(3, 27, 45, .88);
  stroke-width: 4px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  pointer-events: none;
}

.sc-regions-page .map-region-link:hover .map-region,
.sc-regions-page .map-region-link:focus-visible .map-region {
  transform: translateY(-5px) scale(1.022);
  filter: url(#sc-carved-region) brightness(1.09) saturate(1.06);
}

.sc-regions-page .map-region-link:focus-visible {
  outline: none;
}


/* ===== VERSION 6.1: SOUTH CAROLINA FOOTBALL ===== */
.sports-page{width:min(96vw,1700px);max-width:none;padding-bottom:72px}
.sports-hero{padding:clamp(34px,6vw,78px);border-radius:28px;background:linear-gradient(120deg,rgba(5,18,38,.94),rgba(115,0,10,.70)),url('south-carolina-regions-bg.jpg') center/cover;box-shadow:0 25px 70px rgba(0,0,0,.28);margin-bottom:34px}
.sports-hero h1,.team-schedule-hero h1{font-size:clamp(2.3rem,5vw,5rem);margin:.15em 0}.sports-hero p{max-width:850px;font-size:clamp(1rem,1.5vw,1.2rem)}
.sports-section{margin:34px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.section-heading h2{font-size:clamp(1.6rem,3vw,2.5rem);margin:.15em 0}
.next-games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.next-game{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:17px;background:rgba(9,30,54,.88);border:1px solid rgba(255,255,255,.13);text-decoration:none;color:#fff;transition:.2s}.next-game:hover{transform:translateY(-3px);border-color:#f4c542}.next-date{font:700 .78rem/1.2 var(--mono,monospace);letter-spacing:.08em;color:#f4c542}.next-game small{opacity:.75}
.sports-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sports-team-card{display:flex;align-items:center;gap:16px;min-height:112px;padding:18px;border-radius:19px;background:linear-gradient(115deg,var(--team-primary),rgba(7,20,39,.92) 66%);border:1px solid rgba(255,255,255,.16);box-shadow:0 14px 34px rgba(0,0,0,.2);text-decoration:none;color:#fff;transition:.22s}.sports-team-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.3);border-color:#f4c542}.team-monogram{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:50%;background:var(--team-secondary);color:var(--team-primary);font-weight:900;font-size:1.05rem;border:3px solid rgba(255,255,255,.65)}.team-card-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.team-card-copy strong{font-size:1.08rem}.team-card-copy small{opacity:.75}.team-arrow{font-size:1.6rem;margin-left:auto;color:#f4c542}
.sports-disclaimer{margin:30px auto 0;max-width:1000px;text-align:center;opacity:.7;font-size:.9rem}
.team-schedule-hero{padding:30px clamp(22px,5vw,64px);border-radius:25px;background:linear-gradient(120deg,var(--team-primary),rgba(6,19,37,.94) 72%);margin-bottom:24px;box-shadow:0 20px 55px rgba(0,0,0,.25)}.back-link{color:#fff;text-decoration:none;opacity:.8}.team-identity{display:flex;align-items:center;gap:22px;margin:26px 0 18px}.team-monogram.large{flex-basis:100px;height:100px;font-size:1.55rem}.team-identity p{margin:0;opacity:.75}.team-actions{display:flex;gap:12px;flex-wrap:wrap}
.football-schedule-list{display:grid;gap:11px}.football-game-card{display:grid;grid-template-columns:150px 1fr minmax(130px,220px);align-items:center;gap:24px;padding:18px 22px;border-radius:16px;background:rgba(9,30,54,.9);border-left:5px solid var(--team-primary);box-shadow:0 8px 24px rgba(0,0,0,.16)}.football-game-card.away{border-left-style:dashed}.football-game-card.neutral{border-left-color:#f4c542}.game-week{display:flex;flex-direction:column;gap:5px}.game-week span{font-size:.7rem;letter-spacing:.12em;opacity:.65}.game-matchup h3{font-size:1.25rem;margin:5px 0}.game-matchup p{margin:0;opacity:.72}.venue-pill{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.1)}.game-time{text-align:right;display:flex;flex-direction:column;gap:5px}.game-time strong{font-size:1.18rem;color:#f4c542}.game-time small{opacity:.75}
@media(max-width:1100px){.next-games-grid{grid-template-columns:repeat(2,1fr)}.sports-team-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.sports-page{width:100%;padding-left:14px;padding-right:14px}.sports-hero{padding:28px 20px}.next-games-grid,.sports-team-grid{grid-template-columns:1fr}.football-game-card{grid-template-columns:1fr;gap:10px}.game-time{text-align:left}.team-identity{align-items:flex-start}.team-monogram.large{flex-basis:78px;height:78px}.section-heading{align-items:flex-start;flex-direction:column}}

/* ===== Version 6.2: visible Sports navigation + regional football ===== */
.regions-page .state-quick-actions-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.region-sports-panel {
  margin: 0 0 30px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(7, 20, 39, .94), rgba(17, 43, 72, .86));
  border: 1px solid rgba(244, 197, 66, .38);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}
.region-sports-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.region-sports-heading h2 {
  margin: .12em 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}
.region-sports-panel > p {
  margin: 0 0 18px;
  opacity: .78;
}
.region-sports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.region-sports-team {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(115deg, var(--team-primary), rgba(7, 20, 39, .95) 72%);
  border: 1px solid rgba(255, 255, 255, .15);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.region-sports-team:hover,
.region-sports-team:focus-visible {
  transform: translateY(-3px);
  border-color: #f4c542;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}
.region-monogram {
  flex-basis: 52px;
  height: 52px;
  font-size: .82rem;
}
.region-sports-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.region-sports-copy strong,
.region-sports-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-sports-copy small {
  opacity: .76;
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 1050px) {
  .regions-page .state-quick-actions-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region-sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .regions-page .state-quick-actions-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-sports-heading { align-items: flex-start; flex-direction: column; }
  .region-sports-grid { grid-template-columns: 1fr; }
  .region-all-sports { width: 100%; text-align: center; }
}

/* VERSION 6.3 — PLAN-YOUR-NIGHT EVENTS HUB */
.event-plan-panel{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.6fr);
  gap:22px;
  align-items:stretch;
  margin:24px 0 26px;
  padding:22px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(8,27,49,.94),rgba(15,57,83,.82));
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.event-plan-copy h2{margin:5px 0 8px;font-size:clamp(1.45rem,2.2vw,2.2rem)}
.event-plan-copy p{margin:0;color:rgba(255,255,255,.8);line-height:1.55}
.event-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.event-plan-card{
  display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:104px;padding:15px;
  border-radius:16px;border:1px solid rgba(255,255,255,.22);text-decoration:none;color:#fff;
  background:rgba(255,255,255,.09);transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.event-plan-card:hover,.event-plan-card.active{transform:translateY(-3px);border-color:#f3c547;background:rgba(243,197,71,.18)}
.event-plan-card strong{font-size:1.05rem}.event-plan-card span{font-size:.82rem;line-height:1.35;color:rgba(255,255,255,.75)}
@media(max-width:1000px){.event-plan-panel{grid-template-columns:1fr}.event-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.event-plan-panel{padding:16px}.event-plan-grid{grid-template-columns:1fr 1fr}.event-plan-card{min-height:92px;padding:12px}}

/* ===== Version 6.4: Global autocomplete search ===== */
.site-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.site-search-input-wrap > input { width: 100%; }
.search-suggestions {
  display: none;
  position: absolute;
  z-index: 10000;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(430px, 62vh);
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  color: #16263a;
  box-shadow: 0 18px 48px rgba(5, 18, 35, .32);
  border: 1px solid rgba(18, 50, 82, .14);
}
.search-suggestions.is-open { display: block; }
.search-suggestion-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 50, 82, .09);
}
.search-suggestion-item:last-child { border-bottom: 0; }
.search-suggestion-item:hover,
.search-suggestion-item.is-active { background: #eef5fb; }
.search-suggestion-icon { font-size: 20px; text-align: center; }
.search-suggestion-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-suggestion-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-copy small { color: #607086; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-type { color: #7c5a12; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) {
  .search-suggestion-item { grid-template-columns: 30px minmax(0, 1fr); }
  .search-suggestion-type { display: none; }
}

/* ===== Version 6.5: Carolina Content community star ratings ===== */
.restaurant-rating{
  margin-top:16px;
  padding:15px 16px;
  border:1px solid rgba(16,64,99,.16);
  border-radius:16px;
  background:linear-gradient(135deg,#f7fbff,#fff9e9);
  color:#17314e;
}
.restaurant-rating-heading{display:flex;justify-content:space-between;gap:14px;align-items:baseline;flex-wrap:wrap}
.restaurant-rating-heading strong{font-size:1rem}
.restaurant-rating-heading span{font-size:.86rem;color:#5e6f80}
.restaurant-stars{display:flex;gap:4px;margin:8px 0 4px}
.restaurant-stars button{
  appearance:none;border:0;background:transparent;padding:0 2px;cursor:pointer;
  font-size:clamp(1.6rem,3vw,2.05rem);line-height:1;color:#cbd3dc;
  text-shadow:0 1px 1px rgba(0,0,0,.08);transition:transform .12s ease,color .12s ease;
}
.restaurant-stars button:hover,.restaurant-stars button:focus-visible{transform:translateY(-2px) scale(1.08);color:#f3c547;outline:none}
.restaurant-stars button.is-selected{color:#f3b900}
.restaurant-rating small{display:block;color:#657488;min-height:1.2em}
.restaurant-rating.is-saving{opacity:.7;pointer-events:none}
.restaurant-rating.rating-offline{background:#f8f8f8}


/* Version 7.1 — reliable interactive state maps */
.state-map { pointer-events: auto; touch-action: manipulation; }
.map-region-link { cursor: pointer; pointer-events: all; }
.map-region-link .map-region { pointer-events: visiblePainted; }
.map-label { pointer-events: none; user-select: none; }
.map-region-link:focus-visible .map-region { filter: brightness(1.16); }

/* ---------------- Wide region discovery layout ---------------- */
.region-page-wide {
  max-width: 1640px;
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}
.region-layout-wide {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) minmax(270px, 310px);
  gap: clamp(24px, 2.5vw, 42px);
}
.region-layout-wide .region-layout-main .town-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 18px;
}
.region-layout-wide .town-image-card {
  min-height: 225px;
}
.region-category-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 24px 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(15,31,39,.86);
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
.region-category-eyebrow {
  display: block;
  color: var(--gold);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.region-category-nav h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.region-category-nav p {
  margin: 0 0 18px;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  line-height: 1.45;
  opacity: .72;
}
.region-category-links {
  display: grid;
  gap: 8px;
}
.region-category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.region-category-links a:hover {
  border-color: var(--gold);
  background: rgba(214,174,92,.1);
  transform: translateX(3px);
}
.region-category-all {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  font-weight: 600;
}
.region-layout-wide .events-sidebar {
  position: sticky;
  top: 24px;
}
@media (max-width: 1280px) {
  .region-layout-wide {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 24px;
  }
  .region-layout-wide .region-layout-main .town-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}
@media (max-width: 1000px) {
  .region-layout-wide {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  }
  .region-layout-wide .events-sidebar {
    grid-column: 1 / -1;
    position: static;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }
}
@media (max-width: 760px) {
  .region-layout-wide { grid-template-columns: 1fr; }
  .region-category-nav { position: static; }
  .region-layout-wide .region-layout-main .town-grid { grid-template-columns: 1fr; }
}

/* Version 7.11 — refined Pee Dee regional navigation */
.region-layout-wide {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(320px, 360px);
}
.region-category-nav {
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, rgba(10,42,55,.93), rgba(10,35,47,.88));
}
.region-category-nav h3 {
  font-size: 1.48rem;
  line-height: 1.08;
  margin-bottom: 10px;
}
.region-category-nav p {
  margin-bottom: 20px;
  font-size: .92rem;
}
.region-category-links {
  gap: 4px;
}
.region-category-links a {
  position: relative;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: transparent;
  font-size: .92rem;
  font-weight: 600;
}
.region-category-links a::after {
  content: '→';
  margin-left: auto;
  color: var(--gold);
  opacity: .8;
}
.region-category-links a:hover {
  border-color: rgba(214,174,92,.72);
  background: transparent;
  transform: translateX(4px);
  color: var(--gold);
}
.region-category-more {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.region-category-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px 10px;
  cursor: pointer;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  list-style: none;
}
.region-category-more summary::-webkit-details-marker { display: none; }
.region-category-more[open] summary span { transform: rotate(45deg); }
.region-category-more summary span { transition: transform .2s ease; }
.region-category-more .region-category-links { padding-bottom: 4px; }
.region-layout-wide .events-sidebar {
  padding-left: 24px;
}
@media (max-width: 1360px) {
  .region-layout-wide {
    grid-template-columns: 220px minmax(0, 1fr) 310px;
    gap: 22px;
  }
}

/* Category-specific photographic backgrounds */
.category-photo-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: calc(100vh - 74px);
}
.category-photo-bg .listing,
.category-photo-bg .empty-state {
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .category-photo-bg { background-attachment: scroll; }
}

/* ===== Version 7.14: premium business spotlight cards ===== */
.premium-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  align-items: stretch;
}
.premium-business-card {
  display: grid;
  grid-template-columns: minmax(145px, 34%) minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8,54,79,.96), rgba(5,34,54,.94));
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.premium-business-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,197,66,.72);
  box-shadow: 0 22px 44px rgba(0,0,0,.3);
}
.business-card-media { min-height: 100%; background: rgba(255,255,255,.045); }
.business-card-image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.business-card-image-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 22%, rgba(244,197,66,.28), transparent 34%),
    linear-gradient(150deg, rgba(102,62,35,.96), rgba(35,23,18,.98));
}
.business-card-image-fallback span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.58);
  background: rgba(0,0,0,.18);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.business-card-content { display: flex; flex-direction: column; padding: 22px 22px 20px; min-width: 0; }
.business-card-kicker {
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.35;
}
.premium-business-card h3 {
  margin: 7px 0 6px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem);
  line-height: 1.12;
}
.business-card-location,.business-card-description,.business-card-hours { font-family: 'Jost', sans-serif; }
.business-card-location { margin: 0 0 10px; color: rgba(255,255,255,.76); font-size: .82rem; }
.business-card-description { margin: 0 0 12px; color: rgba(255,255,255,.76); font-size: .88rem; line-height: 1.5; }
.business-card-hours { margin: 0 0 12px; color: rgba(255,255,255,.7); font-size: .8rem; }
.business-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 10px; }
.business-card-actions a { color: rgba(255,255,255,.78); font-family: 'Jost', sans-serif; font-size: .78rem; font-weight: 650; text-decoration: none; }
.business-card-actions a:hover { color: var(--gold); }
.business-card-actions .business-card-primary {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--gold);
  color: #172b37;
}
.business-card-actions .business-card-primary:hover { color: #172b37; filter: brightness(1.06); }
@media (max-width: 1050px) { .premium-business-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .premium-business-card { grid-template-columns: 1fr; }
  .business-card-media,.business-card-image { min-height: 180px; height: 180px; }
  .business-card-content { padding: 19px; }
}

/* ===== Version 7.15: warm egg-white universal business cards ===== */
.premium-business-grid {
  gap: 16px;
  margin-top: 24px;
}
.premium-business-card {
  grid-template-columns: minmax(112px, 29%) minmax(0, 1fr);
  min-height: 178px;
  border-color: rgba(42, 32, 24, .18);
  background: #f7f3e8;
  box-shadow: 0 12px 28px rgba(18, 24, 28, .18);
}
.premium-business-card:hover {
  border-color: rgba(155, 108, 34, .65);
  box-shadow: 0 17px 34px rgba(18, 24, 28, .24);
}
.business-card-media {
  min-height: 178px;
  background: #6e422a;
}
.business-card-image {
  min-height: 178px;
}
.business-card-image-fallback {
  background:
    radial-gradient(circle at 28% 22%, rgba(231, 181, 87, .34), transparent 34%),
    linear-gradient(150deg, #94542f, #4a2b20 72%, #2d1b16);
}
.business-card-image-fallback span {
  width: 66px;
  height: 66px;
  border-color: rgba(255, 248, 232, .72);
  background: rgba(34, 18, 12, .24);
  color: #fffaf0;
  font-size: 1.32rem;
}
.business-card-content {
  padding: 17px 18px 15px;
}
.business-card-kicker {
  color: #9a681f;
  font-size: .62rem;
}
.premium-business-card h3 {
  margin: 5px 0 5px;
  color: #22201c;
  font-size: clamp(1.08rem, 1.45vw, 1.36rem);
}
.business-card-location {
  margin: 0 0 7px;
  color: #625e55;
  font-size: .76rem;
}
.business-card-description {
  margin: 0 0 8px;
  color: #4f4b43;
  font-size: .81rem;
  line-height: 1.42;
}
.business-card-hours {
  margin: 0 0 8px;
  color: #59544b;
  font-size: .76rem;
}
.business-card-actions {
  gap: 9px;
  padding-top: 6px;
}
.business-card-actions a {
  color: #514b42;
  font-size: .74rem;
}
.business-card-actions a:hover { color: #8a5c19; }
.business-card-actions .business-card-primary {
  padding: 7px 11px;
  background: #d5a647;
  color: #242019;
}
.business-card-actions .business-card-primary:hover { color: #242019; }
@media (max-width: 620px) {
  .premium-business-card { grid-template-columns: 105px minmax(0, 1fr); min-height: 164px; }
  .business-card-media, .business-card-image { min-height: 164px; height: auto; }
  .business-card-content { padding: 15px; }
}

/* ===== Version 7.16: region pages — mobile-first responsive repair ===== */
.region-layout-wide > *,
.region-layout-wide .region-layout-main,
.region-layout-wide .town-grid,
.region-layout-wide .town-image-card {
  min-width: 0;
}

@media (max-width: 1000px) {
  .region-page-wide {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
    overflow-x: clip;
  }

  .region-layout-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
  }

  .region-category-nav,
  .region-layout-wide .events-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
  }

  .region-layout-wide .region-layout-main {
    width: 100%;
  }

  .region-layout-wide .region-layout-main .town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .region-layout-wide .events-sidebar {
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 680px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .region-page-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .region-page-wide .page-header {
    padding-top: 22px;
  }

  .region-page-wide .page-header h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: .98;
  }

  .region-page-wide .page-header p {
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.45;
  }

  .region-page-wide .search-panel,
  .region-page-wide .search-panel-compact {
    width: 100%;
    margin: 18px 0 26px;
    padding: 14px;
  }

  .region-page-wide .site-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .region-page-wide .site-search-form input,
  .region-page-wide .site-search-form button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .region-page-wide .search-examples {
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .region-layout-wide {
    gap: 24px;
  }

  .region-category-nav {
    padding: 22px 20px 18px;
    border-radius: 18px;
  }

  .region-category-nav h3 {
    font-size: 1.55rem;
  }

  .region-category-nav p {
    font-size: .92rem;
  }

  .region-category-links a {
    min-height: 48px;
    padding: 13px 4px;
    font-size: .95rem;
  }

  .region-layout-wide .region-layout-main .town-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .region-layout-wide .town-image-card {
    width: 100%;
    min-height: 215px;
    padding: 19px;
    border-radius: 17px;
    background-position: center;
  }

  .town-card-copy h3 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .region-layout-wide .events-sidebar {
    width: 100%;
    padding-top: 22px;
  }

  .events-sidebar-title {
    font-size: 1.35rem;
  }

  .event-sidebar-item h4 {
    font-size: 1rem;
  }
}

/* Version 7.17 — richer local business directory cards */
.business-card-topline { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.business-open-badge { display:inline-flex; align-items:center; min-height:28px; padding:5px 9px; border-radius:999px; font-size:.72rem; font-weight:800; line-height:1.2; }
.business-open-badge.is-open { background:#e4f4e8; color:#23643a; border:1px solid #b9ddc3; }
.business-open-badge.is-closed { background:#f5e9e6; color:#8a3c31; border:1px solid #e4c3bd; }
.business-card-amenities { display:flex; flex-wrap:wrap; gap:7px; margin:13px 0; }
.business-card-amenities span { display:inline-flex; padding:6px 9px; border-radius:999px; background:rgba(27,42,51,.07); border:1px solid rgba(27,42,51,.1); font-size:.75rem; font-weight:700; }
.business-card-verified { margin:10px 0 0; font-size:.72rem; color:#60706f; }
@media (max-width:680px) {
  .premium-business-grid { grid-template-columns:minmax(0,1fr); }
  .premium-business-card { width:100%; min-width:0; }
  .business-card-content { padding:18px; }
  .business-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
  .business-card-actions a { justify-content:center; text-align:center; min-height:44px; }
}

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0;
}
.business-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.68rem;
  border: 1px solid rgba(36, 63, 72, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #243f48;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.business-card-contact {
  margin: 0.35rem 0;
  line-height: 1.45;
}
.business-card-contact a {
  overflow-wrap: anywhere;
}

.business-card-page-link,
.business-card-title-link {
  color: inherit;
  text-decoration: none;
}
.business-card-page-link {
  display: block;
}
.business-card-title-link:hover,
.business-card-title-link:focus {
  text-decoration: underline;
}
.business-profile-page {
  max-width: 1180px;
}
.business-profile-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.business-profile-image img,
.business-profile-image .business-card-image-fallback {
  width: 100%;
  min-height: 300px;
  max-height: 460px;
  object-fit: cover;
  border-radius: 22px;
}
.business-profile-image .business-card-image-fallback {
  display: grid;
  place-items: center;
  background: rgba(36,63,72,.1);
  font-size: 4rem;
  font-weight: 800;
}
.business-profile-location {
  font-weight: 700;
}
.business-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.business-profile-panel {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(24,38,46,.08);
}
.business-profile-actions {
  margin-top: 1rem;
}
.business-event-row {
  display: grid;
  gap: .25rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(36,63,72,.12);
}
@media (max-width: 760px) {
  .business-profile-hero,
  .business-profile-grid {
    grid-template-columns: 1fr;
  }
}

.customer-choice-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.customer-choice-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;border-radius:999px;background:rgba(36,63,72,.09);border:1px solid rgba(36,63,72,.16);font-size:.82rem;font-weight:800;line-height:1}
.customer-choice-family-friendly{background:rgba(245,177,65,.14)}
.customer-choice-pet-friendly{background:rgba(71,136,116,.13)}
.customer-choice-rooftop{background:rgba(99,102,241,.11)}


/* Version 7.30 — town-level event sidebars and food-truck page backdrop */
.town-category-layout {
  margin-top: 30px;
}
.town-category-layout .events-sidebar {
  position: sticky;
  top: 24px;
}
.town-category-layout .region-layout-main .grid {
  margin-top: 0;
}
.category-photo-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .town-category-layout .events-sidebar {
    position: static;
  }
  .category-photo-bg {
    background-attachment: scroll;
  }
}
