/* Standalone CSS for Property Details Page
   This file combines necessary styles from styles.css and property-details.css
   with additional enhancements for mobile menu, header, and Tamkeen sections
   Images are now handled in HTML instead of CSS
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

:root {
  /* Luxury Color Palette */
  --primary-gold: #D4AF37;
  --secondary-gold: #CFB53B;
  --light-gold: #F8F4E3;
  --dark-blue: #0F2942;
  --medium-blue: #2A6384;
  --light-blue: #EBF4F8;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  
  /* Box Shadows */
  --luxury-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --smooth-transition: all 0.3s ease;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

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

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-fade-up { animation: fadeInUp 1s ease-out forwards; }
.animate-fade-right { animation: fadeInRight 1s ease-out forwards; }
.animate-fade-left { animation: fadeInLeft 1s ease-out forwards; }

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Shine Effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 1s ease;
  opacity: 0;
}

.shine-effect:hover::after {
  opacity: 1;
  left: 100%;
  top: 100%;
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  /* No background color initially to match index page */
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.logo {
  height: 50px;
  max-width: 100%;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

header.scrolled .logo {
  height: 45px;
  filter: brightness(1);
}

/* Navigation Links */
.nav-items {
  display: flex;
  gap: 25px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
  color: var(--primary-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

header.scrolled .nav-link {
  color: var(--dark-blue);
  text-shadow: none;
}

/* Navigation Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid var(--white);;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: white;
  overflow: visible;
}

header.scrolled .nav-icon {
  background-color: transparent;
  border: 2px solid var(--dark-blue);;
  color: var(--dark-blue);
}

.nav-icon:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.favorites-count {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
  pointer-events: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s;
}

header.scrolled .menu-toggle span {
  background-color: var(--dark-blue);
}

/* SIDE MENU */
.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  padding: 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.menu.active {
  right: 0;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1002;
}

.menu-items {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: #333;
  transition: color 0.3s;
  border-bottom: 1px solid #eee;
}

.menu-item a:hover {
  color: var(--medium-blue);
  transform: translateX(-5px);
}

.menu-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: var(--medium-blue);
  color: white;
}

/* DROPDOWN MENUS */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-toggle i {
  font-size: 10px;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

header.scrolled .dropdown-menu {
  margin-top: 5px;
}

.dropdown-menu:before {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold));
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--dark-blue);
  transition: all 0.3s ease;
  text-align: right;
}

.dropdown-menu a:hover {
  background-color: var(--light-blue);
  color: var(--medium-blue);
  padding-right: 25px;
}

/* Mobile Menu Dropdowns */
.menu .dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-right: 15px;
  border-right: 2px solid var(--primary-gold);
}

.menu .dropdown-menu:before {
  display: none;
}

.menu .dropdown-menu.active {
  max-height: 1000px;
}

.menu .dropdown-menu a {
  padding: 10px 15px;
  font-size: 14px;
}

/* FIXED BUTTONS */
.fixed-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: auto;
}

.fixed-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  animation: pulseAnimation 2s infinite;
}

.fixed-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

#phone-btn {
  background: linear-gradient(135deg, #112d46, #112d46);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* FOOTER */
footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold), var(--medium-blue));
}

.footer-container-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 30px;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.licensing-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.license-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.license-logo img {
  max-width: 120%;
  max-height: 120%;
}

.footer-nav {
  width: 100%;
  margin-bottom: 10px;
}

.footer-nav-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav-item a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-nav-item a:hover {
  color: var(--primary-gold);
}

.footer-title {
  margin-bottom: 10px;
}

.footer-title h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--light-gold);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-social .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-social .social-icon:hover {
  color: var(--light-gold);
  transform: translateY(-5px);
}

.copyright {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* PROPERTY DETAIL PAGE SPECIFIC STYLES */

/* POPUP BADGE STYLES */
.popup-status-badge {
  display: inline-block;
  padding: 5px 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 20px;
  margin: 0 auto 15px;
  text-align: center;
  width: 100%;
}

.popup-status-badge.available {
  background-color: #2ecc71;
  color: white;
}

.popup-status-badge.reserved {
  background-color: #f1c40f;
  color: #333;
}

.popup-status-badge.sold {
  background-color: #e74c3c;
  color: white;
}

.sold-notice {
  background-color: #e74c3c;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

/* APARTMENT STATUS INDICATORS */
.apartment-status-indicator {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 5px;
  background-color: rgba(255, 255, 255, 0.2);
}

.apartment-status-indicator.available {
  background-color: rgba(46, 204, 113, 0.9);
  color: white;
}

.apartment-status-indicator.reserved {
  background-color: rgba(241, 196, 15, 0.9);
  color: #333;
}

.apartment-status-indicator.sold {
  background-color: rgba(231, 76, 60, 0.9);
  color: white;
}

/* ADJACENT APARTMENT STATUS */
.adjacent-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 5px;
}

.adjacent-status.available {
  background-color: #2ecc71;
  color: white;
}

.adjacent-status.reserved {
  background-color: #f1c40f;
  color: #333;
}

.adjacent-status.sold {
  background-color: #e74c3c;
  color: white;
}

/* DESKTOP-SPECIFIC ADJUSTMENTS */
@media (min-width: 992px) {
  .floors-table {
    padding: 25px 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .floor-labels {
    margin-left: 20px;
    padding-left: 20px;
  }
  
  .apartment-column {
    gap: 20px;
    padding: 0 8px;
  }
  
  .floor-plan-cell {
    height: 110px;
    margin: 0 5px;
  }
}

/* ADJACENT APARTMENTS LEGEND */
.adjacent-legend {
  margin-top: 30px;
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.adjacent-legend-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.adjacent-apartments {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.adjacent-apartment-info {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  width: calc(50% - 10px);
  min-width: 220px;
}

.adjacent-apartment-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.adjacent-number {
  font-size: 28px;
  font-weight: 800;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.adjacent-number.front-apartment {
  background-color: #4CAF50;
}

.adjacent-number.back-apartment {
  background-color: #2196F3;
}

.adjacent-number.current-apartment {
  background-color: #FFC107;
  color: #333;
}

.adjacent-details {
  padding: 10px 15px;
  flex: 1;
}

.adjacent-type {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.adjacent-specs {
  font-size: 14px;
  color: var(--medium-gray);
}

/* PROPERTY HERO SECTION */
.property-hero {
  position: relative;
  height: 60vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  /* Remove margin-top to match index page */
}

/* Hero Background Image - Now HTML Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.property-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 41, 66, 0.8), rgba(15, 41, 66, 0.9));
  z-index: 1;
}

.property-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.property-badge {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--dark-blue);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.property-hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-top: 50px;
}

.property-hero-subtitle {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.property-hero-price {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.price-currency {
  font-size: 18px;
  font-weight: 600;
  margin-right: 5px;
}

.property-hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.9;
}

.property-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--medium-blue), var(--secondary-gold));
  color: var(--dark-blue);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* PROPERTY GALLERY SECTION */
.property-gallery-section {
  padding: 60px 0;
  background-color: var(--white);
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-image:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-blue);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.thumbnail-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--medium-blue) var(--light-gray);
}

.thumbnail-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
  background-color: var(--medium-blue);
  border-radius: 10px;
}

.thumbnail {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 41, 66, 0.3);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.thumbnail.active::after {
  opacity: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover::after {
  opacity: 0.1;
}

/* PROPERTY DETAILS & REGISTRATION SECTION */
.property-details-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.details-registration-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.property-details {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* بطاقة خريطة شبيهة بـ property-details */
.property-map-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 20px;              /* أقل padding كي لا يزيد ارتفاع البطاقة كثيراً */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

/* الحاوية الفعلية للخريطة: نستخدم aspect-ratio لجعل الارتفاع يتبع العرض */
.property-map-card .map-container {
  width: 100%;
  aspect-ratio: 16 / 9;       /* قابل للتعديل إلى 4/3 أو 21/9 حسب التصميم */
  max-height: 80vh;           /* لا تسمح بأن تكون الخريطة أطول من 80% من ارتفاع الشاشة */
  border-radius: 10px;
  overflow: hidden;
  background: #eaeaea;        /* لون احتياطي قبل تحميل البلاطات */
}

/* عناوين داخل البطاقة */
.property-map-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
}




.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--medium-blue), var(--primary-gold));
  border-radius: 3px;
}

.property-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-blue);
  border-radius: 8px;
  font-size: 18px;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-label {
  font-size: 14px;
  color: var(--medium-gray);
}

.feature-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
}

.property-description {
  margin-bottom: 30px;
}

.property-description h3,
.property-facilities h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.property-description p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.property-list {
  padding-right: 20px;
  margin-bottom: 15px;
}

.property-list li {
  margin-bottom: 8px;
  position: relative;
  padding-right: 15px;
  line-height: 1.6;
  color: var(--dark-gray);
}

.property-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-gold);
}

.property-facilities {
  margin-bottom: 30px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.facility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.facility-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.facility-item i {
  font-size: 24px;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

/* BUILDING DETAILS SECTION STYLES */
.building-details-section {
  margin-top: 40px;
  margin-bottom: 30px;
}

.building-details-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 25px;
}

.building-container {
  background: var(--light-gray);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Building Legend */
.building-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-color.available {
  background: rgba(46, 204, 113, 0.7);
  border-color: #2ecc71;
}

.legend-color.reserved {
  background: rgba(255, 193, 7, 0.7);
  border-color: #ffc10782;
}

.legend-color.sold {
  background: rgba(220, 53, 69, 0.7);
  border-color: #dc3545;
}

.legend-color.current {
  background: rgba(0, 123, 255, 0.7);
  border-color: #007bff;
}

/* Building Layout */
.building-layout {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.floor-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.floor-label {
  min-width: 120px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: right;
  background: var(--white);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.apartments-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

/* Apartment Units */
.apartment-unit {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.apartment-unit:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.apartment-unit.available {
  background: #2C856B;
  color: white;
  border-color: #b7ffd547;
}

.apartment-unit.available:hover {
  background: rgba(46, 204, 113, 0.9);
}

.apartment-unit.reserved {
  background:#FFC027;
  color: #333;
  border-color: #ffc10716;
}

.apartment-unit.reserved:hover {
  background: rgba(255, 193, 7, 0.452);
}

.apartment-unit.sold {
  background:#C64C50;
  color: white;
  border-color: #ff00197c;
  cursor: not-allowed;
}

.apartment-unit.sold:hover {
  background: rgba(220, 53, 69, 0.85);
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apartment-unit.current {
  background: rgba(0, 123, 255, 0.8);
  color: white;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.apartment-unit.current:hover {
  background: rgba(0, 123, 255, 0.9);
}

.apartment-number {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.apartment-type {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1;
}

/* Building Summary */
.building-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.summary-item.available {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
  border: 2px solid rgba(46, 204, 113, 0.2);
}

.summary-item.reserved {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
  border: 2px solid rgba(255, 193, 7, 0.2);
}

.summary-item.sold {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
  border: 2px solid rgba(220, 53, 69, 0.2);
}

.summary-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.summary-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--medium-gray);
}

/* REGISTRATION FORM */
.registration-form-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--medium-gray);
  line-height: 1.6;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.check-label {
  font-size: 14px;
  cursor: pointer;
}

.form-submit-btn {
  background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  margin-top: 10px;
}

.form-submit-btn:hover {
  box-shadow: 0 10px 25px rgba(42, 99, 132, 0.3);
  transform: translateY(-3px);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.form-footer p {
  color: var(--medium-gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-contact:hover {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transform: translateY(-3px);
}

/* ENHANCED TAMKEEN STYLES */
/* Small Tamkeen promo in registration area */
.tamkeen-promo {
  background: linear-gradient(135deg, #f5f9ff, #e1eeff);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(55, 63, 212, 0.3);
  margin-top: 25px;
  position: relative;
}

.tamkeen-promo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
  z-index: 0;
}

.tamkeen-inner {
  padding: 30px;
  display: flex;
  align-items: center;
  text-align: right;
  position: relative;
  z-index: 1;
}

.tamkeen-logo {
  margin-left: 20px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-gold);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.tamkeen-inner:hover .tamkeen-logo {
  transform: rotate(0deg) scale(1.05);
}

.tamkeen-logo img {
  height: 70px;
  max-width: 100%;
}

.tamkeen-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
}

.tamkeen-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gold);
  border-radius: 3px;
}

.tamkeen-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--medium-gray);
  font-size: 15px;
}

.tamkeen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--medium-blue), var(--secondary-gold));
  color: var(--dark-blue);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.tamkeen-btn:hover {
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

/* Main Tamkeen CTA section */
.tamkeen-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0F2942, #1e3c5a);
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-bottom: 35px;
}

/* Background decorative elements - Now HTML based */
.tamkeen-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.tamkeen-cta-container {
  position: relative;
  z-index: 2;
}

.tamkeen-cta-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.tamkeen-cta-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary-gold);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.tamkeen-cta-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.tamkeen-cta-logo img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  padding: 15px;
  background: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--primary-gold);
  transition: all 0.3s ease;
}

.tamkeen-cta-content:hover .tamkeen-cta-logo img {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tamkeen-cta-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.tamkeen-cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tamkeen-cta-text {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.tamkeen-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tamkeen-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.tamkeen-benefits li:hover {
  transform: translateX(-5px);
}

.tamkeen-benefits i {
  color: var(--primary-gold);
  font-size: 18px;
  background: rgba(212, 175, 55, 0.1);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tamkeen-cta-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.tamkeen-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--medium-blue), var(--secondary-gold));
  color: var(--dark-blue);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.tamkeen-cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.tamkeen-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tamkeen-secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.tamkeen-secondary-btn:hover {
  transform: translateY(-5px);
}

.tamkeen-secondary-btn:hover::before {
  left: 0;
}

/* FLOOR PLAN SECTION */
.floor-plan-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title.with-accent {
  text-align: center;
  margin-bottom: 50px;
}

.section-title.with-accent::after {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 80px;
}

.floor-plans-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.plan-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.plan-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 20px;
  text-align: center;
}

.plan-content {
  position: relative;
}

.plan-view {
  display: none;
}

.plan-view.active {
  display: block;
}

.apartment-floor-plan-image {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.apartment-floor-plan-image img {
  width: 100%;
  height: auto;
  display: block;
}

.plan-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--light-gray);
  border-radius: 8px;
}

.detail-label {
  font-size: 14px;
  color: var(--medium-gray);
}

.detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-blue);
}

/* TABLE-STYLE FLOOR PLAN */
.floors-table {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: var(--light-gray);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.floor-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px dashed #ccc;
  min-width: 110px;
}

.floor-label {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark-blue);
  padding: 0 10px;
}

.apartment-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 15px;
  padding: 0 5px;
}

.floor-plan-cell {
  height: 100px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  color: #fff;
  margin: 0 3px;
}

.floor-plan-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.floor-plan-cell.front-apartment {
  background-color: #4CAF50;
}

.floor-plan-cell.back-apartment {
  background-color: #2196F3;
}

.floor-plan-cell.current-apartment {
  background-color: #ffc1075c;
  color: #333;
}

.apartment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.legend-color.front-apartment {
  background-color: #4CAF50;
}

.legend-color.back-apartment {
  background-color: #2196F3;
}

.legend-color.current-apartment {
  background-color: #ffc10749;
}

/* SIMILAR PROPERTIES SECTION */
.similar-properties-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.similar-properties-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.similar-property-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.similar-property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.property-image {
  position: relative;
  height: 200px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.similar-property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 15px;
  z-index: 1;
}

.favorite-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.favorite-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.favorite-btn i {
  color: #dc3545;
  font-size: 18px;
  transition: all 0.3s ease;
}

.property-info {
  padding: 20px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--medium-gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.property-specs {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.property-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--dark-gray);
}

.property-specs i {
  color: var(--medium-blue);
}

.property-link {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--light-gray);
  color: var(--dark-blue);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.property-link:hover {
  background: var(--medium-blue);
  color: var(--white);
}

.view-more-container {
  text-align: center;
  margin-top: 40px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--medium-blue);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--medium-blue);
  color: var(--white);
  transform: translateY(-3px);
}

/* MOBILE MENU BREAKPOINT ADJUSTMENT */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important;
  }
  
  .menu-toggle {
    display: none !important;
  }
}

/* MOBILE HEADER BACKGROUND FIX */
@media (max-width: 767px) {
  header .nav-link {
    color: var(--dark-blue);
    text-shadow: none;
  }
  
  header .nav-icon {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.812);
    color: var(--white);
  }
  
  header .menu-toggle span {
    background-color: var(--white);
  }
  
  /* Fix header spacing on mobile */
  .property-hero {
    padding-top: 90px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .desktop-nav {
    display: flex !important; 
  }
  
  .menu-toggle {
    display: none !important;
  }
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .similar-properties-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .floor-plans-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .property-hero-title {
    font-size: 36px;
  }
  
  .property-hero-subtitle {
    font-size: 18px;
  }
  
  .details-registration-container {
    grid-template-columns: 1fr;
  }
  
  .property-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .similar-properties-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Building details responsive */
  .building-legend {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .floor-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .floor-label {
    min-width: auto;
    text-align: center;
    width: 100%;
  }
  
  .apartments-row {
    justify-content: center;
  }
  
  .building-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Tamkeen responsive adjustments */
  .tamkeen-cta-content {
    flex-direction: column;
    padding: 40px;
    text-align: center;
  }
  
  .tamkeen-cta-logo {
    margin-bottom: 30px;
  }
  
  .tamkeen-benefits {
    grid-template-columns: 1fr;
  }
  
  .tamkeen-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .tamkeen-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .tamkeen-logo {
    margin: 0 0 20px 0;
  }
  
  .tamkeen-content h3::after {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 767px) {
  .property-gallery-section,
  .property-details-section,
  .floor-plan-section,
  .similar-properties-section {
    padding: 50px 0;
  }

  /* استجابة للشاشات الصغيرة */
@media (max-width: 767px) {
  .property-map-card { padding: 16px; }
  .property-map-card .map-container { aspect-ratio: 4 / 3; } /* ارتفاع أكبر نسبياً على الموبايل */
}
  
  .tamkeen-cta-section {
    padding: 70px 0;
  }
  
  .tamkeen-cta-content {
    padding: 30px 20px;
  }
  
  .tamkeen-cta-title {
    font-size: 28px;
  }
  
  .tamkeen-cta-text {
    font-size: 16px;
  }
  
  .property-hero {
    height: auto;
    padding: 100px 0 60px;
  }
  
  .property-hero-title {
    font-size: 28px;
  }
  
  .property-hero-subtitle {
    font-size: 16px;
  }
  
  .property-hero-price {
    font-size: 26px;
  }
  
  .property-hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-image {
    height: 350px;
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .plan-details {
    grid-template-columns: 1fr;
  }
  
  .license-logo {
    width: 70px;
    height: 70px;
  }
  
  /* Building details mobile styles */
  .apartment-unit {
    width: 75px;
    height: 75px;
  }
  
  .apartment-number {
    font-size: 16px;
  }
  
  .apartment-type {
    font-size: 9px;
  }
  
  .building-summary {
    grid-template-columns: 1fr;
  }
  
  .summary-item {
    padding: 15px 10px;
  }
  
  .summary-number {
    font-size: 28px;
  }
  
  /* Floor plan table view */
  .floors-table {
    flex-direction: column;
    align-items: center;
  }
  
  .floor-labels {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
    padding-left: 0;
    border-left: none;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
  }
  
  .floor-label {
    writing-mode: horizontal-tb;
    height: auto;
    padding: 5px 10px;
  }
  
  .apartment-column {
    width: 100%;
    flex-direction: row;
    margin-bottom: 10px;
  }
  
  .floor-plan-cell {
    flex: 1;
    height: auto;
    min-height: 80px;
  }
}

@media (max-width: 576px) {
  .similar-properties-container {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-nav-items {
    gap: 10px;
  }
  
  .adjacent-apartment-info {
    width: 100%;
  }
  
  /* Small mobile adjustments for building */
  .apartment-unit {
    width: 70px;
    height: 70px;
  }
  
  .apartment-number {
    font-size: 14px;
  }
  
  .apartment-type {
    font-size: 8px;
  }
  
  .building-legend {
    /* flex-direction: column; */
    align-items: center;
    gap: 10px;
  }
  
  .apartments-row {
    gap: 8px;
  }
}