/* ---------------------------------------------
   
--------------------------------------------- */
body {
  background: #FFFAF5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
}

.firebase-emulator-warning {
  display: none !important;
}

.firebase-emulator-info {
  display: none !important;
}

.firebase-emulator-overlays {
  display: none !important;
}

#firebase-injected {
  display: none !important;
}


/* NAVBAR */
.navbar-brand {
  font-weight: 600;
}

.nav-link {
  color: #FFFAF5 !important;
}

/* ---------------------------------------------
   HEADER
--------------------------------------------- */
.page-header {
  margin-top: 80px;
  margin-bottom: 20px;
  text-align: center;
}

.page-header h1 {
  font-weight: 700;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: #38023B;
}

.page-header h1 .emoji {
  font-size: 1.6rem;
}

.page-subtitle {
  color: #A187E3;
  font-size: 1rem;
}

/* ---------------------------------------------
   FILTER PANEL
--------------------------------------------- */
.filter-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 8px 26px rgba(255, 219, 226, 0.6);
  border: 2px solid #A187E3;
}

.filter-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #38023B;
}

.filter-card-title .emoji {
  font-size: 1.2rem;
}

#applyFiltersBtn {
  border-radius: 0.5rem;
  font-weight: 600;
  background: #A187E3;
  border: none;
  padding: 8px 20px;
}

#applyFiltersBtn:hover {
  background: #8D75CC;
}

.filter-card .form-control,
.filter-card .form-select {
  border: 1.5px solid #FFDBE2;      
  border-radius: 0.5rem;
  background-color: #FFFAF5;
  color: #38023B;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ---------------------------------------------
   USER CARDS
--------------------------------------------- */
.user-card {
    display: block;
    width: 100%;
}
.user-main {
    padding-left: 10px;
}



/* Fix avatar size on browse cards */
.avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #A187E3;
  background: #FFF5F9;
}

.user-card {
  background: #fff;
  border-radius: 26px;
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 580px;
  min-height: 150px;
  border: 2px solid #A187E3;

  box-shadow: 0 10px 28px rgba(161, 135, 227, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(161, 135, 227, 0.28);
}



.user-card::before {
  content: "🐾 ";
  position: absolute;
  font-size: 2.6rem;
  opacity: 0.12;
  right: -6px;
  top: -6px;
  transform: rotate(-18deg);
}

.about-preview,
.user-main,
.user-meta,
.user-tags {
  overflow-wrap: break-word;
  word-break: break-word;
}

.view-profile-btn {
  background-color: #A187E3; 
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
   border: none; 
}

.view-profile-btn:focus,
.view-profile-btn:active,.view-profile-btn:active {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.4); 
   border: none; 
}
.view-profile-btn:hover,.view-profile-btn:hover,#applyFiltersBtn:hover {
  background-color: #ffc685;   
  color: #FFFAF5;
  transform: translateY(-2px); 
   border: none; 
}





.user-avatar-wrapper {
  position: relative; 
  flex-shrink: 0;
}

.user-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: #FFF5F9;
}

/* Avatar outline by role */
.user-card.owner .avatar-lg {
  border-color: #A187E3; 
}

.user-card.sitter .avatar-lg {
  border-color: #FFC685; 
}



/* ROLE PILL (OWNER / SITTER) */
.role-pill {
  position: absolute;
  bottom: -6px;         
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #38023B;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}




.role-owner {
  background: linear-gradient(135deg, #A187E3, #C9B2F7);
  color: #38023B;
  
}

.role-sitter {
  background: linear-gradient(135deg, #FFC685, #FFDDB1);
  color: #38023B;
}


/* TEXT CONTENT */
.user-main {
  flex: 1;
}

.user-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #38023B;
}

.user-meta {
  font-size: 0.85rem;
  color: #A187E3;
  margin-bottom: 0.35rem;
}

/* LIMIT ABOUT TEXT HEIGHT */
.about-preview {
  max-height: 60px;
  overflow-y: auto;
}


/* TAGS */
.user-tags {
  font-size: 0.80rem;
}

.tag-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  margin-right: 4px;
  margin-bottom: 4px;
  background: #FFDBE2;
  color: #38023B;
  font-weight: 500;
}

.tag-pet {
  background: #E5D4FF;
  color: #38023B;
}

/* RIGHT SIDE ACTIONS */
.user-actions {
  text-align: right;
  min-width: 120px;
}

.user-price {
  font-weight: 700;
  color: #A187E3;
  font-size: 0.95rem;
}

.user-availability {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 4px;
}

.btn-view-profile {
  margin-top: 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 5px 12px;
  background: #A187E3;
  color: white;
  border: none;
}

.btn-view-profile:hover {
  background: #8D75CC;
}

/* FIX HORIZONTAL OVERFLOW — GLOBAL */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Fix rows stretching too wide */
.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.user-card-wrapper {
  max-width: 100% !important;
}


.user-card,
.col-md-4 {
  overflow: visible;
}




#userList {
  padding-bottom: 80px;
}





/* MOBILE */
@media (max-width: 576px) {
  .user-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .user-actions {
    text-align: left;
    margin-top: 10px;
  }

   .user-card::before {
    right: 0;
    top: 0;
    font-size: 2.2rem;
  }

  
}

