@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

.properties-intro {
    display: flex;
    height: 100vh;
    background-image: url('/static/exploreyouridealspace.webp');
    background-size: cover;
    background-position: center;
    position: relative;
  }


  .properties-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) to control brightness */
    z-index: 1;
  }
  .intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    color: #fff;
  }

  .intro-content, .intro-image {
    position: relative;
    z-index: 2;
  }
  



  
  .animated-title {
    font-size: 4rem;
    font-family: 'Playfair Display', sans-serif;
  }
  
  .animated-title span {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s forwards;
  }
  
  .animated-title span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .animated-title span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .intro-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  .intro-image {
    flex: 1;
    position: relative;
    overflow: hidden;
  }
  
  .image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
  }
  
  .floating-image {
    position: absolute;
    width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  
  .floating-image:nth-child(1) {
    top: 0;
    left: 0;
    animation: float 6s ease-in-out infinite;
  }
  
  .floating-image:nth-child(2) {
    top: 30%;
    right: 0;
    animation: float 7s ease-in-out infinite;
  }
  
  .floating-image:nth-child(3) {
    bottom: 0;
    left: 20%;
    animation: float 8s ease-in-out infinite;
  }
  
  @keyframes float {
    0% {
      transform: translatey(0px);
    }
    50% {
      transform: translatey(-20px);
    }
    100% {
      transform: translatey(0px);
    }
  }
  
  .property-listings {
    padding: 4rem 2rem;
  }
  
  .property-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .filter-btn.active {
    background-color: #1b3e5d;
    color: #fff;
  }
  
  .property-listings {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
  }
  
  .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
  }
  
  .property-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
  }
  
  .property-card:not(.sold):hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  }
  
  .property-info {
    padding: 1.5rem;
    text-align: center;
  }
  
  .property-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1b3e5d;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif; /* Consider using an elegant serif font */
  }
  
  
  .property-price  { 
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  
  .property-size {
    font-size: 1rem;
    color: #666;
  }

  .sold {
    opacity: 0.7;
    pointer-events: none;
  }

  .property-card[data-status="sold"] .property-price{
    text-decoration-line: line-through; 
    color: #999;
    margin-right: 0.5rem;
  }
  
  .sold-label {
    display: inline-block;
    background-color: #a4b4df;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
  }
  
  
  /* Pop-up Styles */
  .property-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
  }
  
  .popup-content.active {
    opacity: 1;
    transform: scale(1);
  }
  
  .close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #1b3e5d;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close-popup:hover {
    color: #afc4dc;
  }
  
  .plan-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .plan-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
  }
  
  .plan-image:hover {
    transform: scale(1.05);
  }
  
  @media (max-width: 768px) {
    .property-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .popup-content {
      width: 95%;
      margin: 10% auto;
    }
  }

  @media (max-width: 1024px) {
    .property-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
  @media (max-width: 768px) {
    .properties-intro {
      flex-direction: column;
      height: auto;
      min-height: 100vh;
    }
  
    .intro-content {
      padding: 2rem 1rem;
    }
  
    .animated-title {
      font-size: 6rem; /* Increased from 2rem */
    }
  
    .intro-description {
      font-size: 1rem;
    }
  
    .intro-image {
      height: 50vh;
    }
  
   
  
    .floating-image {
     display: none;
    }
  

  }
  
  @media (max-width: 480px) {
    .animated-title {
      font-size: 6rem; /* Increased from 2rem */
    }
  
    .floating-image {
      display:none;
      width: 80%;
      max-width: 250px;
    }
  

  }

  .details-button {
    display: inline-flex;
    align-items: center;
    background-color: #1b3e5d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
  }
  
  .details-button i {
    margin-right: 10px;
  }
  
  .details-button:hover {
    background-color: #2c5e8d;
  }
  .details-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem; /* Adjust as needed to create space between button and property grid */
  }
  
