/**
 * PCTechComVn — Service Areas & Partners CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 10)
 *
 * Areas grid, Local SEO chips, and Brands Marquee.
 */

/* ═══════════════════════════════════════════════
   1. SERVICE AREAS GRID
   ═══════════════════════════════════════════════ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.area-card:hover {
  border-color: var(--orange);
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow);
}

.area-card .pin {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.area-card h4 {
  font-weight: 700;
  color: var(--blue-dark);
}

.area-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   2. LOCAL SEO CHIPS (Quận/Huyện)
   ═══════════════════════════════════════════════ */
.local-seo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.local-seo-link {
  padding: 10px 18px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: all 0.25s ease;
  display: inline-block;
}

.local-seo-link:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange-dark);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   3. BRANDS MARQUEE (Đối Tác)
   ═══════════════════════════════════════════════ */
.brands-section {
  padding: 48px 0;
  background: var(--gray-50);
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

.brands-marquee {
  overflow: hidden;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: brandsTicker 40s linear infinite;
}

.brands-track:hover {
  animation-play-state: paused;
}

@keyframes brandsTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  min-width: 140px;
  height: 72px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.brand-logo-item:hover {
  transform: scale(1.05);
}

.brand-logo-item img {
  max-height: 36px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.brand-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   4. DISTRICT INFO TABS
   ═══════════════════════════════════════════════ */
.district-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.district-chip {
  padding: 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.district-chip:hover,
.district-chip.active {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange-dark);
}

.district-info {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: none;
}

.district-info.visible {
  display: block;
}

.district-info strong {
  color: var(--blue-dark);
}

/* ═══════════════════════════════════════════════
   5. MAP WRAPPER
   ═══════════════════════════════════════════════ */
.district-map-wrap {
  margin-top: 24px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  margin-top: 32px;
  height: 400px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}
