/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


:root {
  --primary: #B90F1A; /* Red */
  --secondary: #4CAF50; /* Green */
  --font-size-base: 1rem;
  --padding-base: 0.25rem 1rem;
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  height: 4rem;

  display: flex;          /* make it a flex container */
  align-items: center;     /* vertical center children */
}

#masthead > div {
  height: 100%;            /* make the inner wrapper match header height */
}

:root {
  --wp--preset--spacing--70: 1rem !important;
  --wp--preset--spacing--60: 1rem !important;
  --wp--preset--spacing--50: 1rem !important;
  --wp--preset--spacing--40: 1rem !important;
}

/* SEARCH RELATED */
.filter-container{
  padding: 0 1rem !important;
  height: 6rem;
  position: sticky;
  top: 4rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  background-color: #ffffff;
  box-sizing: border-box;
  margin: 0 auto;
  box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.2);
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-wrapper input {
  padding-left: 1rem;
  width: 100%;
  height: 2rem;
  border: 1px solid #ccc;
  border-radius: 99px;
  font-size: 1rem;
  box-sizing: border-box;
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #999;
}

.sort-wrapper{
  padding:0.25rem 0 !important; 
  align-self:flex-end !important; 
  align-items: center; 
  font-size:1rem; 
  display: flex; 
  gap: 0.5rem;
  margin-bottom: 0rem !important;
}

/* FAQ RELATED*/

.faq {
  margin: 1rem 0;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Limit width to 480px like a mobile even in wide screen */
body {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* COLOR VARIABLES */
:root {
  --primary: #b9041a;
  --secondary: #25d366;
}

/* BUTTON */
.cta-button, .cta-button-outline{
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-weight: thin;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.cta-button {
  background-color: var(--primary);
  color: #ffffff !important;
}

.cta-button-outline {
    background-color: #ffffff;
    color: var(--primary);
    border: 0.5px solid var(--primary);
}

.cta-button:active,
.cta-button-outline:active  
{
  background-color: var(--secondary) !important;
  color: white !important;
  transform: scale(0.95);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* CARD WRAPPERS */

/* Main card container should not grow beyond its container */
.no-underline {
  text-decoration: none !important;
  color: inherit;
}

.biz-card {
  border-radius: 0.5rem;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  height: auto !important;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.biz-card.highlight .cta-wa {
  transform: scaleX(1); /* full size */
  background-color: #25D366;
  color: #fff;
}

/* Inner content should shrink if needed */
.biz-card-inner {
  flex: 1;
  min-width: 0;
  padding: 0.5rem;
}

/* Image and text layout fixes */
.biz-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.biz-dp {
  width: 10%;
  border-radius: 50%;
  object-fit: cover;
}

.biz-title {
  font-size: 1rem;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  min-width: 0;
  font-stretch: semi-condensed;
}

.biz-address {
  font-size: 0.75rem;      /* or 0.5rem for address if needed */
  color: #555;             /* override to #111 for address if needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  min-width: 0;
}

/* Fixed width for whatsapp icons */

.cta-wa {
  min-width:10%;
  transform: scaleX(0); /* collapsed state */
  transform-origin: right center; /* like a door opening to the left */
  transition: transform 0.6s ease, background-color 0.3s ease, color 0.3s ease;
  display:inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box; 
  border-radius: 0 0.5rem 0.5rem 0;
}

.install-card{
  border-radius: 0.5rem;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  height: auto !important;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.stars{
  display:flex;
  gap:0.5rem;
  color:#f59e0b;
  font-size:1rem;
  letter-spacing:0.5em;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

/* headings STYLING */
h1{
    font-size: 1.5rem !important;
}

h2{
    font-size: 1.25rem !important;
}

h3{
    font-size: 1rem !important;
}

#results {
  padding: 0.5rem;
  background-image: url('../../assets/images/WhatsAppDoodle.webp');
  background-attachment: fixed;
  background-size: contain;
  background-position: center;
}

/* span p{
    font-size: 0.75rem !important;
} */