/* CSS Variables for Dashboard Customization */
:root {
  /* Primary Colors */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #ffffff;
  --text-color: #333333;
  
  /* Additional Colors */
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #495057;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Typography */
  --font-family-primary: 'Inter', sans-serif;
  --font-family-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-standard: 10px; /* Standard border radius for consistency */
  
  /* Shadows */
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 8px var(--shadow-color);
  --shadow-lg: 0 8px 16px var(--shadow-color);
  --shadow-xl: 0 12px 24px var(--shadow-color);
  
  /* Title Styling */
  --title-font-size-desktop: 2rem;
  --title-font-size-tablet: 1.75rem;
  --title-font-size-mobile: 1.5rem;
  --title-margin-bottom: 1.5rem;
  --title-line-height: 1.3;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Lazy Loading Styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
  opacity: 1;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Loading placeholder */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



.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: 600px;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.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;
    visibility: visible !important;
    display: flex !important;
    z-index: 100;
  }
}

.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 {
  text-align: center;
}

.logo-section img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 70px;
}

/* Introduction Section */
.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 30px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--background-color) 0%, var(--light-gray) 100%);
}

.intro-image {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.intro-image img {
  height: auto;
  border-radius: 24px;
  max-width: 80%;
  height: auto;
  width: clamp(60px, 10vw, 120px);
  object-fit: contain;
  }


.intro-content {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}





@media (min-width: 1024px) {
  .project-overlay .project-name {
    padding: 20px 40px;
  }
}

@media (min-width: 1400px) {
  .project-overlay .project-name {
    padding: 20px 60px;
  }
}

/* Brand Article Section */
.brand-article {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .brand-article {
    padding: 20px 40px;
  }
}

@media (min-width: 1400px) {
  .brand-article {
    padding: 20px 60px;
  }
}

.brand-article-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 15px;
}

.brand-article-left,
.brand-article-right {
  flex: 1;
  min-width: 280px;
}

.brand-article-image {
  flex: 1;
  min-width: 280px;
}

.brand-article-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.brand-article-description {
  flex: 1;
  min-width: 280px;
  line-height: 1.4;
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 15px;
}

.project-codes {
  flex: 1;
  min-width: 280px;
  line-height: 1.4;
}

.project-image {
  flex: 1;
  min-width: 280px;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.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;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width:1100px) {
  .building-images{
    padding: 40px 40px;
  }
}

@media (min-width: 1400px) {
  .building-images{
    padding: 40px 60px;
  }
}

.building-images .swiper {
  width: 100%;
  height: auto;
}

@media (max-width:700px) {
  .building-images .swiper {
    width: 100%;
    height: 250px;
  }
}

.building-images img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  max-height: 600px;
  object-fit: cover;
  max-height: 70vh;
}


/* Property Features */
.property-features {
  padding: 20px;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--background-color) 100%);
  border-bottom: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .property-features {
    padding: 20px 40px;
  }
}

@media (min-width: 1400px) {
  .property-features {
    padding: 20px 60px;
  }
}

.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(200px, 250px));
  gap: 1.5rem;
  justify-content: center;
}

.table-item {
  background: #f9f9f9;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
}

.item-image img {
  max-width: 100px;
  height: auto;
}

/* Partner Section Specific Styles */
.partnership .table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  gap: 1.5rem;
  justify-content: center;
  padding: 0 1rem;
  margin: 0 auto;
}

.partner-item {
  background: #f9f9f9;
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  height: 80px;
  width: 100%;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  text-align: center;
}


.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 60px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .Units {
    padding: 1rem 40px;
  }
}

@media (min-width: 1400px) {
  .Units {
    padding: 1rem 60px;
  }
}

.gallery {
  display: grid;
  justify-content: start;
  gap: 1rem;
  padding: 10px 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;
  }

}
@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: var(--border-radius-standard);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.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 60px;
  background: linear-gradient(135deg, var(--background-color) 0%, var(--medium-gray)10 100%);
  margin: 0 auto;
}

.partnership .section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.partnership .feature-table{
  margin: 5rem 0;
  max-width: 1400px;
}


.partnership img {
  height: 80px;
}


@media (min-width: 1024px) {
  .partnership {
    padding: 20px 40px;
  }
}

@media (min-width: 1400px) {
  .partnership {
    padding: 20px 60px;
  }
}

@media (min-width: 1517px) {
  .partnership .feature-table {
    padding: 0px 40px;
  }
}




/* Responsive Design */
@media (max-width: 1024px) {
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  
  /* iPad specific fixes */
  .gallery {
    gap: 15px; /* Reduced spacing between unit cards */
  }
  
  .unit-card {
    margin-bottom: 15px; /* Reduced bottom margin */
  }
}

@media (max-width: 768px) {
  .table-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partnership .section-title {
    font-size: 2rem;
  }
  
  .partnership .table-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .partner-item {
    min-height: 120px;
    padding: 1rem 0.75rem;
  }
  
  .partner-logo {
    height: 60px;
    margin-bottom: 0.5rem;
  }
  
  .partner-logo img {
    max-height: 60px;
  }
  
  .partner-name {
    font-size: 0.8rem;
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .project-content {
    flex-direction: column;
  }

  .project-left,
  .project-right {
    width: 100%;
  }

  .project-image {
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
  }

  .brand-article-left,
  .brand-article-right {
    width: 100%;
  }

  .brand-article-image {
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .info-bar {
    align-items: center;
  }
  .table-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partnership .section-title {
    font-size: 1.75rem;
  }
  
  .partnership .table-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  
  .partner-item {
    min-height: 100px;
    padding: 0.75rem 0.5rem;
  }
  
  .partner-logo {
    height: 50px;
    margin-bottom: 0.4rem;
  }
  
  .partner-logo img {
    max-height: 50px;
  }
  
  .partner-name {
    font-size: 0.75rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

}




.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 50px;
  flex-wrap: wrap; /* Makes it responsive */
  background: linear-gradient(135deg, var(--background-color) 0%, var(--light-gray) 100%);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .introduction {
    padding: 60px 40px;
  }
}

@media (min-width: 1400px) {
  .introduction {
    padding: 60px 60px;
  }
}

.intro-image img {
  max-width: 500px;
  width: 80%;
  border-radius: var(--border-radius-standard);
  object-fit: cover;
}


.section-title {
  text-align: left;
  margin-bottom: var(--title-margin-bottom);
  font-size: var(--title-font-size-desktop);
  line-height: var(--title-line-height);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.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: 24px;
  background: white;
  overflow: hidden;
}

.map-image-container {
  display: block;
  position: relative;
  border-radius: 24px;
  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: 75vh;
}

.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;
  padding: 0;
  margin: 0;
}

.location-feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
}



@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;
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { 
    opacity: 0;
    transform: translateX(-50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0;
    transform: translateX(50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- MOBILE RESPONSIVENESS PATCH --- */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 80px;
    padding: 10px 5px;
  }
  .logo-section {
    text-align: left;
  }
  .main-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    z-index: 100;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 60px;
    padding: 8px 2px;
  }
  .main-logo {
    max-width: 120px;
    height: auto;
  }
  .logo-section img {
    max-width: 120px;
    height: auto;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    z-index: 100;
  }
  .unit-card {
    max-width: 98vw;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius-standard);
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 0 2vw;
  }
  .section-title {
    font-size: var(--title-font-size-tablet);
    margin-bottom: 15px;
    text-align: left;
  }
  .intro-text {
    font-size: 18px;
  }
  .intro-image img {
    max-width: 90vw;
    width: 100%;
    border-radius: var(--border-radius-standard);
  }
  /* Integration section mobile fix */
  .partnership {
    padding: 15px;
  }
  .partnership .feature-table {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 50px;
    padding: 4px 1px;
  }
  .main-logo {
    max-width: 90px;
    height: auto;
  }
  .logo-section img {
    max-width: 90px;
    height: auto;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    z-index: 100;
  }
  .unit-card {
    max-width: 99vw;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--border-radius-standard);
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 0 1vw;
  }
  .section-title {
    font-size: var(--title-font-size-mobile);
    margin-bottom: 12px;
    text-align: left;
  }
  .intro-text {
    font-size: 16px;
  }
  .intro-image img {
    max-width: 98vw;
    width: 100%;
    border-radius: var(--border-radius-standard);
  }
  .brand-name {
    font-size: 16px;
  }
  /* Integration section mobile fix */
  .partnership {
    padding: 10px;
  }
  .partnership .feature-table {
    margin: 1.5rem 0;
  }
}
