/* AMENITIES SECTION STYLES */
.ami-block-bg {
  background: #eae5e4;
  border-radius: 1vw;
  overflow: hidden;
  margin: 0;
  position: relative;
  height: 250px;
  flex: 1;
  min-width: 0;
  transition: transform 0.3s ease;
}

.ami-block-bg:hover {
  transform: translateY(-5px);
}

.ami-row {
  display: flex;
  gap: 0px; /* reduced gap for tighter look */
  justify-content: center;
  padding: 5px;
}

.ami-grid-two-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: space-between;
}

/* Empty blocks styling */
.ami-block-bg.empty-block {
  background: transparent;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
}

.empty-space {
  width: 100%;
  height: 100%;
  background: transparent;
}

.ami-block-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ami-block-bg .ami-block-bg-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #1a1a1a 0%, rgba(26,26,26,0.8) 30%, transparent 100%);
  padding: 20px;
  color: white;
}

.ami-block-bg .ami-bg-name {
  font-weight: bold;
  font-size: 16px;
  border-left: 4px solid var(--colorPrimary);
  padding-left: 10px;
}

.ai-ami {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* Owl Carousel spacing fixes */
.ami-4 .owl-stage-outer {
  padding: 10px 0;
}

.ami-4 .owl-item {
  box-sizing: border-box;
  margin-right: 0;
}

/* Custom Navigation Dots */
.custom-carousel-nav {
  text-align: center;
  margin-top: 25px;
}

.custom-dots {
  display: inline-flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.custom-dot:hover {
  background: var(--colorPrimary);
  transform: scale(1.2);
}

.custom-dot.active {
  background: var(--colorPrimary);
  transform: scale(1.3);
  border-color: rgba(243, 130, 33, 0.3);
}

/* HEIGHT ADJUSTMENTS FOR LARGE SCREENS */
@media (min-width: 1200px) {
  .ami-block-bg {
    height: 220px;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .ami-row {
    gap: 8px;
  }

  .ami-block-bg {
    height: 210px;
    margin: 4px;
  }

  .ami-grid-two-rows {
    gap: 12px;
  }

  .custom-dots {
    padding: 10px 18px;
  }
}

@media (max-width: 768px) {
  .ami-row {
    /* flex-direction: column; */
    gap: 8px;
  }

  .ami-block-bg {
    height: 200px;
    margin: 4px 0;
  }

  .ami-grid-two-rows {
    gap: 10px;
  }

  .custom-dot {
    width: 10px;
    height: 10px;
  }

  /* Hide empty blocks on mobile */
  .ami-block-bg.empty-block {
    display: none;
  }
}

@media (max-width: 480px) {
  .ami-block-bg {
    height: 180px;
  }

  .ami-block-bg .ami-bg-name {
    font-size: 14px;
  }
}
