/* ITOSA Apartment — shared component styles
   Loaded after Tailwind. Use Tailwind utilities in markup wherever possible;
   this file is for repeated patterns and small UI primitives only. */

/* Material Symbols default weight/optical size */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Hide scrollbars on horizontal chip rows */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Filter chips */
.filter-chip {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #c4c7c7;
  background: #f7f3f2;
  color: #444748;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { background: #181919; color: #fff; border-color: #181919; }
.filter-chip.active { background: #181919; color: #fff; border-color: #181919; }

/* Apartment cards */
.apt-card {
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), box-shadow 0.3s;
}
/* No transform on hover. Card stays still; cursor signals it's clickable. */
.apt-card { cursor: pointer; }

/* Bento gallery */
.gallery-thumb {
  transition: transform 0.5s ease, filter 0.3s ease;
  cursor: pointer;
}
.gallery-thumb:hover { transform: scale(1.03); filter: brightness(1.04); }

/* Day cells (admin availability calendar) */
.day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid #e5e2e1;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  color: #1c1b1b;
  transition: all 0.15s ease;
  user-select: none;
}
.day-cell:hover:not(.booked):not(.blocked):not(.empty) { background: #fff8df; border-color: #f9bd22; }
.day-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.day-cell.today { outline: 2px solid #181919; outline-offset: -2px; font-weight: 700; }
.day-cell.selected { background: #f9bd22; color: #181919; border-color: #f9bd22; }
.day-cell.booked { background: #e5f1ff; color: #6b7280; border-color: #c9e6ff; cursor: not-allowed; }
.day-cell.blocked { background: #1c1b1b; color: #ddd; border-color: #1c1b1b; cursor: not-allowed; }

/* Litepicker overrides */
.litepicker .container__months .month-item-header div > .month-item-name,
.litepicker .container__months .month-item-header div > .month-item-year {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
}
.litepicker .container__days .day-item.is-locked {
  text-decoration: line-through;
  color: #c4c7c7 !important;
  background: #f7f3f2 !important;
}
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date,
.litepicker .container__days .day-item.is-in-range {
  background-color: #fff8df !important;
  color: #181919 !important;
}
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
  background-color: #f9bd22 !important;
  color: #181919 !important;
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-close:hover {
  background: #f9bd22;
  color: #181919;
  border-color: #f9bd22;
}
/* No scale on hover — colour change only (already above) */

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e5e2e1;
  border-bottom: 1px solid #e5e2e1;
  background: #fff;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #444748;
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-strip .trust-item .material-symbols-outlined { color: #3a8b6a; font-size: 20px; }

/* Step pills (booking flow) */
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #f1edec;
  color: #444748;
  font-weight: 600;
  font-size: 0.8125rem;
}
.step-pill.active { background: #181919; color: #fff; }
.step-pill.done { background: #3a8b6a; color: #fff; }

/* FAQ accordion */
details.faq {
  border-bottom: 1px solid #e5e2e1;
  padding: 1.25rem 0;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #181919;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: #444748;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq .answer {
  margin-top: 0.75rem;
  color: #444748;
  line-height: 1.7;
}

/* Sticky mobile booking bar */
.mobile-book-bar {
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e2e1;
  padding: 0.75rem 1rem;
  z-index: 40;
  display: none;
}
@media (max-width: 1023px) {
  .mobile-book-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #181919;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Field & form helpers */
.field-error {
  color: #ba1a1a;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}
.input-base {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid #c4c7c7;
  border-radius: 0.75rem;
  background: #fff;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-base:focus {
  outline: none;
  border-color: #181919;
  box-shadow: 0 0 0 4px rgba(249,189,34,0.18);
}
.input-base[aria-invalid="true"] {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 4px rgba(186,26,26,0.12);
}

/* Placeholder banner (visible at top of admin pages) */
.demo-banner {
  background: #fff8df;
  border-bottom: 1px solid #f9bd22;
  color: #5c4300;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

/* Skeleton placeholders for missing photos */
.placeholder-tile {
  background: linear-gradient(135deg, #f1edec 0%, #ddd9d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #747878;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

/* Print */
@media print {
  header, footer, .mobile-book-bar, .lightbox, .toast { display: none !important; }
  body { background: #fff !important; }
}

/* =====================================================
   DARK MODE TOGGLE BUTTON
   ===================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid #e5e2e1;
  background: transparent;
  color: #444748;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { background: #f1edec; }
html.dark .theme-toggle-btn { border-color: #3a3b3c; color: #d4d4d8; }
html.dark .theme-toggle-btn:hover { background: #2d2e30; }

/* =====================================================
   DARK MODE OVERRIDES
   Core surfaces, text, and borders for html.dark
   ===================================================== */

/* Page background */
html.dark body { background-color: #111213 !important; color: #e4e4e7 !important; }

/* White surfaces → dark cards */
html.dark .bg-white { background-color: #1c1d1e !important; }
html.dark .bg-brand-bg,
html.dark .bg-background { background-color: #111213 !important; }
html.dark .bg-zinc-50 { background-color: #1a1b1c !important; }
html.dark .bg-zinc-100 { background-color: #242526 !important; }
html.dark .bg-zinc-200 { background-color: #2d2e30 !important; }

/* Borders */
html.dark .border-zinc-100 { border-color: #2d2e30 !important; }
html.dark .border-zinc-200 { border-color: #3a3b3c !important; }
html.dark .border-zinc-300 { border-color: #4a4b4d !important; }

/* Text colours */
html.dark .text-brand-ink { color: #f4f4f5 !important; }
html.dark .text-on-surface-variant { color: #a1a1aa !important; }
html.dark .text-zinc-600 { color: #a1a1aa !important; }
html.dark .text-zinc-500 { color: #71717a !important; }
html.dark .text-zinc-400 { color: #52525b !important; }
html.dark .text-zinc-900 { color: #f4f4f5 !important; }
html.dark .text-zinc-800 { color: #e4e4e7 !important; }
html.dark .text-zinc-700 { color: #d4d4d8 !important; }

/* CRITICAL: brand-yellow and white buttons need dark text in dark mode too.
   Yellow buttons must always have dark labels — white-on-yellow is unreadable.
   White/light buttons must always have dark labels — white-on-white is invisible. */
html.dark .bg-brand-yellow.text-brand-ink,
html.dark .bg-brand-yellow .text-brand-ink,
html.dark .bg-brand-yellow-soft.text-brand-ink,
html.dark .bg-brand-yellow-soft .text-brand-ink,
html.dark .bg-white.text-brand-ink,
html.dark .bg-white .text-brand-ink,
html.dark .bg-brand-bg.text-brand-ink,
html.dark .bg-brand-bg .text-brand-ink {
  color: #181919 !important;
}

/* Header */
html.dark header { background-color: rgba(28, 29, 30, 0.92) !important; border-bottom-color: #2d2e30 !important; }
html.dark #mobile-menu { background-color: #1c1d1e !important; border-top-color: #2d2e30 !important; }

/* Footer stays dark — just lighten border */
html.dark footer { background-color: #0d0e0f !important; }

/* Bottom mobile nav */
html.dark nav[aria-label="Mobile bottom navigation"] {
  background-color: #1c1d1e !important;
  border-top-color: #2d2e30 !important;
}

/* Cards and raised surfaces */
html.dark .shadow-card,
html.dark .shadow-lift {
  box-shadow: 0 8px 30px rgba(0,0,0,0.35) !important;
}

/* Inputs */
html.dark .input-base {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #f4f4f5 !important;
}
html.dark .input-base:focus {
  border-color: #f9bd22 !important;
}
html.dark textarea,
html.dark select {
  background-color: #242526 !important;
  border-color: #3a3b3c !important;
  color: #f4f4f5 !important;
}

/* Filter chips */
html.dark .filter-chip {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #d4d4d8 !important;
}
html.dark .filter-chip:hover,
html.dark .filter-chip.active {
  background: #f9bd22 !important;
  color: #111213 !important;
  border-color: #f9bd22 !important;
}

/* Trust strip */
html.dark .trust-strip {
  background: #1c1d1e !important;
  border-color: #2d2e30 !important;
}
html.dark .trust-strip .trust-item { color: #a1a1aa !important; }

/* Step pills */
html.dark .step-pill { background: #242526 !important; color: #a1a1aa !important; }
html.dark .step-pill.active { background: #f9bd22 !important; color: #111213 !important; }
html.dark .step-pill.done { background: #3a8b6a !important; color: #fff !important; }

/* FAQ */
html.dark details.faq { border-bottom-color: #2d2e30 !important; }
html.dark details.faq summary { color: #f4f4f5 !important; }
html.dark details.faq summary::after { color: #a1a1aa !important; }
html.dark details.faq .answer { color: #a1a1aa !important; }

/* Mobile booking bar */
html.dark .mobile-book-bar {
  background: #1c1d1e !important;
  border-top-color: #2d2e30 !important;
}

/* Demo/admin banner */
html.dark .demo-banner {
  background: #2a2100 !important;
  border-color: #795900 !important;
  color: #ffdf9f !important;
}

/* Placeholder tile */
html.dark .placeholder-tile {
  background: linear-gradient(135deg, #242526 0%, #1a1b1c 100%) !important;
  color: #71717a !important;
}

/* Calendar day cells */
html.dark .day-cell {
  background: #1c1d1e !important;
  border-color: #2d2e30 !important;
  color: #e4e4e7 !important;
}
html.dark .day-cell:hover:not(.booked):not(.blocked):not(.empty) {
  background: #2a2100 !important;
  border-color: #f9bd22 !important;
}
html.dark .day-cell.today { outline-color: #f9bd22 !important; }
html.dark .day-cell.booked { background: #1a2535 !important; color: #52525b !important; border-color: #1e3048 !important; }

/* Info / amber banners */
html.dark .bg-amber-50 { background-color: #2a2100 !important; }
html.dark .border-amber-200 { border-color: #795900 !important; }
html.dark .text-amber-900 { color: #ffdf9f !important; }
html.dark .text-amber-700 { color: #f9bd22 !important; }
html.dark .bg-emerald-50 { background-color: #0d2318 !important; }
html.dark .border-emerald-200 { border-color: #1a4a30 !important; }
html.dark .text-emerald-900\/80 { color: #6ee7b7 !important; }
html.dark .bg-rose-50 { background-color: #2a0d0d !important; }
html.dark .border-rose-200 { border-color: #4a1a1a !important; }
html.dark .text-rose-900\/80 { color: #fca5a5 !important; }

/* Tables inside articles */
html.dark table td,
html.dark table th { border-color: #2d2e30 !important; }
html.dark thead tr { background-color: #242526 !important; }
html.dark tbody tr.bg-zinc-50 { background-color: #1a1b1c !important; }

/* No hover shadow change in dark either */

/* =====================================================
   FLOATING DARK MODE TOGGLE (visible on every page)
   ===================================================== */
.theme-toggle-float {
  position: fixed;
  left: 16px;
  bottom: 80px;            /* sits above mobile bottom nav (64px), avoids right-side WhatsApp button */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #181919;
  border: 1px solid #e5e2e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle-float:hover {
  background: #f7f3f2;
}
.theme-toggle-float:active { transform: scale(0.94); }
.theme-toggle-float .material-symbols-outlined { font-size: 24px; }

@media (min-width: 768px) {
  .theme-toggle-float { left: 24px; bottom: 24px; }
}

html.dark .theme-toggle-float {
  background: #1c1d1e;
  color: #f4f4f5;
  border-color: #3a3b3c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
html.dark .theme-toggle-float:hover { background: #2d2e30; }

/* =====================================================
   LEAFLET MAP PINS (details page)
   ===================================================== */
#map-leaflet { border-radius: 1rem; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { font-family: "Be Vietnam Pro", system-ui, sans-serif; font-size: 13px; line-height: 1.45; }
.leaflet-container { font-family: "Be Vietnam Pro", system-ui, sans-serif; }

.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.map-pin-apt {
  width: 44px; height: 44px;
  background: #f9bd22;
  color: #181919;
  border: 3px solid #ffffff;
}
.map-pin-landmark {
  width: 32px; height: 32px;
  background: #ffffff;
  color: #795900;
  border: 2px solid #f9bd22;
}
/* Map pins are static; no scale on hover */
.map-pin .material-symbols-outlined { font-size: 18px; line-height: 1; }
.map-pin-apt .material-symbols-outlined { font-size: 22px; }

html.dark .leaflet-popup-content-wrapper {
  background: #1c1d1e !important;
  color: #f4f4f5 !important;
}
html.dark .leaflet-popup-tip { background: #1c1d1e !important; }
html.dark .leaflet-popup-content span[style*="color"] { color: #a1a1aa !important; }

/* =====================================================
   CROSS-PAGE TRANSITIONS (Chrome/Edge/Safari)
   Smooth cross-fade between page navigations. Older browsers
   (Firefox) just ignore this rule — same hard cut as before.
   ===================================================== */
@view-transition { navigation: auto; }

/* =====================================================
   LOADING SKELETONS — shimmer placeholder for apartment grids
   Replaced by JS once data renders.
   ===================================================== */
.apt-skeleton {
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: 1.5rem;
  width: 100%;
}
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
html.dark .apt-skeleton {
  background: linear-gradient(110deg, #1f2022 8%, #2a2b2d 18%, #1f2022 33%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: reduce) {
  .apt-skeleton { animation: none; background: #ececec; }
  html.dark .apt-skeleton { background: #1f2022; }
}

/* =====================================================
   HERO SLIDESHOW (homepage)
   Cross-fading background images, dot indicators
   ===================================================== */
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slide.hero-slide-active { opacity: 1; }

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.9);
}
.hero-dot.hero-dot-active {
  background: #f9bd22;
  border-color: #f9bd22;
  width: 28px;
}
.hero-dot:focus-visible {
  outline: 2px solid #f9bd22;
  outline-offset: 2px;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-dot { transition: none; }
}

/* =====================================================
   LIGHTBOX COUNTER
   ===================================================== */
.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1001;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* =====================================================
   HOVER STATES — static UI, no motion (Phase 23)
   Only colour can change on hover. No transforms, no
   underline sweeps, no scale, no lift, no fade-reveal.
   Everything visible at rest.
   ===================================================== */
html { scroll-behavior: smooth; }

/* .link-animated is now a no-op (kept so HTML class doesn't break) */
.link-animated { display: inline-block; }

/* Nav link hover: colour only */
.nav-link { transition: color 0.25s ease; }
.nav-link:hover { color: #795900 !important; }
html.dark .nav-link:hover { color: #f9bd22 !important; }

/* Gallery thumbs: keep zoom cursor for affordance, no transform */
.gallery-thumb { cursor: zoom-in; }

/* Buttons: colour/background transitions only, no scale */
button, .btn-press {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Soft fade-in for sections on initial load */
@media (prefers-reduced-motion: no-preference) {
  main > section { animation: fadeInUp 0.6s ease both; }
  main > section:nth-child(2) { animation-delay: 0.05s; }
  main > section:nth-child(3) { animation-delay: 0.1s; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   CONTRAST TWEAKS (light + dark)
   ===================================================== */
/* Improve nav link contrast in light mode (was text-zinc-600 → bump) */
.nav-link { color: #444748; }   /* on-surface-variant baseline */

/* Footer subtle text — keep light grey on dark, but ensure links pop */
footer a:hover { color: #f9bd22; }

/* =====================================================
   PURE BLACK / WHITE TEXT (Phase 22)
   Owner wants body text fully black in light mode, fully white in
   dark mode. Brand colours (yellow / accent / status) are NOT
   touched here — they keep their hue.
   ===================================================== */
html.light .text-on-surface-variant,
html.light .text-zinc-400,
html.light .text-zinc-500,
html.light .text-zinc-600,
html.light .text-zinc-700,
html.light .text-zinc-800,
html.light .text-zinc-900 {
  color: #181919 !important;
}

html.dark .text-on-surface-variant,
html.dark .text-zinc-100,
html.dark .text-zinc-200,
html.dark .text-zinc-300,
html.dark .text-zinc-400,
html.dark .text-zinc-500,
html.dark .text-zinc-600,
html.dark .text-zinc-700,
html.dark .text-zinc-800,
html.dark .text-zinc-900,
html.dark .text-brand-ink {
  color: #f4f4f5 !important;
}

/* Re-assert: dark text on light/yellow backgrounds (this rule sits after the
   broad override so it wins on specificity ties). */
html.dark .bg-brand-yellow.text-brand-ink,
html.dark .bg-brand-yellow .text-brand-ink,
html.dark .bg-brand-yellow-soft.text-brand-ink,
html.dark .bg-brand-yellow-soft .text-brand-ink,
html.dark .bg-white.text-brand-ink,
html.dark .bg-white .text-brand-ink,
html.dark .bg-brand-bg.text-brand-ink,
html.dark .bg-brand-bg .text-brand-ink {
  color: #181919 !important;
}

/* =====================================================
   LIGHT-MODE FOOTER — light background, black text.
   No wildcard `*` rule (the old one broke SVG icon fills
   and brand-yellow logo elements). Each element class is
   targeted explicitly.
   ===================================================== */
html.light footer {
  background-color: #fdf8f8 !important;
  color: #181919 !important;
  border-top: 1px solid #e5e2e1;
}
/* Flip dark-mode Tailwind text classes to dark */
html.light footer .text-white,
html.light footer .text-zinc-100,
html.light footer .text-zinc-200,
html.light footer .text-zinc-300,
html.light footer .text-zinc-400,
html.light footer .text-zinc-500,
html.light footer .text-on-surface-variant { color: #181919 !important; }

/* Brand-yellow elements stay yellow */
html.light footer .text-brand-yellow      { color: #f9bd22 !important; }
html.light footer .text-brand-yellow-deep { color: #795900 !important; }

/* Social icon pills — dark pill, WHITE icon visible at rest */
html.light footer [data-social] {
  background-color: #181919 !important;
  border-color: #181919 !important;
}
html.light footer [data-social] svg,
html.light footer [data-social] svg path {
  color: #ffffff !important;
  fill: #ffffff !important;
}
html.light footer [data-social]:hover {
  background-color: #f9bd22 !important;
  border-color: #f9bd22 !important;
}
html.light footer [data-social]:hover svg,
html.light footer [data-social]:hover svg path {
  color: #181919 !important;
  fill: #181919 !important;
}

/* WhatsApp pill stays green + white */
html.light footer a[href*="wa.me"] {
  background-color: #25D366 !important;
  color: #ffffff !important;
}
html.light footer a[href*="wa.me"] svg,
html.light footer a[href*="wa.me"] svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Divider line between main grid + copyright row */
html.light footer .border-white\/10 { border-color: #e5e2e1 !important; }

/* Dark mode: bump muted text up so it stays readable */
html.dark .text-on-surface-variant { color: #b4b4b8 !important; }
html.dark .text-zinc-500 { color: #a1a1aa !important; }
html.dark .text-zinc-400 { color: #71717a !important; }
