/* =============================================
   PAGES SPECIFIC STYLES
   ============================================ */

/* =============================================
   PAGE HEADER
   ============================================ */
.page-header { 
  padding: 150px 2rem 100px; 
  background-image: url("/src/public/assets/images/bgheader.jpg"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: var(--border); 
  margin-top: 79px; 
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
      padding: var(--spacing-xl) 0;
    }
    
    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 3rem;
      margin-top: 2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
      padding: 3rem;
      border: var(--border);
      background: var(--white);
    }
    
    .contact-info-card h2,
    .contact-form-card h2 {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 400;
      margin-bottom: 1.5rem;
      letter-spacing: 1px;
    }
.submit-btn  {
      background: var(--primary-color);
      color: var(--white);
      padding: 0.9rem 2.5rem;
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      cursor: pointer;
      transition: background var(--transition);
    }  
    .contact-info-card > p {
      color: var(--gray);
      line-height: 1.8;
      margin-bottom: 2rem;
    }
    
    .contact-details {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    
    .contact-item {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
    }
    
    .contact-icon {
      font-size: 2rem;
      opacity: 0.8;
    }
    
    .contact-item h4 {
      font-size: 1.1rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
      letter-spacing: 0.5px;
    }
    
    .contact-item p {
      color: var(--gray);
      font-size: 0.95rem;
    }
    
    .map-link {
      display: inline-block;
      margin-top: 0.5rem;
      color: var(--secondary-color);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color var(--transition);
    }
    
    .map-link:hover {
      color: var(--primary-color);
    }
    
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      padding: 0.9rem;
      border: var(--border);
      background: var(--off-white);
      font-size: 1rem;
      font-family: var(--font-primary);
      color: var(--primary-color);
      transition: all var(--transition);
    }
    
    .contact-form select:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--secondary-color);
      background: var(--white);
    }
    
    .contact-form textarea {
      resize: vertical;
      min-height: 100px;
    }
    
    .map-section {
      padding: var(--spacing-xl) 0;
      background: var(--light-gray);
    }
    
    .map-section h2 {
      font-family: var(--font-serif);
      font-size: 2.5rem;
      font-weight: 400;
      text-align: center;
      margin-bottom: 3rem;
      letter-spacing: 2px;
    }
    
    .map-container {
      border: var(--border);
      overflow: hidden;
    }
    
    @media (max-width: 768px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }
      
      .contact-info-card,
      .contact-form-card {
        padding: 2rem;
      }
    }

/* =============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding-bottom: var(--spacing-xl);
}

.map-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-size: 2.5rem;
}

.map-container {
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl) auto;
    text-align: center;
}

.about-intro h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: var(--spacing-xl);
}

.mission-vision h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.mission-vision p {
    line-height: 1.7;
    color: var(--gray);
}

.reasons-section {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reason-card h4 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.reason-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* SERVICES */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background-color 0.3s;
}

.service-item:hover {
    background-color: var(--light-gray);
}

.service-number {
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--secondary-color);
    font-weight: 300;
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-item p {
    color: var(--gray);
    flex-grow: 1;
}

/* =============================================
   LEGAL PAGE
   ============================================ */
.legal-services-section {
  padding: var(--spacing-xl) 0;
}

.legal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-left: 20px;
  margin-right: 20px; 
}

.legal-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border-top: 5px solid black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.legal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.legal-icon {
  width: 100%;
  height: 180px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  
}

.legal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.legal-card:hover .legal-icon img {
  transform: scale(1.08);
}
.legal-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-card:hover .legal-icon::after {
  opacity: 1;
}
.legal-card h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.legal-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-points {
  list-style-type: none;
  padding-left: 0;
}

.service-points li {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-points li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}
/* =============================================
   CTA SECTION (LEGAL PAGE)
   ============================================= */
.cta-section {
  background-image: url("/src/public/assets/images/whyusbg.jpg");
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  
}

.cta-section .content-container {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 900px;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-section .cta-button {
  background: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
  background: black;
  border: 1px solid var(--white);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* =============================================
   NORTH CYPRUS ARTICLES PAGE - ENHANCED
   ============================================ */
.articles-section {
  padding: var(--spacing-xl) 0;
}

.articles-section .content-container {
  display: block;
}

.articles-grid {
  display: grid;
  width: 100%;

  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  margin-left: 20px;
  margin-right: 20px;
  overflow: hidden;
  height: 70vh;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Article Banner */
.article-banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.article-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-banner-image {
  transform: scale(1.1);
}

.article-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* Article Content */
.article-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}


.article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
  flex-grow: 1;
}

.read-more-btn {
  align-self: flex-start;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-btn:hover {
  background: var(--secondary-color);
  transform: translateX(5px);
}

/* =============================================
   ARTICLE DETAIL MODAL
   ============================================ */
.article-modal-body {
  padding: 0;
}

.article-detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Article Detail Header */
.article-detail-header {
  position: relative;
  height: 400px;
  overflow: hidden;
  
}

.article-detail-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.article-detail-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.article-detail-title {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Article Detail Body */
.article-detail-body {
  padding: 3rem;
  
}

.article-section {
  margin-bottom: 3rem;
}

.article-section:last-child {
  margin-bottom: 0;
}

.section-image-wrapper {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
}

.article-section h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 400;
}

.article-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

/* Article CTA */
.article-cta {
  padding: 2rem 3rem 3rem;
  text-align: center;
  border-top: 1px solid var(--medium-gray);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Loading & Error States */
.loading-message,
.error-message,
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.1rem;
  color: var(--gray);
}

.error-message {
  color: #e74c3c;
}

/* =============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .article-banner {
    height: 200px;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .article-content h2 {
    font-size: 1.4rem;
  }
  
  .article-detail-header {
    height: 300px;
  }
  
  .article-detail-title {
    font-size: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
  
  .article-detail-body,
  .article-cta {
    padding: 2rem 1.5rem;
  }
  
  .article-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-banner {
    height: 180px;
  }
  
  .article-content h2 {
    font-size: 1.3rem;
  }
  
  .article-detail-header {
    height: 250px;
  }
  
  .article-detail-title {
    font-size: 1.6rem;
  }
  
  .read-more-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Article modal should be hidden by default */
#articleModal:not(.active) {
  display: none;
}
/* ===== ARTICLE MODAL ===== */
/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.active { display: flex; }

/* ===== MODAL BOX ===== */
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;

  border-radius: 16px;
  position: relative;

  /* 🔑 THIS IS CRITICAL */
  overflow-y: auto;
}

/* Hide scrollbar but keep scroll */
.modal-content::-webkit-scrollbar {
  width: 0;
}

/* Close button */
.modal-close {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal-content.small {
  max-width: 500px;
}


/* ===== ARTICLE DETAIL ===== */
.article-detail-header {
  position: relative;
  height: 180px;
}

.article-detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-detail-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.75));
}

.article-detail-title {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  font-size: 2.6rem;
  font-family: var(--font-serif);
}



.article-scope {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

/* ===== ARTICLE SECTIONS ===== */
.article-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.article-section-row.reverse {
  direction: rtl;
}

.article-section-row.reverse * {
  direction: ltr;
}

.article-section-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.article-section-text p {
  line-height: 1.8;
  color: var(--dark-gray);
}

.article-section-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

/* Responsive */
@media (max-width: 768px) {
  .article-section-row {
    grid-template-columns: 1fr;
  }

  .article-detail-title {
    font-size: 2rem;
  }
}

/* =============================================
   ARCHITECTURE PAGE
   ============================================ */
.architecture-intro {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.architecture-intro h2 {
    color:  var(--dark-gray);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.architecture-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.architecture-services {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
    text-align: center;
}

.architecture-services h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 3rem;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.architecture-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s;
    
}
.architecture-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.architecture-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.architecture-item p {
    color: var(--gray);
}

/* Portfolio Grid */
.portfolio-section {
    padding: var(--spacing-xl) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s;
    background: var(--white);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gray);
    font-size: 0.9rem;
}
/* ============================================
   ARCHITECTURE PAGE STYLES (Project Cards)
   ============================================ */
.portfolio-section {
  padding: var(--spacing-xl) 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);

}



.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.project-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-details {
  padding: 1.5rem;
}

.project-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  background: var(--off-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.project-location {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.view-project-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 500;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
  transition: background 0.3s;
}

.view-project-btn:hover {
  background: var(--primary-light);
}

/* Responsive adjustment for the grid */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PROPERTIES PAGE
   ============================================ */
.properties-section {
    padding: var(--spacing-xl) 0;
}

.property-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.property-filters select,
.property-filters button {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    background: var(--white);
    font-size: 1rem;
    color: var(--primary-color);
}

.property-filters button {
    cursor: pointer;
}

.property-count {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}
.projects-grid{
    margin-bottom: 20px;
}
.properties-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-left: 20px;
    margin-right: 20px; 
    
}

.property-card-link {
    text-decoration: none;
    color: inherit;
}

.property-card, .project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* Ensures all cards in a row are the same height */
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-status {
    position: absolute;
    top: 15px;
    left: 0;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 5px 5px 0;
}

.property-status.status-sale { background: #3498db; }
.property-status.status-rent { background: #e67e22; }
.property-status.status-sold { background: #e74c3c; }
.property-status.status-new { background: #27ae60; }
.property-status.status-featured { background: var(--secondary-color); }


.property-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.property-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.property-location i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.property-type {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.property-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-consult {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    border-radius: 0;
}

.property-card:hover .btn-consult {
    background: var(--primary-light);
}

.no-results {
    grid-column: 1 / -1; /* Span across all columns */
    padding: 5rem 0;
    font-size: 1.2rem;
}

/* PROPERTY DETAILS POPUP */


.property-detail-header {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

.detail-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    width: 100%;
}

.detail-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.detail-overlay .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.property-detail-body {
    padding: 3rem;
    max-height: calc(90vh - 350px); /* Adjust based on header height */
    overflow-y: auto;
}

.property-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--gray);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.property-detail-meta span i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.property-description {
    line-height: 1.8;
    color: var(--dark-gray);
}

.property-detail-gallery {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.property-detail-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.property-detail-gallery img:hover {
    opacity: 0.8;
}

/* RTL Adjustments */
.rtl .property-status {
    left: auto;
    right: 0;
    border-radius: 5px 0 0 5px;
}
.rtl .property-location i {
    margin-left: 5px;
    margin-right: 0;
}
.rtl .property-detail-meta span i {
    margin-left: 5px;
    margin-right: 0;
}
.rtl .service-points li {
    padding-right: 1.5rem;
    padding-left: 0;
}
.rtl .service-points li::before {
    left: auto;
    right: 0;
}

/* =============================================
   RESPONSIVENESS
   ============================================ */
@media (max-width: 1024px) {
  .mission-vision {
    flex-direction: column;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    margin-top: 60px;
    padding: 100px 1rem 60px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
  }

  .reasons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .property-filters {
      flex-direction: column;
  }
  
  .property-filters select,
  .property-filters button {
      width: 100%;
  }
  
  .property-detail-body {
      padding: 2rem 1.5rem;
  }
  
  .property-detail-header {
      height: 250px;
  }
}

@media (max-width: 600px) {
  .content-container {
    padding: 0 1.5rem;
  }

  .services-grid,
  .legal-cards-grid,
  .properties-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 10% 1rem;
    padding: 2rem 1.5rem;
    max-height: 85vh;
  }

  .article-card {
    padding: 2rem 1.5rem;
  }

  .mission-vision {
    gap: 2rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .about-intro h2,
  .section-title,
  .architecture-services h2 {
    font-size: 2rem;
  }

  .service-number {
    font-size: 2.5rem;
  }

  .property-price {
    font-size: 1.5rem;
  }
}
/* PROPERTY DETAILS POPUP */
#propertyDetailsModal .modal-content {
  max-width: 95vw;
  margin: 2.5vh auto;
}
.modal-xl {
  max-width: 1100px;
}

.modal-carousel,
.details-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #000;
}

.modal-carousel img,
.details-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.modal-carousel img.active,
.details-carousel img.active {
  display: block;
}

.details-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.details-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.details-carousel img.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  z-index: 3;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* =============================================
   PROPERTY CARDS (ARTICLE STYLE)
   ============================================= */

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Banner */
.property-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.property-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-banner img {
  transform: scale(1.1);
}

.property-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* Content */
.property-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.property-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
}

.property-location {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Meta */
.property-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: 0.25rem;
}

.property-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: auto;
}

/* Button */
.view-property-btn {
  align-self: flex-start;
  margin-top: 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-property-btn:hover {
  background: var(--secondary-color);
  transform: translateX(5px);
}
/* ============================================
   PROJECT DETAIL MODAL STYLES
   ============================================ */
.large-modal-content {
  max-width: 1000px;
}

.project-modal-body {
  padding: 1rem;
}

.project-detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.project-header {
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.project-detail-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.project-detail-category {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.project-meta-bar p {
  font-size: 0.9rem;
  color: var(--gray);
}

.meta-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-right: 0.5rem;
}

.project-main-image-container {
  margin-bottom: 2rem;
  box-shadow: var(--shadow-medium);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer; /* Suggests clicking for lightbox/full view */
}

.project-detail-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-description {
  margin-bottom: 3rem;
}

.project-description h3,
.project-gallery h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.project-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
}

.project-gallery {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.project-gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s;
  cursor: pointer;
}

.project-gallery-image:hover {
  transform: scale(1.02);
}

.project-cta-bar {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--light-gray);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .large-modal-content {
    margin: 5% 1rem;
    padding: 1.5rem;
  }
  .project-detail-title {
    font-size: 2rem;
  }
  .project-meta-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}







/* ===== SCROLL AREA ===== */
.details-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* ===== FOOTER ===== */
.details-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fff;
}
.details-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.details-location {
  color: #777;
  margin-bottom: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.details-box {
  background: #f7f7f7;
  padding: 14px;
  border-radius: 10px;
}

.details-box span {
  display: block;
  font-size: 13px;
  color: #666;
}

.details-box strong {
  font-size: 18px;
}

.details-section {
  margin-top: 30px;
}

.details-features {
  padding-left: 18px;
}
.about-section {
  padding: var(--spacing-xl) 0;
}

.about-intro {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.about-intro h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--gray);
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: var(--spacing-lg);
}

.mission-box,
.vision-box {
  padding: 3rem;
  background: var(--off-white);
  border: var(--border);
  text-align: center;

}

.mission-box h3,
.vision-box h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.mission-box p,
.vision-box p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
  letter-spacing: 0.3px;
}

/* Services Detailed Grid */
.services-detailed {
  padding: 0;
  background: var(--white);
}

.services-detailed .section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.services-detailed h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.services-detailed .section-header p {
  font-size: 1.1rem;
  color: var(--gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
}

.service-item {
  padding: 2.5rem 2rem;
  border: var(--border);
  transition: all var(--transition);
}

.service-item:hover {
  border-color: black;
  box-shadow: var(--shadow-light);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: black;
  opacity: 0.4;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.service-item h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
  letter-spacing: 0.3px;
}

/* Why Choose Us */
.why-choose-us {
  padding: var(--spacing-xl) 0;
  background-image: url("/src/public/assets/images/whyusbg.jpg");
  background-size: cover;
  background-position: center;

}

.why-choose-us h2 {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  letter-spacing: 2px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.reason-item {
  text-align: center;
  padding: 2rem;
}

.reason-item h4 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.reason-item p {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.6;
}

