/**
 * Property Amenities & Distribution Elementor Widget Styles
 */

.lgap-property-amenities-widget {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

/* Section Titles */
.lgap-section-title {
  font-family: "Playfair Display", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #000;
  margin: 0 0 20px 0;
}

/* Amenities Sections */
.lgap-amenities-section {
  margin-bottom: 40px;
}

.lgap-amenities-section:last-child {
  margin-bottom: 0;
}

/* Distribution Grid (Bedrooms/Bathrooms) */
.lgap-distribution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.lgap-distribution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.lgap-bed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #666;
  font-size: 20px;
}

.lgap-bed-info {
  flex: 1;
}

.lgap-bed-title {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin-bottom: 4px;
}

.lgap-bed-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lgap-bed-details span {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Amenities Grid */
.lgap-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lgap-amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.lgap-amenity-item i {
  color: #666;
  font-size: 20px;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.lgap-amenity-item span {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  color: #000;
  line-height: 1.4;
}

/* Hidden Amenities */
.lgap-hidden-amenities {
  margin-top: 16px;
}

/* See All Button */
.lgap-see-all-btn {
  display: inline-block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: transparent;
  border: 1px solid #ffb800;
  background-color: #fff;
  /* border-radius: 4px; */
  padding: 8px 16px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Placeholder for editor */
.lgap-amenities-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background-color: #f7f7f7;
  border: 2px dashed #ddd;
  border-radius: 4px;
  color: #666;
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .lgap-section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .lgap-amenities-section {
    margin-bottom: 32px;
  }

  .lgap-distribution-grid,
  .lgap-amenities-grid {
    gap: 14px;
  }

  .lgap-bed-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .lgap-bed-title {
    font-size: 15px;
  }

  .lgap-bed-details span {
    font-size: 13px;
  }

  .lgap-amenity-item i {
    font-size: 18px;
    width: 18px;
  }

  .lgap-amenity-item span {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .lgap-section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .lgap-amenities-section {
    margin-bottom: 24px;
  }

  .lgap-distribution-grid,
  .lgap-amenities-grid {
    gap: 12px;
  }

  .lgap-amenities-grid {
    grid-template-columns: 1fr;
  }

  .lgap-bed-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .lgap-distribution-item {
    gap: 10px;
  }

  .lgap-bed-title {
    font-size: 14px;
  }

  .lgap-bed-details span {
    font-size: 12px;
  }

  .lgap-amenity-item {
    gap: 10px;
  }

  .lgap-amenity-item i {
    font-size: 16px;
    width: 16px;
  }

  .lgap-amenity-item span {
    font-size: 14px;
  }
}

/* Accessibility */

.lgap-distribution-item:focus,
.lgap-amenity-item:focus {
  outline: 1px solid #ccc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Dark Mode Support */

/* Print Styles */
@media print {
  .lgap-property-amenities-widget {
    break-inside: avoid;
  }

  .lgap-hidden-amenities {
    display: grid !important;
  }

  .lgap-section-title {
    color: #000 !important;
  }

  .lgap-bed-title,
  .lgap-amenity-item span {
    color: #000 !important;
  }
}

/* Animation for showing/hiding amenities */
.lgap-hidden-amenities {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lgap-hidden-amenities.lgap-visible {
  opacity: 1;
  max-height: 1000px;
  display: grid !important;
}

/* Special feature highlighting */
.lgap-amenity-item.lgap-featured {
  background-color: rgba(255, 184, 0, 0.1);
  padding: 8px;
  border-radius: 4px;
  border-left: 3px solid #ffb800;
}

/* Kitchen appliances grouping */
.lgap-amenity-item[data-category="kitchen"] i {
  color: #ff6b35;
}

.lgap-amenity-item[data-category="entertainment"] i {
  color: #4ecdc4;
}

.lgap-amenity-item[data-category="outdoor"] i {
  color: #45b7d1;
}

.lgap-amenity-item[data-category="comfort"] i {
  color: #96ceb4;
}

/* Hover effects for amenity items */
.lgap-amenity-item {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 4px;
  margin: -4px;
}

.lgap-amenity-item:hover {
  /* background-color: rgba(0, 0, 0, 0.05); */
  /* transform: translateX(2px); */
}

/* Loading state */
.lgap-amenities-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: #666;
  font-style: italic;
}

.lgap-amenities-loading::after {
  content: "...";
  animation: lgap-loading-dots 1.5s infinite;
}

@keyframes lgap-loading-dots {
  0%,
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
  }
}
