/* ============================================================
   HOTEL GRID - [hotel_grid] shortcode
   ============================================================ */

.hotel-grid {
  position: relative;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.hotel-grid__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hotel-grid__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #F9F9F9;
  color: #969696;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  margin: 0;
}

.hotel-grid__tab--active {
  background: #FFFF00;
  color: #434343;
  border-color: #FFFF00;
}

.hotel-grid__tab-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Products grid ─────────────────────────────────────────── */
.hg-products {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.hg-products--cols-1 { grid-template-columns: 1fr; }
.hg-products--cols-2 { grid-template-columns: repeat(2, 1fr); }
.hg-products--cols-3 { grid-template-columns: repeat(3, 1fr); }
.hg-products--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .hg-products,
  .hg-products--cols-3,
  .hg-products--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hg-products,
  .hg-products--cols-2,
  .hg-products--cols-3,
  .hg-products--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Card ──────────────────────────────────────────────────── */
.hg-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E6E6E6;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hg-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Image */
.hg-card__img-link {
  display: block;
  text-decoration: none;
}

.hg-card__image {
  height: 216px;
  overflow: hidden;
}

.hg-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.hg-card__no-image {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* Body */
.hg-card__body {
  padding: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Title */
.hg-card__title {
  font-size: 16px;
  font-weight: 500;
  color: #101010;
  margin: 0;
  line-height: 1.4;
}

.hg-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Location */
.hg-card__location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  color: #6A7282;
  line-height: 1.4;
}

.hg-card__location-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Meta: rating + sold */
.hg-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
}

.hg-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #333;
}

.hg-card__rating strong {
  font-size: 13px;
  font-weight: 600;
}

.hg-card__review-count {
  font-size: 13px;
  color: #888;
}

.hg-card__dot {
  color: #ccc;
  font-size: 13px;
}

.hg-card__sold {
  font-size: 13px;
  color: #4A5565;
}

.hg-card__price {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hg-card__price-label,
.hg-card__price .woocommerce-Price-amount,
.hg-card__price .amount {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: #101828;
}

/* Loading state */
.hotel-grid__products-wrap.hotel-grid--loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Empty */
.hg-empty {
  color: #888;
  font-size: 14px;
  padding: 16px 0;
}
