/* Color choices shared by the home finder and the adjacent catalogue. */
:is(#space-finder, #espacios.catalog, #spaces.en-spaces) {
  --sand: #f5efe8;
  --ivory: #fffcf8;
}

#space-finder { background: var(--sand); }
#space-finder .finder-app,
#espacios.catalog,
#spaces.en-spaces,
#espacios .catalog-card { background: var(--ivory); }

#space-finder .finder-option:hover { background: var(--sand); }
#space-finder .finder-option:has(input:checked) {
  border: 2px solid var(--accent);
  padding: 15px;
  background: #fff6ed;
}
#space-finder .finder-option input { accent-color: var(--accent); }
#space-finder .finder-actions .button:not(:disabled) {
  background: var(--accent);
  color: var(--ink);
}

#espacios .catalog-tab { background: var(--ivory); }
#espacios .catalog-tab:hover { background: var(--sand); }
#espacios .catalog-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--ink);
}
#espacios .catalog-tab[aria-selected="true"] .catalog-tab-number { color: inherit; }
#espacios .catalog-tab:focus-visible { outline-color: var(--ink); }

@media (forced-colors: active) {
  #espacios .catalog-tab:focus-visible { outline-color: Highlight; }
}

/* WhatsApp actions on the home contact form and its floating shortcut. */
:is(#contacto .faq-whatsapp,
    #contacto #visit-form button[type="submit"],
    #contact #english-enquiry :is(button[type="submit"], a.button[href^="https://wa.me/"]),
    body > a.whatsapp) {
  --wa-green: #315c4b;
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #fffcf8;
}
:is(#contacto .faq-whatsapp,
    #contacto #visit-form button[type="submit"],
    #contact #english-enquiry :is(button[type="submit"], a.button[href^="https://wa.me/"]),
    body > a.whatsapp):is(:hover, :focus-visible) {
  --wa-green: #264a3d;
}
