@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.site-header .header-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #333333;
  text-decoration: none;
  padding: 0 10px;
  transition: color 0.2s ease-in-out;
}

.site-header .header-link:hover {
  color: #007bff;
}

.site-header .logo-img {
  max-height: 60px;
  object-fit: contain;
}

.container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-left,
.header-right {
  flex: 0 0 auto;
}

/* Responsivitate pe mobil */
@media (max-width: 768px) {
  .site-header .header-link {
    font-size: 0.9rem;
  }

  .site-header .logo-img {
    max-height: 50px;
  }

  .phone-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #007bff;
    border-color: #ffffff;
    background-color: transparent;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease;
  }

  .phone-btn:hover {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
  }

  .carousel-img-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  
  .carousel-caption h5 {
    background-color: rgba(0, 123, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
  }

  #carouselAnunturi {
    border-radius: 1rem;
    overflow: hidden; /* ascunde depășirile imaginii */
  }
}

/* Stiluri desktop pentru carousel */
@media (min-width: 992px) {
  .carousel-caption h5 {
  background-color: rgba(0, 123, 255, 0.7); /* albastru semi-transparent */
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  display: inline-block; /* nu ocupă întreaga lățime */
}
  
  /* Limitează lățimea și centrează carousel-ul */
  #carouselAnunturi {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
  }

  /* Fixează înălțimea fiecărui slide */
  #carouselAnunturi .carousel-img-wrapper {
    height: 400px;
  }

  /* Adaptează imaginea la container */
  #carouselAnunturi .carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ============================
   Carousel mobil: înălțime fixă
   și obiect-fit: cover
   ============================ */
@media (max-width: 991.98px) {
  #carouselAnunturi {
    overflow: hidden;    /* ascunde părțile care ies din container */
    border-radius: 1rem; /* colțuri rotunjite */
    margin: 0 auto;      /* centrează orizontal */
  }

  /* Fiecare slide are acum înălțime fixă pe mobil */
  #carouselAnunturi .carousel-img-wrapper {
    height: 250px;       /* ajustează după cât înălțime vrei */
    max-width: 100%;
  }

  /* Imaginea se mulează perfect în wrapper */
  #carouselAnunturi .carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ============================
   Carousel mobil: înălțime fixă
   și obiect-fit: cover
   ============================ */
@media (max-width: 991.98px) {
  #carouselAnunturi {
    overflow: hidden;    /* ascunde părțile care ies din container */
    border-radius: 1rem; /* colțuri rotunjite */
    margin: 0 auto;      /* centrează orizontal */
  }

  /* Fiecare slide are acum înălțime fixă pe mobil */
  #carouselAnunturi .carousel-img-wrapper {
    height: 250px;       /* ajustează după cât înălțime vrei */
    max-width: 100%;
  }

  /* Imaginea se mulează perfect în wrapper */
  #carouselAnunturi .carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* =============================================
   Listings Grid & Cards
   ============================================= */
/* full-width container, zero margin/padding lateral */
.listings-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;  /* 1 coloană pe mobil */
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* 3 coloane egale pe desktop (≥768px) */
@media (min-width: 768px) {
  .listings-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* fiecare item ocupă 100% din „tren” */
.listing-item {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* card cu dimensiuni fixe, layout columnar */
.listing-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 380px;   /* înălțime fixă peste tot */
  overflow: hidden;
}

/* wrapperul imaginii ocupă 60% din card */
.listing-card .card-img-wrapper {
  width: 100%;
  height: 200px; /* sau cât vrei să fie zona imaginii */
  overflow: hidden;
  position: relative;
}

/* imaginea se mulează fără deformări */
.listing-card .card-img-wrapper .card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* badge exclusivitate jos-stânga */
.listing-card .badge-exclusiv {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 80px;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

/* corpul cardului ocupă restul spațiului */
.listing-card .card-body {
  flex: 1;
  padding: 0.75rem;
  overflow: auto;
}

/* =============================================
   Tweaks Header/mobile
   ============================================= */
@media (max-width: 768px) {
  .site-header .header-link {
    font-size: 0.9rem;
  }
  .site-header .logo-img {
    max-height: 50px;
  }
}

/* Stil săgeți carousel - vizibile și albastre */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #007bff; /* albastru site */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

/* Iconuri mai groase (folosim SVG-uri Bootstrap modificate) */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.5 0L4.5 1 7 4 4.5 7 5.5 8 9 4z' transform='rotate(180 4 4)'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 0L1.5 1 4 4 1.5 7 2.5 8 6 4z'/%3E%3C/svg%3E");
}

/* Pune close-ul chiar deasupra */
.modal-content .btn-close {
  z-index: 1100 !important;
  pointer-events: all;
}

/* Footer general */
.site-footer {
  background-color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
  padding-top: 40px;
  padding-bottom: 40px; /* asigură spațiu dedesubt pe toate paginile */
}

/* Container pentru sectiuni */
.footer-sections {
  display: flex;
  flex-direction: row; /* default desktop */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* permite sa se muleze pe mobil */
}

/* Fiecare sectiune */
.footer-section {
  width: auto;
  text-align: left;
  padding: 10px 0;
  position: relative;
}

/* Logo */
.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Link-uri */
.footer-link {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.footer-link:hover {
  color: #007bff;
}

/* Contact */
.contact-icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 10px;
}

/* --- Stil mobil --- */
@media (max-width: 767px) {
  .footer-sections {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  /* Linie intre sectiuni doar pe mobil */
  .footer-section:not(:last-child)::after {
    content: "";
    display: block;
    height: 0.5px;
    background-color: #000;
    margin: 10px 0 0 0;
  }
}

/* Linie ascunsa pe desktop */
@media (min-width: 768px) {
  .footer-section::after {
    display: none;
  }
}



