/* =========================================================
   Single Apartment
   File: /assets/css/re_apartment_single.css
   Scope: body.single-re_apartment
   ========================================================= */

body.single-re_apartment {
  background: #fff9; /* crema */
  --re-ico-size: 38px; 
}

/* Container page */
body.single-re_apartment .re-apt__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 18px 84px;
  color: #111315;
}

/* ---------------------------------
   Header row (title + price)
---------------------------------- */


body.single-re_apartment .re-apt__header{
  text-align: center;
}

body.single-re_apartment .re-apt__headRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

body.single-re_apartment .re-apt__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: 0.2px;
}

body.single-re_apartment .re-apt__desc{
  margin: 0 0 34px;
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  opacity: 0.9;
}

body.single-re_apartment .re-apt__priceBox {
  text-align: right;
  min-width: 220px;
}

body.single-re_apartment .re-apt__price {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 45px);
  font-weight: 200;
  opacity: .8;
}

body.single-re_apartment .re-apt-span {
  opacity: .8;
  font-style: italic;
}

body.single-re_apartment .re-apt__priceHint {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* ---------------------------------
   Facts row (icons + separators)
   (NO pills, NO cards)
---------------------------------- */
body.single-re_apartment .re-apt__facts {
  list-style: none;
  margin: 16px 0 26px;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

body.single-re_apartment .re-apt__fact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.92;
  position: relative;

  /* hard reset (evita pill/box) */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 14px 0 0 !important;
}

body.single-re_apartment .re-apt__fact + .re-apt__fact {
  padding-left: 14px !important;
}

body.single-re_apartment .re-apt__fact + .re-apt__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.22);
}

body.single-re_apartment .re-apt__ico svg{
  width: var(--re-ico-size);
  height: var(--re-ico-size);
  fill: currentColor;
  stroke: none;
  display: block;
}

/* ---------------------------------
   Hero
---------------------------------- */
body.single-re_apartment .re-apt__hero {
  margin: 0 0 34px;
}

body.single-re_apartment .re-apt__heroImg {
  display: block;
  width: 100%;
  height: auto;
}


body.single-re_apartment .re-apt__desc{
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* ---------------------------------
   Mosaic (2-1-2)
---------------------------------- */
body.single-re_apartment .re-apt__mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin: 0;
}

body.single-re_apartment .re-apt__tile {
  margin: 0;
  overflow: hidden;
}

body.single-re_apartment .re-apt__tile--half {
  grid-column: span 6;
  height: 280px;
}

body.single-re_apartment .re-apt__tile--full {
  grid-column: span 12;
  height: 320px;
}

body.single-re_apartment .re-apt__tileImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------
   CTA
---------------------------------- */
body.single-re_apartment .re-apt__cta {
  margin-top: 34px;
  text-align: center;
}

body.single-re_apartment .re-apt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  background: #0b3b35;
  color: #fff;
  cursor: pointer;
}


/* FACTS TOP: un pelo più grandi (testo + icone) */
body.single-re_apartment .re-apt__facts--top .re-apt__fact{
  font-size: 15.5px;       /* prima era 14px */
  gap: 12px;
  padding-right: 16px !important;
  --re-ico-size: 25px;
}

body.single-re_apartment .re-apt__facts--top .re-apt__fact + .re-apt__fact{
  padding-left: 16px !important;
}

body.single-re_apartment .re-apt__facts--top .re-apt__fact + .re-apt__fact::before{
  height: 16px;            /* separatore un pelo più alto */
}

body.single-re_apartment .re-apt__facts--top{
  margin-top: 18px;
  margin-bottom: 26px;
}

/* icone leggermente più grandi SOLO sopra */
body.single-re_apartment .re-apt__facts--top{
  --re-ico-size: 20px;     /* prima 18px */
}


/* ---------------------------------
   Lightbox trigger (hero + tile)
---------------------------------- */
body.single-re_apartment .re-lb__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

body.single-re_apartment .re-lb__trigger:focus-visible {
  outline: 3px solid #0b3b35;
  outline-offset: 2px;
}

/* ---------------------------------
   Lightbox modale
---------------------------------- */
.re-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.re-lb--open {
  display: flex;
}

/* Overlay scuro semitrasparente */
.re-lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Chiudi */
.re-lb__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.re-lb__close:hover,
.re-lb__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

/* Stage immagine */
.re-lb__stage {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-lb__img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.re-lb__img--loaded {
  opacity: 1;
}

/* Frecce navigazione */
.re-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a6a2a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.re-lb__nav--prev { left: 18px; }
.re-lb__nav--next { right: 18px; }

.re-lb__nav:hover,
.re-lb__nav:focus-visible {
  outline: none;
  opacity: 0.7;
}

.re-lb__nav:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Contatore (1 / 5) */
.re-lb__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: "DM Sans", system-ui, sans-serif;
  pointer-events: none;
}

/* Mobile: frecce più piccole e vicine ai bordi */
@media (max-width: 600px) {
  .re-lb__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .re-lb__nav--prev { left: 8px; }
  .re-lb__nav--next { right: 8px; }
  .re-lb__img {
    max-width: 96vw;
    max-height: 80vh;
  }
}

/* ---------------------------------
   Responsive
---------------------------------- */
@media (max-width: 980px) {
  body.single-re_apartment .re-apt__priceBox {
    text-align: left;
  }

  body.single-re_apartment .re-apt__tile--half,
  body.single-re_apartment .re-apt__tile--full {
    grid-column: span 12;
    height: auto;
  }

  body.single-re_apartment .re-apt__tileImg {
    height: auto;
  }
}
