/* Header with results count and sorting */
.hotel-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.hotel-sorting {
  flex-shrink: 0;
}

/* Стили для селекта сортировки */
.hotel-sorting .woocommerce-ordering select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 0.95em;
  color: #333;
  min-width: 200px;
}

.hotel-sorting .woocommerce-ordering select:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

/* Заголовок результатов поиска */
.search-results-title {
  font-size: 1.8em;
  color: #333;
  font-weight: 600;
}

/* Карточка отеля */
.hotel-listing-item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 30px;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.hotel-listing-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Изображение отеля */
.hotel-image {
  height: 220px;
  flex: 0 0 300px;
  position: relative;
}

.hotel-main-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.hotel-no-image {
  width: 100%;
  height: 250px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

/* Контент отеля */
.hotel-content {
  flex: 1;
  padding: 25px;
}

.hotel-header {
  margin-bottom: 15px;
}

.hotel-name {
  margin: 0 0 10px 0;
  font-size: 1.6em;
  color: #2c5aa0;
  font-weight: 700;
}

.hotel-name a {
  color: inherit;
  text-decoration: none;
}

.hotel-name a:hover {
  color: #1e3d6f;
  text-decoration: underline;
}

.hotel-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.stars {
  font-size: 1.1em;
  color: #ffc107;
}

.rating {
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

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

.hotel-coordinates {
  color: #888;
  font-size: 0.9em;
  margin: 5px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotel-description {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Особенности отеля */
.hotel-features {
  margin-bottom: 25px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature {
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #495057;
  border: 1px solid #e9ecef;
}

/* Разделитель */
.hotel-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}

/* Секция цены и кнопки */
.hotel-price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.price-info {
  flex: 1;
}

.price-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-amount {
  font-size: 1.8em;
  font-weight: bold;
  color: #2c5aa0;
}

.hotel-actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.view-details-btn,
.select-options-btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.95em;
  min-width: 140px;
  text-align: center;
}

.view-details-btn {
  background: #28a745;
  color: white;
}

.view-details-btn:hover {
  background: #1e3d6f;
  transform: translateY(-2px);
}

.select-options-btn {
  background: #2c5aa0;
  color: white;
  cursor: pointer;
  border: 2px solid #2c5aa0;
}

.select-options-btn:hover {
  background: #1e3d6f;
  border-color: #1e3d6f;
  transform: translateY(-2px);
}

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

  .hotel-sorting {
    width: 100%;
  }

  .hotel-sorting .woocommerce-ordering select {
    width: 100%;
    min-width: auto;
  }

  .hotel-listing-item {
    flex-direction: column;
  }

  .hotel-image {
    flex: 0 0 200px;
  }

  .hotel-main-image,
  .hotel-no-image {
    height: 200px;
  }

  .hotel-price-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hotel-actions {
    flex-direction: column;
    margin-top: 15px;
  }

  .view-details-btn,
  .select-options-btn {
    min-width: 100%;
  }
}
