/* =====================
   Card Component Styles
   ===================== */

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.card-text {
  color: #5c5c5c;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.card-footer {
  padding: 0.75rem 1.25rem;
  background: #fafbfc;
  border-top: 1px solid #f0f0f0;
  font-size: 0.96rem;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #1a365d;
  color: #fff;
  padding: 0.35em 0.8em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.favorite-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  z-index: 3;
}
.favorite-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.13);
  transform: scale(1.08);
  color: #b91c1c;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.95rem;
  color: #ffc107;
}
.rating i {
  color: #ffc107;
  font-size: 1.02em;
}
.rating .text-muted {
  color: #888 !important;
  font-size: 0.9em;
}

@media (max-width: 767.98px) {
  .card-img-top {
    height: 150px;
  }
  .card-body {
    padding: 1rem 1rem 0.75rem 1rem;
  }
  .card-footer {
    padding: 0.6rem 1rem;
  }
}
/* =====================
   End Card Styles
   ===================== */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.card-img-container {
    height: var(--card-height, 200px);
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Service Card Specific */
.service-card {
    --card-height: 220px;
}

.service-card .category-badge {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-card .provider-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.service-card .provider-avatar-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.service-card .view-details-btn {
    transition: all 0.2s ease;
}

.service-card .view-details-btn:hover {
    transform: translateX(3px);
}

.service-card .hover-text-primary:hover {
    color: var(--bs-primary) !important;
}

.service-card .badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.service-card .text-muted {
    color: #6c757d !important;
}

.service-card .border-top {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Equipment Card Specific */
.equipment-card .condition-new {
    background-color: #198754;
    color: white;
}

.equipment-card .condition-good {
    background-color: #0dcaf0;
    color: #000;
}

.equipment-card .condition-fair {
    background-color: #ffc107;
    color: #000;
}

/* Favorite Button */
.favorite-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.favorite-btn:hover i {
    transform: scale(1.2);
}

/* Rating Component */
.rating {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.rating i {
    font-size: 0.9rem;
    margin-right: 0.1rem;
    color: #ffc107;
}

.rating .text-muted {
    color: #6c757d !important;
}
