/* Variables - Premium Color Palette */
:root {
  --primary: #5b0161;
  --primary-light: #7a1f80;
  --primary-dark: #3f0043;
  --secondary: #14051d;
  --accent: #eed279;
  --accent-light: #f7e3a8;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --border-color: rgba(91, 1, 97, 0.1);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(91, 1, 97, 0.1);
  --shadow-lg: 0 20px 40px rgba(20, 5, 29, 0.15);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(91, 1, 97, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(91, 1, 97, 0.4);
}

.btn-dark {
  background-color: var(--secondary);
  color: var(--accent);
  box-shadow: 0 10px 20px rgba(20, 5, 29, 0.3);
}

.btn-dark:hover {
  background-color: #2a0a3a;
  transform: translateY(-3px);
  color: var(--accent-light);
}
/* PRELOADER BASE */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0b0b0b;
  z-index: 9999;
  overflow: hidden;
}

/* CURTAINS */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--primary);
  z-index: 2;
  transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain.left {
  left: 0;
}

.curtain.right {
  right: 0;
}

/* IMAGE UNDERNEATH */
.preloader-image {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.preloader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: 0;
  transition: all 1.5s ease;
}

/* CURTAIN OPEN EFFECT */
#preloader.open .curtain.left {
  transform: translateX(-100%);
}

#preloader.open .curtain.right {
  transform: translateX(100%);
}

/* IMAGE REVEAL */
#preloader.open .preloader-image img {
  transform: scale(1);
  opacity: 1;
}

/* FINAL LIFT AWAY */
#preloader.hide {
  transform: translateY(-100%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* HERO INITIAL STATE */
.hero {
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.2s ease;
}

body.loaded .hero {
  opacity: 1;
  transform: scale(1);
}

/* Navbar */
.nav-bar {
  position: relative;
  margin-top: 30px;
  padding: 0 3rem;
  transition: var(--transition);
  z-index: 9999;
}

.nav-bar.sticky-top {
  position: sticky;
  top: 0;
  padding: 0;
  margin-top: 0;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);

  border: 1px solid var(--accent);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 2px solid var(--accent);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-icon:hover {
  transform: rotate(360deg);
}

.brand-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.navbar-brand h1 {
  color: var(--primary);
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.navbar-toggler:hover {
  background: var(--primary);
}

.navbar-toggler:hover .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235b0161' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: var(--transition);
}

.navbar-collapse {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 2rem;
}

.nav-link {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.3s;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--accent);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.1;
  transition: width 0.3s ease;
}

.dropdown-item:hover::before {
  width: 100%;
}

.dropdown-item:hover {
  color: var(--primary);
  padding-left: 2rem;
}

.sell-btn {
  margin-left: 1.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 2px solid var(--accent);
  color: var(--white);
  font-weight: 600;
}

.sell-btn:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(91, 1, 97, 0.3);
}

/* Header */
.header {
  margin-top: -100px;
  padding-top: 120px;
  background: linear-gradient(
    135deg,
    rgba(238, 210, 121, 0.1) 0%,
    rgba(91, 1, 97, 0.1) 100%
  );
  overflow: hidden;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.header-text {
  padding: 2rem;
}

.header-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  font-family: "Agbalumo", cursive;
  line-height: 1.2;
  color: var(--secondary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-primary {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.text-primary::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent);
  opacity: 0.3;
  z-index: -1;
}

.header-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: var(--shadow-lg);
}

.carousel.right-to-left .carousel-item {
  animation: slideRightToLeft 0.8s ease forwards;
}

@keyframes slideRightToLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.carousel-item {
  display: none;
  width: 100%;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.carousel:hover .carousel-item img {
  transform: scale(1.05);
}

.carousel-nav-vertical {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: scale(1.1);
  border-color: var(--white);
}

/* Header carousel container flush to top-right - FIXED: remove right spacing */
.header-carousel-container {
  margin-right: -5px; /* compensate container padding */
  margin-top: -120px;
  position: relative;
  right: 0; /* changed from -15px to 0 to ensure flush right */
  width: calc(100% + 15px); /* extend to edge */
}
.header-carousel-container .carousel {
  width: 100%;
  border-radius: 5px 0 0 5px; /* optional: remove right rounding */
}

/* Search Section */
.search-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 40px;
  margin: 3rem 0;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.search-grid {
  display: grid;
  grid-template-columns: 10fr 2fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.search-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--white);
  transition: var(--transition);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(238, 210, 121, 0.3);
  transform: translateY(-2px);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235b0161' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  appearance: none;
}

.search-btn {
  width: 100%;
  height: 100%;
  background: var(--secondary);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.search-btn:hover {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-item {
  display: block;
  text-align: center;
}

.category-content {
  background: var(--white);
  border-radius: 30px;
  padding: 2rem 1rem;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.category-content:hover::before {
  opacity: 1;
}

.category-content:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.category-content:hover * {
  color: var(--white) !important;
  position: relative;
  z-index: 2;
}

.category-icon {
  margin-bottom: 1rem;
}

.category-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: var(--transition);
}

.category-content:hover .category-icon img {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.category-content h6 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.category-content span {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About Section - New Design */
.property-section {
  padding: 80px 5%;
}

.property-section .container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* IMAGE SIDE */
.image-box {
  position: relative;
  width: 50%;
}

.image-box img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

/* purple background shape - FIXED: perfect square proportions */
.shape {
  position: absolute;
  top: -40px;
  left: -40px;
  bottom: -40px;
  width: 85%; /* relative to container, but we want square */
  height: auto;
  aspect-ratio: 1 / 1; /* ensures perfect square */
  background-color: var(--primary);
  z-index: 1;
  clip-path: polygon(0 0, 50% 0, 100% 100%, 0% 100%);
  max-width: calc(100% + 80px); /* allow it to extend like original */
}

/* CONTENT SIDE */
.content {
  width: 50%;
}

.content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #0b2c4d;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.content p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.content ul {
  list-style: none;
  margin-bottom: 30px;
}

.content ul li {
  margin-bottom: 10px;
  color: #444;
  position: relative;
  padding-left: 25px;
}

/* check icon */
.content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Override button styles for this specific section */
.property-section .btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
  border: none;
  box-shadow: none;
}

.property-section .btn:hover {
  color: var(--white);
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .property-section .container {
    flex-direction: column;
  }

  .image-box,
  .content {
    width: 100%;
  }

  .content h2 {
    font-size: 32px;
  }
}

/* ===== NEW SECTION STYLES (only for Featured Listings, no existing classes touched) ===== */
.featured-listings-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

/* Horizontal scroll container - keeps scrollbar visible */
.featured-horizontal-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 20px;
}

.featured-scroll-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
}

/* Ensure cards inside horizontal scroll keep original width */
.featured-scroll-track .property-card {
  width: 350px;
  flex-shrink: 0;
  margin: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Custom scrollbar styling - always visible */
.featured-horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}
.featured-horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(91, 1, 97, 0.1);
  border-radius: 10px;
}
.featured-horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.featured-horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Video card specific */
.video-thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(91, 1, 97, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 0 20px rgba(238, 210, 121, 0.5);
  border: 2px solid var(--accent);
}

.play-icon,
.pause-icon {
  width: 32px;
  height: 32px;
}

.pause-icon {
  margin: 0;
}

/* Pulse animation for play button */
.pulse-animation {
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 210, 121, 0.7);
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(238, 210, 121, 0);
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 210, 121, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Featured badge with subtle pulse */
.featured-badge-pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(238, 210, 121, 0.5);
  }
  70% {
    opacity: 0.95;
    box-shadow: 0 0 0 8px rgba(238, 210, 121, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(238, 210, 121, 0);
  }
}

/* Video playing state: hide thumbnail, show video */
.video-thumbnail-wrapper.playing .thumbnail-img {
  display: none;
}
.video-thumbnail-wrapper.playing .inline-video {
  display: block !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .featured-scroll-track .property-card {
    width: 320px;
  }
}

@media (max-width: 575.98px) {
  .featured-scroll-track {
    gap: 1.2rem;
  }
  .featured-scroll-track .property-card {
    width: 280px;
  }
  .play-overlay {
    width: 55px;
    height: 55px;
  }
  .play-icon,
  .pause-icon {
    width: 26px;
    height: 26px;
  }
}

/* Property Listings */
.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.listings-title {
  max-width: 600px;
}

.listings-tabs {
  display: flex;
  gap: 1rem;
  background: var(--light-gray);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-radius: 50px;
  color: var(--dark-gray);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(91, 1, 97, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.4s,
    height 0.4s;
}

.tab-btn:hover::before,
.tab-btn.active::before {
  width: 200px;
  height: 200px;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  display: block;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--accent);
}

.property-type {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.property-details {
  padding: 1.5rem;
}

.property-price {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.property-title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 700;
}

.property-location {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.location-icon::before {
  content: "📍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
}

.property-features {
  display: flex;
  border-top: 2px dashed var(--border-color);
  background: var(--light-gray);
}

.property-features span {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.property-features span:not(:last-child) {
  border-right: 2px dashed var(--border-color);
}

.ruler-icon,
.bed-icon,
.bath-icon {
  width: 18px;
  height: 18px;
  background: var(--primary);
  display: inline-block;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.ruler-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M16 2L6 12M12 8L2 18M22 2L2 22'/%3E%3C/svg%3E");
}

.bed-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M2 12h20M2 18V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12'/%3E%3C/svg%3E");
}

.bath-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M8 6h8M4 12h16M6 10v4M18 10v4'/%3E%3C/svg%3E");
}

.text-center {
  text-align: center;
}

.browse-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 60px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.cta-content {
  background: var(--white);
  border-radius: 50px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.cta-image {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-image img {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.cta-image:hover img {
  transform: scale(1.05);
}

.cta-text h2 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 2.2rem;
}

.cta-text p {
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.phone-icon,
.calendar-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.phone-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8 10a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.574 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.calendar-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  transition: bottom 0.4s ease;
  background: linear-gradient(to top, rgba(20, 5, 29, 0.9), transparent);
  padding: 2rem 1rem 1rem;
}

.team-card:hover .team-social {
  bottom: 0;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  transform: translateY(-3px) rotate(360deg);
  border-color: var(--white);
}

.team-info {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
}

.team-info h5 {
  margin-bottom: 0.25rem;
  color: var(--secondary);
  font-size: 1.2rem;
}

.team-info small {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.facebook-icon,
.twitter-icon,
.instagram-icon,
.youtube-icon,
.linkedin-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  display: inline-block;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.facebook-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

.twitter-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z'/%3E%3C/svg%3E");
}

.instagram-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.youtube-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z'/%3E%3Cpolygon points='9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02'/%3E%3C/svg%3E");
}

.linkedin-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

/* ===== PROMOTIONAL POPUP STYLES (Independent, no existing styles modified) ===== */
.promo-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.4s ease forwards;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.promo-popup-container {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(91, 1, 97, 0.4);
  overflow: hidden;
  animation: slideUpPopup 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  border: 2px solid var(--accent, #eed279);
}

@keyframes slideUpPopup {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promo-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(91, 1, 97, 0.1);
  border: 2px solid var(--primary, #5b0161);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary, #5b0161);
  backdrop-filter: blur(4px);
}

.promo-close-btn:hover {
  background: var(--primary, #5b0161);
  color: white;
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent, #eed279);
}

.promo-popup-content {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.promo-image-side {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.promo-popup-container:hover .promo-image {
  transform: scale(1.05);
}

.promo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--accent, #eed279), #f7e3a8);
  color: var(--secondary, #14051d);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

.promo-text-side {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-tag {
  display: inline-block;
  background: rgba(91, 1, 97, 0.1);
  color: var(--primary, #5b0161);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  width: fit-content;
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: var(--secondary, #14051d);
  line-height: 1.3;
}

.promo-highlight {
  color: var(--primary, #5b0161);
  position: relative;
  display: inline-block;
}

.promo-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent, #eed279);
  opacity: 0.4;
  z-index: -1;
}

.promo-desc {
  color: var(--gray, #6c757d);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.promo-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.promo-features li {
  margin-bottom: 0.6rem;
  color: var(--dark-gray, #343a40);
  font-size: 0.9rem;
  font-weight: 500;
}

.promo-cta-btn {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--accent, #eed279);
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.promo-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(91, 1, 97, 0.3);
  background: linear-gradient(
    135deg,
    var(--secondary, #14051d),
    var(--primary, #5b0161)
  );
  color: white;
}

.promo-small {
  font-size: 0.7rem;
  color: var(--gray, #6c757d);
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .promo-popup-content {
    flex-direction: column;
  }

  .promo-image-side {
    height: 200px;
  }

  .promo-text-side {
    padding: 1.8rem;
  }

  .promo-title {
    font-size: 1.4rem;
  }

  .promo-cta-btn {
    width: 100%;
    text-align: center;
  }

  .promo-close-btn {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .promo-popup-container {
    width: 95%;
  }

  .promo-text-side {
    padding: 1.2rem;
  }

  .promo-title {
    font-size: 1.2rem;
  }

  .promo-features li {
    font-size: 0.8rem;
  }
}

/* ===== PREMIUM TESTIMONIAL SECTION ===== */
.testimonials-premium {
  padding: 4rem 0 5rem;
  background: linear-gradient(145deg, #ffffff 0%, #faf3ff 100%);
  position: relative;
}

.testimonials-premium .section-header {
  margin-bottom: 3rem;
}

.testimonial-luxury-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 350px;
}

.testimonial-luxury-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-luxury-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(238, 210, 121, 0.3);
  transform: scale(0.92);
  transition:
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.6s ease,
    visibility 0.6s;
}

.testimonial-luxury-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  position: relative;
  transform: scale(1);
  z-index: 5;
}

.testimonial-luxury-slide .quote-icon {
  font-size: 5rem;
  font-family: serif;
  color: var(--accent);
  line-height: 0.8;
  opacity: 0.25;
  position: absolute;
  top: 20px;
  right: 30px;
  font-weight: 400;
}

.testimonial-luxury-slide p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-gray);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 85%;
}

.testimonial-author-luxury {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-author-luxury img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  padding: 3px;
}

.testimonial-author-luxury h6 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--secondary);
}
.testimonial-author-luxury small {
  color: var(--gray);
  font-weight: 500;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.testimonial-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.testimonial-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: var(--gray);
  opacity: 0.4;
  transition: all 0.3s;
  cursor: pointer;
}
.testimonial-dot.active {
  width: 30px;
  background: var(--primary);
  opacity: 1;
}

/* ===== CHATBOT COMPONENT STYLES (Independent, no existing styles modified) ===== */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10001;
  font-family: "Inter", sans-serif;
}

/* Floating Button */
.chatbot-toggle-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
  border: 3px solid var(--accent, #eed279);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(91, 1, 97, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(91, 1, 97, 0.5);
}

.chatbot-icon-img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.chatbot-pulse {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpChat 0.3s ease;
  border: 1px solid rgba(238, 210, 121, 0.3);
}

.chatbot-window.open {
  display: flex;
}

@keyframes slideUpChat {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.chatbot-header {
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent, #eed279);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  padding: 8px;
  border: 2px solid var(--accent, #eed279);
}

.chatbot-header-info h4 {
  color: white;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.chatbot-header-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.75rem;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}

.chatbot-message {
  display: flex;
  animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message-content {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chatbot-message.user .chatbot-message-content {
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot .chatbot-message-content {
  background: white;
  color: var(--secondary, #14051d);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.chatbot-time {
  font-size: 0.7rem;
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

/* Input Area */
.chatbot-input-area {
  padding: 1rem;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.chatbot-input-area input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
  font-family: "Inter", sans-serif;
}

.chatbot-input-area input:focus {
  border-color: var(--primary, #5b0161);
  box-shadow: 0 0 0 3px rgba(91, 1, 97, 0.1);
}

.chatbot-input-area button {
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    var(--primary, #5b0161),
    var(--secondary, #14051d)
  );
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-family: "Inter", sans-serif;
}

.chatbot-input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(91, 1, 97, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }

  .chatbot-toggle-btn {
    width: 55px;
    height: 55px;
  }

  .chatbot-icon-img {
    width: 32px;
    height: 32px;
  }

  .chatbot-window {
    width: calc(100vw - 40px);
    height: 500px;
    right: 0;
    bottom: 70px;
  }
}

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--primary, #5b0161);
  border-radius: 10px;
}

/* Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary-dark) 100%
  );
  color: rgba(255, 255, 255, 0.8);
  padding-top: 5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--primary),
    var(--accent)
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.footer-col h5 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-col p {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.email-icon {
  width: 16px;
  height: 16px;
  background: var(--accent);
  display: inline-block;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-3px) rotate(360deg);
  border-color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.newsletter-form {
  position: relative;
  margin-top: 1rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent);
  color: var(--white);
  padding-right: 100px;
  border-radius: 50px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.newsletter-form .btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 2px solid rgba(238, 210, 121, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.copyright a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright a:hover {
  color: var(--white);
}

.footer-menu {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  padding-right: 1.5rem;
  border-right: 2px solid rgba(238, 210, 121, 0.3);
  line-height: 1;
}

.footer-menu a:last-child {
  padding-right: 0;
  border-right: none;
}

.footer-menu a:hover {
  color: var(--accent);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 40px;
  bottom: 100px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 99;
  transition: var(--transition);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-color: var(--white);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .header-text h1 {
    font-size: 2.8rem;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .nav-bar {
    margin: 0;
    padding: 0 1rem;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: block;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent);
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      visibility 0.4s;
    pointer-events: none;
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }

  .navbar-nav {
    flex-direction: column;
    margin: 0;
    gap: 0.8rem;
  }

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    background: rgba(91, 1, 97, 0.05);
    border-radius: 10px;
    margin-bottom: 0.25rem;
  }

  .sell-btn {
    margin: 1rem 0 0;
    display: block;
    text-align: center;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-text {
    order: 2;
    text-align: center;
  }

  .header-carousel-container {
    order: 1;
    margin-right: 0;
    margin-top: 0;
    right: 0;
    width: 100%;
  }
  .header-carousel-container .carousel {
    border-radius: 5px;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-inputs {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .header-text h1 {
    font-size: 2rem;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-luxury-slide {
    padding: 2rem;
  }
  .testimonial-luxury-slide p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-menu {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 20px;
    bottom: 80px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .carousel-nav-vertical {
    left: 10px;
  }

  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
