/* Property Detail Page Styles */

/* Force full-width */
body:has(.property-gallery-section) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

html:has(.property-gallery-section) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Header - Fixed */
body:has(.property-gallery-section) header {
  position: fixed !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  z-index: 1000;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Property Gallery Section - Photo Grid */
.property-gallery-section {
  position: relative;
  width: 100vw !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  margin-top: 80px !important;
  margin-bottom: 0 !important;
  padding: 60px 0 0 0;
  background-color: #FFFFFF;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


.property-gallery-grid {
  max-width: 1200px;
  width: calc(100% - 60px);
  margin: 0 auto;
  margin-bottom: 0 !important;
  padding: 0;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Airbnb-style layout: 1 large photo left (60%) + 4 small photos right (40%, 2x2) */
  /* Grid structure: 3 columns (large left, 2 small columns right), 2 rows */
  /* Ratio: 60% left column, 20% each right column = 3:1:1 */
  grid-template-columns: 3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  box-sizing: border-box;
  /* Fixed height ensures all photos are on same level */
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

/* First image: large on left, spans 2 rows and 1 column */
.property-gallery-item:first-child {
  grid-row: span 2;
  grid-column: 1;
}

/* Second image: top-left of right grid */
.property-gallery-item:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
}

/* Third image: top-right of right grid */
.property-gallery-item:nth-child(3) {
  grid-row: 1;
  grid-column: 3;
}

/* Fourth image: bottom-left of right grid */
.property-gallery-item:nth-child(4) {
  grid-row: 2;
  grid-column: 2;
}

/* Fifth image: bottom-right of right grid (with "+X photos") */
.property-gallery-item:nth-child(5) {
  grid-row: 2;
  grid-column: 3;
}

/* Video item: also spans 2 rows when present, takes left column */
.gallery-video-item {
  grid-row: span 2;
  grid-column: 1;
  position: relative;
}

/* When video is present, images after video should be in right columns */
/* First image after video: top-left */
.gallery-video-item + .property-gallery-item {
  grid-row: 1;
  grid-column: 2;
}

/* Second image after video: top-right */
.gallery-video-item + .property-gallery-item + .property-gallery-item {
  grid-row: 1;
  grid-column: 3;
}

/* Third image after video: bottom-left */
.gallery-video-item + .property-gallery-item + .property-gallery-item + .property-gallery-item {
  grid-row: 2;
  grid-column: 2;
}

/* Fourth image after video: bottom-right */
.gallery-video-item + .property-gallery-item + .property-gallery-item + .property-gallery-item + .property-gallery-item {
  grid-row: 2;
  grid-column: 3;
}

/* Mobile uniquement - single large photo - immersive, almost full width */
@media (max-width: 767px) {
  .property-gallery-section {
    position: relative;
  }
  
  .property-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    height: auto;
    min-height: auto;
    position: relative;
    overflow: hidden;
  }
  
  .property-gallery-item:first-child,
  .gallery-video-item {
    grid-row: span 1;
    border-radius: 14px;
    overflow: hidden;
    height: auto;
    min-height: auto;
  }
  
  /* Hide all images except the first on mobile */
  .property-gallery-item:not(:first-child) {
    display: none;
  }
  
  /* Hide "+X photos" overlay on mobile (will be clickable on first image) */
  .property-gallery-item:first-child .gallery-more-overlay {
    display: none;
  }
  
  /* Make first image more prominent and immersive */
  .property-gallery-item:first-child {
    border-radius: 0;
  }
  
  /* Ensure image maintains aspect ratio */
  .property-gallery-item:first-child .gallery-item-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }
  
  /* Vidéos - object-fit: contain pour ne pas les couper */
  .gallery-video-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
  }
  
  .gallery-video-item .gallery-item-video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain !important;
    object-position: center;
  }
  
  /* "Afficher plus de photos" text overlay on mobile - discrete, integrated */
  /* Fonctionne pour les images ET les vidéos */
  .property-gallery-item:first-child::after,
  .gallery-video-item::after {
    content: 'Afficher plus de photos';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: none;
    white-space: nowrap;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    letter-spacing: 0.3px;
  }
  
  .property-gallery-item:first-child:hover::after,
  .property-gallery-item:first-child:active::after,
  .gallery-video-item:hover::after,
  .gallery-video-item:active::after {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  
  /* Flèches discrètes pour la galerie photo en haut sur mobile uniquement */
  .property-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    box-shadow: none;
  }
  
  .property-gallery-nav:hover {
    opacity: 0.8;
  }
  
  .property-gallery-nav.prev {
    left: 20px;
  }
  
  .property-gallery-nav.next {
    right: 20px;
  }
}

/* Tablette uniquement - layout 2 colonnes : média principal (gauche) + image secondaire (droite) */
@media (min-width: 768px) and (max-width: 1024px) {
  .property-gallery-section {
    position: relative;
    padding: 0 20px;
  }
  
  .property-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    height: auto;
    min-height: 400px;
    max-height: 60vh;
    position: relative;
    overflow: hidden;
  }
  
  /* Média principal (gauche) - image ou vidéo */
  .property-gallery-item:first-child,
  .gallery-video-item {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }
  
  /* Image principale */
  .property-gallery-item:first-child .gallery-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Vidéo principale - object-fit: contain pour ne pas la couper */
  .gallery-video-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
  }
  
  .gallery-video-item .gallery-item-video {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
  }
  
  /* Image secondaire (droite) - 2ème image uniquement si pas de vidéo */
  .property-gallery-item:nth-child(2):not(.gallery-video-item + .property-gallery-item) {
    grid-column: 2;
    grid-row: 1;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  
  /* S'assurer que l'image secondaire a le même ratio que la principale */
  .property-gallery-item:nth-child(2):not(.gallery-video-item + .property-gallery-item) .gallery-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Masquer toutes les autres images (3ème, 4ème, etc.) sauf si vidéo présente */
  .property-gallery-item:nth-child(n+3):not(.gallery-video-item + .property-gallery-item) {
    display: none !important;
  }
  
  /* Masquer le "+X photos" overlay desktop sur l'image principale */
  .property-gallery-item:first-child .gallery-more-overlay {
    display: none;
  }
  
  /* "Afficher plus de photos" overlay sur l'image secondaire (droite) - cas sans vidéo */
  .property-gallery-item:nth-child(2):not(.gallery-video-item + .property-gallery-item)::after {
    content: 'Afficher plus de photos';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: none;
    white-space: nowrap;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    letter-spacing: 0.3px;
  }
  
  .property-gallery-item:nth-child(2):not(.gallery-video-item + .property-gallery-item):hover::after,
  .property-gallery-item:nth-child(2):not(.gallery-video-item + .property-gallery-item):active::after {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  
  /* Si la vidéo est présente, l'image secondaire doit être la première image après la vidéo */
  .gallery-video-item + .property-gallery-item {
    grid-column: 2;
    grid-row: 1;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  
  /* Image après vidéo - même ratio */
  .gallery-video-item + .property-gallery-item .gallery-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Masquer le "+X photos" overlay desktop sur l'image après vidéo */
  .gallery-video-item + .property-gallery-item .gallery-more-overlay {
    display: none;
  }
  
  /* "Afficher plus de photos" overlay sur l'image après vidéo */
  .gallery-video-item + .property-gallery-item::after {
    content: 'Afficher plus de photos';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: none;
    white-space: nowrap;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    letter-spacing: 0.3px;
  }
  
  .gallery-video-item + .property-gallery-item:hover::after,
  .gallery-video-item + .property-gallery-item:active::after {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  
  /* Masquer toutes les autres images après la vidéo */
  .gallery-video-item + .property-gallery-item + .property-gallery-item {
    display: none !important;
  }
  
  /* Masquer les flèches de navigation en tablette */
  .property-gallery-nav {
    display: none !important;
  }
}

/* Masquer les flèches de la galerie sur desktop */
@media (min-width: 1025px) {
  .property-gallery-nav {
    display: none !important;
  }
}


.property-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background-color: #f5f3ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
}

.property-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 154, 106, 0.25);
}

.property-gallery-item:hover .gallery-item-image,
.property-gallery-item:hover .gallery-item-video {
  transform: scale(1.05);
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Video item in gallery - enhanced visual appearance */
.gallery-video-item {
  grid-row: span 2;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  position: relative;
  /* S'assurer qu'aucun overlay ne bloque les clics */
}

.gallery-video-item .gallery-item-video {
  object-fit: cover;
  object-position: center;
}

.gallery-image-item {
  /* Standard image items */
}

.gallery-item-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.05);
  /* Compatible iOS/iPadOS */
  -webkit-playsinline: true;
  playsinline: true;
  /* Responsive */
  max-width: 100%;
  height: auto;
}

.gallery-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #b59a6a;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  /* S'assurer que le bouton est cliquable sur tous les appareils */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gallery-video-item:hover .gallery-video-play-btn {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

/* "+X photos" button overlay */
.gallery-more-item {
  position: relative;
  cursor: pointer;
}

.gallery-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
  backdrop-filter: blur(1px);
}

.gallery-more-item:hover .gallery-more-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.gallery-more-text {
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

/* Mobile: white background for grid mode */
@media (max-width: 1024px) {
  .lightbox.grid-mode {
    background-color: #FFFFFF;
    padding: 0;
  }
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  display: none;
}

.lightbox-video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  color: #4b463e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

.lightbox-close:hover {
  background-color: #FFFFFF;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 28px;
  color: #4b463e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(8px);
  font-weight: 300;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.1);
  color: #b59a6a;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Lightbox Grid View (Mobile) - Airbnb-style photo grid */
.lightbox-grid-container {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 60px 15px 30px;
  box-sizing: border-box;
  background-color: #FFFFFF;
  position: relative;
}

.lightbox.grid-mode {
  background-color: #FFFFFF;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.lightbox.grid-mode .lightbox-grid-container {
  display: block;
  width: 100%;
  height: 100%;
}

.lightbox.grid-mode .lightbox-image,
.lightbox.grid-mode .lightbox-video,
.lightbox.grid-mode .lightbox-nav {
  display: none;
}

.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.lightbox-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background-color: #f5f3ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-grid-item:active {
  transform: scale(0.98);
}

.lightbox-grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lightbox-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: #f5f3ef;
  position: relative;
  z-index: 1;
}

.lightbox-grid-item img.loaded {
  opacity: 1;
}

/* Show image immediately if it's already loaded */
.lightbox-grid-item img[complete] {
  opacity: 1;
}

/* Ensure images are visible even while loading */
.lightbox-grid-item {
  background-color: #f5f3ef;
  min-height: 100px;
  animation: fadeInGridItem 0.3s ease forwards;
}

@keyframes fadeInGridItem {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Desktop: hide grid view, show slideshow directly */
@media (min-width: 1025px) {
  .lightbox-grid-container {
    display: none !important;
  }
  
  .lightbox.grid-mode {
    background-color: rgba(0, 0, 0, 0.95);
  }
  
  .lightbox.grid-mode .lightbox-image,
  .lightbox.grid-mode .lightbox-video,
  .lightbox.grid-mode .lightbox-nav {
    display: block;
  }
}

/* Mobile: improve grid view styling */
@media (max-width: 768px) {
  .lightbox-grid-container {
    padding: 50px 10px 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .lightbox-grid {
    gap: 8px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .lightbox-grid-item {
    width: 100%;
    aspect-ratio: 1;
  }
  
  .lightbox-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .lightbox-close {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #4b463e;
  }
  
  /* Ensure close button is visible on white background */
  .lightbox.grid-mode .lightbox-close {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Very small screens: 2 columns instead of 3 */
@media (max-width: 480px) {
  .lightbox-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* Property Detail Section */
.property-detail-section {
  background-color: #FFFFFF;
  padding: 0 0 70px 0;
  width: 100vw !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.property-detail-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 15px 60px 0 60px;
  box-sizing: border-box;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Property Info Card (Left) */
.property-info-card {
  background-color: #f9f7f4;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.location-in-card {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.location-title-small {
  font-family: var(--font-title), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b463e;
  margin-bottom: 15px;
}

.location-map-wrapper-small {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
}

.location-map-wrapper-small iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.property-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: #4b463e;
  margin-bottom: 10px;
  white-space: nowrap;
}

.property-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #7A6548;
  margin-bottom: 35px;
  font-weight: 500;
}

.property-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.property-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.property-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.property-info-item.property-price {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 2px solid rgba(181, 154, 106, 0.3);
  border-bottom: none;
}

.info-icon {
  font-size: 1.4rem;
  min-width: 30px;
  text-align: center;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.info-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #7A6548;
  font-weight: 400;
  flex: 1;
}

.info-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #4b463e;
  font-weight: 400;
}

.price-value {
  font-size: 1.3rem;
  color: #b59a6a;
}

/* Property Description (Right) */
.property-description {
  padding: 0;
}

.description-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: #4b463e;
  margin-bottom: 30px;
}

.description-content {
  font-family: var(--font-body), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b463e;
}

.description-content p {
  margin-bottom: 20px;
}

.amenities-title {
  font-family: var(--font-title), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #4b463e;
  margin-top: 35px;
  margin-bottom: 20px;
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.amenities-list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b463e;
  margin-bottom: 12px;
  padding-left: 0;
}

.closing-text {
  margin-top: 25px;
  font-style: italic;
  color: #7A6548;
}

/* Collection note line (italic, centered) */
.property-collection-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
  color: #7A6548;
  opacity: 0.8;
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 0;
}

.property-collection-note em {
  font-style: italic;
  font-weight: 400;
}

/* Section titles for "Accès des voyageurs" and "Équipements" */
.detail-section-title {
  font-family: var(--font-title), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #4b463e;
  margin-top: 35px;
  margin-bottom: 20px;
}

/* Equipment divider line (like luxury villas) */
.equipments-divider {
  width: 100%;
  max-width: 100%;
  height: 1px;
  background-color: rgba(200, 169, 119, 0.2);
  margin: 30px 0;
  border: none;
  padding: 0;
}

/* Equipment text (centered, italic, like luxury villas) */
.equipments-text {
  font-family: var(--font-body), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #777;
  margin: 0;
  font-style: italic;
  text-align: center;
  padding: 0;
}

/* WhatsApp CTA Button */
.property-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 45px;
  background-color: #f8f6f2;
  color: #b59a6a;
  border: 1px solid #b59a6a;
  border-radius: 50px;
  font-family: var(--font-body), "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(181, 154, 106, 0.12);
  letter-spacing: 0.3px;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #f8f6f2;
  color: #b59a6a;
  border-color: #b59a6a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(181, 154, 106, 0.25);
}

.whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.1);
}

/* Location Section */
.property-location-section {
  background-color: #FAF8F5;
  padding: 60px 0;
  width: 100vw !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  display: none; /* Hidden since map is now in left column */
}

.property-location-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

.location-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  color: #4b463e;
  margin-bottom: 35px;
  text-align: center;
}

/* Property Map Section - Aligned with description column */
.property-map-section {
  margin-top: 40px;
  width: 100%;
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}

@media (min-width: 1025px) {
  .property-map-section {
    /* Align with description column: container padding (60px) + left column width (~33%) + gap (60px) */
    /* Simplified calculation: align with right column start */
    margin-left: calc(60px + (100% - 120px) / 3 + 60px);
    max-width: calc((100% - 120px) * 2 / 3);
  }
}

.property-map-section .location-title-small {
  text-align: left;
  margin-bottom: 20px;
}

.location-map-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
}

.location-map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .property-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .property-info-card {
    position: relative;
    top: 0;
  }
  
  .property-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
    padding: 0 40px;
  }
  
  .gallery-video-item {
    grid-column: span 2;
    grid-row: span 1;
    max-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  
  .gallery-video-item .gallery-item-video {
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .gallery-image-item {
    /* Standard size on tablet */
  }
  
  .gallery-more-item {
    grid-column: span 2;
  }
  
  .location-map-wrapper-small iframe {
    height: 250px;
  }
  
  .property-detail-container {
    padding: 15px 40px 0 40px;
    margin-top: 0 !important;
  }
  
  .property-location-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  /* S'assurer que la galerie est visible sur mobile */
  .property-gallery-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 60px !important;
    padding: 40px 0 0 0;
  }
  
  .property-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
    padding: 0 20px;
    height: auto;
    min-height: 200px;
  }
  
  .property-gallery-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-row: auto;
    grid-column: 1;
    max-height: 300px;
  }
  
  .gallery-video-item {
    grid-column: span 1;
    grid-row: span 1;
    max-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  
  .gallery-video-item .gallery-item-video {
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    /* Compatible iOS/iPadOS */
    -webkit-playsinline: true;
    playsinline: true;
  }
  
  .gallery-image-item,
  .gallery-more-item {
    max-height: 250px;
  }
  
  /* Bouton play toujours visible et cliquable sur mobile */
  .gallery-video-play-btn {
    z-index: 30 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .gallery-more-text {
    font-size: 1.1rem;
  }
  
  .location-in-card {
    margin-top: 30px;
    padding-top: 30px;
  }
  
  .location-title-small {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .location-map-wrapper-small iframe {
    height: 220px;
  }
  
  .property-detail-section {
    padding: 50px 0;
  }
  
  .property-detail-container {
    padding: 15px 30px 0 30px;
    margin-top: 0 !important;
  }
  
  .property-info-card {
    padding: 30px;
  }
  
  /* Section caractéristiques en horizontal sur mobile */
  .property-info-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }
  
  .property-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
    border-bottom: none;
    flex: 0 0 auto;
    min-width: 0;
  }
  
  .property-info-item .info-icon {
    font-size: 1.2rem;
    min-width: auto;
  }
  
  .property-info-item .info-label {
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
  }
  
  .property-info-item .info-value {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }
  
  .property-info-item.property-price {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    flex: 0 0 100%;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  .property-title {
    font-size: 1.8rem;
    white-space: normal;
  }
  
  .description-title {
    font-size: 1.6rem;
  }
  
  .description-content {
    font-size: 1rem;
  }
  
  .lightbox {
    padding: 20px;
  }
  
  .lightbox-image {
    max-width: 95%;
    max-height: 85%;
  }
  
  .lightbox-video {
    max-width: 95%;
    max-height: 75%;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  /* Flèches lightbox très discrètes sur mobile */
  .lightbox-nav {
    width: 28px;
    height: 28px;
    font-size: 16px;
    background-color: transparent;
    color: #FFFFFF;
    border: none;
    opacity: 0.4;
    box-shadow: none;
    backdrop-filter: none;
  }
  
  .lightbox-nav:hover {
    opacity: 0.8;
    background-color: transparent;
    transform: translateY(-50%) scale(1);
    color: #FFFFFF;
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
  
  .whatsapp-btn {
    padding: 15px 35px;
    font-size: 1rem;
  }
  
  .whatsapp-icon {
    width: 20px;
    height: 20px;
  }
  
  .property-location-section {
    padding: 50px 0;
  }
  
  .property-location-container {
    padding: 0 30px;
  }
  
  .location-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  
  .property-map-section {
    margin-top: 30px;
  }
  
  .property-map-section .location-title-small {
    margin-bottom: 15px;
  }
  
  .location-map-wrapper {
    padding: 15px;
  }
  
  .location-map-wrapper iframe {
    height: 350px;
  }
}

/* Specific styles for Playa del Carmen property pages - Luxe Premium typography */
body:has(#propertyInfoBar) .property-description {
  margin-top: 50px;
}

body:has(#propertyInfoBar) .description-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #4b463e;
  margin-bottom: 35px;
}

body:has(#propertyInfoBar) .amenities-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

body:has(#propertyInfoBar) .description-content {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: #4b463e;
}

body:has(#propertyInfoBar) .description-content p {
  margin-bottom: 24px;
  font-family: 'Lora', serif;
  font-weight: 300;
}

body:has(#propertyInfoBar) .description-content p:last-child {
  margin-bottom: 0;
}

body:has(#propertyInfoBar) .description-content ul.amenities-list {
  font-family: 'Lora', serif;
  font-weight: 300;
}

body:has(#propertyInfoBar) .description-content ul.amenities-list li {
  font-family: 'Lora', serif;
  font-weight: 300;
}

/* Style léger pour toutes les flèches des galeries photos - Playa del Carmen uniquement */
/* Flèches de la galerie mobile */
body:has(#propertyInfoBar) .property-gallery-nav {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  color: rgba(201, 169, 106, 0.45) !important; /* doré/beige léger */
  opacity: 1 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body:has(#propertyInfoBar) .property-gallery-nav:hover {
  color: rgba(201, 169, 106, 0.75) !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

/* Flèches de la lightbox */
body:has(#propertyInfoBar) .lightbox-nav {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  color: rgba(201, 169, 106, 0.45) !important; /* doré/beige léger */
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:has(#propertyInfoBar) .lightbox-nav:hover {
  color: rgba(201, 169, 106, 0.75) !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-color: transparent !important;
  scale: 1 !important;
}

/* Styles pour SVG dans les flèches - Playa del Carmen */
body:has(#propertyInfoBar) .property-gallery-nav svg,
body:has(#propertyInfoBar) .lightbox-nav svg {
  fill: rgba(201, 169, 106, 0.45) !important;
  stroke: rgba(201, 169, 106, 0.45) !important;
  width: 22px !important;
  height: 22px !important;
}

body:has(#propertyInfoBar) .property-gallery-nav:hover svg,
body:has(#propertyInfoBar) .lightbox-nav:hover svg {
  fill: rgba(201, 169, 106, 0.75) !important;
  stroke: rgba(201, 169, 106, 0.75) !important;
}

/* Styles responsive pour mobile - Playa del Carmen */
@media (max-width: 768px) {
  body:has(#propertyInfoBar) .property-gallery-nav {
    font-size: 22px !important;
    width: auto !important;
    height: auto !important;
  }
  
  body:has(#propertyInfoBar) .lightbox-nav {
    font-size: 22px !important;
    width: auto !important;
    height: auto !important;
    color: rgba(201, 169, 106, 0.45) !important;
    opacity: 1 !important;
  }
  
  body:has(#propertyInfoBar) .lightbox-nav:hover {
    color: rgba(201, 169, 106, 0.75) !important;
    opacity: 1 !important;
  }
  
  body:has(#propertyInfoBar) .property-gallery-nav svg,
  body:has(#propertyInfoBar) .lightbox-nav svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ============================================================================
   ALIGNEMENT VIDÉOS - Penthouse Sabbia, Villa Bambouf, Condos Laak 38
   ============================================================================ */

.luxury-villa-presentation-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.presentation-video {
  width: 360px;
  flex-shrink: 0;
  transform: translateX(20px);
}

.presentation-video video,
.presentation-video iframe {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

/* ============================================================================
   CORRECTION SPÉCIFIQUE - CONDOS LAAK 38 - Alignement vidéo
   ============================================================================ */
body[data-property="condos-laak-38"] .luxury-villa-presentation-container {
  display: flex !important;
  align-items: center !important;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

body[data-property="condos-laak-38"] .presentation-video {
  width: 100%;
  max-width: 520px;
  flex-shrink: 0;
  margin-top: 50px;
}

body[data-property="condos-laak-38"] .presentation-video video,
body[data-property="condos-laak-38"] .presentation-video iframe,
body[data-property="condos-laak-38"] .luxury-villa-video-wrapper video {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

@media (max-width: 768px) {
  .luxury-villa-presentation-container {
    flex-direction: column;
    align-items: center;
  }

  .presentation-video {
    width: 100%;
    max-width: 320px;
    transform: none;
  }
  
  body[data-property="condos-laak-38"] .presentation-video {
    margin-top: 0;
    max-width: 100%;
  }
}

/* ============================================================================
   MOBILE SWIPE + PINCH ZOOM — PROPERTY LIGHTBOX (ROBUST iOS + Chrome)
   ============================================================================
   Prevents unwanted drag/zoom gestures during swipe + pinch navigation
   Isolated to property-detail lightbox only
   Mobile-only: @media (max-width: 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
  /* Lightbox: allow vertical scroll, swipe handled in JS */
  #lightbox {
    touch-action: pan-y; /* Allow vertical scroll, swipe handled in JS */
    -webkit-tap-highlight-color: transparent;
  }

  /* IMPORTANT: pointer-events:none on image so overlay captures swipe on Chrome iOS */
  #lightbox img,
  #lightbox .lightbox-image {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none; /* Events captured by overlay, not image */
    will-change: transform;
    transform-origin: 50% 50%;
  }
}

/* ============================================================================
   LIGHTBOX — Flèches blanches pour logements classiques (Playa / Cancún / Tulum)
   ============================================================================
   Override ciblé : utilise body:has(#propertyInfoBar) pour cibler uniquement
   les pages classiques (property-detail.js). Les villas de luxe n'ont pas cet élément.
   Force la couleur blanche sur les flèches prev/next
   ============================================================================ */
body:has(#propertyInfoBar) .lightbox-prev,
body:has(#propertyInfoBar) .lightbox-next,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-prev,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-next {
  color: #ffffff !important;
}

body:has(#propertyInfoBar) .lightbox-prev svg,
body:has(#propertyInfoBar) .lightbox-next svg,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-prev svg,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-next svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

body:has(#propertyInfoBar) .lightbox-prev i,
body:has(#propertyInfoBar) .lightbox-next i,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-prev i,
body:has(#propertyInfoBar) .lightbox-nav.lightbox-next i {
  color: #ffffff !important;
}

body:has(#propertyInfoBar) .lightbox-nav:hover,
body:has(#propertyInfoBar) .lightbox-prev:hover,
body:has(#propertyInfoBar) .lightbox-next:hover {
  color: #ffffff !important;
}

body:has(#propertyInfoBar) .lightbox-nav:hover svg,
body:has(#propertyInfoBar) .lightbox-prev:hover svg,
body:has(#propertyInfoBar) .lightbox-next:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

@media (max-width: 768px) {
  body:has(#propertyInfoBar) .lightbox-nav,
  body:has(#propertyInfoBar) .lightbox-prev,
  body:has(#propertyInfoBar) .lightbox-next {
    color: #ffffff !important;
  }
  
  body:has(#propertyInfoBar) .lightbox-nav:hover,
  body:has(#propertyInfoBar) .lightbox-prev:hover,
  body:has(#propertyInfoBar) .lightbox-next:hover {
    color: #ffffff !important;
  }
}

/* ============================================================================
   CASA AZUL — Description layout + video card (premium, non intrusive)
   ============================================================================
   Layout 2 colonnes dans la section Description uniquement
   Texte à gauche | Vidéo carte premium à droite (desktop)
   Empilé sur mobile
   ============================================================================ */

/* Casa Azul — Description layout + video card */
body[data-property="casaazul"] .casaazul-desc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

body[data-property="casaazul"] .casaazul-video-card {
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

body[data-property="casaazul"] .casaazul-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; /* vidéo verticale -> look propre */
  max-height: 520px; /* empêche "énorme" */
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  body[data-property="casaazul"] .casaazul-desc-layout {
    grid-template-columns: 1fr;
  }
  
  body[data-property="casaazul"] .casaazul-video {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }
}

/* ============================================================================
   IT CONDOS - Présentation éditoriale texte + vidéo
   ============================================================================ */
body[data-property="itcondos"] .itcondos-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-bottom: 48px;
}

body[data-property="itcondos"] .itcondos-editorial-text {
  min-width: 0;
  max-width: 640px;
}

body[data-property="itcondos"] .itcondos-editorial-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b463e;
}

body[data-property="itcondos"] .itcondos-editorial-body p {
  margin: 0 0 20px;
}

body[data-property="itcondos"] .itcondos-editorial-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8e5e0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #6b6560;
}

body[data-property="itcondos"] .itcondos-editorial-note em {
  font-style: italic;
  font-weight: 400;
}

body[data-property="itcondos"] .itcondos-video-column {
  width: 300px;
  flex-shrink: 0;
  align-self: center;
  margin-top: 40px;
  justify-self: end;
}

body[data-property="itcondos"] .itcondos-video-card {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  contain: layout size style;
}

body[data-property="itcondos"] .itcondos-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f0f0f;
}

@media (max-width: 768px) {
  body[data-property="itcondos"] .itcondos-editorial {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }

  body[data-property="itcondos"] .itcondos-editorial-text {
    max-width: none;
    order: 1;
  }

  body[data-property="itcondos"] .itcondos-video-column {
    width: min(100%, 280px);
    margin-top: 0;
    order: 2;
    justify-self: center;
  }

  body[data-property="itcondos"] .itcondos-video-card {
    width: 100%;
  }
}

/* ============================================================================
   MARTINA PENTHOUSE - Présentation éditoriale texte + vidéo
   ============================================================================ */
body[data-property="martina-penthouse"] .martinaph-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto 48px;
}

body[data-property="martina-penthouse"] .martinaph-editorial-text {
  min-width: 0;
}

body[data-property="martina-penthouse"] .martinaph-editorial-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b463e;
}

body[data-property="martina-penthouse"] .martinaph-editorial-body p {
  margin: 0 0 20px;
}

body[data-property="martina-penthouse"] .martinaph-editorial-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8e5e0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #6b6560;
}

body[data-property="martina-penthouse"] .martinaph-editorial-note em {
  font-style: italic;
  font-weight: 400;
}

body[data-property="martina-penthouse"] .martinaph-video-column {
  width: 300px;
  flex-shrink: 0;
  align-self: center;
}

body[data-property="martina-penthouse"] .martinaph-video-card {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  contain: layout size style;
}

body[data-property="martina-penthouse"] .martinaph-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f0f0f;
}

@media (max-width: 768px) {
  body[data-property="martina-penthouse"] .martinaph-editorial {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
    max-width: 100%;
  }

  body[data-property="martina-penthouse"] .martinaph-editorial-text {
    max-width: none;
    order: 1;
  }

  body[data-property="martina-penthouse"] .martinaph-video-column {
    width: min(100%, 280px);
    margin-top: 0;
    order: 2;
    justify-self: center;
  }

  body[data-property="martina-penthouse"] .martinaph-video-card {
    width: 100%;
  }
}

/* ============================================================================
   SABBIA BLANC - Présentation éditoriale texte + vidéo
   ============================================================================ */
body[data-property="penthouse-villanueva"] .sabbiablanc-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto 48px;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-editorial-text {
  min-width: 0;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-editorial-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b463e;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-editorial-body p {
  margin: 0 0 20px;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-video-column {
  width: 300px;
  flex-shrink: 0;
  align-self: center;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-video-card {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  contain: layout size style;
}

body[data-property="penthouse-villanueva"] .sabbiablanc-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f0f0f;
}

@media (max-width: 768px) {
  body[data-property="penthouse-villanueva"] .sabbiablanc-editorial {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
    max-width: 100%;
  }

  body[data-property="penthouse-villanueva"] .sabbiablanc-editorial-text {
    max-width: none;
    order: 1;
  }

  body[data-property="penthouse-villanueva"] .sabbiablanc-video-column {
    width: min(100%, 280px);
    margin-top: 0;
    order: 2;
    justify-self: center;
  }

  body[data-property="penthouse-villanueva"] .sabbiablanc-video-card {
    width: 100%;
  }
}

