/* ===== visitwelaka.com ============================================ */

/* Google Fonts are loaded via <link> in _base.html (preconnect + stylesheet),
   so they don't render-block while CSS downloads + parses. Pair is Oswald
   (display, Tungsten substitute) + Enriqueta (body slab serif), matching
   visitnc.com. */

/* Brand palette (from client, 2026-05-17) */
:root {
  --c-blue: #0079b2;
  --c-teal: #34bfc2;
  --c-teal-light: #36bfc2;
  --c-teal-dark: #129696;
  --c-gray-light: #d6d6d6;
  --c-gray-mid: #afafaf;
  --c-gray-dark: #919191;
  --c-body: #666666;
  --c-ink: #1f2933;
  --c-bg: #ffffff;
  --c-bg-soft: #faf6f1;     /* warmer off-white (more editorial than blue-gray) */
  --c-line: #e7eaee;

  --wrap: 1200px;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;

  --font-display: "Oswald", "Tungsten", "Bebas Neue", "Impact", sans-serif;
  --font-body:    "Enriqueta", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ----- Reset / baseline ----- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
/* h3 (card titles, meta labels) stays mixed-case for legibility */
h3, .listing-meta h2, .meta-block h2 {
  text-transform: none;
  letter-spacing: 0;
}

a {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-teal-dark); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- Header / footer ----- */
.site-header {
  background: linear-gradient(95deg, var(--c-blue) 0%, var(--c-teal-dark) 100%);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 42px;
  width: auto;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.primary-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.primary-nav a:hover { color: rgba(255, 255, 255, 0.7); }

.site-footer {
  border-top: 0;
  margin-top: 5rem;
  padding: 2.5rem 0;
  background: linear-gradient(95deg, var(--c-blue) 0%, var(--c-teal-dark) 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px; }
.site-footer a:hover { border-bottom-color: #fff; }

/* ===== Homepage ==================================================== */

.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  background: linear-gradient(135deg, var(--c-teal-light), var(--c-teal-dark));
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center center;
  z-index: 0;
  opacity: 1;
}
/* Default hero overlay (kept dark-ish for non-sunset photos) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
/* Vibrant sunset hero: let the COLOR pop. No global overlay — we lean
   on heavy text-shadow (defined below) for readability and only fade in
   a small bottom shadow to anchor the search bar. */
.hero.hero--sunset::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.30) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: #fff;
  margin: 0 0 1rem;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.94);
  max-width: 44ch;
  margin: 0 0 2rem;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

.hero-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  max-width: 560px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.85rem 1.25rem;
  color: var(--c-ink);
  font-size: 1rem;
  border-radius: 999px;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--c-gray-dark); }
.hero-search button {
  border: 0;
  background: var(--c-blue);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.hero-search button:hover { background: var(--c-teal-dark); }

/* ----- Section structure ----- */
.section {
  padding: 4.5rem 0 1rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}
.section-head .lede {
  color: var(--c-body);
  margin: 0;
  max-width: 50ch;
}
.section-link {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ----- Category tile grid ----- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  text-decoration: none;
  color: #fff;
  aspect-ratio: 1 / 1;
  background: var(--c-gray-mid);
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%);
}
.tile-label {
  position: absolute;
  bottom: 1rem;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.tile-count {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.3rem;
}
.tile:hover img { transform: scale(1.04); }

/* Big tile on the left, then a 2x2 grid on the right */
.tile.tile-big { grid-column: span 6; aspect-ratio: 1.05 / 1; }
.tile.tile-sm  { grid-column: span 3; }

@media (max-width: 900px) {
  .tile.tile-big, .tile.tile-sm { grid-column: span 6; aspect-ratio: 1 / 1; }
}
@media (max-width: 540px) {
  .tile.tile-big, .tile.tile-sm { grid-column: span 12; }
}

/* ----- Intro band ----- */
.intro {
  padding: 4rem 0 1rem;
  text-align: center;
}
.intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}
.intro p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.05rem;
}
.intro .accent-rule {
  width: 56px;
  height: 3px;
  background: var(--c-teal);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ----- Listing card grid (used on category pages too) ----- */
.listing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.listing-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  background: var(--c-bg);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.listing-card:hover {
  border-color: var(--c-teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 121, 178, 0.08);
}
.listing-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.listing-card h3 a { color: var(--c-ink); text-decoration: none; }
.listing-card h3 a:hover { color: var(--c-blue); }
.listing-card p { margin: 0; color: var(--c-body); font-size: 0.92rem; line-height: 1.5; }
.listing-card .card-cats {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--c-gray-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Listing detail page ========================================= */
.listing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}
.listing-header { margin-bottom: 2rem; }
.listing-trail {
  font-size: 0.85rem;
  color: var(--c-gray-dark);
  margin: 0 0 0.5rem;
}
.listing-trail a { color: var(--c-gray-dark); text-decoration: none; }
.listing-trail a:hover { color: var(--c-teal-dark); }
.listing h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.listing-categories { margin: 0; }
.tag {
  display: inline-block;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  color: var(--c-body);
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin: 0 0.25rem 0.4rem 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 3rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .listing-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.listing-description p { margin: 0 0 1rem; font-size: 1.05rem; }
.listing-description p:last-child { margin-bottom: 0; }
.listing-description a { color: var(--c-blue); }

.listing-meta {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 1.5rem;
}
.meta-block + .meta-block { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.meta-block h2 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-dark);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.meta-block p, .meta-list { margin: 0; }
.meta-list { list-style: none; padding: 0; }
.meta-list li { margin: 0.15rem 0; }
.meta-label { color: var(--c-gray-dark); margin-right: 0.25rem; }
.meta-address { line-height: 1.5; }

.listing-back {
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

/* ===== Category landing page ======================================= */
.category-page { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.category-head { margin-bottom: 1.5rem; }
.category-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
}
.category-page .category-lede {
  color: var(--c-body);
  max-width: 60ch;
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  margin-bottom: 1.25rem;
}
.filter-field {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--c-gray-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.filter-field select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-width: 200px;
}
.filter-field select:focus {
  outline: 2px solid var(--c-teal);
  outline-offset: 1px;
}
.filter-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-gray-dark);
}
.filter-count .filter-shown { font-weight: 700; color: var(--c-ink); }

/* ===== Static pages (About, Contact, Search) ======================= */
.static-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.static-head { margin-bottom: 1.5rem; }
.static-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
}
.static-lede {
  color: var(--c-body);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  max-width: 60ch;
}
.static-body p { font-size: 1.05rem; margin: 0 0 1.1rem; }
.static-body h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
.static-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.static-body a { color: var(--c-blue); }
.static-body ul, .static-body ol { padding-left: 1.25rem; }
.static-body li { margin: 0.3rem 0; }

/* ===== Contact form ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 3rem;
  margin-top: 0.5rem;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Sections (fieldsets) */
.contact-form .form-section {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
.contact-form legend {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-gray-dark);
  margin-bottom: 0.85rem;
  padding: 0;
}
.contact-form .form-section__heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--c-ink);
  margin-bottom: 1rem;
  padding: 0;
}

/* Field rows */
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.contact-form .form-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
}
.contact-form .form-field em {
  color: var(--c-blue);
  font-style: normal;
  margin-left: 0.15rem;
}

.contact-form .form-row--split,
.contact-form .form-row--triple {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0;
}
.contact-form .form-row--split { grid-template-columns: 1fr 1fr; }
.contact-form .form-row--triple { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) {
  .contact-form .form-row--split,
  .contact-form .form-row--triple { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--c-teal);
  outline-offset: 1px;
  border-color: var(--c-teal);
}

/* Reason pills (the segmented selector) */
.reason-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.reason-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.reason-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reason-pill span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-body);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.reason-pill input[type="radio"]:checked + span {
  background: linear-gradient(95deg, var(--c-blue), var(--c-teal-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 121, 178, 0.25);
}
.reason-pill input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}
.reason-pill:hover span { color: var(--c-teal-dark); }
.reason-pill input[type="radio"]:checked + span:hover { color: #fff; }

.contact-form .cf-turnstile { margin: 0.5rem 0 1rem; }
.btn-primary {
  border: 0;
  background: var(--c-blue);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--c-teal-dark); }
.form-status { margin: 0.85rem 0 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok  { color: var(--c-teal-dark); font-weight: 600; }
.form-status.err { color: #b00020; font-weight: 600; }
.contact-aside h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-dark);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.contact-aside h2:not(:first-child) { margin-top: 1.5rem; }
.contact-aside p { margin: 0; }

/* ===== Pagefind UI overrides (matches brand) ======================= */
:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--c-blue);
  --pagefind-ui-text: var(--c-ink);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--c-line);
  --pagefind-ui-tag: var(--c-bg-soft);
  --pagefind-ui-border-radius: var(--r-sm);
  --pagefind-ui-font: var(--font-sans);
}
#search { margin-top: 0.5rem; }
.search-head { margin-bottom: 1rem; }

/* ===== Stats strip (just below hero) ============================== */
.stats-strip {
  background: linear-gradient(95deg, var(--c-blue) 0%, var(--c-teal-dark) 60%, var(--c-teal) 100%);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.75rem 1.25rem;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: #fff;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

/* ===== Sunset band (full-bleed visual divider) ==================== */
.sunset-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 0;
  margin-top: 3rem;
}
.sunset-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: center 45%;
  z-index: 0;
}
.sunset-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,121,178,0.65) 0%, rgba(18,150,150,0.45) 55%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}
.sunset-band > .wrap {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.sunset-band__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1rem;
}
.sunset-band__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.sunset-band__body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  max-width: 56ch;
  margin: 0 auto;
}

/* ===== Soft section variant (subtle bg between sections) ========== */
.section--soft {
  background: var(--c-bg-soft);
  margin-top: 0;
  padding-bottom: 4rem;
}

/* ===== Card tag chips (colored, replaces plain gray text) ========= */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.5;
}
.card-tag--city {
  background: rgba(0, 121, 178, 0.10);
  color: var(--c-blue);
  border-color: rgba(0, 121, 178, 0.20);
}
.card-tag--sub {
  background: rgba(52, 191, 194, 0.12);
  color: var(--c-teal-dark);
  border-color: rgba(52, 191, 194, 0.25);
}
.card-tag--type {
  background: rgba(18, 150, 150, 0.12);
  color: var(--c-teal-dark);
  border-color: rgba(18, 150, 150, 0.22);
}

/* ===== Category page header accent ================================ */
.category-headline {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.category-accent {
  display: inline-block;
  width: 8px;
  align-self: stretch;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-teal) 0%, var(--c-blue) 100%);
}
.category-headline h1 { margin: 0; }

/* ===== Hero search button uses brand gradient ===================== */
.hero-search button {
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal-dark));
  transition: box-shadow 0.2s, transform 0.1s;
}
.hero-search button:hover {
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal-dark));
  box-shadow: 0 6px 24px rgba(0, 121, 178, 0.4);
  transform: translateY(-1px);
}

/* (former "footer warmer" override removed — footer is now dark blue,
   defined up top alongside the dark header.) */

/* ===== Accent rule colored ======================================== */
.intro .accent-rule {
  background: linear-gradient(90deg, var(--c-teal), var(--c-blue));
  width: 64px;
  height: 4px;
}

/* ===== Embedded map on listing pages ============================== */
.listing-map {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
}
.listing-map iframe {
  display: block;
}

.listing-map__credit {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--c-gray-dark);
  text-align: right;
}
.listing-map__credit a { color: var(--c-gray-dark); text-decoration: none; }
.listing-map__credit a:hover { color: var(--c-teal-dark); }

/* ===== Editorial type scale (matches visitnc.com proportions) ===== */
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  font-weight: 600;
  max-width: 22ch;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}
.section-head h2,
.category-page h1,
.static-page h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.0;
}
.sunset-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.sunset-band__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}
.tile-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.tile-count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.listing-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-weight: 600;
}
.listing h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
}
.brand-text {
  font-family: var(--font-display);
}
.primary-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.meta-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}
.filter-field span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}
.card-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.section-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-blue);
}
.section-link:hover { color: var(--c-teal-dark); }
.btn-primary {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-search button {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== Hero rotator (CSS-only crossfade across 4 sunsets) ========= */
.hero-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-rotator__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 32s infinite;
}
.hero-rotator__slide:nth-child(1) { background-image: url('/static/img/sunsets/hero.jpg');   animation-delay: 0s;  }
.hero-rotator__slide:nth-child(2) { background-image: url('/static/img/sunsets/hero-2.jpg'); animation-delay: 8s;  }
.hero-rotator__slide:nth-child(3) { background-image: url('/static/img/sunsets/banner.jpg'); animation-delay: 16s; }
.hero-rotator__slide:nth-child(4) { background-image: url('/static/img/sunsets/hero-3.jpg'); animation-delay: 24s; }
@keyframes heroCrossfade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}
/* When rotator is present, suppress the single-image ::before background */
.hero.hero--rotator::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotator__slide { animation: none; opacity: 1; }
  .hero-rotator__slide:not(:first-child) { display: none; }
}

/* ===== Card spine + bigger card padding ============================ */
.listing-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  overflow: hidden;
}
.listing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-teal), var(--c-blue));
  opacity: 0.7;
  transition: opacity 0.15s, width 0.15s;
}
.listing-card:hover::before {
  opacity: 1;
  width: 6px;
}

/* ===== More breathing room ========================================= */
.section { padding: 5.5rem 0 2rem; }
.section--soft { background: var(--c-bg-soft); padding-bottom: 5rem; }
.sunset-band { padding: 6rem 0; }
.stats-strip .stats-grid { padding: 2.25rem 1.25rem; }

/* ===== Category landing-page hero ================================= */
.cat-hero {
  position: relative;
  min-height: clamp(280px, 38vh, 420px);
  overflow: hidden;
  display: flex;
  align-items: end;
  color: #fff;
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cat-hero-img);
  background-size: cover;
  background-position: center 50%;
  z-index: 0;
}
.cat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.cat-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.5rem;
  width: 100%;
}
.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 0.6rem;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.cat-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.95);
  max-width: 60ch;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.listing-trail--light {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}
.listing-trail--light a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.listing-trail--light a:hover { color: #fff; }
/* When the hero is in place, drop the category-page intro padding so the
   filter bar sits comfortably right under the hero. */
.cat-hero + .category-page { padding-top: 2rem; }

/* ===== Stories section on homepage ================================ */
.stories {
  padding: 5.5rem 0 2rem;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 1000px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .stories-grid { grid-template-columns: 1fr; } }

.story {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s;
}
.story__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.7s ease;
}
.story:hover .story__img { transform: scale(1.06); }
.story__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%);
}
.story__content {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.story__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}
.story__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.story__blurb {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

/* ===== 404 page =================================================== */
.notfound {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}
.notfound::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(18, 150, 150, 0.55) 0%, rgba(18, 150, 150, 0.10) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.notfound__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}
.notfound__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin: 0 0 1rem;
}
.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.notfound__body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  max-width: 52ch;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.notfound__search { max-width: 560px; margin-bottom: 1.5rem; }
.notfound__links {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.notfound__links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.notfound__links a:hover { border-bottom-color: #fff; }

/* ===== Hero/category-hero/404: brighter, more inviting ============= */
/* Stronger text-shadow lets us drop the dulling overlays without losing
   legibility on bright sunset skies. */
.hero h1,
.cat-hero__title,
.notfound__title {
  text-shadow:
    0 2px 4px rgba(0,0,0,0.55),
    0 4px 18px rgba(0,0,0,0.45),
    0 0 60px rgba(0,0,0,0.25);
}
.hero-eyebrow,
.hero-tagline,
.cat-hero__lede,
.notfound__eyebrow,
.notfound__body {
  text-shadow:
    0 1px 3px rgba(0,0,0,0.55),
    0 2px 12px rgba(0,0,0,0.45);
}

/* Category page hero: minimal bottom gradient, no top */
.cat-hero::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.40) 100%);
}
/* 404 page: minimal bottom gradient, no teal vignette */
.notfound::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
}

/* Search bar in the hero: subtle white glow so it pops off any background */
.hero-search {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.4);
}

/* ===== Featured strip (above the filter bar on category pages) ==== */
.featured-strip {
  margin: 0 0 2.25rem;
}
.featured-strip__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-gray-dark);
  margin: 0 0 0.85rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.feature-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s;
  box-shadow: 0 6px 24px rgba(0, 121, 178, 0.10);
}
.feature-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.feature-card:hover .feature-card__img { transform: scale(1.04); }
.feature-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%),
    linear-gradient(95deg, rgba(0, 121, 178, 0.25) 0%, rgba(0, 121, 178, 0) 55%);
}
.feature-card__content {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.feature-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(95deg, var(--c-blue), var(--c-teal-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 4px 18px rgba(0,0,0,0.35);
}
.feature-card__blurb {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  margin-bottom: 0.6rem;
}
.feature-card__city {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

/* ===== Social meta-block (icon + platform + handle) =============== */
.meta-list--social li { margin: 0.35rem 0; }
.meta-list--social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--c-blue);
}
.meta-list--social a:hover { color: var(--c-teal-dark); }
.meta-list--social .social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-blue);
  transition: color 0.15s;
}
.meta-list--social a:hover .social-icon { color: var(--c-teal-dark); }
.meta-list--social .social-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}
.meta-list--social .social-platform {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.meta-list--social a:hover .social-platform { color: var(--c-teal-dark); }
.meta-list--social .social-handle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--c-gray-dark);
}

/* ===== Search page: constrain width (was full-bleed = too wide) === */
.search-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ===== "More in {city}" related listings on listing pages ========= */
.related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-line);
}
.related__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

/* ===== Footer credit (Rockstarr & Moon) =========================== */
.footer-credit {
  margin-top: 1rem !important;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.footer-credit a {
  font-weight: 600;
  border-bottom-color: rgba(255,255,255,0.5) !important;
}

/* ===== Mobile nav (hamburger toggle) =============================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-teal-dark) 100%);
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .primary-nav.is-open {
    max-height: 80vh;
    overflow: auto;
    padding: 1rem 1.25rem 1.5rem;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .primary-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}
body.nav-open { overflow: hidden; }

/* ===== Hero rotator: defer slides 2-4 until after first paint ======
   Slide 1 starts visible (animation runs immediately). Slides 2-4 wait
   until JS adds `--ready` so the browser doesn't fetch all 4 sunsets on
   initial render — saves ~1.4MB on LCP. */
.hero-rotator__slide:not(:first-child) {
  background-image: none !important;
  animation: none !important;
}
.hero-rotator__slide--ready:nth-child(2) {
  background-image: url('/static/img/sunsets/hero-2.jpg') !important;
  animation: heroCrossfade 32s infinite !important;
  animation-delay: 8s !important;
}
.hero-rotator__slide--ready:nth-child(3) {
  background-image: url('/static/img/sunsets/banner.jpg') !important;
  animation: heroCrossfade 32s infinite !important;
  animation-delay: 16s !important;
}
.hero-rotator__slide--ready:nth-child(4) {
  background-image: url('/static/img/sunsets/hero-3.jpg') !important;
  animation: heroCrossfade 32s infinite !important;
  animation-delay: 24s !important;
}
