/* Base Styles */
:root {
  --primary-color: #333333;
  --secondary-color: #777777;
  --success-color: #008b20;
  --danger-color: #010d8f;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --icon-color: #222222;
  --border-color: #0011d4;
  --shadow: 0 60px 10px rgba(12, 0, 107, 0.674);
  --shadow-hover: 0 8px 16px rgba(0, 7, 103, 0.519);
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
}

/* Trending Projects Section */
.trending-projects {
  padding: 60px 0;
  background-color: var(--white);
}

#trending-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0; /* Removes phantom space */
}

#trending-container iframe {
  display: block; /* Removes inline element spacing */
  overflow: hidden; /* Prevents scrollbars */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--danger-color);
}

.section-title .projects-text {
  color: #333333;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.slider-container {
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

/* Property Card Styles (EXACTLY as your original) */
.property-card-container {
  min-width: calc(25% - 15px); /* 4 cards with gap */
  flex: 0 0 calc(25% - 15px);
  padding: 0 5px;
  box-sizing: border-box;
}

.property-card {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--border-color);
  margin-left: 5px;
  margin-right: 5px;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

.property-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin: 1px;
  border-radius: 1px;
  transition: height 0.3s ease;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  bottom: 10px;
  color: var(--white);
}

.rera-approved {
  background-color: var(--success-color);
  left: 10px;
}

.new-launch {
  background-color: var(--danger-color);
  right: 10px;
}

.property-details {
  padding: 15px;
  flex-grow: 1;
}

.property-header {
  margin-bottom: 15px;
}

.property-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.property-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.property-title a:hover {
  color: var(--danger-color);
}

.developer-name {
  font-size: 13px;
  color: var(--danger-color);
  font-weight: 600;
  margin: 0;
}

.property-features {
  margin-bottom: 15px;
}

.feature {
  font-size: 13px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.feature span {
  font-weight: 500;
}

.property-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.fa, .fas, .fa-solid {
  font-size: 13px;
  color: #0211bb;
  width: 15px;
  text-align: center;
}

.fa-indian-rupee-sign {
  font-size: 16px;
}

.property-cta {
  position: relative;
  top: -10px;
  text-align: right;
  padding: 0 15px 15px;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--danger-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.view-details-btn:hover {
  border-radius: 10px;
  width: 75px;
  background-color: #000fa3;
  transform: scale(1.1);
}

.view-details-btn .btn-text {
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
  margin-right: 0;
  white-space: nowrap;
}

.view-details-btn:hover .btn-text {
  opacity: 1;
  width: auto;
  margin-right: 8px;
}

.view-details-btn i {
  color: var(--white);
  transition: transform 0.3s ease;
}

.view-details-btn:hover i {
  transform: translateX(-2px);
}

/* Slider Buttons */
.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid #0012d4;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover .fa,
.slider-btn:hover .fas,
.slider-btn:hover .fa-solid {
  color: white !important;
  font-size: 18px; /* Increased from default */
}

.slider-btn:hover {
  background-color: var(--danger-color);
  color: var(--white);
  transform: scale(1.1);
}

/* View All Button */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: var(--danger-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 17, 212, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .property-card-container {
    min-width: calc(33.33% - 15px);
    flex: 0 0 calc(33.33% - 15px);
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 32px;
  }
  
  .property-card-container {
    min-width: calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
  }
  
  .slider-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 650px) {
  .trending-projects {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .property-card-container {
    min-width: calc(100% - 15px);
    flex: 0 0 calc(100% - 15px);
  }
  
  .slider-wrapper {
    gap: 10px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .property-card {
    margin-left: 3px;
    margin-right: 3px;
  }
}

@media (min-width: 520px) and (max-width: 650px) {
  .property-image-container {
    height: 250px; /* Increased height for this range */
  }
  
  .property-image {
    height: 100%; /* Ensure image fills container */
  }

  .property-cta {
    position: relative;
    top: -50px;
    text-align: right;
    padding: 0 15px 15px;
  }
}

@media (max-width: 520px) {
  .section-title {
    font-size: 24px;
  }
  
  .view-all-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}



.trending-projects {
  padding: 60px 0;
  background-color: var(--white);
}

#trending-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0; /* Removes phantom space */
}

#trending-container iframe {
  display: block; /* Removes inline element spacing */
  overflow: hidden; /* Prevents scrollbars */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--danger-color);
}

.section-title .projects-text {
  color: #333333;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.slider-container {
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

/* Property Card Styles (EXACTLY as your original) */
.property-card-container {
  min-width: calc(25% - 15px); /* 4 cards with gap */
  flex: 0 0 calc(25% - 15px);
  padding: 0 5px;
  box-sizing: border-box;
}

.property-card {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--border-color);
  margin-left: 5px;
  margin-right: 5px;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

.property-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin: 1px;
  border-radius: 1px;
  transition: height 0.3s ease;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  bottom: 10px;
  color: var(--white);
}

.rera-approved {
  background-color: var(--success-color);
  left: 10px;
}

.new-launch {
  background-color: var(--danger-color);
  right: 10px;
}

.property-details {
  padding: 15px;
  flex-grow: 1;
}

.property-header {
  margin-bottom: 15px;
}

.property-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.property-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.property-title a:hover {
  color: var(--danger-color);
}

.developer-name {
  font-size: 13px;
  color: var(--danger-color);
  font-weight: 600;
  margin: 0;
}

.property-features {
  margin-bottom: 15px;
}

.feature {
  font-size: 13px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.feature span {
  font-weight: 500;
}

.property-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.fa, .fas, .fa-solid {
  font-size: 13px;
  color: #0211bb;
  width: 15px;
  text-align: center;
}

.fa-indian-rupee-sign {
  font-size: 16px;
}

.property-cta {
  position: relative;
  top: -10px;
  text-align: right;
  padding: 0 15px 15px;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--danger-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.view-details-btn:hover {
  border-radius: 10px;
  width: 75px;
  background-color: #000fa3;
  transform: scale(1.1);
}

.view-details-btn .btn-text {
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
  margin-right: 0;
  white-space: nowrap;
}

.view-details-btn:hover .btn-text {
  opacity: 1;
  width: auto;
  margin-right: 8px;
}

.view-details-btn i {
  color: var(--white);
  transition: transform 0.3s ease;
}

.view-details-btn:hover i {
  transform: translateX(-2px);
}

/* Slider Buttons */
.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid #0012d4;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover .fa,
.slider-btn:hover .fas,
.slider-btn:hover .fa-solid {
  color: white !important;
  font-size: 18px; /* Increased from default */
}

.slider-btn:hover {
  background-color: var(--danger-color);
  color: var(--white);
  transform: scale(1.1);
}

/* View All Button */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: var(--danger-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 17, 212, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .property-card-container {
    min-width: calc(33.33% - 15px);
    flex: 0 0 calc(33.33% - 15px);
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 32px;
  }
  
  .property-card-container {
    min-width: calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
  }
  
  .slider-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 650px) {
  .trending-projects {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .property-card-container {
    min-width: calc(100% - 15px);
    flex: 0 0 calc(100% - 15px);
  }
  
  .slider-wrapper {
    gap: 10px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .property-card {
    margin-left: 3px;
    margin-right: 3px;
  }
}

@media (min-width: 520px) and (max-width: 650px) {
  .property-image-container {
    height: 250px; /* Increased height for this range */
  }
  
  .property-image {
    height: 100%; /* Ensure image fills container */
  }

  .property-cta {
    position: relative;
    top: -50px;
    text-align: right;
    padding: 0 15px 15px;
  }
}

@media (max-width: 520px) {
  .section-title {
    font-size: 24px;
  }
  
  .view-all-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* [Keep all existing CSS] */

/* Add these new styles */
@media (max-width: 600px) {
  .slider-wrapper {
      position: relative;
  }
  
  .view-all-container {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      margin-top: 20px;
  }
  
  .view-all-btn {
      position: relative;
      z-index: 1;
  }
  
  /* Position buttons on either side of View All */
  .slider-btn {
    position: absolute;
    top: 109%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    margin: 0;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
  }
  
  .prev-btn {
    left: 35px;
  }
  
  .next-btn {
    right: 35px;
  }
  
  /* Fix hover effect for mobile */
  .slider-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background-color: var(--danger-color) !important;
  }
  
  .slider-btn:hover .fa,
  .slider-btn:hover .fas,
  .slider-btn:hover .fa-solid {
    color: white !important;
    font-size: 18px !important;
  }
}