/* ============================================
   ViziteazaSighisoara.com — Hotel Cards (Booking.com Style)
   Booking-inspired design with burgundy accent (#c0392b)
   ============================================ */

/* Hotel Card Container */
.hotel-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  padding: 16px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.hotel-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Image Gallery Section */
.hotel-image-gallery {
  position: relative;
  height: 280px;
  width: 320px;
  min-width: 320px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
}

.hotel-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hotel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-image {
  transform: scale(1.05);
}

/* Image Gallery Indicators */
.image-carousel-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hotel-image-gallery:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn.prev {
  left: 12px;
}

.carousel-nav-btn.next {
  right: 12px;
}

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

/* Image Count Badge */
.image-count-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 5;
}

/* Hotel Details Section */
.hotel-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Header with Type and Rating */
.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hotel-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c0392b;
  margin: 0;
}

/* Rating Block */
.hotel-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: fit-content;
}

.rating-score {
  background: #c0392b;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.rating-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-weight: 600;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* Hotel Title */
.hotel-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Location Info */
.hotel-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 4px 0 0 0;
}

.location-icon {
  color: #c0392b;
  font-size: 1.1rem;
}

/* Room Description */
.room-type {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin: 4px 0;
}

.hotel-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 8px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Amenities Section */
.hotel-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
  transition: background 0.3s ease;
}

.amenity-tag:hover {
  background: #efefef;
}

.amenity-icon {
  font-size: 0.9rem;
}

/* Amenity with accent */
.amenity-tag.highlight {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

/* Price and Booking Section */
.hotel-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.price-display {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.price-per-night {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Booking Button */
.btn-book {
  background: #c0392b;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

.btn-book:hover {
  background: #a03228;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-book:active {
  transform: scale(0.98);
}

/* View More Button */
.btn-view {
  background: transparent;
  color: #2c3e50;
  border: 2px solid #ddd;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.btn-view:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.hotel-footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

/* Stars Display */
.stars-display {
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #c0392b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hotel-card {
    grid-template-columns: 280px 1fr;
    gap: 16px;
    padding: 12px;
  }

  .hotel-image-gallery {
    height: 240px;
  }

  .hotel-title {
    font-size: 1.25rem;
  }

  .price-display {
    font-size: 1.625rem;
  }
}

/* ============================================
   MOBILE: Hotelify-style horizontal compact cards
   ============================================ */
@media (max-width: 768px) {

  /* Horizontal card layout — image left, info right */
  .hotel-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    align-items: stretch;
  }

  .hotel-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  /* Square rounded image on the left */
  .hotel-image-gallery {
    width: 130px;
    min-width: 130px;
    height: 140px;
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Hide carousel controls on mobile */
  .carousel-nav-btn,
  .image-carousel-controls,
  .image-count-badge {
    display: none;
  }

  /* Details section — compact vertical layout */
  .hotel-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: auto;
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  /* Hide non-essential info */
  .hotel-description,
  .room-type,
  .hotel-amenities,
  .featured-badge {
    display: none !important;
  }

  /* Header — hide type label, show only stars */
  .hotel-header {
    display: none;
  }

  /* Hotel title — bold, 2 lines max */
  .hotel-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Location — subtle with pin icon */
  .hotel-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-weight: 400;
  }

  .location-icon {
    font-size: 0.85rem;
    color: #4A90D9;
  }

  /* Price and footer — inline, no border */
  .hotel-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 0;
    border-top: none;
    margin-top: auto;
  }

  .price-section {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }

  .price-label {
    display: none;
  }

  .price-display {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
  }

  .price-per-night {
    font-size: 0.75rem;
    color: #aaa;
  }

  /* Star rating — gold, below price */
  .hotel-footer .stars-display,
  .hotel-card .stars-display {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #F5A623;
  }

  /* Hide booking/view buttons on card listing — card itself links to profile */
  .btn-book,
  .btn-view {
    display: none;
  }

  /* Featured card — subtle accent, no heavy border */
  .hotel-card.featured {
    border-left: none;
    background: linear-gradient(135deg, #fff9f7 0%, #ffffff 100%);
  }

  /* Hotels grid spacing */
  .hotels-grid {
    gap: 12px;
  }
}

/* Extra small — tighten further */
@media (max-width: 480px) {
  .hotel-card {
    padding: 12px;
    gap: 12px;
    border-radius: 14px;
  }

  .hotel-image-gallery {
    width: 110px;
    min-width: 110px;
    height: 120px;
    border-radius: 12px;
  }

  .hotel-title {
    font-size: 0.95rem;
  }

  .hotel-location {
    font-size: 0.75rem;
  }

  .price-display {
    font-size: 1rem;
  }

  .hotels-grid {
    gap: 10px;
  }
}

/* Featured/Recommended Badge */
.hotel-card.featured {
  border-left: 4px solid #c0392b;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Hotel Card Grid Container */
.hotels-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

/* Alternative: Grid Layout (for future use) */
.hotels-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.hotels-grid.grid-view .hotel-card {
  grid-template-columns: 1fr;
}

.hotels-grid.grid-view .hotel-image-gallery {
  height: 220px;
}
