.clients-listing {
  margin: 0;
  padding: 20px 0;
}

.clients-search-wrapper {
  margin-bottom: 30px;
  max-width: 600px;
}

.clients-search-input {
  width: 100%;
  max-width: -webkit-fill-available;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

.clients-search-input:focus {
  border-color: #333;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.client-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  width: -webkit-fill-available;
  height: auto;
  margin-bottom: 1em;
}

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

.client-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.client-logo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
  display: block;
}

.client-logo.hidden {
  display: none !important;
}

.client-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 20px;
  flex-shrink: 0;
}

.client-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.client-locations {
  margin: 12px 0;
  padding-top: 0;
}

.location-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}

.location-item:last-child {
  border-bottom: none;
}

.location-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.location-info {
  flex: 1;
  min-width: 0;
}

.location-link {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.location-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.location-link:hover {
  text-decoration: underline;
  color: #000;
}

.location-address {
  margin-bottom: 4px;
  color: #333;
}

.location-city {
  color: #777;
  font-size: 13px;
}

.location-phone {
  flex-shrink: 0;
  font-size: 14px;
}

.phone-link {
  color: #0066cc;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.phone-link:hover {
  text-decoration: underline;
}

.clients-container {
  display: block;
  column-count: 3;
}

.clients-container.hidden {
  display: none;
}

.clients-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
  display: none;
}

.clients-no-results.visible {
  display: block;
}

.client-logo-placeholder.hidden {
  display: none;
}

.clients-error-message {
  color: #999;
  text-align: center;
}

.client-socials {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.client-socials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.client-social-link:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.client-social-icon {
  width: 18px;
  height: 18px;
  max-width: 32px;
  max-height: 32px;
  fill: currentColor;
}

.client-social-link.facebook:hover {
  background: #1877f2;
  color: #fff;
}

.client-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #fff;
}

.client-social-link.youtube:hover {
  background: #ff0000;
  color: #fff;
}

.client-social-link.tiktok:hover {
  background: #000;
  color: #fff;
}

.client-social-link.whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.client-ads-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  position: relative;
}

.client-ads-container.hidden {
  display: none;
}

.client-ads-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-ads-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.5em;
}

.client-ads-scroll::-webkit-scrollbar {
  height: 4px;
}

.client-ads-scroll::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.client-ads-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
}

.client-ads-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.5);
}

.client-ads-inner {
  display: flex;
  gap: 0.75em;
  padding: 0 0.5em;
  min-width: min-content;
}

.client-ad-item {
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.client-ad-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.client-ad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-ad-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.client-ads-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  z-index: 3;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.client-ads-container:hover .client-ads-scroll-btn {
  opacity: 1;
  pointer-events: all;
}

.client-ads-scroll-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.client-ads-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.client-ads-scroll-left {
  left: 0.5em;
}

.client-ads-scroll-right {
  right: 0.5em;
}

@media (max-width: 768px) {
  .clients-grid {
    column-count: 1;
  }
  
  .client-ad-item {
  }
  
  .client-ads-scroll-btn {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    pointer-events: all;
  }
  
  .client-ads-scroll-left {
    left: 0.25em;
  }
  
  .client-ads-scroll-right {
    right: 0.25em;
  }
}

