/*
Theme Name: Astra Child
Description: Дочірня тема для Astra / Дочерняя тема для Astra
Author: Your Name
Template: astra
Version: 1.0.1
Text Domain: astra-child
Domain Path: /languages
*/

/* Импорт стилей родительской темы */
@import url("../astra/style.css");

/* Ваши кастомные стили здесь */

/* Стили для списка городов и услуг */
.cities-services-list {
  margin: 20px 0;
}

.city-block {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #0073aa;
}

.city-title {
  margin: 0 0 15px 0;
  color: #0073aa;
  font-size: 1.5em;
  font-weight: 600;
}

.city-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.city-title a:hover {
  color: #005177;
  text-decoration: underline;
}

.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  margin: 8px 0;
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #00a32a;
  transition: all 0.3s ease;
}

.services-list li:hover {
  background: #f0f8f0;
  transform: translateX(5px);
}

.services-list li a {
  color: #00a32a;
  text-decoration: none;
  font-weight: 500;
}

.services-list li a:hover {
  color: #007317;
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
  .city-block {
    padding: 15px;
    margin-bottom: 20px;
  }

  .city-title {
    font-size: 1.3em;
  }

  .services-list li {
    padding: 6px 10px;
  }
}

/* Стили для кастомного универсального хедера */

/* Общие стили для интеграции с Astra */
.astra-child-custom-page .site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.astra-child-context {
  background: #f8f9fa;
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
}

.city-context {
  border-left: 4px solid #0073aa;
}

.service-context {
  border-left: 4px solid #00a32a;
}

/* Стили для индикатора города */
.current-city-indicator {
  margin-top: 10px;
}

.city-badge {
  background: #0073aa;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Стили для контекста услуги */
.service-context {
  margin-top: 10px;
}

.service-city-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-city-link {
  background: #0073aa;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.context-city-link:hover {
  background: #005177;
  color: white;
}

.context-separator {
  color: #666;
  font-weight: bold;
}

.context-service {
  color: #00a32a;
  font-weight: 600;
}

/* Навигация для Astra интеграции */
.astra-child-context .current-city-indicator,
.astra-child-context .service-context {
  margin-bottom: 10px;
}

.astra-child-context .city-services-nav,
.astra-child-context .service-quick-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.astra-child-context .services-label {
  font-weight: 600;
  color: #555;
}

.astra-child-context .quick-service-link {
  background: #00a32a;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85em;
  transition: background-color 0.3s ease;
}

.astra-child-context .quick-service-link:hover {
  background: #007317;
  color: white;
}

.astra-child-context .more-services {
  color: #666;
  font-style: italic;
  font-size: 0.85em;
}

.astra-child-context .back-to-city {
  background: #0073aa;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.astra-child-context .back-to-city:hover {
  background: #005177;
  color: white;
}

.astra-child-context .services-dropdown {
  position: relative;
  display: inline-block;
}

.astra-child-context .services-dropdown-toggle {
  background: #00a32a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.astra-child-context .services-dropdown-toggle:hover {
  background: #007317;
}

.astra-child-context .services-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.astra-child-context .services-dropdown:hover .services-dropdown-menu {
  display: block;
}

.astra-child-context .dropdown-service-link {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.astra-child-context .dropdown-service-link:hover {
  background: #f0f8f0;
  color: #00a32a;
}

.astra-child-context .dropdown-service-link:last-child {
  border-bottom: none;
}

/* Стили для страниц городов */
.city-page .entry-header {
  background: linear-gradient(135deg, #0073aa, #005177);
  color: white;
  padding: 30px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.city-breadcrumbs {
  margin-bottom: 15px;
  font-size: 0.9em;
}

.city-breadcrumbs a {
  color: #b3d9f2;
  text-decoration: none;
}

.city-breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}

.current-city {
  color: white;
  font-weight: 600;
}

.city-title {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
}

.city-services-section {
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.services-title {
  color: #0073aa;
  margin-bottom: 25px;
  font-size: 1.8em;
}

.city-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #00a32a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.service-title a {
  color: #00a32a;
  text-decoration: none;
  font-weight: 600;
}

.service-title a:hover {
  color: #007317;
  text-decoration: underline;
}

.service-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.service-link {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #005177;
  text-decoration: underline;
}

/* Стили для страниц услуг */
.service-page .entry-header {
  background: linear-gradient(135deg, #00a32a, #007317);
  color: white;
  padding: 30px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.service-breadcrumbs {
  margin-bottom: 15px;
  font-size: 0.9em;
}

.service-breadcrumbs a {
  color: #b3e6c7;
  text-decoration: none;
}

.service-breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}

.current-service {
  color: white;
  font-weight: 600;
}

.service-title {
  margin: 0;
  font-size: 2.2em;
  font-weight: 700;
}

.service-city {
  font-size: 0.7em;
  font-weight: 400;
  color: #b3e6c7;
  display: block;
  margin-top: 5px;
}

.service-city-info {
  margin-top: 15px;
}

.city-link {
  color: #b3e6c7;
  text-decoration: none;
}

.city-link:hover {
  color: white;
  text-decoration: underline;
}

.service-city-actions {
  margin-top: 40px;
  padding: 25px;
  background: #f0f8f0;
  border-radius: 8px;
  border-left: 4px solid #00a32a;
}

.back-to-city-btn {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.back-to-city-btn:hover {
  background: #005177;
  color: white;
}

.other-services h3 {
  color: #00a32a;
  margin-bottom: 15px;
}

.other-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-services-list li {
  margin: 8px 0;
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #00a32a;
}

.other-services-list li a {
  color: #00a32a;
  text-decoration: none;
  font-weight: 500;
}

.other-services-list li a:hover {
  color: #007317;
  text-decoration: underline;
}

/* Адаптивность для новых стилей */
@media (max-width: 768px) {
  .city-title {
    font-size: 2em;
  }

  .service-title {
    font-size: 1.8em;
  }

  .city-services-grid {
    grid-template-columns: 1fr;
  }

  .astra-child-context {
    padding: 10px 15px;
  }

  .astra-child-context .city-services-nav,
  .astra-child-context .service-quick-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .astra-child-context .services-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 5px;
  }

  .astra-child-context .services-dropdown-toggle {
    display: none;
  }

  .astra-child-context .nav-label {
    margin-bottom: 5px;
  }
}

/* Пример кастомизации */
/*
.site-header {
    background-color: #your-color;
}
*/

/* Стили для интеграции отзывов Google Maps */

.google-reviews-widget {
  margin: 30px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.google-reviews-header {
  padding: 20px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

.google-reviews-header h3 {
  margin: 0 0 15px 0;
  font-size: 1.4em;
  font-weight: 600;
}

.google-reviews-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.google-reviews-content {
  padding: 20px;
}

.google-reviews-content.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.google-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.business-name {
  font-size: 1.3em;
  font-weight: 700;
  color: #333;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 18px;
}

.star-full {
  color: #ffa500;
}

.star-half {
  color: #ffa500;
  opacity: 0.6;
}

.star-empty {
  color: #ddd;
}

.rating-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rating-number {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
}

.rating-total {
  font-size: 0.9em;
  color: #666;
}

/* Макеты отзывов */
.reviews-container.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.reviews-container.layout-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reviews-container.layout-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.reviews-container.layout-slider .review-item {
  min-width: 300px;
  scroll-snap-align: start;
}

/* Стили отдельного отзыва */
.review-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #4285f4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 600;
  color: #333;
  font-size: 1em;
}

.review-date {
  color: #666;
  font-size: 0.85em;
  margin-top: 2px;
}

.review-rating {
  flex-shrink: 0;
}

.review-text {
  color: #555;
  line-height: 1.6;
  font-style: italic;
}

/* Футер с ссылкой */
.google-reviews-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.view-all-reviews {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.view-all-reviews:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

.view-all-reviews::after {
  content: '↗';
  font-size: 1.1em;
}

/* Ошибки */
.google-reviews-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: #666;
}

.error-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.error-message {
  text-align: center;
  font-style: italic;
}

/* Автоматические отзывы для городов */
.auto-city-reviews {
  margin: 40px 0;
  border-left: 4px solid #00a32a;
}

.auto-city-reviews .google-reviews-header {
  background: linear-gradient(135deg, #00a32a, #007317);
}

/* Адаптивность */
@media (max-width: 768px) {
  .google-reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .rating-summary {
    align-self: flex-start;
  }

  .rating-text {
    align-items: flex-start;
  }

  .reviews-container.layout-grid {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .reviewer-info {
    width: 100%;
  }

  .review-rating {
    align-self: flex-end;
  }

  .reviews-container.layout-slider {
    gap: 15px;
  }

  .reviews-container.layout-slider .review-item {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .google-reviews-widget {
    margin: 20px -15px;
    border-radius: 0;
  }

  .google-reviews-header,
  .google-reviews-content {
    padding: 15px;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
  }

  .review-item {
    padding: 15px;
  }
}

.ast-header-sticked.ast-sticky-active {
  background: #ccc;
}