/* ============================================================
   FIXEO V3 ULTRA STABLE — Patch CSS
   Fix 1: Hero centered · Fix 3: Notifications small card
   Fix 4: More bubbles · Fix 5: Search bar extended
   Fix 6: Services layout · Fix 7: Artisans vedettes
   Fix 8: Quality spacing
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   FIX 1 — HERO PERFECT CENTERING
   ══════════════════════════════════════════════════════════ */
.hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.hero-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 16px !important;
}
.hero-content h1 {
  text-align: center !important;
  width: 100% !important;
}
.hero-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.search-bar-wrap {
  width: 100% !important;
  max-width: 780px !important;
  margin: 0 auto 28px !important;
  text-align: center !important;
}
.hero-badge {
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-stats {
  justify-content: center !important;
  width: 100% !important;
}
.hero-actions {
  justify-content: center !important;
  width: 100% !important;
}

/* ══════════════════════════════════════════════════════════
   FIX 3 — SMALL CLEAN NOTIFICATION CARDS (TOP-RIGHT)
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed !important;
  top: 76px !important;
  right: 18px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-width: 320px !important;
  pointer-events: none !important;
  width: 320px !important;
}
.toast {
  background: rgba(18, 18, 36, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4) !important;
  pointer-events: all !important;
  animation: toastSlideIn 0.35s cubic-bezier(.21,1.02,.73,1) forwards !important;
  max-width: 320px !important;
  width: 100% !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}
.toast.success { border-left: 3px solid #20c997 !important; }
.toast.error   { border-left: 3px solid #ff4757 !important; }
.toast.warning { border-left: 3px solid #ffa502 !important; }
.toast.info    { border-left: 3px solid #3742fa !important; }
.toast-icon {
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}
.toast-content {
  flex: 1 !important;
  min-width: 0 !important;
}
.toast-title {
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  margin-bottom: 2px !important;
  color: #fff !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.3 !important;
}
.toast-msg {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}
.toast-close {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.4) !important;
  cursor: pointer !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-top: -1px !important;
}
.toast-close:hover { color: #fff !important; }
.toast-progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 2px !important;
  border-radius: 0 0 14px 14px !important;
  margin: 0 !important;
  animation: toastProgress 4s linear forwards !important;
}
.toast.success .toast-progress { background: #20c997 !important; }
.toast.error   .toast-progress { background: #ff4757 !important; }
.toast.warning .toast-progress { background: #ffa502 !important; }
.toast.info    .toast-progress { background: #3742fa !important; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0)   scale(1);    }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%;   }
}

/* Notification panel — compact, no overflow */
.notif-panel {
  position: fixed !important;
  top: calc(var(--navbar-height, 64px) + 8px) !important;
  right: 16px !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: min(500px, calc(100vh - 100px)) !important;
  background: rgba(14,14,32,0.98) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 16px !important;
  z-index: 9990 !important;
  overflow: hidden !important;
  display: none !important;
  flex-direction: column !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55) !important;
}
.notif-panel.open { display: flex !important; }
.notif-panel-body {
  overflow-y: auto !important;
  flex: 1 !important;
  min-height: 0 !important;
  max-height: 360px !important;
}

/* ══════════════════════════════════════════════════════════
   FIX 4 — MORE FLOATING BUBBLES (subtle, modern)
   ══════════════════════════════════════════════════════════ */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: bubbleFloat linear infinite;
  opacity: 0;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0)   scale(1);   opacity: 0; }
  10%  { opacity: 0.35; }
  80%  { opacity: 0.2; }
  100% { transform: translateY(-120px) scale(1.15); opacity: 0; }
}

/* Larger decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(1px);
  animation: blobDrift ease-in-out infinite alternate;
}
@keyframes blobDrift {
  from { transform: translateY(0) rotate(0deg);   opacity: 0.12; }
  to   { transform: translateY(-18px) rotate(8deg); opacity: 0.22; }
}

/* ══════════════════════════════════════════════════════════
   FIX 5 — EXTENDED SEARCH BAR WITH PLACEHOLDER
   ══════════════════════════════════════════════════════════ */
.search-bar-wrap {
  max-width: 820px !important;
  margin: 0 auto 28px !important;
}
.search-bar-unified {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
  border-radius: 50px !important;
  padding: 5px 5px 5px 0 !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 6px 32px rgba(0,0,0,0.28) !important;
  transition: border-color .25s, box-shadow .25s !important;
  max-width: 820px !important;
  width: 100% !important;
  overflow: hidden !important;
}
.search-bar-unified:focus-within {
  border-color: rgba(225,48,108,0.55) !important;
  box-shadow: 0 0 0 3px rgba(225,48,108,0.13), 0 6px 32px rgba(0,0,0,0.28) !important;
}
/* Text input — appears first (left) */
.search-bar-unified input#hero-search-input {
  flex: 1 !important;
  order: 0 !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: .9rem !important;
  padding: 10px 14px !important;
  min-width: 0 !important;
}
.search-bar-unified input#hero-search-input::placeholder {
  color: rgba(255,255,255,0.52) !important;
  font-size: .88rem !important;
}
/* Service selector */
.search-bar-unified select#hero-service-select {
  order: 1 !important;
  background: transparent !important;
  border: none !important;
  border-left: 1px solid rgba(255,255,255,0.16) !important;
  color: #fff !important;
  font-size: .85rem !important;
  padding: 10px 28px 10px 12px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  max-width: 155px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8'%3E%3Cpath d='M1 1l4.5 5 4.5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}
/* City selector */
.search-bar-unified select#hero-city-select {
  order: 2 !important;
  background: transparent !important;
  border: none !important;
  border-left: 1px solid rgba(255,255,255,0.16) !important;
  color: #fff !important;
  font-size: .85rem !important;
  padding: 10px 28px 10px 12px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  max-width: 140px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8'%3E%3Cpath d='M1 1l4.5 5 4.5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}
/* Dividers — hide old ones */
.search-bar-unified .divider-v { display: none !important; }
/* Search button */
.search-bar-unified .btn-search {
  order: 3 !important;
  background: linear-gradient(135deg,#E1306C,#833AB4) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 46px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  font-size: .87rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 2px !important;
  transition: opacity .2s, transform .2s !important;
}
.search-bar-unified .btn-search:hover {
  opacity: .92 !important;
  transform: scale(1.02) !important;
}
.search-bar-unified select option {
  background: #1a1a2e !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════════
   FIX 6 — SERVICES SECTION SPACING + ARTISAN SERVICE CARDS
   ══════════════════════════════════════════════════════════ */
.services-filter-bar {
  margin-top: 12px !important;
  padding-top: 14px !important;
  margin-bottom: 0 !important;
}
.category-chips {
  margin-bottom: 4px !important;
  gap: 10px !important;
}
/* Service artisan sub-grid */
#service-artisans-section {
  margin-top: 40px;
}
.service-artisans-container {
  display: none;
  margin-top: 28px;
}
.service-artisans-container.active {
  display: block;
  animation: fadeInUp .35s ease;
}
.service-artisans-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.service-artisans-title span {
  font-size: 1.3rem;
}
.service-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.service-mini-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .22s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-mini-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,48,108,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(225,48,108,0.12);
}
.smc-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.smc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E1306C, #833AB4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  flex-shrink: 0;
}
.smc-name {
  font-weight: 700; font-size: .85rem;
  color: #fff;
}
.smc-city {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}
.smc-rating {
  font-size: .78rem;
  color: #FFD700;
}
.smc-price {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}
.smc-badge {
  font-size: .68rem;
  background: rgba(32,201,151,.15);
  color: #20c997;
  border: 1px solid rgba(32,201,151,.3);
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-flex;
  width: fit-content;
}

/* ══════════════════════════════════════════════════════════
   FIX 7 — ARTISANS VEDETTES UNDER MAP
   ══════════════════════════════════════════════════════════ */
#featured-artisans-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.featured-artisans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.featured-artisans-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-artisans-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.featured-badge-tag {
  background: rgba(225,48,108,.15);
  border: 1px solid rgba(225,48,108,.3);
  color: #E1306C;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.featured-grid {
  display: grid;
  /* Override by fixeo_v5_fixes.css → repeat(5,1fr) */
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.featured-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s ease;
}
.featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225,48,108,0.4);
  box-shadow: 0 12px 30px rgba(225,48,108,0.15);
}
.featured-card-cover {
  height: 72px;
  position: relative;
  overflow: hidden;
}
.featured-card-body {
  padding: 0 14px 14px;
}
.featured-avatar-wrap {
  margin-top: -22px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.featured-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
  background: linear-gradient(135deg, #E1306C, #833AB4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.featured-avail-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
}
.featured-avail-dot.available { background: #20c997; }
.featured-avail-dot.busy { background: #ffa502; }
.featured-name {
  font-weight: 700; font-size: .92rem; color: #fff;
  margin-bottom: 2px;
}
.featured-category {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.featured-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}
.featured-rating .stars { color: #FFD700; font-size: .78rem; }
.featured-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.featured-price {
  font-weight: 700; font-size: .85rem; color: #fff;
}
.featured-price span {
  font-size: .7rem; color: rgba(255,255,255,.45); font-weight: 400;
}
.btn-featured-contact {
  background: linear-gradient(135deg, #E1306C, #833AB4);
  color: #fff; border: none; border-radius: 8px;
  padding: 5px 12px; font-size: .74rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.btn-featured-contact:hover { opacity: .88; }

/* Map + featured spacing */
#map-wrapper {
  margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   FIX 8 — QUALITY CONTROL / GENERAL SPACING
   ══════════════════════════════════════════════════════════ */
/* Hero float z-index fix */
.hero-float { z-index: 3 !important; }

/* Section spacing */
#services { padding-top: 44px !important; padding-bottom: 36px !important; }
#artisans-section .container > .section-header { margin-bottom: 28px !important; }

/* Artisans section title */
#artisans-section .results-header {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .search-bar-unified {
    flex-wrap: wrap !important;
    border-radius: 18px !important;
    padding: 8px !important;
    gap: 6px !important;
  }
  .search-bar-unified select,
  .search-bar-unified input {
    max-width: 100% !important;
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 8px 12px !important;
  }
  .search-bar-unified input#hero-search-input {
    border-top: none !important;
  }
  .search-bar-unified .btn-search {
    width: 100% !important;
    margin: 2px 0 0 !important;
  }
  .featured-grid {
    /* v5_fixes.css handles responsive breakpoints */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  }
  .service-mini-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .toast-container {
    left: 10px !important;
    right: 10px !important;
    max-width: none !important;
    width: auto !important;
  }
  .toast { max-width: none !important; }
}
