/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

/* === Pagina individuală === */
body.single-garsoniera {
  background-color: #fef1e7;
}

.single-garsoniera-container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 960px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: 'Open Sans', sans-serif;
}

.garsoniera-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #c94d00;
  margin: 1rem 0;
  text-align: center;
}

/* === Grid garsoniere homepage === */
.garsoniere-grid-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem 0;
  box-sizing: border-box;
}

/* === Card homepage === */
.garsoniera-card-home {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1 1 calc(25% - 2rem);
  max-width: 240px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
  position: relative;
}

/* === Imagine garsonieră === */
.garsoniera-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #eee;
}

.garsoniera-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

/* === Badge DE ÎNCHIRIAT / DE VÂNZARE === */
.garsoniera-badge-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-inchiriere {
  background-color: #f04e00;
}

.badge-vanzare {
  background-color: #8a2be2;
}

/* === Conținut text === */
.tip-imobil {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

.garsoniera-card-home h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.pret-garsoniera {
  font-weight: bold;
  color: #c94d00;
  margin: 0.5rem 0;
}

/* === Buton === */
.ast-button {
  background-color: #f04e00;
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ast-button:hover {
  background-color: #cf3f00;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .garsoniera-card-home {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (max-width: 600px) {
  .garsoniera-card-home {
    flex: 1 1 100%;
  }
}
/* Badge doar pentru pagina garsoniera-card-home */
.garsoniera-card-home .badge-imagine-garsoniera {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f04e00;
    text-align: center;
    padding: 0.4rem 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.garsoniera-card-home .badge-text-garsoniera {
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}/* Îmbunătățire vizuală badge */
.garsoniera-card-home .badge-imagine-garsoniera {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Uniformizare text */
.garsoniera-card-home h3 {
  text-transform: uppercase;
  line-height: 1.3;
}

/* Responsive fix pentru 4 coloane stricte */
@media (min-width: 1025px) {
  .garsoniera-card-home {
    flex: 0 0 240px;
  }
}
.garsoniera-badge-test {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #f04e00;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.garsoniera-badge-test.badge-vanzare {
  background-color: #8a2be2;
}
