/* 
 * LandAfrique Home Page Styles
 */

:root {
  --primary-color: #d2691e;
  --dark-color: #1a1a1a;
  --gray-color: #555555;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #b8571a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: 30px;
}

.btn-outline {
  background-color: var(--white);
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-outline:hover {
  background-color: var(--dark-color);
  color: var(--white);
}

/* Typography */
.section-label {
  display: block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.section-description {
  font-size: 16px;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 40px;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url("../images/hero-bg.jpg") center center/cover no-repeat;
  background-color: var(--dark-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
  padding: 80px 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-color);
  margin-bottom: 20px;
}

.about-images {
  height: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  height: 100%;
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.image-grid img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  height: 250px;
}

.image-grid img:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  height: 100%;
}

/* Subsidiaries Section */
.subsidiaries-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-header {
  margin-bottom: 60px;
}

.subsidiary-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.subsidiary-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.subsidiary-grid {
  margin-bottom: 40px;
}

.subsidiary-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.subsidiary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.subsidiary-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.subsidiary-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.learn-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.learn-more:hover {
  text-decoration: underline;
}

/* Impact Section */
.impact-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.impact-intro {
  font-size: 16px;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-color);
  margin-bottom: 15px;
  padding-left: 0;
}

/* Why Choose Section */
.why-choose-section {
  padding: 80px 0;
  background-color: var(--white);
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.features-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-color);
  margin-bottom: 12px;
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 16px;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
  background-color: var(--white);
}

.blog-grid {
  margin-top: 40px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.blog-card p {
  font-size: 15px;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background-color: var(--white);
}

.newsletter-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-content > p {
  font-size: 16px;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.privacy-notice {
  margin-top: 15px;
  font-size: 14px;
  color: #888;
}

.privacy-notice a {
  color: var(--primary-color);
  text-decoration: none;
}

.privacy-notice a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .subsidiary-logos {
    gap: 20px;
  }

  .subsidiary-logos img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .about-section,
  .subsidiaries-section,
  .impact-section,
  .why-choose-section,
  .cta-section,
  .blog-section,
  .newsletter-section {
    padding: 50px 0;
  }
}

/* Property listing and single property styles */
.landafrique-property-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}

.landafrique-property-search input[type="search"] {
  flex: 1 1 320px;
  padding: 14px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
}

.landafrique-property-search button {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.landafrique-properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.landafrique-properties-grid.columns-1 {
  grid-template-columns: 1fr;
}

.landafrique-properties-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landafrique-properties-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landafrique-properties-grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landafrique-property-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landafrique-property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.14);
}

.property-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.property-card-media {
  position: relative;
  overflow: hidden;
}

.property-card-image {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f3f4f6;
}

.property-card-image-placeholder {
  align-items: center;
  color: #9ca3af;
  display: flex;
  font-size: 14px;
  justify-content: center;
}

.property-card-arrow {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  color: #111827;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 42px;
}

.property-card-body {
  padding: 22px 18px 26px;
}

.property-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.property-card-content {
  flex: 1;
  min-width: 0;
}

.property-card-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-card-price {
  background: #000030;
  border-radius: 999px;
  color: #BBEB8A;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 14px 20px;
  white-space: nowrap;
  height: 40px;
}

.property-card-address {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.4;
}

.property-card-meta {
  /* border-top: 1px solid #e8edf3; */
  /* display: grid; */
  display: flex;
  justify-content: space-between;
  gap: 0;
  /* grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); */
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-card-meta li {
  color: #374151;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 12px;
  /* min-height: 78px; */
  justify-content: flex-end;
  padding: 16px 8px 0 0;
}

.property-card-meta li + li {
  border-left: 1px solid #e8edf3;
  padding-left: 18px;
}

.property-card-meta-icon {
  color: #111827;
  display: inline-flex;
}

.property-card-meta-text {
  color: #374151;
  line-height: 1.2;
}

.property-card-meta strong {
  color: #111827;
  font-weight: 500;
}

.landafrique-no-properties {
  color: var(--gray-color);
  font-size: 16px;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .landafrique-properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-card-arrow {
    height: 58px;
    right: 18px;
    top: 18px;
    width: 58px;
  }

  .property-card-body {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .landafrique-properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card-image {
    height: 220px;
  }

  .property-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-card-price {
    width: 100%;
    text-align: center;
  }

  .property-card-meta {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .property-card-meta li {
    border-left: 0;
    min-height: auto;
    padding: 14px 0 0;
  }

  .property-card-meta li + li {
    border-left: 0;
    border-top: 1px solid #e8edf3;
    padding-left: 0;
  }
}

/* Single Property Page Styles */
.property-single-section {
  padding: 60px 0;
  background-color: var(--white);
}

.property-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.property-single-media {
  width: 100%;
}

.property-single-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.property-single-details {
  padding: 20px;
}

.property-single-details .section-title {
  margin-top: 20px;
  margin-bottom: 15px;
}

.property-single-content {
  margin-top: 30px;
  color: var(--gray-color);
  line-height: 1.8;
}

.property-single-content h2,
.property-single-content h3 {
  color: var(--dark-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 700;
}

.property-single-content p {
  margin-bottom: 15px;
}

.property-single-content ul,
.property-single-content ol {
  margin: 20px 0 20px 30px;
}

.property-single-content li {
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .property-single-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
}

.property-gallery-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-price-box {
  background: #e8f5e9;
  border-left: 4px solid var(--primary-color, #E67E22);
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  text-align: center;
}

.property-price-box .property-card-price {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color, #E67E22);
  margin-bottom: 5px;
}

@media (max-width: 992px) {
  .property-single-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .property-gallery-grid {
    grid-template-columns: 1fr;
  }
}
