/* project-archive/assets/project-archive.css */

/* حاوية الأرشيف الرئيسية */
.projects-archive-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* عمود الفلاتر */
.projects-filters {
  flex: 0 0 300px;
}

/* نموذج الفلترة */
.pa-filter-form {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.pa-filter-form .filter-group {
  margin-bottom: 16px;
}
.pa-filter-form .filter-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}
.pa-filter-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.pa-filter-form .checkbox-inline,
.pa-filter-form .radio-inline {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 8px;
  font-size: .95rem;
}
.pa-filter-form input[type="checkbox"],
.pa-filter-form input[type="radio"] {
  margin-right: 6px;
  vertical-align: middle;
}
.pa-filter-form .button.pa-submit {
  display: inline-block;
  padding: 10px 18px;
  background: #004E7C;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
}
.pa-filter-form .button.pa-submit:hover {
  background: #003d60;
}

/* قائمة المشاريع */
.projects-list {
  flex: 1;
  display: grid;
  gap: 20px;
	    grid-template-columns: repeat(auto-fill, minmax(367px, 1fr));
}

/* نص عند عدم وجود نتائج */
.no-results {
  font-size: 1.1rem;
  color: #666;
  padding: 20px;
}

/* ترقيم الصفحات */
.pa-pagination {
  margin-top: 20px;
  text-align: center;
}
.pa-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}





.pa-pagination .page-numbers.current {
  background: #004E7C;
  color: #fff;
  border-color: #004E7C;
}

/* كارد المشروع */
.project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card-image img {
  width: 100%;
  height: auto;
  display: block;
}
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.project-title a {
  text-decoration: none;
  color: #004E7C;
}
.project-title a:hover {
  text-decoration: underline;
}

/* تفاصيل المشروع */
.project-details {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}
.project-details li {
  font-size: .95rem;
  margin-bottom: 8px;
  color: #555;
}
.project-details li strong {
  color: #333;
  margin-right: 4px;
}

/* أزرار الإجراءات */
.project-actions {
  display: flex;
  gap: 10px;
}
.project-actions .button {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-size: .95rem;
  text-decoration: none;
  color: #fff;
}
.whatsapp-button {
  background: #25D366;
}
.whatsapp-button:hover {
  background: #1ebe57;
}
.call-button {
  background: #0066CC;
}
.call-button:hover {
  background: #005bb5;
}

/* تجاوب الشاشات الصغيرة */
@media (max-width: 992px) {
  .projects-archive-container {
    flex-direction: column;
  }
  .projects-filters {
    width: 100%;
    order: 2;
    margin-top: 20px;
  }
  .projects-list {
    order: 1;
  }
}







/* ====================================================
   Updated CSS for Project Card (project-archive/assets/project-archive.css)
   ==================================================== */

/* Reset box-model */
.project-card.ultimate, 
.project-card.ultimate * {
  box-sizing: border-box;
}

/* Card container */
.project-card.ultimate {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex-direction: column;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card.ultimate:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 1. Header badges (offer & status) */
.card-header {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.badge-offer {
  background-color: #004E7C;
  color: #fff;
}
.badge-status {
  background-color: #E5F8E0;
  color: #26732F;
}

/* 2. Image slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slider .slide {
  display: none;
  width: 100%;
}
.slider .slide:first-child {
  display: block;
}
.slider img {
    width: 100%;
    height: 211px;
    display: block;
    object-fit: cover;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* 3. Card body */
.card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 3.1 Developer info */
.developer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.developer-info img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.developer-info span {
  font-size: .9rem;
  font-weight: 600;
  color: #004E7C;
}

/* 3.2 Title */
.project-title {
  font-size: 1.3rem;
  margin: 0;
}
.project-title a {
  color: #222;
  text-decoration: none;
}
.project-title a:hover {
  color: #004E7C;
  text-decoration: underline;
}

/* 3.3 Region & types badges */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge-region,
.badge-type {
  background: #f0f4f8;
  color: #333;
  padding: 4px 8px;
  font-size: .75rem;
  border-radius: 4px;
}

/* 3.4 Features (area,beds,baths) */
.project-features {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.project-features li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .9rem;
  color: #555;
}
.project-features li i {
  color: #004E7C;
}

/* 3.5 Excerpt */
.project-excerpt {
  font-size: .95rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
	display:none
}

/* 3.6 Pricing */
.project-pricing {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.price-label {
  font-size: .85rem;
  color: #333;
  margin-right: 6px;
}
.price-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #004E7C;
}

/* 3.7 Downpayment & installments */
.project-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .9rem;
  color: #444;
}
.project-payment span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-payment strong {
  color: #333;
}

/* 3.8 Payment methods */
.payment-methods {
  font-size: .9rem;
  color: #444;
}
.payment-methods strong {
  color: #333;
  margin-right: 6px;
}

/* 3.9 Amenities */
.project-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
	display:none;
}
.project-amenities li {
  background: #E5F8E0;
  color: #26732F;
  padding: 4px 8px;
  font-size: .8rem;
  border-radius: 4px;
}

/* 3.10 Actions */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font-size: .9rem;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-whatsapp  { background: #25D366; }
.btn-call      { background: #0066CC; }
.btn-email     { background: #555; }
.btn-details   { background: #004E7C; }
.project-actions .btn:hover {
  opacity: .9;
}

/* Responsive */
@media (min-width: 768px) {
  .project-card.ultimate {
    flex-direction: row;
  }
  .slider {
    flex: 0 0 45%;
    max-height: none;
  }
  .card-body {
    flex: 1;
    padding: 24px;
  }
}
@media (max-width: 767px) {
  .project-card.ultimate {
    flex-direction: column;
  }
  .slider {
    max-height: 200px;
  }
  .card-body {
    padding: 16px;
  }
}



.badge-region {
    background: var(--global8);
    color: var(--base-3);
    position: absolute;
    top: 5px;
    right: 5px;
}










/* ————— Project Financial Bar ————— */
.project-financial-bar {
  display: flex;
  background: #f7fafc;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.project-financial-bar .fin-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.project-financial-bar .fin-item + .fin-item {
  border-left: 1px solid #e2e8f0;
}
.fin-item i {
  font-size: 1.4rem;
  color: #004E7C;
  flex-shrink: 0;
}
.fin-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fin-label {
  font-size: .75rem;
  color: #718096;
  text-transform: uppercase;
  line-height: 1;
}
.fin-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 576px) {
  .project-financial-bar {
    flex-direction: column;
  }
  .project-financial-bar .fin-item + .fin-item {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
  .fin-text {
    align-items: center;
  }
}





/* استجابة الشاشات الصغيرة */
@media (max-width: 576px) {
.projects-archive-container {
    padding: 0px;
}
	
.projects-list {
  display: block; 
}	
	
}



#pa-filter-types {
    padding: 6px;
    border-radius: 5px;
    background: #fff;
    max-height: 179px;
    overflow-y: auto;}	
