/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px; /* Adjust as needed */
  min-height: 140px; /* Ensure header has minimum height */

}
.header img {
  max-width: 100%;
  max-height: 130px; /* Prevent logos from becoming too tall */
  object-fit: contain;
}

.header .left-image{
  max-height: 110px; /* Prevent logos from becoming too tall */
  left: 5px;
  position: absolute;
}
.header .right-image {
  right: 0;
  position: absolute;
  max-height: 200px;
}

@media (max-width:900px) {
  .header img {
    max-width: 100%;
    max-height: 100px;
    /* Better constraints for rectangular logos */
    max-height: 80px; /* Prevent logos from becoming too tall */
    object-fit: contain;
    width: auto;
  }
}
@media (max-width:480px) {
  .header img {
    max-width: 200px;
    max-height: 80px;
    /* Better constraints for rectangular logos */
    max-height: 80px; /* Prevent logos from becoming too tall */
    object-fit: contain;
    width: auto;
  }
}

.left-image,
.right-image {
  max-width: 50%;
}
.right-image{
  position: absolute;
    right: 0;
    max-height: 180px;
}


@media (min-width: 1000px) {
  .left-image,
.right-image {
  height: 300px;
  max-width: 50%;
}
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Main Property Image */
.main-property-image {
  position: relative;
  width: 100%;
}

.main-property-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 800px;
  object-fit: cover;
}
.info-bar {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 900px;
  width: 100%;
  padding: 30px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* optional shadow */
}


@media (max-width: 768px) {
  .info-bar {
    position: relative;
    border-radius: 0;
    width: 100%;
    padding: 15px;
    gap: 10px;
  }
}

.info {
  text-align: center;
}

.info h2 {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
}

.info p {
  margin: 0;
  font-size: clamp(18px, 2vw, 14px);
}

/* Logo Section */
.logo-section {
  padding: 100px 20px;
  text-align: center;
}

.logo-section img {
  max-width: 100%;
  height: 360px;
}

/* Introduction Section */
.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 30px;
  flex-wrap: wrap;
  background-color: #f9f9fb;
}

.intro-image {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.intro-image img {
  height: auto;
  border-radius: 25px;
  max-width: 80%;
  height: auto;
  width: clamp(60px, 10vw, 120px);
  object-fit: contain;
  }


.intro-content {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}



/* Project Name Section */
.project-name {
  padding: 20px;
}

@media (min-width: 1024px) {
  .project-name {
    padding: 20px 100px;
  }
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.project-codes {
  flex: 1;
  min-width: 280px;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
}

.project-image {
  flex: 1;
  min-width: 280px;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #d7d7d7;
  border-radius: 10px;
}


.info-badge i {
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}


/* Building Images */
.building-images {
  padding: 20px;
}
@media (min-width:1100px) {
  .building-images{
    padding: 40px 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

.building-images .swiper {
  width: 100%;
  height: auto;
}

@media (max-width:700px) {
  .building-images .swiper {
    width: 100%;
    height: 350px;
  }
}

.building-images img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  max-height: 800px;
  object-fit: cover;
  max-height: 85vh;
}


/* Property Features */
.property-features {
  padding: 20px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
}

@media (min-width: 1024px) {
  .property-features {
    padding: 20px 90px;
  }
}

.feature-Indoor,.feature-Utilities,.feature-Climate,.feature-Outdoor,.feature-Services,.feature-Insurances {
  margin-bottom: 2rem;
}
.feature-tables h4 {
  margin-bottom: 2rem;
  margin-top: 10px;
}
.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.table-item {
  background: #f9f9f9;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
}

.item-image img {
  max-width: 100px;
  height: auto;
}


.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 10px;

}
/* Gallery */


/* Inline the cards */


.unit-slider {
  width: 100%;
  height: auto;
  position: relative;
}

.unit-slider img {
  width: 100%;
  height: auto;
}

.swiperunit-button-prev,
.swiperunit-button-next {
  color: #333;
}


.gallery > .unit-card {
  margin: 0rem;
  max-width: 340px;
  height: 480px;
}


/* Container becomes flex */
.Units{
  padding: 1rem 100px;
}
@media (min-width: 1024px) {
  .Units {
    padding: 1rem 100px;
  }
}

.gallery {
  display: grid;
  justify-content: start;
  gap: 1rem;
  padding: 0 40px;
}

@media (min-width:1500px) {
  .gallery{
  grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width:1500px) {
  .gallery{
    grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width:1200px) {
  .Units{
    padding: 10px;
  }
  .gallery{
    grid-template-columns: repeat(2, 1fr);
    }

}
@media (max-width:780px) {
  .Units .gallery{
    padding: 0 20%;
    }
}

@media (max-width:500px) {
  .Units .gallery{
    padding: 0 0;
    }
}

.unit-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.unit-header,
.unit-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;

}

.unit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.5rem 0.5rem 1rem 1rem;
}

.unit-details .divider {
  color: #ccc;
}

.details-link {
  text-decoration: none;
  color: #007bff;
}

.details-link:hover {
  text-decoration: underline;
}





.partnership {
  padding: 20px;
  background-color: #706E6E47;
}

.partnership .feature-table{
  margin: 5rem 0;
}


.partnership img {
  height: 80px;
  width: 80px;
}


@media (min-width: 1517px) {
  .partnership .feature-table {
    padding: 0px 90px;
  }
  .partnership{
    padding: 20px 100px;
  }
}




/* Responsive Design */
@media (max-width: 1024px) {
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-footer{
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .table-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .project-content {
    flex-direction: column;
  }

  .project-image {
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .info-bar {
    flex-direction: column;
    align-items: center;
  }
  .table-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .project-footer {
    flex-direction: column;
  }
  .logo-section img{
    width: 300px;
    height: auto;
  }
}




.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 50px;
  flex-wrap: wrap; /* Makes it responsive */
  background-color: #f9f9fb;
}

.intro-image img {
  max-width: 500px;
  width: 80%;
  border-radius: 12px;
}


.section-title {
  text-align: start;
  margin-bottom: 20px;
  font-size: xx-large;
}

.intro-text {
  font-size: 26px;
  margin-bottom: 30px;
}

@media (max-width:800px) {
  .intro-text{
    font-size: 20px;

  }
}

/* Brand Logo Grid Styles */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 10px;
  margin-bottom: 20px;
}

.logo-item {
  width: 60px;
  height: 60px;
  background: #eee; /* Placeholder */
  border-radius: 8px;
}

/* Brand Name Styling */
.brand-name {
  font-size: 20px;
  display: flex;
  justify-content: space-between;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 22px;
}

.english-text {
  font-weight: bold;
  font-size: 22px;
}

/* Location Map Styles */
.location-map {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 5px;
  background: white;
  overflow: hidden;
}

.map-image-container {
  display: block;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 1050px; /* Adjust based on your needs */
  margin: 0 auto;
}

.map-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.square-image {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 90vh;
}

.map-footer {
  padding: 0 15px 20px;
}

.map-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f1f1;
}



.location-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
}

.location-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 18px;
}

@media (max-width: 768px) {
  .location-map {
    gap: 20px;
    padding: 20px;
    margin: 20px auto;
  }
  
  .map-image-container {
    max-width: 100%;
  }
  
  .location-feature-list {
    grid-template-columns: 1fr;
  }
  
  .map-title {
    font-size: 20px;
  }
  .slogan{
    font-size: 30px;
  }
}

.slogan{
  font-size: 37px;
}
