/* ================= FILTER SECTION ================= */
.filters-wrapper {
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
}

.filters-container {
  max-width: 1200px;
  width: 100%;
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background-color: #f8f7f5;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #5a4b3a;
  cursor: pointer;
}

.filter-btn.active {
  background-color: #5a4b3a;
  color: #ffffff;
}

/* ================= PET LISTINGS ================= */
.pets-section-wrapper {
  padding: 2rem 1rem;
  background: #f9f7f3;
  min-height: 80vh;
}

.pets-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* MOBILE + TABLET = 2 CARDS */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* ================= PET CARD ================= */
.pet-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.pet-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #f2f2f2;
}

.pet-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.pet-card:hover .pet-card-image img {
  transform: scale(1.05);
}

/* DAYS LEFT (CARD) */
.days-left {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* CONTENT */
.pet-card-content {
  padding: 1rem;
  text-align: center;
}

/* Price and Heart Row */
.price-heart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 34px;
}

/* Price Display */
.pet-price {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pet-price:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.pet-price i {
  margin-right: 6px;
  font-size: 0.9rem;
}

/* Heart Icon in Content */
.love-icon {
  cursor: pointer;
  background: rgba(107, 98, 98, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin-left: 8px;
}

.love-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.love-icon .fa-heart {
  color: #ddd;
  font-size: 16px;
  transition: all 0.3s ease;
}

.love-icon .fa-heart.liked {
  color: #ff5a1f;
  text-shadow: 0 0 10px rgba(255, 90, 31, 0.3);
}

.pet-name {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.pet-name span {
  font-size: 12px;
  color: #999;
}

.pet-location {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pet-location i {
  color: #f87015;
  font-size: 0.7rem;
}

.view-more-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #ff5a1f;
  border: 1px solid #ff5a1f;
  border-radius: 20px;
  text-decoration: none;
  background: #ffffff;
  cursor: pointer;
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  .pets-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ================= PET DETAILS MODAL ================= */
.pet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pet-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 20px;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.pet-modal-close {
  position: sticky;
  top: 10px;
  right: 10px;
  font-size: 26px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #333;
  margin-left: auto;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.pet-modal-close:hover {
  background: #f8f8f8;
  transform: scale(1.1);
}

/* ================= PET MODAL CAROUSEL ================= */
.pet-modal-carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.pet-modal-slider {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.pet-modal-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f2f2f2;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #5a4b3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: white;
  transform: scale(1.1);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

/* DAYS LEFT (MODAL) */
.pet-modal-days {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* MODAL CONTENT */
.pet-modal-content {
  padding: 18px;
  flex: 1;
  overflow-y: auto;
}

.pet-modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}

.pet-modal-info div:last-child {
  grid-column: 1 / -1;
}

.pet-modal-seller {
  background: #f9f9f9;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
}

/* Seller Action Buttons */
.seller-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.seller-actions a {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

.call-btn {
  background: #27ae60;
  color: #fff;
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

button.view-more-btn {
  cursor: pointer !important;
}

/* Mobile-specific modal adjustments */
@media (max-width: 768px) {
  .pet-modal-overlay {
    padding: 0;
    align-items: flex-start;
  }
  
  .pet-modal {
    max-height: 100vh;
    border-radius: 0;
    min-height: 100vh;
  }
  
  .pet-modal-carousel {
    height: 300px;
  }
}