/* Custom Bed Section */
.custom-bed-section {
  background-color: #f9f9fb;
}

.custom-bed-text p {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn.btn-purple {
  background-color: #894177;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.btn.btn-purple:hover {
  background-color: #6e3361;
  color: #fff;
}

/* Image styling */
.custom-bed-images img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.price_overlay {
  bottom: 0px;
  z-index: 11;
  background: #ffffffba;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
  min-width: 200px;
  align-items: center;
  justify-content: center;
}

.owl-stage-outer {
  min-height: 200px;
  background: rgba(255, 0, 0, 0.1);
  /* just to visualize */
}

.btn-purple {
  background-color: #793b8e;
  color: #fff;
  border: none;
}

.btn-purple:hover {
  background-color: #5f2e6c;
}

/* gird section  */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.room-item {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.room-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  z-index: 2;
  transition: all 0.4s ease;
}

.room-item:hover::before {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.7),
    rgba(139, 69, 19, 0.4)
  );
}

.room-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.package_det_btn {
  border: 2px solid purple;
}

.package_det_btn:hover {
  background: #ffffff6b;
}

.room-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.room-item:hover .room-bg {
  transform: scale(1.1);
}

.room-item:hover .room-bg img {
  transform: scale(1.1);
}

.room-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 100%;
  padding: 20px;
}

.room-title {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.room-subtitle {
  font-size: 1.1rem;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  margin-bottom: 15px;
}

.room-item:hover .room-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  background: linear-gradient(45deg, #8b4513, #a0522d);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.room-item:hover .cta-button {
  opacity: 1;
  transform: translateY(0);
}

.cta-button:hover {
  background: linear-gradient(45deg, #a0522d, #8b4513);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.carousel_img {
  aspect-ratio: 7/2;
  object-fit: cover;
}

/* Responsive image handling for different aspect ratios */
.room-bg.portrait {
  background-position: center top;
}

.room-bg.landscape {
  background-position: center center;
}

.room-bg.square {
  background-position: center center;
}

/* Loading state */
.room-item.loading {
  background: #e0e0e0;
}

.room-item.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8b4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 4;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error state */
.room-item.error .room-bg {
  background: linear-gradient(45deg, #ccc, #ddd);
}

.room-item.error .room-bg::after {
  content: "📷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.5;
}

@media (max-width: 1200px) {
  .room-bg {
    background-position: center center;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .room-item {
    height: 250px;
  }

  .room-title {
    font-size: 2.5rem;
  }

  .room-bg {
    background-position: center 30%;
  }
}

@media (max-width: 480px) {
  .room-title {
    font-size: 2rem;
  }

  .room-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* gird section end */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease-in-out;
}

.shine-hover:hover::before {
  top: 100%;
  left: 100%;
}

.hero-section {
  position: relative;
  height: 65vh;
  background: linear-gradient(
      to right,
      rgba(15, 15, 15, 0.28),
      rgba(15, 15, 15, 0.3)
    ),
    url("uploads/home-interior/home-interiro-bg.jpg") no-repeat center
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.section-title {
  margin-bottom: 2rem;
}

.img_overlay {
  background: black;
  height: 100%;
  width: 100%;
  position: absolute;
  opacity: 0.4;
}

.banner_title {
  z-index: 123;
  bottom: 69px;
  width: 45%;
  min-width: 350px;
  left: 51px;
}

.property-item {
  box-shadow: none;
}
/* .reviews-grid {
            display: grid;
            gap: 20px;
        } */

.review-card {
  width: 97%;
  background: white;
  border-radius: 16px;
  padding: 13px;
  box-shadow: 4px 4px 7px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: all 0.3s ease;
  /* position: relative;
            overflow: hidden; */
}
.swiper-slide {
  margin: 10px;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* height: 4px; */
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.author-details h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.review-date {
  font-size: 14px;
  color: #6b7280;
}

.menu-button {
  padding: 8px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-button:hover {
  background: #f3f4f6;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-number {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.review-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  font-size: 16px;
}

.review-content {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #bfdbfe;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.helpful-actions {
  display: flex;
  gap: 8px;
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: #f9fafb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.helpful-btn:hover {
  background: #f3f4f6;
}

.helpful-btn.active-up {
  background: #dcfce7;
  color: #166534;
}

.helpful-btn.active-down {
  background: #fee2e2;
  color: #dc2626;
}

.verified {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
}

.verified-icon {
  width: 16px;
  height: 16px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-check {
  width: 8px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .overview-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .average-rating {
    text-align: center;
  }

  .review-header {
    flex-direction: column;
    gap: 12px;
  }

  .review-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* feedback section  */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --pink-bg: linear-gradient(
    135deg,
    rgba(255, 182, 203, 0.3) 0%,
    rgba(255, 192, 203, 0.8) 50%,
    rgba(255, 162, 183, 0.4) 100%
  );
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.design-container {
  width: 420px;
  height: 320px;
  margin: 80px auto;
  position: relative;
}

.pink-background {
  background: var(--pink-bg);
  width: 200px;
  height: 170px;
  border-radius: 30px;
  top: 90px;
  left: 110px;
  z-index: 1; 
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(255, 182, 203, 0.4);
}

.message-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--card-shadow);
}

.message-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  background: rgba(255, 255, 255, 1);
}

.top-message {
    width: 253px;
    height: 60px;
    top: 30px;
    left: -40px;
  z-index: 3;
  padding: 10px;
  font-size: 12px;
}
.twoline-ellipsis-fade{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.twoline-ellipsis-fade::after{
  content:"";
  position:absolute;
  bottom:0; right:0; left:0;
  height:1.2em;                 /* roughly one line height */
  /* background: linear-gradient(to bottom, transparent, white); match bg */
}
.middle-message {
  width: 220px;
  height: 80px;
  top: 110px;
  right: 40px;
  z-index: 4;
  padding: 10px;
  font-size: 12px;
}

.bottom-message {
  width: 190px;
  height: 65px;
  bottom: 25px;
  left: 50px;
  z-index: 3;
  padding: 16px;
}

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar:hover {
  transform: scale(1.1);
}

.avatar-primary {
  background: var(--primary-gradient);
  width: 32px;
  height: 32px;
}

.avatar-secondary {
  background: var(--secondary-gradient);
  width: 28px;
  height: 28px;
}

.avatar-tertiary {
  background: var(--tertiary-gradient);
  width: 34px;
  height: 34px;
}

.avatar-inner {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-inner-small {
  width: 16px;
  height: 16px;
}

.avatar-inner-medium {
  width: 14px;
  height: 14px;
}

.avatar-inner-large {
  width: 18px;
  height: 18px;
}

.text-line {
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.text-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.5s;
}

.message-card:hover .text-line::before {
  left: 100%;
}

/* .text-line-primary {
            background: linear-gradient(90deg, #8e9aaf 0%, #6c757d 100%);
            height: 6px;
        }

        .text-line-secondary {
            background: linear-gradient(90deg, #adb5bd 0%, #8e9aaf 100%);
            height: 5px;
        } */

.text-line-long {
  width: 120px;
}

.text-line-medium {
  width: 173px;
}

.text-line-short {
  width: 70px;
}

.text-line-extra-long {
  width: 140px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-card {
  animation: fadeInUp 0.6s ease-out;
}

.top-message {
  animation-delay: 0.1s;
}

.middle-message {
  animation-delay: 0.3s;
}

.bottom-message {
  animation-delay: 0.5s;
}
