:root {
  --primary-color: #0c2d48; /* Deep Navy Blue */
  --secondary-color: #b18f55; /* Premium Gold */
  --accent-color: #d4af37; /* Metallic Gold */
  --dark-color: #141414;
  --light-color: #f4f6f8;
  --font-heading: "Playfair Display", "Times New Roman", serif; /* More premium font for headings */
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-color);
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--dark-color);
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand img {
  height: 40px;
}
.nav-link {
  font-weight: 500;
  color: #444 !important;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Slider */
.hero-slider .carousel-item {
  height: 60vh;
  background-color: #000;
}
.hero-slider img {
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
}
.hero-caption h1 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-caption p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Box (Overlay on Hero) */
.search-box-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.search-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section-padding {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
  /* Ensure container is centered and allows flex items to expand if needed, 
     but for h2 we want it to be centered. */
  display: flex;
  justify-content: center;
}
.section-title h2 {
  position: relative;
  display: flex; /* Flex to align lines */
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between line and text */
  width: 100%;
  max-width: 800px; /* Limit width */
  margin: 0 auto;
  
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  padding-bottom: 0; /* Remove previous padding for bottom line */
}
/* Left and Right Lines */
.section-title h2::before,
.section-title h2::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color)); /* Fade in effect */
  flex-grow: 1; /* Stretch to fill space */
  border-radius: 2px;
  opacity: 0.7;
}
.section-title h2::after {
   background: linear-gradient(90deg, var(--secondary-color), transparent);
}

/* Animation for the Lines */
.section-title h2::before,
.section-title h2::after {
    animation: growLine 1.5s ease-out forwards;
    max-width: 0; /* Start width */
}

@keyframes growLine {
    to {
        max-width: 200px; /* Max line length */
    }
}

/* Remove old bottom line */
/* .section-title h2::after { ... } overridden above */

/* Cards */
.property-card {
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  height: 100%;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.property-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.property-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.property-card:hover .property-img-wrapper img {
  transform: scale(1.1);
}
.badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.property-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
}
.property-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

/* Category Box */
.category-box {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}
.category-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category-box:hover img {
  transform: scale(1.1);
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-overlay h3 {
  color: white;
  font-weight: 700;
  border: 2px solid white;
  padding: 10px 30px;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #bbb;
  padding-top: 60px;
}
footer h5 {
  color: white;
  margin-bottom: 20px;
}
footer a {
  color: #bbb;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: 0.3s;
}
footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.social-links a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.2rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: 0.3s;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
}
/* Reference Style Card */
.ref-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: white;
  transition: box-shadow 0.3s ease;
}
.ref-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.ref-card .card-img-top {
  height: 220px;
  object-fit: cover;
  position: relative;
}
.ref-card .badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 5px;
}
.ref-img-overlay {
  position: relative;
}
.ref-like-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ref-content {
  padding: 15px;
}
.ref-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-price-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.ref-btn-outline {
  border: 1px solid #ddd;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #555;
  background: #f9f9f9;
  border-radius: 4px;
}
.ref-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.ref-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ref-location {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
}
.ref-tags {
  font-size: 0.75rem;
  color: #999;
}

/* Premium Property Detail Styles */
.prop-header {
  margin-bottom: 25px;
}
.prop-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
}
.prop-address {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 15px;
}
.prop-price-tag {
  display: inline-block;
  background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  padding: 12px 35px;
  border-radius: 8px; /* Slightly squared for professional look */
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.prop-price-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}
.prop-price-sub {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: #888;
  margin-top: 5px;
}
.overview-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}
.overview-item {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  height: 100%;
  border: 1px solid #eee;
  transition: transform 0.2s;
}
.overview-item:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: var(--primary-color);
}
.overview-icon {
  width: 45px;
  height: 45px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.overview-text h6 {
  margin: 0 0 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}
.overview-text strong {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 700;
}

/* --- New Animations & Premium Look (User Request) --- */

/* Hero Slider Enhancements */
.hero-slider .carousel-item img {
    animation: zoomEffect 20s linear infinite;
}
@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Card Hover Effects */
.property-card, .ref-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}
.property-card:hover, .ref-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Category Box Hover */
.category-box {
    overflow: hidden;
    border-radius: 15px; /* Softer edges */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-box img {
    transition: transform 0.6s ease;
}
.category-box:hover img {
    transform: scale(1.15) rotate(1deg);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a4b7c);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(12, 45, 72, 0.3);
    transition: all 0.3s ease;
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(177, 143, 85, 0.4);
    color: #fff;
}
/* Section Titles */
.section-title h2 {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* Gradient Backgrounds for Sections */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* AOS Offset & Customization */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Responsive Polish (Mobile Tab & Desktop) --- */

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .section-title h2 {
        font-size: 2rem; /* Slightly smaller headings */
    }
    .hero-caption h1 {
        font-size: 2.2rem;
    }
    .navbar-nav .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }
    .ref-btn-outline {
        font-size: 0.75rem; /* Smaller button text to fit */
        padding: 4px 6px;
    }
    .property-price {
        font-size: 1.1rem;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
    .hero-caption h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .search-box {
        padding: 20px;
    }
    .carousel-control-prev, .carousel-control-next {
        width: 10%; /* Larger touch area */
    }
    .navbar-brand img {
        height: 35px;
    }
    footer {
        text-align: center;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}
