/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors */
  --primary-color: #306955;
  --primary-dark: #1B3C30;
  --primary-light: #73BFA4;
  --secondary-color: #CD8F65;
  --accent-color: #F8B56B;
  --text-dark: #111927;
  --text-light: #ffffff;
  --bg-light: #F4FAF8;
  --bg-dark: #1B3C30;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-family: "Cairo", sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  
  /* Border & Radius */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 32px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* ============================================
   Header / Navbar
   ============================================ */
.main-header .navbar {
  background-color: transparent !important;
  padding: 1rem 0;
  box-shadow: none;
  width: 100%;
  left: 0;
  right: 0;
  min-height: 70px;
}

.main-header .container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.main-header .navbar-toggler {
  order: 3;
  border: none;
  padding: 0.25rem 0.5rem;
  margin-left: auto;
}

.main-header .navbar-toggler:focus {
  box-shadow: none;
}

.main-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-header .navbar-brand {
  margin-left: 0;
  margin-right: var(--spacing-lg);
  padding: 0;
  display: flex;
  align-items: center;
}

.main-header .logo-img {
  height: 48px;
  width: auto;
  filter: brightness(1.1) saturate(1.2);
  object-fit: contain;
}

.main-header .navbar-collapse {
  display: flex !important;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.main-header .navbar-nav {
  flex-direction: row;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.main-header .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.625rem 1.125rem !important;
  margin: 0 0.375rem;
  border-radius: 24px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  border: none;
  font-size: 15px;
  white-space: nowrap;
  line-height: 1.5;
}

.main-header .navbar-nav .nav-link i {
  font-size: 16px;
  margin-left: 0.5rem;
}

.main-header .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light) !important;
}

.main-header .navbar-nav .nav-link.active {
  background-color: rgba(48, 105, 85, 0.5) !important;
  color: var(--text-light) !important;
  border: 1px solid rgba(115, 191, 164, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #F8B56B;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header .btn-link.rounded-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(48, 105, 85, 0.3);
  border: none;
  transition: var(--transition);
  color: var(--text-light) !important;
  padding: 0;
  margin: 0;
}

.main-header .btn-link.rounded-circle:hover {
  background-color: rgba(48, 105, 85, 0.5);
  transform: scale(1.05);
}

.main-header .btn-link.rounded-circle i {
  font-size: 16px;
}

.main-header .navbar-nav .nav-link i {
  font-size: 16px;
}

/* Sticky Header */
.main-header .navbar.fixed-top {
  transition: var(--transition);
}

.main-header .navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background-color: rgba(27, 60, 48, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: #1E3A2B;
  background-image: 
    linear-gradient(rgba(48, 105, 85, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 105, 85, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  padding-top: 80px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-section::before {
  content: '✦';
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 30px;
  color: #F8B56B;
  z-index: 1;
  animation: sparkle 2.5s ease-in-out infinite;
  font-weight: normal;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(248, 181, 107, 0.5));
}

.building-image {
  position: relative;
  animation: floatBuilding 6s ease-in-out infinite;
}

@keyframes floatBuilding {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.building-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.building-container {
  position: relative;
  perspective: 1000px;
}

.sparkle {
  position: absolute;
  width: 30px;
  height: 30px;
  animation: sparkle 3s ease-in-out infinite;
  z-index: 3;
}

.sparkle-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 25%;
  right: 35%;
  animation-delay: 1.5s;
  width: 20px;
  height: 20px;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.accent-lines {
  position: absolute;
  top: 30%;
  right: -5%;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  animation: slideLines 2s ease-in-out infinite;
  z-index: 3;
}

.accent-lines::before,
.accent-lines::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  right: 20px;
}

.accent-lines::before {
  top: -15px;
}

.accent-lines::after {
  top: 15px;
}

@keyframes slideLines {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(20px); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    align-items: center;
    padding-top: 100px;
  }
  
  .hero-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .hero-section .row {
    align-items: center;
    padding-bottom: 2rem;
    min-height: auto;
  }
  
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .hero-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
}

@media (max-width: 768px) {
  .building-container {
    margin-top: 3rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}


.badge-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.badge-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: white;
}

.highlight-text {
  color: #fbbf24;
  font-weight: 800;
}

.main-heading {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

.sub-heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.8;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  opacity: 0.8;
  transition: var(--transition);
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.hero-section .carousel-control-prev {
  right: 20px;
  left: auto;
}

.hero-section .carousel-control-next {
  left: 20px;
  right: auto;
}

.hero-section .carousel-indicators {
  bottom: 30px;
}

.hero-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* ============================================
   Platform Services Section
   ============================================ */
.platform-services-section {
  background-color: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.platform-services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('holde-background.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.platform-services-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header-wrapper {
  margin-bottom: 4rem;
}

.platform-services-title {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
  margin: 0;
}

.platform-services-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #8B4513;
  border-radius: 2px;
}

.title-star {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.title-star-left {
  order: 1;
}

.title-text {
  order: 2;
}

.title-star-right {
  order: 3;
}

/* Service Cards */
.platform-service-card {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.platform-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.platform-service-card:hover .card-bg-image {
  transform: scale(1.1);
}

.card-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  z-index: 1;
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  z-index: 2;
  color: white;
}

.service-card-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.service-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.service-detail-item i {
  font-size: 1.25rem;
  color: #fbbf24;
  width: 24px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .platform-service-card {
    height: 450px;
    margin-bottom: 2rem;
  }

  .platform-services-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .platform-services-section {
    padding: 3rem 0;
  }

  .section-header-wrapper {
    margin-bottom: 2.5rem;
  }

  .platform-service-card {
    height: 500px !important; /* Taller height for better readability on mobile */
    min-height: 500px;
  }

  .service-card-content {
    padding: 1.75rem 1.25rem;
  }

  .service-card-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }

  .service-card-details {
    gap: 0.875rem;
  }

  .service-detail-item {
    font-size: 1rem;
    font-weight: 500;
  }

  .service-detail-item i {
    font-size: 1.1rem;
  }
}

/* ============================================
   Featured Ads Section
   ============================================ */
.featured-ads-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

/* Section Header */
.ads-section-header {
  margin-bottom: 3rem;
}

.ads-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  direction: rtl;
  position: relative;
  padding-bottom: 0.75rem;
}

.ads-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #8B4513;
  border-radius: 1px;
}

.title-star-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ads-navigation-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
  direction: rtl;
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-arrow-btn:hover {
  background-color: #e0e0e0;
  color: var(--text-dark);
}

.nav-arrow-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.view-all-btn {
  padding: 0.625rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  direction: rtl;
  display: inline-block;
  text-decoration: none;
}

.view-all-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

/* Property Cards */
.featured-property-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 0px 32px;
  gap: 32px;
  isolation: isolate;
  width: 405.33px;
  height: 444px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0px 8px 33px rgba(102, 102, 102, 0.04);
  border-radius: 16px;
  flex: none;
  order: 2;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.featured-property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0px 0px;
  flex: none;
  order: 0;
  z-index: 0;
}

.property-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-property-card:hover .property-main-image {
  transform: scale(1.05);
}

.property-favorite-btn {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.property-favorite-btn:hover {
  background-color: #D5D5D5;
  transform: scale(1.1);
}

.property-favorite-btn i {
  width: 18.18px;
  height: 18.18px;
  color: #1F2A37;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-favorite-btn.active i,
.property-favorite-btn:hover i {
  color: #e74c3c;
}

.sponsored-badge {
  position: absolute;
  width: 110.28px;
  height: 40px;
  left: -9px;
  top: 180px;
  flex: none;
  order: 2;
  flex-grow: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
}

.sponsored-badge::before {
  content: '';
  position: absolute;
  width: 9.14px;
  height: 8px;
  left: -9px;
  top: 32px;
  background: #204639;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}

.sponsored-badge::after {
  content: '';
  position: absolute;
  width: 110.27px;
  height: 32px;
  left: -8.98px;
  top: 0px;
  background: linear-gradient(90deg, #267E5F 0%, #2A5B4A 100%);
  border-radius: 8px 8px 8px 0px;
  z-index: 0;
}

.badge-star-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #FFFFFF;
  display: block;
  flex: none;
  order: 0;
  flex-grow: 0;
  position: relative;
  z-index: 3;
}

.sponsored-badge span {
  width: 61px;
  height: 16px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  flex: none;
  order: 1;
  flex-grow: 0;
  position: relative;
  z-index: 3;
}

.available-badge {
  position: absolute;
  right: 23px;
  top: 23px;
  width: 51px;
  height: 26px;
  background: #ECFDF3;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  gap: 6px;
  z-index: 3;
  direction: ltr;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17B26A;
  flex-shrink: 0;
  order: 0;
}

.available-badge span:last-child {
  width: auto;
  height: 18px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: #17B26A;
  flex: none;
  order: 1;
  direction: rtl;
}

.property-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0px 24px;
  gap: 32px;
  width: 100%;
  min-height: 180px;
  border-radius: 16px 16px 0px 0px;
  flex: none;
  order: 1;
  align-self: stretch;
  z-index: 1;
  direction: rtl;
}

.property-info-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 100%;
  min-height: 110px;
  flex: none;
  order: 0;
  align-self: stretch;
  direction: ltr;
}

.property-main-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0px;
  gap: 8px;
  flex: 1;
  min-width: 0;
  order: 1;
  direction: rtl;
  text-align: right;
}

.platform-brand {
  box-sizing: border-box;
  width: 60px;
  min-height: 61px;
  background-color: #ffffff;
  border: 0.8px solid #D4AF37;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  order: 0;
  flex-grow: 0;
  padding: 4px;
  gap: 2px;
}

.platform-logo {
  width: 100%;
  height: auto;
  max-height: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(77%) sepia(68%) saturate(1234%) hue-rotate(1deg) brightness(95%) contrast(89%);
}

.platform-brand-text {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-size: 8px;
  font-weight: 500;
  color: #D4AF37;
  text-align: center;
  line-height: 1.2;
  margin-top: 2px;
}

.property-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  height: 36px;
  flex: none;
  order: 0;
  flex-grow: 0;
  direction: rtl;
}

.currency-symbol {
  width: auto;
  height: 26.82px;
  font-size: 20px;
  font-weight: 700;
  color: #231F20;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.price-value {
  height: 36px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: -1px;
  color: #1E3A8A;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.property-description {
  height: auto;
  min-height: 36px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  text-align: right;
  letter-spacing: -0.01em;
  color: #1E3A8A;
  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 0;
}

.property-location-info {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px;
  gap: 9px;
  height: 26px;
  flex: none;
  order: 1;
  flex-grow: 0;
  direction: rtl;
}

.location-text {
  height: 24px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  opacity: 0.5;
  flex: 1;
  order: 0;
  min-width: 0;
}

.location-icon-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 0;
  width: 26px;
  height: 26px;
  background: #EEF7F4;
  border-radius: 97.5px;
  flex: none;
  order: 1;
  flex-grow: 0;
  z-index: 0;
  position: relative;
}

.location-icon-wrapper i {
  position: absolute;
  width: 15.17px;
  height: 15.17px;
  left: calc(50% - 15.17px/2 + 0.12px);
  top: calc(50% - 15.17px/2 - 0px);
  color: #306955;
  font-size: 12px;
  z-index: 1;
}

.property-specs-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px;
  gap: 55px;
  width: 100%;
  min-height: 38px;
  flex: none;
  order: 1;
  align-self: stretch;
  border-top: 1.5px solid #F0EFFB;
  padding-top: 16px;
  direction: ltr;
}

.property-spec-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px;
  gap: 8px;
  margin: 0 auto;
  flex: none;
  flex-grow: 0;
  direction: rtl;
}

.spec-icon-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 0;
  width: 38px;
  height: 38px;
  background: #EEF7F4;
  border-radius: 142.5px;
  flex: none;
  order: 1;
  flex-grow: 0;
  position: relative;
}

.spec-icon-wrapper i {
  position: absolute;
  width: 24px;
  height: 24px;
  left: calc(50% - 24px/2);
  top: calc(50% - 24px/2);
  color: #306955;
  font-size: 16px;
}

.spec-icon-diamond {
  transform: none;
  border-radius: 142.5px;
}

.square-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  left: calc(50% - 24px/2);
  top: calc(50% - 24px/2);
  box-sizing: border-box;
}

.square-icon::before {
  content: '';
  position: absolute;
  left: 0%;
  right: 0%;
  top: 0%;
  bottom: 0%;
  border: 2px solid #306955;
  box-sizing: border-box;
}

.square-icon::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  top: 10%;
  bottom: 20%;
  border: 2px solid #306955;
  box-sizing: border-box;
}

.spec-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0px;
  gap: 8px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.spec-label {
  width: auto;
  height: 8px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 25px;
  text-align: right;
  color: #646469;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.spec-value {
  width: auto;
  height: 10px;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 25px;
  text-align: right;
  color: #111927;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.platform-logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .ads-navigation-controls {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .ads-section-title {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .featured-ads-section {
    padding: 3rem 0;
  }

  .property-image-wrapper {
    height: 240px;
  }

  .property-card-body {
    padding: 1.25rem;
  }
}

/* ============================================
   Featured Auctions Section
   ============================================ */
.featured-auctions-section {
  background-color: var(--bg-light);
}

.auction-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.auction-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.auction-status {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

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

.auction-content {
  padding: var(--spacing-md);
}

.auction-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.auction-countdown {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
}

.countdown-item {
  text-align: center;
  min-width: 60px;
}

.countdown-value {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
}

.countdown-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--colorsneutralneutral-600);
  margin-top: 0.25rem;
}

.auction-price {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* ============================================
   Platform Advantages Section
   ============================================ */
.advantages-section {
  background-color: var(--text-light);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonial-card {
  background-color: var(--text-light);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
}

.testimonial-text {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.testimonial-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.testimonial-role {
  color: var(--colorsneutralneutral-600);
  font-size: var(--font-size-base);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  background-color: var(--text-light);
}

.contact-info {
  margin-top: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
}

.contact-form .form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--colorsneutralneutral-300);
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(48, 105, 85, 0.25);
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.footer-subscribe .form-control {
  border-radius: 12px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-subscribe .form-control:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  outline: none;
}

.footer-subscribe .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe .btn {
  border-radius: 12px !important;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.footer-subscribe .btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.footer-subscribe .input-group {
  gap: 8px;
}

.footer-subscribe .input-group > * {
  border: none !important;
}

/* Override Bootstrap input-group border-radius removal */
.footer-subscribe .input-group > .form-control:not(:last-child) {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.footer-subscribe .input-group > .btn:not(:first-child) {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
  padding-right: 0.5rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: var(--font-size-xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .main-header .navbar-nav {
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
  }
  
  .hero-section .carousel-item {
    min-height: auto;
  }
  
  .hero-title {
    font-size: var(--font-size-lg);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-lg);
  }
  
  .countdown-item {
    min-width: 50px;
  }
  
  .countdown-value {
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Stagger animation for cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   Utilities
   ============================================ */
.bg-light {
  background-color: var(--bg-light) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

