/**
 * SITE-CORE.CSS - Paradise Vacation
 * Styles pour les hôtels et modaux
 */

/* === CARTES HÔTELS === */
.pv-grid-hotels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.pv-hotel-card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pv-hotel-thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  display: block;
}

.hotel-cover-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f0f0f0;
}

.pv-hotel-name {
  font-size: 1.3rem !important;
  text-align: center !important;
  margin: 15px auto 10px auto !important;
  font-weight: 600 !important;
  display: block !important;
  width: 100% !important;
}

.pv-stars {
  font-size: 1.5rem !important;
  text-align: center !important;
  color: #ffa500 !important;
  margin: 10px 0 !important;
  display: block !important;
}

.pv-trip {
  display: block !important;
  text-align: center !important;
  margin: 10px auto !important;
}

.pv-trip-logo {
  height: 32px !important;
  width: auto !important;
}

/* === MODAUX === */
.pv-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-modal {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.pv-modal-content {
  padding: 20px;
}

.pv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.pv-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-modal-close:hover {
  color: #000;
}

/* === SLIDER D'IMAGES === */
.pv-slider {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  position: relative;
}

.pv-slider img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.pv-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.pv-modal-actions button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.pv-modal-actions button:hover {
  background: white;
  transform: scale(1.1);
}

/* === MINIATURES === */
.pv-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.pv-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.pv-thumbnail.active {
  border-color: #022cd6;
}

.pv-thumbnail:hover {
  border-color: #022cd6;
  opacity: 0.8;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .pv-grid-hotels {
    grid-template-columns: 1fr;
  }
  
  .pv-modal {
    margin: 10px;
    max-height: 95vh;
  }
  
  .pv-slider {
    max-height: 400px;
  }
}


/* Neutraliseur de sécurité: empêche l'injection de guillemets/ponctuation
   dans les blocs de texte, sans casser les autres composants. */
.u-text *::before, .u-text *::after { content: none !important; }

