/* Serviced Office Filter Dropdown Styles */
.serviced-office__filter-content {
  display: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  max-height: 300px;
  overflow-y: auto;
}

.serviced-office__filter-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.serviced-office__filter-title img[alt='down'] {
  transition: transform 0.3s ease;
}

.serviced-office__filter-content a.selected {
  background-color: #9e1f63 !important;
  color: white !important;
}

.serviced-office__filter-content a:hover {
  background-color: #f3f4f6;
}

.serviced-office__filter-content a {
  transition: background-color 0.2s ease;
}

/* Custom scrollbar for dropdown */
.serviced-office__filter-content::-webkit-scrollbar {
  width: 6px;
}

.serviced-office__filter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.serviced-office__filter-content::-webkit-scrollbar-thumb {
  background: #9e1f63;
  border-radius: 3px;
}

.serviced-office__filter-content::-webkit-scrollbar-thumb:hover {
  background: #7a1a4f;
}

/* Loading States */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #9e1f63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner-container p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Skeleton Loading Styles */
.skeleton-loading {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.skeleton-card {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 20px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: 80%;
}

.skeleton-text {
  height: 16px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 75%;
}

.skeleton-price {
  height: 24px;
  background: #e5e7eb;
  border-radius: 4px;
  width: 40%;
  margin-top: 1rem;
}

/* Loading overlay */
.loading-overlay {
  position: relative;
  min-height: 400px;
}

.loading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #9e1f63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
  font-size: 0.875rem;
}

/* Success States */
.success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
  font-size: 0.875rem;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.no-results h3 {
  color: #374151;
  margin-bottom: 0.5rem;
}

.no-results p {
  margin: 0;
  font-size: 0.875rem;
}

/* Filter Disabled State */
.serviced-office__filter.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.serviced-office__filter.disabled .serviced-office__filter-title {
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .serviced-office__filter-container {
    flex-direction: column;
    gap: 1rem;
  }

  .serviced-office__filter {
    width: 100%;
  }

  .serviced-office__filter--sort {
    margin-left: 0 !important;
  }

  .loading-spinner-container {
    padding: 2rem 1rem;
  }

  .loading-spinner {
    width: 32px;
    height: 32px;
  }

  .skeleton-image {
    height: 150px;
  }

  .skeleton-card {
    padding: 0.75rem;
  }
}
