/* File: static/css/services/service_search.css */

/* ==================================================
   SERVICE SEARCH PAGE STYLES
   ================================================== */

/* ==================================================
   SEARCH HEADER
   ================================================== */
.search-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--linen-white) 0%, #faf9f7 100%);
}

.search-header {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve)); 
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.search-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.05"/><circle cx="90" cy="80" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.search-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.search-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-title i {
  margin-right: 1rem;
  opacity: 0.9;
}

.search-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================================================
   SEARCH FILTERS SECTION
   ================================================== */
.search-filters-section {
  position: sticky;
  top: var(--header-height, 80px);
  transition: all 0.3s ease;
  z-index: 100;
}

.search-form {
  padding: 2rem 0;
}

/* Main Search Bar */
.search-main-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--soft-mauve);
  z-index: 10;
  opacity: 0.7;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid rgba(161, 141, 163, 0.2);
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  background: white;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--rose-quartz);
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.25), var(--shadow-md);
  outline: none;
}

.search-input::placeholder {
  color: rgba(161, 141, 163, 0.7);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--soft-mauve);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  cursor: pointer;
}

.clear-search-btn:hover {
  background: rgba(161, 141, 163, 0.1);
  color: var(--charcoal-plum);
}

.filters-toggle {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.filter-count {
  background: var(--rose-quartz);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  display: none;
}

.search-submit-btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  min-width: 140px;
}

.search-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Filter Groups */
.search-filters {
  background: rgba(250, 244, 240, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 1rem;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.filters-row:last-of-type {
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.filter-label i {
  opacity: 0.7;
  margin-right: 0.5rem;
}

.filter-group .form-control,
.filter-group .form-select {
  border-radius: var(--radius-lg);
  border: 2px solid rgba(161, 141, 163, 0.15);
  background: white;
  transition: all var(--transition-fast);
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
  border-color: var(--rose-quartz);
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.2);
}

/* Price Range Inputs */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-range-inputs .form-control {
  flex: 1;
}

.price-separator {
  color: var(--soft-mauve);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
}

.quick-filters .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.quick-filters .form-check-input {
  margin-right: 0.75rem;
  width: 1.2rem;
  height: 1.2rem;
}

.quick-filters .form-check-input:checked {
  background-color: var(--rose-quartz);
  border-color: var(--rose-quartz);
}

.quick-filters .form-check-label {
  font-weight: 500;
  color: var(--charcoal-plum);
  cursor: pointer;
}

/* Filter Actions */
.filters-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.clear-filters-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition-fast);
}

.apply-filters-btn {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition-fast);
}

/* ==================================================
   SEARCH RESULTS
   ================================================== */
.search-results-section {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.results-info {
  flex: 1;
  min-width: 300px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 0.5rem;
}

.results-title strong {
  color: var(--rose-quartz);
}

.results-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  color: var(--soft-mauve);
  font-weight: 500;
  font-size: 0.95rem;
}

.stat-item i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

/* Results Controls */
.results-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-label {
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.sort-select {
  min-width: 200px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(161, 141, 163, 0.2);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.view-controls {
  display: flex;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(161, 141, 163, 0.2);
  overflow: hidden;
}

.view-toggle {
  padding: 0.75rem 1rem;
  border: none;
  background: white;
  color: var(--soft-mauve);
  transition: var(--transition-fast);
  border-radius: 0;
}

.view-toggle.active {
  background: var(--soft-mauve);
  color: white;
}

.view-toggle:hover:not(.active) {
  background: rgba(161, 141, 163, 0.1);
}

/* ==================================================
   FAVORITE BUTTON INTEGRATIONS
   ================================================== */

/* Header Favorite Button */
.service-rating-and-favorite {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.header-favorite-action {
  flex-shrink: 0;
}

.header-favorite-btn {
  padding: 0.5rem;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 2px solid rgba(161, 141, 163, 0.2);
  background: white;
  color: var(--soft-mauve);
  position: relative;
  overflow: hidden;
}

.header-favorite-btn:not(.favorited):hover {
  border-color: var(--rose-quartz);
  color: var(--rose-quartz);
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.header-favorite-btn.favorited {
  background: var(--rose-quartz);
  border-color: var(--rose-quartz);
  color: white;
  animation: favoriteHeartbeat 0.6s ease-out;
}

.header-favorite-btn.favorited:hover {
  background: var(--rose-quartz-dark);
  border-color: var(--rose-quartz-dark);
  transform: scale(1.05);
}

@keyframes favoriteHeartbeat {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Footer Favorite Button */
.footer-favorite-action {
  flex-shrink: 0;
}

.footer-favorite-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 100px;
  border: 2px solid rgba(161, 141, 163, 0.2);
  background: white;
  color: var(--soft-mauve);
}

.footer-favorite-btn:not(.favorited):hover {
  border-color: var(--rose-quartz);
  color: var(--rose-quartz);
  background: rgba(230, 183, 193, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-favorite-btn.favorited {
  background: var(--rose-quartz);
  border-color: var(--rose-quartz);
  color: white;
}

.footer-favorite-btn.favorited:hover {
  background: var(--rose-quartz-dark);
  border-color: var(--rose-quartz-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* General Favorite Button States */
.favorite-btn {
  transition: all var(--transition-fast);
  position: relative;
}

.favorite-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.favorite-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ==================================================
   SERVICE CARDS
   ================================================== */
.results-container {
  margin-top: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  border: 1px solid rgba(161, 141, 163, 0.1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-quartz), var(--soft-mauve));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--rose-quartz);
}

.services-grid.list-view .service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.services-grid.list-view .service-card:hover {
  transform: translateY(-4px);
}

.services-grid.list-view .service-card::before {
  height: 100%;
  width: 3px;
  transform: scaleY(0);
}

.services-grid.list-view .service-card:hover::before {
  transform: scaleY(1);
}

/* Service Card Header */
.service-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.services-grid.list-view .service-card-header {
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.stylist-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.stylist-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 2px solid var(--rose-quartz);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.stylist-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid var(--rose-quartz);
  box-shadow: var(--shadow-sm);
}

.stylist-details {
  flex: 1;
  min-width: 0;
}

.stylist-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stylist-name a {
  color: var(--charcoal-plum);
  text-decoration: none;
  transition: var(--transition-fast);
}

.stylist-name a:hover {
  color: var(--soft-mauve);
}

.salon-name {
  color: var(--soft-mauve);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.25rem;
}

.verified-badge i {
  font-size: 0.75rem;
}

/* Service Rating */
.service-rating {
  text-align: right;
  flex-shrink: 0;
}

.services-grid.list-view .service-rating {
  text-align: left;
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 0.25rem;
  justify-content: flex-end;
}

.services-grid.list-view .rating-stars {
  justify-content: flex-start;
}

.rating-stars i {
  color: #ddd;
  font-size: 0.9rem;
}

.rating-stars i.filled {
  color: var(--champagne-gold);
}

.rating-score {
  font-weight: 600;
  color: var(--charcoal-plum);
  font-size: 0.95rem;
}

.rating-count {
  color: var(--soft-mauve);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.no-rating {
  color: var(--soft-mauve);
  font-size: 0.85rem;
  font-style: italic;
}

/* Service Card Body */
.service-card-body {
  padding: 0 1.5rem 1rem;
}

.services-grid.list-view .service-card-body {
  padding: 0;
  flex: 1;
}

.service-info {
  margin-bottom: 1rem;
}

.services-grid.list-view .service-info {
  margin-bottom: 0.75rem;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-name a {
  color: var(--charcoal-plum);
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-name a:hover {
  color: var(--rose-quartz);
}

.service-category {
  color: var(--soft-mauve);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-description {
  color: var(--charcoal-plum);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Service Details */
.service-details {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.services-grid.list-view .service-details {
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--charcoal-plum);
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-item i {
  color: var(--soft-mauve);
  width: 14px;
  text-align: center;
}

.price {
  font-weight: 700;
  color: var(--rose-quartz);
  font-size: 1.1rem;
}

/* Service Card Footer */
.service-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(250, 244, 240, 0.3);
  border-top: 1px solid rgba(161, 141, 163, 0.1);
}

.services-grid.list-view .service-card-footer {
  padding: 0;
  background: none;
  border: none;
}

.service-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.services-grid.list-view .service-actions {
  flex-direction: column;
  gap: 0.5rem;
}

.service-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 100px;
}

.services-grid.list-view .service-actions .btn {
  flex: none;
  min-width: 140px;
}

.service-actions .btn-outline-primary {
  border: 2px solid var(--soft-mauve);
  color: var(--soft-mauve);
  background: white;
}

.service-actions .btn-outline-primary:hover {
  background: var(--soft-mauve);
  color: white;
  transform: translateY(-2px);
}

.service-actions .btn-primary {
  background: var(--rose-quartz);
  color: white;
  border: 2px solid var(--rose-quartz);
}

.service-actions .btn-primary:hover {
  background: var(--rose-quartz-dark);
  border-color: var(--rose-quartz-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==================================================
   PAGINATION
   ================================================== */
.pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination {
  gap: 0.5rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  border: 2px solid rgba(161, 141, 163, 0.2);
  color: var(--soft-mauve);
  background: white;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
}

.pagination .page-link:hover {
  border-color: var(--rose-quartz);
  background: var(--rose-quartz);
  color: white;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: var(--soft-mauve);
  border-color: var(--soft-mauve);
  color: white;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==================================================
   LOAD MORE BUTTON
   ================================================== */
.load-more-container {
  margin: 3rem 0 2rem;
}

.load-more-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==================================================
   LOADING STATES
   ================================================== */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.loading-indicator .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.loading-text {
  color: var(--soft-mauve);
  font-weight: 500;
  margin: 0;
}

/* ==================================================
   EMPTY STATE
   ================================================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--soft-mauve);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.empty-actions .btn {
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

/* Search Suggestions */
.search-suggestions-empty h4 {
  color: var(--charcoal-plum);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.suggestion-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.suggestion-tag {
  padding: 0.5rem 1rem;
  background: rgba(230, 183, 193, 0.1);
  color: var(--soft-mauve);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid rgba(161, 141, 163, 0.2);
}

.suggestion-tag:hover {
  background: var(--rose-quartz);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==================================================
   FLOATING ACTIONS
   ================================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.floating-actions .dropdown-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  margin-bottom: 1rem;
  min-width: 200px;
}

.floating-actions .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--charcoal-plum);
  text-decoration: none;
  font-weight: 500;
}

.floating-actions .dropdown-item:hover {
  background: rgba(230, 183, 193, 0.1);
  color: var(--soft-mauve);
  transform: translateX(4px);
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .search-title {
    font-size: 2.5rem;
  }
  
  .search-subtitle {
    font-size: 1.1rem;
  }
  
  .search-main-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-submit-btn {
    width: 100%;
  }
  
  .filters-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .results-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  /* Mobile favorite button adjustments */
  .service-rating-and-favorite {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .header-favorite-btn {
    width: 36px;
    height: 36px;
  }
  
  .footer-favorite-btn {
    padding: 0.625rem 0.875rem;
    min-width: 90px;
  }
}

@media (max-width: 768px) {
  .search-header {
    padding: 3rem 0 2rem;
  }
  
  .search-title {
    font-size: 2rem;
  }
  
  .search-subtitle {
    font-size: 1rem;
  }
  
  .search-form {
    padding: 1.5rem 0;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  }
  
  .search-filters {
    padding: 1rem;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .price-range-inputs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .price-separator {
    display: none;
  }
  
  .filters-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filters-actions .btn {
    width: 100%;
  }
  
  .results-title {
    font-size: 1.75rem;
  }
  
  .results-stats {
    gap: 1rem;
  }
  
  .results-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .sort-controls {
    justify-content: space-between;
  }
  
  .sort-select {
    min-width: 160px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid.list-view .service-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .stylist-info {
    width: 100%;
  }
  
  .service-rating-and-favorite {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .service-rating {
    text-align: left;
  }
  
  .rating-stars {
    justify-content: flex-start;
  }
  
  .service-card-body {
    padding: 0 1.25rem 1rem;
  }
  
  .service-details {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .service-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .service-actions .btn {
    width: 100%;
  }
  
  .footer-favorite-btn {
    order: -1; /* Show favorite button first on mobile */
  }
  
  .empty-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .empty-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .suggestion-tags {
    gap: 0.5rem;
  }
  
  .floating-btn {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .search-header {
    padding: 2rem 0 1.5rem;
  }
  
  .search-title {
    font-size: 1.75rem;
  }
  
  .search-title i {
    margin-right: 0.75rem;
  }
  
  .search-subtitle {
    font-size: 0.95rem;
  }
  
  .search-input-wrapper {
    margin-bottom: 0.75rem;
  }
  
  .search-input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  }
  
  .search-icon {
    left: 0.75rem;
  }
  
  .clear-search-btn {
    right: 0.75rem;
  }
  
  .search-filters {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
  }
  
  .results-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  .results-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .service-card {
    border-radius: var(--radius-lg);
  }
  
  .service-card-header {
    padding: 1rem 1rem 0.5rem;
  }
  
  .stylist-avatar,
  .stylist-avatar-placeholder {
    width: 44px;
    height: 44px;
  }
  
  .stylist-avatar-placeholder {
    font-size: 1.1rem;
  }
  
  .stylist-name {
    font-size: 1rem;
  }
  
  .salon-name {
    font-size: 0.85rem;
  }
  
  .service-name {
    font-size: 1.1rem;
  }
  
  .service-card-body {
    padding: 0 1rem 0.75rem;
  }
  
  .service-card-footer {
    padding: 0.75rem 1rem 1rem;
  }
  
  .detail-item {
    font-size: 0.85rem;
  }
  
  .price {
    font-size: 1rem;
  }
  
  /* Small mobile favorite button adjustments */
  .header-favorite-btn {
    width: 32px;
    height: 32px;
  }
  
  .footer-favorite-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 80px;
  }
  
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .empty-state h3 {
    font-size: 1.5rem;
  }
  
  .empty-state p {
    font-size: 1rem;
  }
  
  .suggestion-tags {
    gap: 0.375rem;
  }
  
  .suggestion-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .load-more-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ==================================================
   ACCESSIBILITY & INTERACTION STATES
   ================================================== */

/* Focus indicators */
.search-input:focus {
  outline: none;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
  outline: none;
}

.service-card:focus-within {
  outline: 2px solid var(--rose-quartz);
  outline-offset: 4px;
}

.suggestion-tag:focus,
.header-favorite-btn:focus,
.footer-favorite-btn:focus {
  outline: 2px solid var(--rose-quartz);
  outline-offset: 2px;
}

.floating-btn:focus {
  outline: 2px solid var(--rose-quartz);
  outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid var(--charcoal-plum);
  }
  
  .service-card:hover {
    border-color: var(--rose-quartz);
    border-width: 3px;
  }
  
  .verified-badge {
    border: 1px solid var(--charcoal-plum);
  }
  
  .suggestion-tag {
    border: 2px solid var(--soft-mauve);
  }
  
  .header-favorite-btn,
  .footer-favorite-btn {
    border: 2px solid var(--charcoal-plum);
  }
  
  .header-favorite-btn.favorited,
  .footer-favorite-btn.favorited {
    border: 3px solid var(--rose-quartz-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .suggestion-tag,
  .floating-btn,
  .search-input,
  .btn,
  .header-favorite-btn,
  .footer-favorite-btn {
    transition: none;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .floating-btn:hover {
    transform: none;
  }
  
  .service-card,
  .skeleton-text,
  .skeleton-avatar {
    animation: none;
  }
  
  @keyframes favoriteHeartbeat {
    0%, 100% { transform: none; }
  }
  
  @keyframes spin {
    0%, 100% { transform: none; }
  }
}

/* ==================================================
   LOADING STATES
   ================================================== */
.search-loading {
  position: relative;
}

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

.search-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(230, 183, 193, 0.3);
  border-top-color: var(--rose-quartz);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

.service-card-skeleton {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.skeleton-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 1rem;
  margin-bottom: 0.5rem;
}

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

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

.skeleton-text.long {
  width: 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Favorite button loading state */
.favorite-btn.loading .favorite-text,
.header-favorite-btn.loading .favorite-icon,
.footer-favorite-btn.loading .favorite-text {
  visibility: hidden;
}

/* ==================================================
   PRINT STYLES
   ================================================== */
@media print {
  .search-header,
  .search-filters-section,
  .floating-actions,
  .pagination-wrapper,
  .load-more-container,
  .loading-indicator,
  .header-favorite-action,
  .footer-favorite-action {
    display: none !important;
  }
  
  .search-page {
    background: white;
  }
  
  .service-card {
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
  }
  
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-actions .btn {
    display: none;
  }
  
  .results-header {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */
.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.text-shimmer {
  background: linear-gradient(90deg, var(--rose-quartz), var(--soft-mauve), var(--rose-quartz));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s infinite;
}

/* Animation enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.service-card {
  animation: fadeInUp 0.5s ease-out;
}

.service-card:nth-child(even) {
  animation-delay: 0.1s;
}

.service-card:nth-child(3n) {
  animation-delay: 0.2s;
}

/* ==================================================
   DARK MODE SUPPORT (Optional)
   ================================================== */
@media (prefers-color-scheme: dark) {
  .search-filters-section {
    background: #1a1a1a;
    border-bottom-color: #333;
  }
  
  .service-card {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
  }
  
  .loading-indicator {
    background: #2a2a2a;
    color: #fff;
  }
  
  .search-results-section {
    background: #1a1a1a;
  }
  
  .skeleton-text,
  .skeleton-avatar {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
  }
  
  .header-favorite-btn:not(.favorited),
  .footer-favorite-btn:not(.favorited) {
    background: #2a2a2a;
    border-color: var(--rose-quartz);
    color: var(--rose-quartz);
  }
  
  .header-favorite-btn:not(.favorited):hover,
  .footer-favorite-btn:not(.favorited):hover {
    background: rgba(230, 183, 193, 0.2);
  }
} 