/* Room Gallery Styles */
.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none !important;
}

.hero-banner-image:hover {
  transform: none !important;
}

.room-section {
  margin-bottom: 80px;
}

.room-header {
  text-align: center;
  margin-bottom: 40px;
}

.room-header h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.room-header .room-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.room-header h3::before,
.room-header h3::after {
  content: '';
  display: block;
  height: 2px;
  width: 44px;
  background: var(--color-secondary);
}

@media (max-width: 640px) {
  .room-header h3 {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 22px;
    letter-spacing: 0.08em;
    box-shadow: none;
    gap: 10px;
  }
  .room-header h3::before,
  .room-header h3::after {
    width: 32px;
  }
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.room-image-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-block);
  cursor: pointer;
  border: 2px solid var(--color-border-soft);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.room-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.room-image-card:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--color-border-soft);
}

.room-image-card:hover img {
  transform: scale(1.01);
  filter: saturate(1.02) contrast(1.01);
}

.room-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(21,32,64,0.9) 100%);
  color: white;
  padding: 20px;
  transform: translateY(0);
  transition: transform var(--transition-speed), background 0.25s ease, color 0.25s ease;
}

.room-image-card:hover .room-image-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(198,168,125,0.9) 100%);
  color: var(--color-primary);
}

.room-image-overlay .image-label {
  font-size: 14px;
  font-weight: 500;
}

.room-description {
  background: var(--color-block);
  padding: 30px;
  border-radius: var(--card-radius);
  margin-bottom: 20px;
}

.room-description h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.room-description p {
  line-height: 1.8;
  margin-bottom: 0;
}

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.room-divider {
  height: 1px;
  background: var(--color-border-soft);
  margin: 50px 0 24px;
}

.feature-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 32, 64, 0.95);
  backdrop-filter: blur(10px);
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-main-image {
  max-width: 90vw;
  max-height: 70vh;
  min-width: 300px;
  min-height: 0 !important;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--card-radius);
  background: none !important;
  display: block !important;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-speed);
  border: 2px solid transparent;
  min-height: 0 !important;
  background: none !important;
  display: block !important;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-secondary);
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(4, 6, 10, 0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 2;
  transition: background var(--transition-speed);
}

.gallery-close:hover {
  background: rgba(4, 6, 10, 0.88);
  color: #fff;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: var(--color-primary);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed);
}

.gallery-nav:hover {
  background: var(--color-secondary);
  color: white;
}

.gallery-nav.prev {
  left: -60px;
}

.gallery-nav.next {
  right: -60px;
}

.gallery-counter {
  color: white;
  font-size: 14px;
  margin-top: 10px;
}

/* Common Amenities Section - New Design */
.common-amenities-wrapper {
  background: var(--color-primary);
  padding: 50px 30px;
  margin-top: 60px;
  border-radius: var(--card-radius);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.common-amenities-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.common-amenities-title {
  color: white;
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  font-weight: 600;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.amenity-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.amenity-icon-wrapper {
  width: 60px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity-icon-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  min-height: 0 !important;
  background: none !important;
  transform: none !important;
}

.amenity-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* Booking CTA */
.booking-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-large {
  font-size: 18px;
  padding: 15px 40px;
}

/* Reviews Background */
.reviews-bg {
  background-image: url('../Pictures/dining/meatballs-spaghetti-la-tortue-diving-center.webp');
}

@media (max-width: 768px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-close {
    top: 12px;
    right: 12px;
  }
}
