/*
 * Home Sweet Home — Cozy widgets styles
 * Based on the previous Cozy kit widgets requested for reintegration.
 */

.pls-cozy {
  --pls-cozy-bg: #0b0d10;
  --pls-cozy-bg-2: #0f1116;
  --pls-cozy-text: #ffffff;
  --pls-cozy-muted: rgba(255,255,255,.72);
  --pls-cozy-accent: #c9a86a;
  --pls-cozy-accent-2: rgba(201,168,106,.55);
  --pls-cozy-border: rgba(201,168,106,.35);
  --pls-cozy-serif: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', serif;
  --pls-cozy-sans: 'Montserrat', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--pls-cozy-sans);
  color: var(--pls-cozy-text);
}

.pls-cozy a {
  color: inherit;
}

.pls-cozy-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pls-cozy-head {
  text-align: center;
  margin-bottom: 56px;
}

.pls-cozy-kicker {
  color: var(--pls-cozy-accent);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.pls-cozy-title {
  font-family: var(--pls-cozy-serif);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  margin: 0;
}

.pls-cozy-subtitle {
  margin-top: 18px;
  color: var(--pls-cozy-muted);
  font-size: 16px;
  line-height: 1.7;
}

.pls-cozy-grid {
  display: grid;
}

/* =========================
   Cozy – Cartes Appartements (3)
   ========================= */
.pls-cozy-apartment-type {
  position: relative;
  background: linear-gradient(180deg, var(--pls-cozy-bg), var(--pls-cozy-bg-2));
  padding: 110px 0;
}

.pls-cozy-apartment-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pls-cozy-apartment-type__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.pls-cozy-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
}

.pls-cozy-card--apartment {
  height: 560px;
}

.pls-cozy-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .7s ease;
}

.pls-cozy-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62) 100%);
}

.pls-cozy-card__label {
  position: absolute;
  left: 0;
  bottom: 28px;
  max-width: 85%;
  background: rgba(0,0,0,.74);
  padding: 18px 22px;
  font-family: var(--pls-cozy-serif);
  font-size: 22px;
  letter-spacing: .01em;
  line-height: 1.15;
}

.pls-cozy-card:hover .pls-cozy-card__bg,
.pls-cozy-card:focus-visible .pls-cozy-card__bg {
  transform: scale(1.04);
}

.pls-cozy-card.is-staggered {
  transform: translateY(-18px);
}

.pls-cozy-card--editor-disabled {
  cursor: default;
}

/* =========================
   Cozy – Cartes Info (contour + highlight)
   ========================= */
.pls-cozy-city-cards {
  position: relative;
  background: linear-gradient(180deg, var(--pls-cozy-bg-2), var(--pls-cozy-bg));
  padding: 110px 0;
}

.pls-cozy-city-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pls-cozy-city-cards__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.pls-cozy-info-card {
  position: relative;
  border: 1px solid var(--pls-cozy-border);
  background: rgba(0,0,0,.18);
  overflow: hidden;
}

.pls-cozy-info-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pls-cozy-info-card__media {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.pls-cozy-info-card__body {
  padding: 26px 28px 30px;
}

.pls-cozy-info-card__cat {
  color: var(--pls-cozy-accent);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 14px;
}

.pls-cozy-info-card__title {
  font-family: var(--pls-cozy-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 14px;
}

.pls-cozy-info-card__text {
  color: var(--pls-cozy-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.pls-cozy-info-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pls-cozy-text);
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 8px;
}

.pls-cozy-info-card__link--editor-disabled {
  cursor: default;
}

.pls-cozy-info-card__arrow {
  font-size: 16px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .pls-cozy-apartment-type,
  .pls-cozy-city-cards {
    padding: 90px 0;
  }
}

@media (max-width: 767px) {
  .pls-cozy-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pls-cozy-apartment-type__grid,
  .pls-cozy-city-cards__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pls-cozy-card--apartment {
    height: 420px;
  }

  .pls-cozy-card.is-staggered {
    transform: none;
  }

  .pls-cozy-info-card__title {
    font-size: 30px;
  }
}
