/* ====== Global Styles ====== */
:root {
  --primary: #2c3e50;
  --secondary: #009bef;
  --accent: #3498db;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --success: #27ae60;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 4rem 0;
}

h1, h2, h3, h4 {
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.875rem;
  background-color: var(--accent);
  color: white;
  border-radius: 0.3125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--accent);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.875rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--accent);
  bottom: -0.625rem;
  left: 0;
}

/* ====== Header & Navigation ====== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.875rem;
}

nav ul li a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  bottom: -0.3125rem;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ====== Gift Banner ====== */
.gift-banner {
  background-color: var(--secondary);
  color: white;
  padding: 0.9375rem 0;
  text-align: center;
  position: sticky;
  top: 5rem;
  z-index: 999;
}

.gift-banner p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.gift-banner span {
  font-weight: 700;
  text-decoration: underline;
}

/* ====== Hero Section ====== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 5rem;
}

.hero-content {
  max-width: 37.5rem;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.875rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider img.active {
  opacity: 1;
}

/* ====== Categories Section ====== */
.categories {
  background-color: var(--light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 1.875rem;
  margin-top: 2.5rem;
}

.category-card {
  background-color: white;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.category-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-card:nth-child(1) { animation-delay: 0.2s; }
.category-card:nth-child(2) { animation-delay: 0.4s; }
.category-card:nth-child(3) { animation-delay: 0.6s; }
.category-card:nth-child(4) { animation-delay: 0.8s; }

.category-img {
  height: 12.5rem;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.1);
}

.category-content {
  padding: 1.25rem;
}

.category-content h3 {
  margin-bottom: 0.625rem;
  color: var(--primary);
}

.category-content p {
  margin-bottom: 1.25rem;
  color: #666;
}

/* ====== Featured Listings ====== */
.featured-listings .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.view-all {
  font-size: 1rem;
  font-weight: 600;
}

.listings-grid {
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.875rem;
  margin-top: 2.5rem;
  margin: 0 auto;
  padding: 0 15px;
}

.listing-card {
  background-color: white;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.listing-badge {
  position: absolute;
  top: 0.9375rem;
  right: 0.9375rem;
  background-color: var(--secondary);
  color: white;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.3125rem;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.listing-img {
  height: 12.5rem;
  overflow: hidden;
  position: relative;
}

.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-img img {
  transform: scale(1.1);
}

.listing-content {
  padding: 1.25rem;
}

.listing-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.625rem;
}

.listing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.625rem;
}

.listing-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9375rem;
  color: #666;
  font-size: 0.9rem;
}

.listing-details span {
  display: flex;
  align-items: center;
}

.listing-details i {
  margin-right: 0.3125rem;
  color: var(--accent);
  width: 1rem;
  text-align: center;
}

/* ====== Testimonials ====== */
.testimonials {
  background-color: var(--light);
}

.testimonial-card {
  background-color: white;
  border-radius: 0.625rem;
  padding: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 37.5rem;
  margin: 0 auto;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 0.625rem;
  left: 1.25rem;
}

.testimonial-content {
  margin-bottom: 1.25rem;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.9375rem;
}

.author-info h4 {
  margin-bottom: 0.3125rem;
  font-size: 1.1rem;
}

.author-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.testimonial-rating {
  color: #f1c40f;
  margin-top: 0.3125rem;
}

/* ====== Property Page Styles ====== */
.property-header {
  background-color: var(--light);
  padding: 6.25rem 0 3.125rem;
}

.property-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin: 3.125rem 0;
}

.property-gallery {
  margin-bottom: 2.5rem;
}

.gallery-main {
  height: 31.25rem;
  margin-bottom: 0.625rem;
  overflow: hidden;
  border-radius: 0.625rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}

.gallery-thumb {
  height: 5rem;
  overflow: hidden;
  border-radius: 0.3125rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gallery-thumb:hover, 
.gallery-thumb.active {
  opacity: 1;
  border: 2px solid var(--accent);
}

.property-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9375rem;
  margin-bottom: 1.875rem;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.meta-item i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 0.625rem;
  width: 1.875rem;
}

.property-description {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9375rem;
  margin-bottom: 1.875rem;
}

.feature-item {
  display: flex;
  align-items: center;
}

.feature-item i {
  color: var(--success);
  margin-right: 0.625rem;
}

.property-map {
  height: 25rem;
  margin-bottom: 2.5rem;
  border-radius: 0.625rem;
  overflow: hidden;
}

/* ====== Filter Sidebar ====== */
.filter-sidebar {
  background-color: white;
  border-radius: 0.625rem;
  padding: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.875rem;
}

.filter-group {
  margin-bottom: 1.5625rem;
}

.filter-group h4 {
  font-size: 1.1rem;
  margin-bottom: 0.9375rem;
  color: var(--primary);
}

.price-range {
  width: 100%;
  margin-bottom: 0.9375rem;
}

.price-inputs {
  display: flex;
  justify-content: space-between;
  gap: 0.625rem;
}

.price-inputs input {
  width: 48%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.3125rem;
  font-family: var(--font-main);
}

.filter-checkboxes {
  list-style: none;
}

.filter-checkboxes li {
  margin-bottom: 0.625rem;
}

.filter-checkboxes label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-checkboxes input {
  margin-right: 0.625rem;
}

/* ====== Agent Card ====== */
.agent-card {
  background-color: white;
  border-radius: 0.625rem;
  padding: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.875rem;
}

.agent-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.agent-img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.25rem;
}

.agent-contact {
  list-style: none;
  margin-bottom: 1.25rem;
}

.agent-contact li {
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
}

.agent-contact i {
  margin-right: 0.625rem;
  color: var(--accent);
  width: 1.25rem;
}

/* ====== Contact Form ====== */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  margin-bottom: 0.9375rem;
  border: 1px solid #ddd;
  border-radius: 0.3125rem;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.contact-form textarea {
  height: 7.5rem;
  resize: vertical;
}

/* ====== Pagination ====== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3.125rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.3125rem;
  border-radius: 0.3125rem;
  background-color: white;
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--accent);
  color: white;
}

/* ====== Contact Page ====== */
.contact-header {
  background-color: var(--light);
  padding: 6.25rem 0 3.125rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2.5rem;
  margin: 3.125rem 0;
}

.contact-info {
  background-color: white;
  border-radius: 0.625rem;
  padding: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
  list-style: none;
  margin-bottom: 1.875rem;
}

.contact-details li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
}

.contact-details i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 0.9375rem;
  margin-top: 0.1875rem;
}

.social-links {
  display: flex;
  gap: 0.9375rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: var(--light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-0.3125rem);
}

.contact-map {
  height: 25rem;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-top: 2.5rem;
}

/* ====== Footer ====== */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3.75rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.625rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  width: 3.125rem;
  height: 2px;
  background-color: var(--accent);
  bottom: 0;
  left: 0;
}

.footer-col p {
  margin-bottom: 0.9375rem;
  color: #bbb;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #bbb;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(0.3125rem);
}

.footer-links i {
  margin-right: 0.625rem;
  width: 1.25rem;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* ====== WhatsApp Button ====== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.875rem;
  right: 1.875rem;
  background-color: #25D366;
  color: white;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Responsive Styles ====== */
@media (max-width: 75rem) { /* 1200px */
  .property-main {
    grid-template-columns: 1fr;
  }
  
  .property-sidebar {
    position: static;
    margin-top: 3.125rem;
  }
}

@media (max-width: 62rem) { /* 992px */
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 48rem) { /* 768px */
  .header-inner {
    padding: 0.9375rem 0;
  }
  
  nav {
    position: fixed;
    top: 5rem;
    left: -100%;
    width: 80%;
    height: calc(100vh - 5rem);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1.875rem;
  }
  
  nav ul li {
    margin: 0 0 1.25rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    margin-top: 4.375rem;
    height: auto;
    padding: 6.25rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 0.625rem;
  }
  
  .gift-banner {
    top: 4.375rem;
  }
  
  .features-grid,
  .property-meta {
    grid-template-columns: 1fr;
  }
  
  .blog-single-img {
    height: 18.75rem;
  }
}

@media (max-width: 36rem) { /* 576px */
  .container {
    width: 95%;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}