:root {
  --bg: #171717;
  --bg-soft: #232323;
  --ink: #1f1f1f;
  --paper: #ffffff;
  --muted: #fbf8ef;
  --line: #eadfb8;
  --brand: #f4c400;
  --brand-dark: #c99800;
  --brand-soft: #fff2b8;
  --accent: #ffd84d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; color: var(--ink); background: #fcfbf6; line-height: 1.5; }
a { color: var(--bg); text-decoration: none; transition: .2s ease; }
a:hover { color: #000; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  background: rgba(23,23,23,.96);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: none;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .2rem 0;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; margin-left: auto; }
.site-header a { color: white; font-weight: 600; }
.main-nav > a:not(.button) { opacity: .92; }
.main-nav > a:not(.button):hover { color: var(--brand); }

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}
.brand-logo img {
  display: block;
  height: 92px;
  width: auto;
  max-width: min(42vw, 420px);
  object-fit: contain;
  filter: none;
}

.hero {
  color: white;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 78% 24%, rgba(244,196,0,.38), transparent 24%),
    linear-gradient(120deg, #171717 0%, #242424 48%, #403100 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.04; margin: 0 0 1rem; max-width: 11ch; }
.lead { font-size: 1.15rem; max-width: 58ch; color: rgba(255,255,255,.9); }
.eyebrow {
  display: inline-block; background: rgba(244,196,0,.15); color: #fff0a8; padding: .5rem .85rem;
  border-radius: 999px; margin-bottom: 1rem; font-size: .88rem; border: 1px solid rgba(244,196,0,.35);
}
.tick-list { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.6rem; }
.tick-list span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
}
.tick-list span::before { content: "✓"; color: var(--brand); font-weight: 700; }

.hero-panel { display: flex; justify-content: flex-end; }
.spotlight-card {
  width: 100%; max-width: 430px; background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: 26px; padding: 1.6rem; box-shadow: 0 18px 44px rgba(0,0,0,.22); border: 1px solid rgba(244,196,0,.35);
}
.spotlight-card h3 { margin: .8rem 0; font-size: 1.6rem; color: var(--bg); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.mini-stats div { background: var(--muted); border: 1px solid var(--line); border-radius: 16px; padding: .9rem .7rem; text-align: center; }
.mini-stats strong { display: block; font-size: 1.2rem; color: var(--bg); }
.mini-stats span { font-size: .85rem; color: #555; }

.section { padding: 4.5rem 0; }
.section.muted { background: linear-gradient(180deg, #fffdf6 0%, #f7f0da 100%); }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .2rem 0 .5rem; color: var(--bg); }
.section-kicker { color: var(--brand-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section-kicker.dark { color: rgba(255,255,255,.8); }
.section-head-split { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }

.grid { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 1.35rem; box-shadow: 0 14px 34px rgba(23,23,23,.06);
}
.card h3, .card h4 { color: var(--bg); margin-top: 0; }
.region-card { transition: transform .2s ease, box-shadow .2s ease; }
.region-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(23,23,23,.12); }
.region-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.region-tag {
  display: inline-block; background: var(--brand-soft); color: #6d5700; border-radius: 999px;
  padding: .35rem .65rem; font-size: .78rem; font-weight: 700;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #161616; padding: .95rem 1.35rem; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; box-shadow: 0 12px 24px rgba(244,196,0,.22);
}
.button:hover { transform: translateY(-1px); color: #111; }
.button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.36); color: white; box-shadow: none; }
.button-dark { background: #222; color: white; box-shadow: 0 12px 24px rgba(0,0,0,.16); }
.button-dark:hover { color: white; }
.button-small { padding: .8rem 1rem; font-size: .95rem; }
.text-link { font-weight: 700; color: var(--brand-dark); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

.trust-strip { background: #fff; padding: 1.2rem 0; border-bottom: 1px solid #efe6c9; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.trust-item {
  background: linear-gradient(180deg, #fffdf8, #fff7d8); border: 1px solid #f0e2ae; border-radius: 18px; padding: 1rem 1.1rem;
}
.trust-item strong { display: block; margin-bottom: .35rem; color: var(--bg); }

.quote-card p { font-size: 1.05rem; }
.quote span { display: block; margin-top: .45rem; opacity: .78; }

.cta-band {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #574400 100%);
  color: white;
}
.cta-band-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.4rem;
}
.cta-band h2 { color: white; margin: .2rem 0 .5rem; font-size: clamp(1.9rem, 4vw, 2.8rem); }

.site-footer {
  background: linear-gradient(180deg, #111, #232323); color: white; padding: 2.3rem 0; margin-top: 0; border-top: 3px solid var(--brand);
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.footer-grid-v2 { grid-template-columns: 1.2fr .8fr .8fr; }
.site-footer a { color: #fff0a8; }

.alert { background: #fff4c7; color: #6c5200; padding: .75rem 1rem; border-radius: 12px; border: 1px solid #f0cf62; }
.top-gap { margin-top: 1.25rem; }
.badge-accent { display: inline-block; background: var(--brand); color: #1f1f1f; padding: .4rem .7rem; border-radius: 999px; font-weight: 700; }

.admin-body { background: #f6f1e2; }
.admin-shell { width: min(1280px, calc(100% - 2rem)); margin: 2rem auto; display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
.admin-shell.small { width: min(460px, calc(100% - 2rem)); grid-template-columns: 1fr; }
.admin-nav { display: flex; flex-direction: column; gap: .85rem; height: fit-content; }
.admin-main { min-width: 0; }
.admin-split { align-items: start; }
.stack { display: grid; gap: .9rem; }
input, select, textarea { width: 100%; padding: .8rem; border: 1px solid #d8ccb0; border-radius: 12px; margin-top: .35rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(242,194,48,.22); border-color: var(--brand-dark); }
textarea { min-height: 100px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #efe6d0; padding: .7rem .4rem; vertical-align: top; }
th { color: var(--bg); }

@media (max-width: 980px) {
  .nav-row, .section-head-split, .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-grid, .cards-3, .trust-grid, .footer-grid-v2, .admin-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 4.4rem; }
  .brand-logo img {
  display: block;
  height: 92px;
  width: auto;
  max-width: min(42vw, 420px);
  object-fit: contain;
  filter: none;
}
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 1.2rem, 1180px); }
  .hero-copy h1 { max-width: none; }
  .mini-stats { grid-template-columns: 1fr; }
  .main-nav { gap: .7rem; }
}



.main-nav .button.ghost {
  border-color: rgba(255,255,255,.24);
  border-radius: 999px;
  padding: .8rem 1.15rem;
}
.main-nav .button.ghost:hover {
  border-color: rgba(244,196,0,.55);
  color: #fff0a8;
}

@media (max-width: 980px) {
  .brand-logo img {
  display: block;
  height: 92px;
  width: auto;
  max-width: min(42vw, 420px);
  object-fit: contain;
  filter: none;
}
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .95rem;
}
.footer-backoffice {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  letter-spacing: .02em;
}
.footer-backoffice:hover {
  color: #fff0a8;
}
.main-nav {
  margin-left: auto;
}
.main-nav > a:not(.button) {
  font-weight: 600;
}
@media (max-width: 980px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


.admin-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(244,196,0,.22), transparent 22%),
    linear-gradient(135deg, #171717 0%, #252525 100%);
}
.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.admin-login-wrap .admin-shell.small {
  margin: 0;
}
.admin-login-brand {
  display: inline-flex;
  margin-bottom: 1.2rem;
  line-height: 0;
}
.admin-login-brand img {
  height: 72px;
  width: auto;
  filter: none;
}
.admin-login-wrap .card {
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
}


.brand-logo,
.admin-login-brand {
  background: transparent;
}
.brand-logo img,
.admin-login-brand img {
  mix-blend-mode: normal;
}


.brand-logo {
  flex: 0 0 auto;
}
.site-header .wrap {
  align-items: center;
}
@media (min-width: 981px) {
  .main-nav {
    padding-top: .25rem;
  }
}


.site-header,
.site-header::after,
.hero,
.hero-home,
main {
  }
.hero,
.hero-home {
  margin-top: 0 !important;
  box-shadow: none !important;
}


.site-header,
.site-header * {
  border-bottom: none !important;
  text-decoration: none;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0;
  margin: 0;
}
.brand-logo img {
  background: transparent;
}
.main-nav {
  margin-left: auto;
}
.hero,
.hero-home {
  margin-top: 0;
}
@media (max-width: 980px) {
  .brand-logo img {
    height: 66px;
    max-width: 58vw;
  }
  .nav-row {
    padding: .15rem 0;
  }
}


.search-panel {
  margin: 1.25rem 0 1rem;
  max-width: 720px;
}
.search-label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  color: #fff3bf;
}
.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
}
.search-box input {
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.search-results {
  margin-top: .75rem;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.search-result-item {
  display: block;
  padding: .9rem 1rem;
  border-bottom: 1px solid #f0e9ce;
  color: #171717;
}
.search-result-item:last-child {
  border-bottom: 0;
}
.search-result-item strong {
  display: block;
}
.search-result-item span,
.search-empty,
.search-help {
  font-size: .95rem;
}
.search-result-item span {
  display: block;
  color: #666;
  margin-top: .15rem;
}
.search-empty {
  padding: 1rem;
  color: #666;
}
.search-help {
  margin-top: .55rem;
  color: rgba(255,255,255,.8);
}
.table-card {
  overflow-x: auto;
}
code {
  background: #fff7d6;
  padding: .15rem .35rem;
  border-radius: 6px;
}
@media (max-width: 640px) {
  .search-box {
    grid-template-columns: 1fr;
  }
}


/* Search dropdown visibility fix */
.search-panel {
  position: relative;
  z-index: 50;
}
.search-results {
  position: absolute;
  top: calc(100% - .1rem);
  left: 0;
  right: 0;
  margin-top: .5rem;
  background: #ffffff;
  border: 1px solid #eadfb8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
  z-index: 9999;
}
.search-result-item {
  display: block;
  background: #ffffff;
  color: #171717 !important;
  padding: .95rem 1rem;
  border-bottom: 1px solid #f0e9ce;
}
.search-result-item:hover {
  background: #fff8dc;
}
.search-result-item strong {
  display: block;
  color: #171717 !important;
}
.search-result-item span {
  display: block;
  color: #666 !important;
  margin-top: .2rem;
}
.search-empty {
  background: #ffffff;
  color: #666 !important;
  padding: 1rem;
}
.hero,
.hero-home,
.hero-copy {
  overflow: visible !important;
}


.whatsapp-button {
  background: linear-gradient(180deg, #25D366, #1faa52);
  color: white !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .22);
}
.whatsapp-button:hover {
  color: white !important;
}
.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .85rem;
}


.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #25D366, #1faa52);
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .28);
  font-weight: 700;
}
.floating-whatsapp:hover {
  color: #fff !important;
  transform: translateY(-1px);
}
.floating-whatsapp-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 1rem;
  line-height: 1;
}
.floating-whatsapp-text {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: .85rem 1rem;
  }
  .floating-whatsapp-text {
    font-size: .92rem;
  }
}


.wa-modal-open {
  overflow: hidden;
}
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.wa-modal-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 2rem));
  margin: 6vh auto 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.28);
}
.wa-close {
  position: absolute;
  top: .85rem;
  right: .95rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.wa-modal-card h3 {
  margin: .2rem 0 .35rem;
}
.wa-intro {
  margin-top: 0;
  color: #555;
}
.wa-form {
  display: grid;
  gap: .9rem;
}
.wa-form label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  color: #171717;
}
.wa-form input,
.wa-form textarea {
  width: 100%;
  padding: .85rem .9rem;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  font: inherit;
}
.wa-form textarea {
  min-height: 120px;
  resize: vertical;
}
.wa-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: .25rem;
}


.cta-band-side {
  display: grid;
  gap: 1rem;
  width: min(460px, 100%);
}
.cta-search-panel {
  position: relative;
  width: 100%;
}
.cta-search-panel .search-label {
  color: rgba(255,255,255,.92);
}
.cta-search-panel .search-help {
  color: rgba(255,255,255,.82);
}
.cta-search-panel .search-results {
  position: absolute;
  top: calc(100% - .1rem);
  left: 0;
  right: 0;
  z-index: 9999;
}
.cta-band .search-box input {
  border: 1px solid #c9b25a;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}


/* Mobile WhatsApp popup fit fix */
@media (max-width: 640px) {
  .wa-modal {
    padding: 0;
  }
  .wa-modal-card {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 1rem auto 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 18px;
    padding: 1rem 1rem 1.1rem;
  }
  .wa-close {
    top: .6rem;
    right: .65rem;
    width: 34px;
    height: 34px;
  }
  .wa-form {
    gap: .75rem;
  }
  .wa-form input,
  .wa-form textarea {
    padding: .8rem;
    font-size: 16px;
  }
  .wa-form textarea {
    min-height: 96px;
  }
  .wa-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: .5rem;
  }
  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .floating-whatsapp-text {
    font-size: .9rem;
  }
}


/* Region page contrast and readability improvements */
.hero.compact {
  padding: 3.25rem 0 2.35rem;
  background:
    radial-gradient(circle at 78% 28%, rgba(253,205,1,.28), transparent 16%),
    linear-gradient(115deg, #101010 0%, #171717 52%, #2b2300 100%);
}
.hero.compact h1,
.hero.compact p,
.hero.compact .eyebrow {
  position: relative;
  z-index: 2;
}
.hero.compact p {
  color: rgba(255,255,255,.94);
  max-width: 70ch;
}
.site-header {
  background: rgba(12,12,12,.98);
}
.main-nav > a:not(.button) {
  color: rgba(255,255,255,.92) !important;
}
.main-nav > a:not(.button):hover {
  color: #fdcd01 !important;
}
.section .card,
.region-card,
.quote-card {
  background: #fffefb;
  border: 1px solid #e7d69d;
}
.section .card p,
.section .card li,
.section .card span,
.section .card strong {
  color: #1a1a1a;
}
.section .card p {
  line-height: 1.6;
}
.section .card strong {
  font-weight: 700;
}
.section .card a.text-link,
.section .card a.button-small {
  margin-top: .55rem;
}
.branch-actions {
  margin-top: 1rem;
}
.branch-card,
.region-branch-card {
  box-shadow: 0 14px 28px rgba(0,0,0,.05);
}
@media (max-width: 640px) {
  .hero.compact {
    padding: 2.2rem 0 1.7rem;
  }
  .hero.compact p {
    font-size: .98rem;
  }
}


/* Region page button row + charcoal page background */
body.region-page,
.region-page {
  background: #2a2a2a;
}
.section.region-list-section,
.region-list-section,
.region-page main,
.region-page .section {
  background: #2a2a2a;
}
.region-page .section .wrap > .section-head h2,
.region-page .section .wrap > .section-head p,
.region-page .section .wrap > .section-head .section-kicker,
.region-page .section > .wrap > h2,
.region-page .section > .wrap > p {
  color: #f5f1e3 !important;
}
.region-page .card,
.region-page .section .card,
.region-page .region-card,
.region-page .quote-card {
  background: #fffdfa;
  border: 1px solid #e6d59a;
}
.branch-actions-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .65rem;
  align-items: stretch;
}
.contact-chip {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.contact-chip-light {
  background: #f6edd0;
  color: #171717 !important;
  border: 1px solid #dfcc88;
  box-shadow: none;
}
.contact-chip-dark {
  background: #111111;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.08);
}
.secondary-meta {
  margin-top: .7rem;
}
@media (max-width: 700px) {
  .branch-actions-3 {
    grid-template-columns: 1fr;
  }
}


/* Region branch action buttons fix */
.branch-card p {
  color: #1a1a1a;
}
.branch-actions-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .65rem;
  align-items: stretch;
  margin-top: 1rem;
}
.contact-chip {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.contact-chip-light {
  background: #f6edd0;
  color: #171717 !important;
  border: 1px solid #dfcc88;
  box-shadow: none;
}
.contact-chip-dark {
  background: #111111;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.08);
}
.secondary-meta {
  margin-top: .7rem;
}
.region-list-section .section-head p {
  display: none;
}
@media (max-width: 700px) {
  .branch-actions-3 {
    grid-template-columns: 1fr;
  }
}


/* Region page branch action layout */
.region-page {
  background: #2b2b2b;
}
.region-page main,
.region-page .region-list-section {
  background: #2b2b2b;
}
.region-page .section-head h2 {
  color: #f8f4e7 !important;
}
.branch-card {
  background: #fffdfa;
  border: 1px solid #e5d498;
}
.branch-actions {
  display: grid;
  gap: .65rem;
}
.branch-actions-top {
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 1rem;
}
.branch-actions-bottom {
  grid-template-columns: 1fr;
  margin-top: .65rem;
}
.contact-chip {
  width: 100%;
  min-height: 46px;
  text-align: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}
.contact-chip-call {
  background: linear-gradient(180deg, #fdcd01, #d6a900);
  color: #171717 !important;
  box-shadow: 0 10px 22px rgba(253,205,1,.22);
}
.contact-chip-whatsapp {
  background: linear-gradient(180deg, #25D366, #1faa52);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37,211,102,.22);
}
.contact-chip-email {
  background: linear-gradient(180deg, #2684ff, #165dc0);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(38,132,255,.22);
}
.contact-chip-open {
  background: #111111;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.secondary-meta {
  margin-top: .75rem;
}
.region-list-section .section-head p {
  display: none;
}
@media (max-width: 760px) {
  .branch-actions-top {
    grid-template-columns: 1fr;
  }
}


/* Region card compact action buttons */
.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.branch-card-header h3 {
  margin: 0;
}
.branch-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 38px;
  padding: 0 .95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
}
.mini-call {
  background: linear-gradient(180deg, #fdcd01, #d6a900);
  color: #171717 !important;
  box-shadow: 0 8px 18px rgba(253,205,1,.18);
}
.mini-whatsapp {
  background: linear-gradient(180deg, #25D366, #1faa52);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37,211,102,.18);
}
.mini-email {
  background: linear-gradient(180deg, #2684ff, #165dc0);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(38,132,255,.18);
}
.branch-open-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: .9rem;
}
.mini-open {
  background: #111111;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
@media (max-width: 900px) {
  .branch-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .branch-mini-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .branch-mini-actions {
    width: 100%;
  }
  .mini-action {
    min-width: 96px;
    height: 36px;
    font-size: .9rem;
    padding: 0 .8rem;
  }
  .branch-open-wrap {
    justify-content: flex-start;
  }
}


/* Robust region button layout */
.branch-card {
  display: flex;
  flex-direction: column;
}
.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.branch-card-header h3 {
  margin: 0;
  flex: 1 1 auto;
}
.branch-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.mini-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 38px;
  padding: 0 .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-align: center;
  white-space: nowrap;
}
.mini-call {
  background: linear-gradient(180deg, #fdcd01, #d6a900);
  color: #171717 !important;
  box-shadow: 0 8px 18px rgba(253,205,1,.18);
}
.mini-whatsapp {
  background: linear-gradient(180deg, #25D366, #1faa52);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37,211,102,.18);
}
.mini-email {
  background: linear-gradient(180deg, #2684ff, #165dc0);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(38,132,255,.18);
}
.branch-details p {
  color: #1a1a1a;
}
.branch-open-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: .9rem;
}
.mini-open {
  background: #111111;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
@media (max-width: 980px) {
  .branch-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .branch-mini-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .branch-mini-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    width: 100%;
  }
  .mini-action {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0 .65rem;
    font-size: .88rem;
  }
  .branch-open-wrap {
    justify-content: flex-start;
  }
}

/* Mobile WhatsApp popup fit fix */
@media (max-width: 640px) {
  .wa-modal {
    padding: .5rem;
  }
  .wa-modal-card {
    width: 100%;
    max-width: none;
    margin: 0;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    border-radius: 18px;
    padding: 1rem 1rem 1.1rem;
  }
  .wa-close {
    top: .55rem;
    right: .6rem;
    width: 34px;
    height: 34px;
  }
  .wa-form {
    gap: .7rem;
  }
  .wa-form input,
  .wa-form textarea {
    padding: .8rem;
    font-size: 16px;
  }
  .wa-form textarea {
    min-height: 92px;
  }
  .wa-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: .5rem;
    margin-top: .2rem;
  }
  .wa-modal-card h3 {
    padding-right: 2.2rem;
  }
  .floating-whatsapp {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
