
.property-showcase {
  padding-top: var(--header-height);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 20px) 20px 40px;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0; /* Couleur de fond pendant le chargement */
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 500ms;
  will-change: transform; /* Optimise les animations */
  backface-visibility: hidden;
    height: 60vh;
  min-height: 400px;
}

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

.image-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--royal-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
}

.thumbnail-gallery {
  display: block;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Pour Firefox */
  -ms-overflow-style: none; /* Pour IE et Edge */
}

.thumbnail-gallery::-webkit-scrollbar {
  display: none; /* Pour Chrome, Safari et Opera */
}
.thumbnail-gallery .slick-track {
  margin-left: 0px;
}

.thumbnail {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  user-drag: none;
  -webkit-user-drag: none;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  transform: translateY(-2px);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 2001;
}

@media (max-width: 768px) {
  .property-showcase {
    padding: calc(var(--header-height) + 10px) 10px 20px;
  }

  .main-image-container {
    height: 40vh;
    min-height: 300px;
    margin-bottom: 0px;
  }

  .action-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .thumbnail {
    width: 120px;
    height: 70px;
  }

  .main-image-container img {
    content-visibility: auto; /* Optimise le rendu sur mobile */
  }
}

.property-quick-info {
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.location-info {
  margin-bottom: 20px;
  text-align: center;
}

.location-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--royal-blue);
  margin-bottom: 10px;
}

.postal-code {
  font-size: 0.8em;
  color: #666;
  margin-left: 8px;
}

.location-info  .price {
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
}

.quick-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.quick-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 25px;
  border: 2px solid var(--royal-blue);
  background: white;
  color: var(--royal-blue);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.quick-nav-btn i {
  font-size: 20px;
  margin-bottom: 8px;
}

.quick-nav-btn:hover {
  background: var(--royal-blue);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .property-quick-info {
    padding: 20px 15px;
  }

  .location-info h2 {
    font-size: 24px;
  }

  .location-info .price {
    font-size: 28px;
  }

  .quick-nav-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .quick-nav-btn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
  }

  .quick-nav-btn i {
    margin-bottom: 0;
  }
}

.property-description {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.description-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--royal-blue);
  margin-bottom: 25px;
}

.description-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

.description-content strong {
  color: var(--royal-blue);
  font-weight: 600;
}

.property-specs-grid {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.specs-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--royal-blue);
  margin-bottom: 25px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.spec-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  margin-right: 15px;
  color: var(--royal-blue);
  font-size: 18px;
}

.spec-content {
  flex: 1;
}

.spec-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--royal-blue);
}

@media (max-width: 768px) {
  .property-specs-grid {
    padding: 30px 15px;
  }
  
  .specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .spec-item {
    padding: 12px;
  }
  
  .spec-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

.map-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: #f8f9fa;  /* Fond légèrement grisé */
  border-radius: 12px;
  margin: 20px 0;
}

.map-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.filter-item i {
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--royal-blue);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.filter-item input[type="checkbox"]:checked {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
}

.filter-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#propertyMap {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid white;
}

@media (max-width: 768px) {
  .property-specs-grid {
    padding: 30px 15px;
  }
  
  .specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .spec-item {
    padding: 12px;
  }
  
  .spec-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

.map-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--royal-blue);
  margin-bottom: 25px;
}

/* Ajout des styles pour la section contact */
.contact-form-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--royal-blue);
  margin-bottom: 25px;
}

.agent-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.agent-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}
.agent-avatar img{
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.agent-avatar i {
  font-size: 40px;
  color: white;
}

.agent-name {
  font-size: 20px;
  color: var(--royal-blue);
  margin-bottom: 15px;
}

.phone-reveal-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  text-decoration: none;
}

.phone-reveal-btn:hover {
  background: var(--royal-blue);
  transform: translateY(-2px);
}

.phone-number {
  font-size: 18px;
  color: var(--royal-blue);
  font-weight: 500;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--royal-blue);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
}

.checkbox-group a {
  color: var(--royal-blue);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.submit-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: var(--royal-blue);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  margin-top: 20px;
}

.form-success i {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Styles pour les erreurs de validation */
.form-group.error input,
.form-group.error textarea {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
button.action-btn.property-favorite {
    position: static;
}

button.action-btn.property-favorite i {
    color: var(--royal-blue);
}

@media (max-width: 768px) {
  .contact-form {
    padding: 20px;
  }
  
  .agent-info {
    padding: 15px;
  }
  
  .agent-avatar {
    width: 80px;
    height: 80px;
  }
  
  .agent-avatar i {
    font-size: 32px;
  }
}

/* Ajouts CSS pour l'optimisation des images */
@supports (format: webp) {
  .main-image,
  .thumbnail {
    format: webp;
  }
}

/* Add this to the existing style section */
.similar-properties {
  padding: 60px 0;
  background: #f8f9fa;
  margin-top: 40px;
}

.similar-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--royal-blue);
  text-align: center;
  margin-bottom: 40px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.property-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.property-details {
  padding: 20px;
}

.property-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.property-location {
  color: var(--royal-blue);
  font-weight: 500;
  margin-bottom: 8px;
}

.property-specs {
  color: #666;
  margin-bottom: 20px;
}

.property-specs span {
  font-weight: 500;
}

.view-property-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--royal-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.view-property-btn:hover {
  background: var(--gold);
}

.no-properties {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

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

@media (max-width: 768px) {
  .similar-properties {
    padding: 40px 0;
  }

  .similar-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
}

/* Add this CSS to create a new grid layout for desktop */
@media (min-width: 992px) {
  .property-showcase {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
  }

  .contact-form-section {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
  }

  .main-image-container,
  .thumbnail-gallery,
  .property-quick-info,
  .property-description,
  .property-specs-grid,
  .map-section,
  .similar-properties {
    grid-column: 2;
  }

  /* Adjust container width to accommodate the new layout */
  .property-showcase {
    max-width: 1400px;
  }

  /* Ensure the contact form doesn't get too narrow */
  .contact-form {
    min-width: 320px;
  }

  /* Add some space on the right of the contact form */
  .contact-form-section {
    padding-right: 20px;
  }

  /* Add a subtle border to visually separate the sections */
  .contact-form-section {
    border-right: 1px solid rgba(0,0,0,0.1);
    margin-right: 20px;
  }
}

/* Add scrollbar styling for the contact form section */
@media (min-width: 992px) {
  .contact-form-section::-webkit-scrollbar {
    width: 6px;
  }

  .contact-form-section::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .contact-form-section::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
  }

  .contact-form-section::-webkit-scrollbar-thumb:hover {
    background: var(--royal-blue);
  }
}