/* index.css - Specific stylesheet for the Home Page */

/* --- Hero Section --- */
.hero-section {
  margin-top: 0px;
  margin-bottom: 60px;
  width: 100%;
}

.hero-slider-wrap {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slider-wrap {
    height: 300px;
  }
}

/* --- Modern Search Bar (Service Centers) --- */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modern-search-bar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid #eaeaea;
}

.search-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
}

.search-tabs .tab-btn {
  font-size: 16px;
  font-weight: 600;
  color: #888;
  background: none;
  border: none;
  padding-bottom: 8px;
  position: relative;
  transition: color 0.3s;
}

.search-tabs .tab-btn.active {
  color: var(--primary-color);
}

.search-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

.modern-form {
  display: none;
}

.modern-form.active {
  display: block;
  animation: fadeIn 0.3s;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 8px 12px 8px 24px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.search-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  font-size: 16px;
  outline: none;
  color: #333;
}

.modern-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

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

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group .select-wrapper select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  appearance: none;
  background: #f8f9fa;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-group .select-wrapper select:focus {
  border-color: var(--primary-color);
  background: #fff;
}

.hero-image-container {
  padding: 0;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  /* border-radius: var(--border-radius-m); */
}

.slide {
  min-width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
  display: none;
  opacity: 0;
}

.slide.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 35px;
}

.next-btn {
  right: 35px;
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: rgba(0, 0, 0, 0.8);
}

.placeholder-text {
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
}

.placeholder-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- Service Centers Grid --- */
.service-centers-section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.center-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-l);
  padding: 0;
  box-shadow: var(--card-shadow);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0; /* Light background for empty spaces */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.center-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Show the full image without cutting */
  transition: transform 0.3s ease;
}

.center-card:hover .center-thumb {
  transform: scale(1.05);
}

.center-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 20px 10px;
}

.icon-repair {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.center-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.card-body {
  padding: 0 20px 20px;
  flex: 1;
}

.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  align-items: flex-start;
}

.info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.status-open {
  color: #1a73e8;
  font-weight: 500;
}

.card-footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 0 20px 20px;
}

.action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.action-btn.outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.action-btn.outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.action-btn.website {
  background-color: transparent;
  color: #333;
  border: 1px solid #333;
}
.action-btn.website:hover {
  background-color: #333;
  color: #fff;
}

.action-btn.call {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
}
.action-btn.call:hover {
  background-color: #007bff;
  color: #fff;
}

.action-btn.whatsapp {
  background-color: transparent;
  color: #25d366;
  border: 1px solid #25d366;
}
.action-btn.whatsapp:hover {
  background-color: #25d366;
  color: #fff;
}

/* --- Pagination Wrapper --- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 60px 0;
  width: 100%;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .modern-search-bar {
    padding: 15px;
    margin-bottom: 25px;
  }

  .search-tabs {
    gap: 15px;
    margin-bottom: 15px;
  }

  .search-tabs .tab-btn {
    font-size: 14px;
  }

  .search-input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
    border-radius: 0;
  }

  .search-input-group svg {
    display: none; /* Hide icon inside input group on mobile if it looks cluttered */
  }

  .search-input-group input {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .search-input-group .modern-btn {
    width: 100%;
    margin-top: 0;
    border-radius: 12px;
    padding: 14px;
  }

  .advanced-filters {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .centers-grid {
    grid-template-columns: 1fr;
  }
}
