/* ============================
   Testata: slide immobile
   ============================ */
.property-header-slider {
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
  background: #000;
}

.property-header-slider__inner {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out; /* transizione più fluida */
}

.property-header-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.property-header-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pulsanti testata */
.property-header-prev,
.property-header-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4); /* più elegante e trasparente */
  color: white;
  border: none;
  font-size: 32px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.property-header-prev { left: 20px; }
.property-header-next { right: 20px; }

.property-header-prev:hover,
.property-header-next:hover {
  background: rgba(0,124,62,0.85); /* verde coerente */
}

/* Indicatori (pallini) */
.property-header-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.property-header-indicators span {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.property-header-indicators span.active {
  background: #fff;
}

/* Responsive testata */
@media screen and (max-width: 768px) {
  .property-header-slider {
    height: 300px;
  }
  .property-header-slide {
    height: 300px;
  }
  .property-header-prev,
  .property-header-next {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
}

/* ============================
   Galleria slider con pulsanti
   ============================ */
.property-gallery-slider {
  position: relative;
  max-width: 1200px;
  margin: 60px auto 0px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 124, 62, 0.3), 0 0 8px rgba(0, 124, 62, 0.15);
  border-radius: 8px;
  background: #fff;
}

.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  object-fit: cover;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 124, 62, 0.85);
  color: white;
  border: none;
  font-size: 28px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-prev:hover,
.gallery-next:hover {
  background: #005f2c;
}

/* ============================
   Mappa
   ============================ */
.property-map {
  height: 400px;
  max-width: 1200px;
  border-radius: 8px;
  overflow: hidden;
  margin: 50px auto 40px;
  box-shadow: 0 4px 12px rgba(0, 124, 62, 0.3), 0 0 8px rgba(0, 124, 62, 0.15);
  background: #fff;
}

/* ============================
   Dettagli immobile
   ============================ */
.property-details {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-shadow: 0 4px 12px rgba(0, 124, 62, 0.3), 0 0 8px rgba(0, 124, 62, 0.15);
  border-radius: 8px;
  background: #fff;
}

.property-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.property-price {
  font-size: 26px;
  color: #007c3e;
  margin-bottom: 20px;
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.property-meta li {
  list-style: none;
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
}

/* ============================
   Descrizione
   ============================ */
.property-description h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #444;
}

.property-description-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  background: #fcfcfc;
  padding: 15px;
  border-radius: 4px;
  white-space: pre-line;
}

/* ============================
   Pulsanti azione
   ============================ */
.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  background: #5BC5CE;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #E6E6E6;
}

/* ============================
   Sezione agente
   ============================ */
.property-agent {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.property-agent h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

.agent-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.agent-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.agent-info {
  font-size: 16px;
  color: #444;
}

/* ============================
   Responsive
   ============================ */
@media screen and (max-width: 768px) {
  .gallery-slide {
    max-width: 100%;
  }

  .gallery-slide img {
    height: 420px;
    object-fit: cover;
  }

  .property-map {
    height: 300px;
  }

  .property-title {
    font-size: 26px;
  }

  .property-price {
    font-size: 22px;
  }

  .property-meta {
    grid-template-columns: 1fr;
  }

  .property-actions {
    flex-direction: column;
  }

  .agent-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-box img {
    width: 100px;
    height: 100px;
  }
}
/* ============================================
   LINGUETTA ATTIVA — VERSIONE ANTI-INLINE
============================================ */
.schede-contratto-tabs a.scheda-tab.attiva,
.schede-contratto-tabs a.scheda-tab.attiva:link,
.schede-contratto-tabs a.scheda-tab.attiva:visited,
.schede-contratto-tabs a.scheda-tab.attiva:hover,
.schede-contratto-tabs a.scheda-tab.attiva:focus,
.schede-contratto-tabs a.scheda-tab.attiva:active {
    background-color: #5BC5CE !important;
    border-color: #5BC5CE !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ✅ Pseudo-elemento che COPRE lo sfondo inline */
.schede-contratto-tabs a.scheda-tab.attiva::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #5BC5CE !important;
    border-radius: 6px 6px 0 0;
    z-index: -1;
}
