/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Import Bootstrap CSS */
@import "bootstrap/dist/css/bootstrap.css";

/* Custom styles for the business directory */
.business-card {
  transition: transform 0.2s ease-in-out;
}

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

.hero-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* Outline badge styling for clickable L2 category tags */
.badge-outline-primary {
  background-color: transparent !important;
  border: 1px solid #007bff !important;
  color: #007bff !important;
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  text-decoration: none;
}

.badge-outline-primary:hover {
  background-color: #007bff !important;
  color: white !important;
  text-decoration: none;
  cursor: pointer;
}

/* Banner Advertisement Styling */
.banner-ad {
  min-height: 90px;
}

.banner-ad-placeholder {
  color: #6c757d;
}

.banner-ad-placeholder i {
  opacity: 0.6;
}

/* Responsive banner sizing */
@media (width <= 768px) {
  .banner-ad {
    min-height: 60px;
  }
  
  .banner-ad-placeholder small {
    display: none;
  }
}

/* Sidebar Advertisement Styling */
.sidebar-ad {
  min-height: 250px;
}

/* Filter Checkbox Styling */
.filter-checkbox:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.filter-checkbox:disabled + .form-check-label {
  opacity: 0.6;
  cursor: not-allowed;
}

.filter-checkbox:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #007bff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Filter loading indicator */
.spinner {
  display: inline-block;
  vertical-align: middle;
}

#filter-loading {
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#filter-loading.show {
  opacity: 1;
}
