.lc-listing-card {
  /*width: 300px;*/
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.lc-listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.lc-image-wrapper {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.lc-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.lc-listing-card:hover .lc-image-wrapper img {
  transform: scale(1.05);
}

/* Heart Icon */
.lc-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 8px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.lc-heart:hover {
  background: #ff6b81;
  color: #fff;
}

/* Dots Carousel */
.lc-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.lc-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s;
}

.lc-dots .lc-active {
  width: 10px;
  height: 10px;
  background: #fff;
}

/* Content */
.lc-content {
  padding: 14px 12px;
}

.lc-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.lc-badge {
  font-size: 12px;
  background: #ff9f1c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.lc-sub {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 2px;
}

.lc-price {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lc-old {
  text-decoration: line-through;
  color: #a5a5a5;
  font-size: 13px;
}

.lc-new {
  font-weight: 600;
  color: #222;
  font-size: 14px;
}

.lc-night {
  font-size: 12px;
  color: #888;
}

.lc-cancel {
  font-size: 12px;
  font-weight: 500;
  color: #38b000;
  margin-top: 6px;
}

/* Amenities */
.lc-amenities {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  cursor: grab;
}

.lc-amenities:active {
  cursor: grabbing;
}

.lc-amenities::-webkit-scrollbar {
  display: none;
}

.lc-amenity {
  flex: 0 0 auto;
  /* Prevent shrinking */
  width: 32px;
  height: 32px;
  background: #f1f1f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 16px;
  transition: all 0.3s;
}

.lc-amenity:hover {
  background: #ff9f1c;
  color: #fff;
}

/* Responsive */
@media (max-width: 350px) {
  .lc-listing-card {
    width: 95%;
  }
}

.lc-content h4 {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-image-wrapper {
  position: relative;
}

.lc-image-wrapper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

/* Close button */
.lc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
}

.lc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  border: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9;
  transition: all 0.25s ease;
}

.lc-arrow i {
  font-size: 14px;
  color: #222;
}

.lc-arrow:hover {
  background: #ff9f1c;
}

.lc-arrow:hover i {
  color: #fff;
}

/* Positioning */
.lc-prev {
  left: 10px;
}

.lc-next {
  right: 10px;
}

/* Hide arrows on mobile */
@media (max-width: 576px) {
  .lc-arrow {
    display: none !important;
  }
}

.lc-tags {
  position: absolute;
  top: 10px;
  left: 24px;
  z-index: 15;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.lc-listing-card:hover .lc-tags {
  opacity: 1;
  transform: translateX(0);
}


.edu-wrapper {
  position: relative;
  overflow: hidden;
  /* Clip the ribbon */
  border-radius: 16px;
  /* Match card radius */
  margin-bottom: 20px;
}

/* Ribbon */
.edu-ribbon {
  width: 120px;
  position: absolute;
  top: 15px;
  left: -35px;
  text-align: center;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: #d32f2f;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 25;
}

/* Adjust tags to bottom-left of image area to avoid ribbon */
.lc-tags {
  top: auto;
  bottom: auto;
  top: 160px;
  /* Position at bottom of 200px image */
  left: 10px;

  /* Update animation: Slide in from bottom-left */
  transform: translate(-10px, 10px);
}

.lc-listing-card:hover .lc-tags {
  transform: translate(0, 0);
}

.lc-tag {
  background: rgba(0, 0, 0, 0.7);
  /* Darker background for contrast */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  /* Pill shape */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  /* Glassmorphism */
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
  margin-right: 4px;
  /* Slight spacing between tags */
}

.lc-tag i {
  color: #fff !important;
}

.lc-badges-scroll {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  cursor: grab;
  margin-top: 6px;
}

.lc-badges-scroll::-webkit-scrollbar {
  display: none;
}

.lc-badges-scroll:active {
  cursor: grabbing;
}