/* =============================================
   Floor Sanding Australia — Blueprint Catalogue
   Technical drawing on drafting paper aesthetic
   ============================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: Inter, Arial, sans-serif;
  background-color: #f5f0e8;
  background-image:
    linear-gradient(rgba(18,45,90,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,45,90,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #122d5a;
  line-height: 1.6;
}

a { color: #1a4a8a; text-decoration: none; }
a:hover { color: #0a1f3a; text-decoration: underline; }

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

h1, h2, h3, h4 {
  color: #0a1f3a;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1 { font-size: 2.6rem; letter-spacing: .06em; }
h2 { font-size: 1.6rem; letter-spacing: .05em; }
h3 { font-size: 1.05rem; letter-spacing: .04em; }

p { line-height: 1.7; color: #2e4d7a; }

main { padding-bottom: 5rem; }

/* --- Header --------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1.75rem;
  background: #f5f0e8;
  border-bottom: 2px solid #122d5a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 900;
  font-size: 1rem;
  color: #0a1f3a;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand img {
  height: 64px;
  width: auto;
  display: inline-block;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #2e4d7a;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-header nav a:hover {
  color: #0a1f3a;
  border-bottom-color: #0a1f3a;
  text-decoration: none;
}

/* --- Footer --------------------------------------------- */
.site-footer {
  background: #0a1f3a;
  border-top: 2px solid #122d5a;
  padding: 3rem 2rem 2rem;
  color: #7aa3cc;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #e8f4ff;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: .5rem;
}

.footer-col a { display: block; color: #7aa3cc; font-size: .85rem; line-height: 2.1; }
.footer-col a:hover { color: #e8f4ff; text-decoration: none; }
.footer-col p { font-size: .85rem; color: #7aa3cc; line-height: 1.65; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  color: #4a6c94;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-bottom a { color: #4a6c94; }
.footer-bottom a:hover { color: #7aa3cc; }

/* --- Eyebrow -------------------------------------------- */
.eyebrow {
  color: #5a7fb5;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .5rem;
  display: block;
}

/* --- Layout sections ------------------------------------ */
.section {
  padding: 3.5rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.narrow { max-width: 880px; }
.section.alt { background: #ede8df; }

.section-rule {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: -1rem;
}

.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(18,45,90,0.2);
}

.section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5a7fb5;
  white-space: nowrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(18,45,90,0.15);
  padding-bottom: 1rem;
}

.section-head a {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2e4d7a;
}

/* --- Page hero ------------------------------------------ */
.page-hero {
  background: #0a1f3a;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 4rem 1.75rem 3.5rem;
  border-bottom: 2px solid #1a4a8a;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 { color: #e8f4ff; }
.page-hero p { color: #7aa3cc; margin-top: .75rem; }
.page-hero .eyebrow { color: #4dc8f5; }

/* --- Homepage hero -------------------------------------- */
.hero-section {
  background: #0a1f3a;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 5rem 1.75rem 4rem;
  border-bottom: 2px solid #1a4a8a;
  position: relative;
}

.hero-coord {
  font-family: monospace;
  font-size: .7rem;
  color: #4a6c94;
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-section h1 {
  color: #e8f4ff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .08em;
  max-width: 820px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: #7aa3cc;
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* --- Search bar ----------------------------------------- */
.search-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: .75rem;
  max-width: 900px;
  margin-bottom: 1rem;
}

.search-bar input, .search-bar select {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #e8f4ff;
  padding: .8rem 1rem;
  font-size: .9rem;
  font-family: inherit;
  border-radius: 0;
  transition: border-color .15s;
}

.search-bar input::placeholder { color: rgba(255,255,255,0.35); }
.search-bar input:focus, .search-bar select:focus {
  border-color: #e8f4ff;
  outline: none;
}

.search-bar select option { background: #0a1f3a; color: #e8f4ff; }

.search-bar button {
  background: #e8f4ff;
  color: #0a1f3a;
  border: 1.5px solid #e8f4ff;
  padding: .8rem 1.5rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s;
}

.search-bar button:hover {
  background: transparent;
  color: #e8f4ff;
}

.search-hint { color: #4a6c94; font-size: .78rem; letter-spacing: .05em; }
.postcode-tip { color: #4dc8f5; font-size: .78rem; margin-top: .3rem; }
.postcode-banner {
  display: inline-block;
  border: 1px solid #4dc8f5;
  color: #4dc8f5;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Stats bar ------------------------------------------ */
.stats-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item { }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #e8f4ff;
  letter-spacing: .04em;
}
.stat-label {
  font-size: .65rem;
  color: #4a6c94;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}

/* --- Buttons -------------------------------------------- */
.btn-primary {
  display: inline-block;
  border: 1.5px solid #0a1f3a;
  color: #0a1f3a;
  background: transparent;
  padding: .65rem 1.4rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-primary:hover {
  background: #0a1f3a;
  color: #e8f4ff;
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  border: 1px solid #2e4d7a;
  color: #2e4d7a;
  padding: .45rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-outline:hover {
  background: #0a1f3a;
  color: #e8f4ff;
  text-decoration: none;
  border-color: #0a1f3a;
}

/* Hero variant buttons */
.btn-hero {
  display: inline-block;
  border: 1.5px solid #e8f4ff;
  color: #e8f4ff;
  background: transparent;
  padding: .75rem 1.6rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-hero:hover { background: #e8f4ff; color: #0a1f3a; text-decoration: none; }

/* --- Badges -------------------------------------------- */
.badge {
  display: inline-block;
  border: 1px solid #2e4d7a;
  color: #2e4d7a;
  padding: .2rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
}

.badge-verified {
  border-color: #c0392b;
  color: #c0392b;
  font-weight: 900;
}

.badge-default { border-color: #2e4d7a; color: #2e4d7a; }
.badge-default:hover { background: #0a1f3a; color: #e8f4ff; }

/* --- Tags ---------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.tags span {
  display: inline-block;
  border: 1px solid rgba(18,45,90,0.3);
  color: #2e4d7a;
  padding: .18rem .55rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 0;
}

/* --- Cards grid ---------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cards.four-col { grid-template-columns: repeat(4, 1fr); }

/* --- Feature cards (homepage featured) ----------------- */
.feature-card {
  border: 1.5px solid #122d5a;
  background: #f0ebe0;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: #0a1f3a;
  box-shadow: 4px 4px 0 #0a1f3a;
}

.feature-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,31,58,0.5);
}

.feature-image-badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: flex;
  gap: .4rem;
  z-index: 1;
}

.feature-image-badges .badge {
  border-color: rgba(255,255,255,0.6);
  color: #e8f4ff;
  font-size: .62rem;
}

.feature-image-badges .badge-verified {
  border-color: #e74c3c;
  color: #e8f4ff;
  background: #c0392b;
}

.feature-body {
  padding: 1.25rem;
}

.card-area {
  font-size: .65rem;
  color: #5a7fb5;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: .35rem;
}

.card-area::before { content: 'AREA: '; opacity: .6; }

.feature-body h3 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .4rem;
  letter-spacing: .04em;
}

.feature-body h3 a { color: #0a1f3a; }
.feature-body h3 a:hover { color: #1a4a8a; text-decoration: none; }

.tagline { color: #4a6c94; font-size: .85rem; }

/* --- Card rows (list views) ---------------------------- */
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(18,45,90,0.15);
  gap: 1rem;
  background: transparent;
  transition: background .12s;
}

.card-row:last-child { border-bottom: 1px solid rgba(18,45,90,0.15); }
.card-row:hover { background: rgba(18,45,90,0.05); }
.card-row.featured-row { border-left: 3px solid #122d5a; padding-left: .9rem; }

.card-rows-wrap {
  border: 1.5px solid rgba(18,45,90,0.25);
  border-radius: 0;
}

.card-rows-wrap .card-row { border-bottom: 1px solid rgba(18,45,90,0.12); }
.card-rows-wrap .card-row:last-child { border-bottom: none; }

.row-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.biz-name { color: #0a1f3a; font-weight: 700; letter-spacing: .02em; }
.biz-name:hover { color: #1a4a8a; text-decoration: none; }
.muted { color: #5a7fb5; font-size: .82rem; margin-top: .1rem; }

/* --- Location tiles ------------------------------------ */
.location-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid rgba(18,45,90,0.25);
}

.location-tile {
  padding: 1.25rem 1.4rem;
  border-right: 1px solid rgba(18,45,90,0.15);
  border-bottom: 1px solid rgba(18,45,90,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .12s;
  text-decoration: none;
}

.location-tile:hover {
  background: rgba(18,45,90,0.05);
  text-decoration: none;
}

.location-tile:nth-child(3n) { border-right: none; }
.location-tile:nth-last-child(-n+3) { border-bottom: none; }

.location-tile-name {
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #0a1f3a;
}

.location-tile-count {
  font-size: .72rem;
  color: #5a7fb5;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.location-tile-arrow { color: #2e4d7a; font-size: .9rem; margin-left: .75rem; }
.location-tile:hover .location-tile-arrow { color: #0a1f3a; }

/* --- Service tiles -------------------------------------- */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.5px solid rgba(18,45,90,0.25);
}

.service-tile {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(18,45,90,0.15);
  border-bottom: 1px solid rgba(18,45,90,0.15);
  text-decoration: none;
  transition: background .12s;
}

.service-tile:hover { background: rgba(18,45,90,0.05); text-decoration: none; }
.service-tile:nth-child(2n) { border-right: none; }
.service-tile:nth-last-child(-n+2) { border-bottom: none; }

.service-tile h3 {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0a1f3a;
  margin-bottom: .4rem;
}

.service-tile p { font-size: .85rem; color: #4a6c94; line-height: 1.55; }

.service-tile-arrow {
  display: inline-block;
  margin-top: .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2e4d7a;
}

.service-tile:hover .service-tile-arrow { color: #0a1f3a; }

/* --- Resource cards ------------------------------------- */
.resource-card {
  border: 1.5px solid rgba(18,45,90,0.2);
  padding: 1.5rem;
  background: #f0ebe0;
  transition: border-color .15s, box-shadow .15s;
}

.resource-card:hover {
  border-color: #0a1f3a;
  box-shadow: 3px 3px 0 #0a1f3a;
}

.resource-card h2, .resource-card h3 {
  font-size: 1rem;
  margin: .4rem 0 .5rem;
}

.resource-card h2 a, .resource-card h3 a { color: #0a1f3a; }
.resource-card h2 a:hover, .resource-card h3 a:hover { color: #1a4a8a; text-decoration: none; }

.resource-card p { font-size: .88rem; color: #4a6c94; line-height: 1.55; }

.resource-card a.read-link {
  display: inline-block;
  margin-top: .85rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0a1f3a;
  border-bottom: 1px solid #0a1f3a;
  padding-bottom: 1px;
}

/* --- Business profile ----------------------------------- */
.listing-hero {
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid #1a4a8a;
}

.listing-hero-inner {
  padding: 4rem 1.75rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10,31,58,0.75);
}

.listing-hero-inner h1 { color: #e8f4ff; }
.listing-tagline { color: #7aa3cc; font-size: 1.05rem; margin-top: .6rem; max-width: 640px; }
.listing-hero-inner .eyebrow { color: #4dc8f5; }

.business-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.business-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.business-box {
  border: 1.5px solid rgba(18,45,90,0.25);
  padding: 1.25rem;
  background: #f0ebe0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.business-box div { font-size: .85rem; }
.business-box strong { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: #5a7fb5; margin-bottom: .2rem; }

.lead-panel {
  border: 1.5px solid rgba(18,45,90,0.25);
  padding: 1.5rem;
  background: #f0ebe0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.lead-panel h2 { font-size: 1rem; margin-bottom: 1.25rem; }

.lead-form { display: flex; flex-direction: column; gap: .85rem; }
.lead-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5a7fb5; }
.lead-form input, .lead-form select, .lead-form textarea {
  background: white;
  border: 1.5px solid rgba(18,45,90,0.25);
  color: #0a1f3a;
  padding: .65rem .85rem;
  font-size: .88rem;
  font-family: inherit;
  border-radius: 0;
  transition: border-color .15s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: #0a1f3a; outline: none; }
.lead-form button {
  background: #0a1f3a;
  color: #e8f4ff;
  border: 1.5px solid #0a1f3a;
  padding: .75rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.lead-form button:hover { background: transparent; color: #0a1f3a; }

.review-snippet {
  border-left: 3px solid #122d5a;
  padding: .75rem 1rem;
  background: rgba(18,45,90,0.05);
  color: #2e4d7a;
  font-size: .92rem;
  margin: 1rem 0;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(18,45,90,0.2);
}

.faq-block { margin-top: 2rem; }
.faq-block h2 { margin-bottom: 1rem; }

.faq-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(18,45,90,0.12);
}
.faq-row strong { display: block; font-size: .88rem; color: #0a1f3a; margin-bottom: .3rem; }
.faq-row .muted { font-size: .85rem; color: #4a6c94; }

/* --- CTA block ----------------------------------------- */
.cta-block {
  background: #0a1f3a;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 4rem 1.75rem;
  border-top: 2px solid #1a4a8a;
  border-bottom: 2px solid #1a4a8a;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.cta-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}

.cta-card h2 { color: #e8f4ff; font-size: 1.3rem; margin-bottom: .75rem; }
.cta-card p { color: #7aa3cc; font-size: .9rem; line-height: 1.6; margin-bottom: 1.5rem; }

/* --- FAQ page ------------------------------------------- */
.faq-page-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(18,45,90,0.15);
}

.faq-page-item strong { display: block; font-size: .95rem; color: #0a1f3a; margin-bottom: .4rem; letter-spacing: .02em; }
.faq-page-item p { color: #4a6c94; font-size: .9rem; }

/* --- Article page --------------------------------------- */
.article-page { }
.article-page h1 { margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: #2e4d7a; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(18,45,90,0.15); }
.article-page p { margin-bottom: 1.25rem; }

/* --- Flashes -------------------------------------------- */
.flash-wrap { max-width: 880px; margin: 1.25rem auto 0; padding: 0 1.75rem; }
.flash { padding: .85rem 1.1rem; border: 1px solid #2e4d7a; background: rgba(18,45,90,0.05); font-size: .88rem; color: #0a1f3a; margin-bottom: .5rem; }
.flash-success { border-color: #2e7d32; background: rgba(46,125,50,0.05); color: #2e7d32; }
.flash-error { border-color: #c0392b; background: rgba(192,57,43,0.05); color: #c0392b; }

/* --- Admin --------------------------------------------- */
.admin-wrap { max-width: 1300px; margin: 0 auto; padding: 2rem 1.25rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1.5px solid rgba(18,45,90,0.2); }
.admin-topbar h1 { font-size: 1.4rem; }
.admin-topbar-actions { display: flex; gap: .75rem; }
.btn-ghost { border: 1px solid #2e4d7a; color: #2e4d7a; padding: .55rem 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }
.btn-ghost:hover { background: #0a1f3a; color: #e8f4ff; border-color: #0a1f3a; text-decoration: none; }
.admin-stats-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.astat { border: 1.5px solid rgba(18,45,90,0.25); padding: .85rem 1.25rem; background: #f0ebe0; min-width: 90px; text-align: center; }
.astat-num { display: block; font-size: 1.6rem; font-weight: 900; color: #0a1f3a; }
.astat-label { font-size: .65rem; color: #5a7fb5; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.admin-filter { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.admin-filter input, .admin-filter select { background: white; border: 1.5px solid rgba(18,45,90,0.25); color: #0a1f3a; padding: .5rem .85rem; font-size: .88rem; border-radius: 0; }
.admin-filter button { background: #0a1f3a; color: #e8f4ff; border: none; padding: .5rem 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.admin-hint { color: #5a7fb5; font-size: .82rem; margin-bottom: .75rem; }
.admin-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.admin-table th { text-align: left; padding: .55rem .85rem; border-bottom: 2px solid #122d5a; color: #122d5a; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.admin-table td { padding: .7rem .85rem; border-bottom: 1px solid rgba(18,45,90,0.1); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(18,45,90,0.04); }
.tr-featured td { border-left: 3px solid #122d5a; }
.biz-url { font-size: .75rem; color: #5a7fb5; margin-top: .12rem; }
.status-pill { display: inline-block; padding: .18rem .55rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; border-radius: 0; }
.status-active { border-color: #2e7d32; color: #2e7d32; }
.status-draft { border-color: #b7800a; color: #b7800a; }
.status-archived { border-color: #5a7fb5; color: #5a7fb5; }
.flag-cell { white-space: nowrap; }
.flag { display: inline-block; padding: .12rem .4rem; font-size: .62rem; font-weight: 800; margin-right: .2rem; border: 1px solid; letter-spacing: .08em; }
.flag-featured { border-color: #122d5a; color: #122d5a; }
.flag-verified { border-color: #c0392b; color: #c0392b; }
.action-cell { white-space: nowrap; display: flex; gap: .5rem; align-items: center; }
.action-edit { color: #1a4a8a; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.action-edit:hover { color: #0a1f3a; text-decoration: none; }
.action-delete { background: none; border: 1px solid #c0392b; color: #c0392b; padding: .2rem .55rem; font-size: .72rem; font-weight: 700; cursor: pointer; letter-spacing: .06em; text-transform: uppercase; border-radius: 0; }
.action-delete:hover { background: #c0392b; color: white; }
.admin-section { margin-top: 2rem; }
.admin-section h2 { font-size: 1rem; margin-bottom: .75rem; display: flex; gap: .75rem; align-items: center; }
.admin-count { border: 1px solid rgba(18,45,90,0.2); color: #5a7fb5; padding: .1rem .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.check-item { display: flex !important; align-items: center; gap: .5rem; }

/* --- 404 / utility ------------------------------------- */
.bullet-list { padding-left: 1.5rem; line-height: 2; color: #2e4d7a; }

/* --- Responsive ---------------------------------------- */
@media (max-width: 900px) {
  h1 { font-size: 1.9rem; }
  .hero-section { padding: 3rem 1.25rem 2.5rem; }
  .search-bar { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards.four-col { grid-template-columns: repeat(2, 1fr); }
  .location-tiles { grid-template-columns: repeat(2, 1fr); }
  .service-tiles { grid-template-columns: 1fr; }
  .business-page { grid-template-columns: 1fr; }
  .business-top { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-header { flex-wrap: nowrap; }
  .site-header nav { gap: .6rem; flex-wrap: wrap; }
  .site-header nav a { font-size: .72rem; }
  .card-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .row-actions { width: 100%; justify-content: flex-start; }
  .lead-panel { position: static; }
  .check-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cards.four-col { grid-template-columns: 1fr; }
  .location-tiles { grid-template-columns: 1fr; }
  .location-tile:nth-child(3n) { border-right: 1px solid rgba(18,45,90,0.15); }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .stats-bar-inner { gap: 1.5rem; }
}

/* =============================================
   Desktop enhancements & additions
   ============================================= */

/* --- Hamburger toggle (hidden on desktop) --- */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid #122d5a;
  color: #0a1f3a;
  font-size: 1.2rem;
  line-height: 1;
  padding: .3rem .65rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Contact box (business profile aside) --- */
.contact-box {
  border: 1.5px solid rgba(18,45,90,0.25);
  padding: 1.25rem;
  background: #f0ebe0;
}

.contact-box h3 {
  font-size: .8rem;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(18,45,90,0.15);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-row > div { font-size: .88rem; }

.contact-row strong {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #5a7fb5;
  margin-bottom: .15rem;
}

.contact-row a { color: #1a4a8a; }
.contact-row a:hover { color: #0a1f3a; }

/* --- Section heading underline rule (blueprint aesthetic) --- */
.section h2 {
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(18,45,90,0.18);
  margin-bottom: 1rem;
}

/* Don't double-underline when h2 is already inside section-head container */
.section-head h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* =============================================
   Mobile — 600px and below (comprehensive)
   ============================================= */
@media (max-width: 600px) {
  /* Prevent horizontal overflow at 375px */
  body { overflow-x: hidden; }
  main { overflow-x: hidden; }

  /* --- Typography --- */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  .hero-section h1 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.6rem; }

  /* --- Nav: show hamburger, collapse links by default --- */
  .nav-toggle { display: block; }

  .site-header {
    position: relative;
    flex-wrap: nowrap;
    padding: .7rem 1rem;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f5f0e8;
    border-bottom: 2px solid #122d5a;
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    z-index: 99;
  }

  .site-header nav.nav-open { display: flex; }

  /* Logo size reduced on mobile */
  .brand img { height: 48px; }

  /* --- Hero section --- */
  .hero-section { padding: 2.5rem 1.1rem 2rem; }
  .hero-sub { font-size: .93rem; }

  /* --- Stats bar: 2×2 grid --- */
  .stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* --- Search bar: full-width single column --- */
  .search-bar { grid-template-columns: 1fr; }
  .search-bar button { width: 100%; }

  /* --- Featured cards: single col, 140px image, hide tagline --- */
  .cards { grid-template-columns: 1fr; }
  .feature-image { height: 140px; }
  .tagline { display: none; }

  /* --- Card rows: already stacking at 900px; ensure actions wrap --- */
  .card-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .row-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  /* --- Location tiles: single col, clean border reset --- */
  .location-tiles { grid-template-columns: 1fr; }
  .location-tile { border-right: none; }
  .location-tile:nth-child(3n) { border-right: none; }
  .location-tile:nth-last-child(-n+3) { border-bottom: 1px solid rgba(18,45,90,0.15); }
  .location-tile:last-child { border-bottom: none; }

  /* --- Service tiles: single col --- */
  .service-tiles { grid-template-columns: 1fr; }
  .service-tile { border-right: none; }
  .service-tile:nth-child(2n) { border-right: none; }
  .service-tile:nth-last-child(-n+2) { border-bottom: 1px solid rgba(18,45,90,0.15); }
  .service-tile:last-child { border-bottom: none; }

  /* --- Footer: single column --- */
  .footer-inner { grid-template-columns: 1fr; }

  /* --- Business profile: main content first, aside below --- */
  .business-page { grid-template-columns: 1fr; }
  .business-top { grid-template-columns: 1fr; }
  .lead-panel { position: static; }

  /* --- Gallery: single column --- */
  .gallery-grid { grid-template-columns: 1fr; }

  /* --- CTA block: single column --- */
  .cta-inner { grid-template-columns: 1fr; }

  /* --- Section padding tighter on small screens --- */
  .section { padding: 2.25rem 1.1rem; }

  /* --- Admin topbar --- */
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── Listing grid cards ─────────────────────────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: #fff;
  border: 1px solid rgba(18,45,90,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}

.listing-card:hover {
  box-shadow: 0 8px 24px rgba(18,45,90,0.12);
  transform: translateY(-2px);
}

.listing-featured {
  border-color: #122d5a;
  border-width: 2px;
}

.listing-img-wrap {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #e9e3d8;
  position: relative;
  flex-shrink: 0;
}

.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s;
}

.listing-card:hover .listing-img-wrap img {
  transform: scale(1.04);
}

.listing-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddd8cf 0%, #c8c1b5 100%);
}

.listing-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: #122d5a;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .55rem;
}

.listing-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .75rem;
}

.listing-name {
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
}

.listing-name a {
  color: #0a1f3a;
  text-decoration: none;
}

.listing-name a:hover {
  color: #122d5a;
  text-decoration: underline;
}

.listing-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.listing-fact {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(18,45,90,0.08);
}

.listing-label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7f99;
  font-weight: 700;
}

.listing-fact strong {
  font-size: .92rem;
  color: #0a1f3a;
  text-align: right;
}

.listing-tagline {
  font-size: .88rem;
  color: #435066;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-cta {
  font-size: .78rem;
  font-weight: 800;
  color: #122d5a;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: auto;
}

.listing-cta:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .listing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .listing-img-wrap {
    height: 210px;
  }
}

/* ── Admin card controls ─────────────────────────────────────────────────── */
.card-admin-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding-top: .6rem;
  margin-top: .5rem;
  border-top: 1px solid rgba(18,45,90,0.1);
}

.card-admin-edit {
  font-size: .75rem;
  font-weight: 700;
  color: #122d5a;
  text-decoration: none;
  background: rgba(18,45,90,0.07);
  padding: .25rem .65rem;
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-admin-edit:hover {
  background: rgba(18,45,90,0.15);
}

.card-admin-delete {
  font-size: .75rem;
  font-weight: 700;
  color: #c0392b;
  background: none;
  border: 1px solid rgba(192,57,43,0.3);
  padding: .25rem .65rem;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: inherit;
}

.card-admin-delete:hover {
  background: rgba(192,57,43,0.08);
}

/* ── Admin dark theme override ───────────────────────────────────────────── */
body:has(.admin-wrap) {
  background-color: #0d1117;
  background-image: none;
  color: #c8d4e0;
}

body:has(.admin-wrap) .site-header {
  background: #0d1117;
  border-bottom: 1px solid #1e2535;
}

body:has(.admin-wrap) .site-header a,
body:has(.admin-wrap) .site-header nav a {
  color: #8bd0ff;
}

body:has(.admin-wrap) .site-footer {
  background: #0d1117;
  border-top: 1px solid #1e2535;
  color: #5a6475;
}

.admin-wrap {
  background: #0d1117;
  min-height: 80vh;
  color: #c8d4e0;
}

.admin-wrap h1, .admin-wrap h2, .admin-wrap h3 {
  color: #edf1f7;
}

.admin-wrap a {
  color: #8bd0ff;
}

.admin-table th {
  color: #8bd0ff;
  border-bottom-color: #1e2535;
}

.admin-table td {
  border-bottom-color: #1e2535;
  color: #c8d4e0;
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.04);
}

.admin-table .biz-name {
  color: #edf1f7;
  font-weight: 600;
}

.admin-stat-card {
  background: #151922;
  border: 1px solid #1e2535;
  color: #c8d4e0;
}

.admin-stat-card .stat-num {
  color: #edf1f7;
}

.admin-filter input,
.admin-filter select {
  background: #151922 !important;
  border-color: #2b3342 !important;
  color: #edf1f7 !important;
}

.admin-filter button {
  background: #122d5a !important;
  color: #edf1f7 !important;
}

.admin-topbar {
  border-bottom-color: #1e2535;
}

.admin-section h2 {
  color: #edf1f7;
}

.admin-count {
  border-color: #2b3342;
  color: #5a7fb5;
}

/* ── Gallery lightbox ─────────────────────────────────────────────────────── */
.listing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.gallery-thumb-link {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e9e3d8;
  cursor: pointer;
}

.gallery-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.gallery-thumb-link:hover img {
  transform: scale(1.04);
}

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lb-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.lb-caption {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-top: .75rem;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
}

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: .5rem 1rem;
  line-height: 1;
  transition: background .15s;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

@media (max-width: 600px) {
  .listing-gallery { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .lb-prev { left: .25rem; }
  .lb-next { right: .25rem; }
  .gallery-thumb-link { aspect-ratio: 1/1; }
}
