/* ========================================
   Card Moteur de Recherche Annonces
======================================== */

/* Titre principal */
.search-card-title {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 100%;
  text-align: center;
  color: #000000;
  margin: 0 0 35px 0;
}

/* Formulaire */
.search-card-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Toggle À louer / À vendre */
.transaction-toggle {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.toggle-btn {
  width: 141px;
  height: 42px;
  border-radius: 5px;
  border: none;
  background-color: transparent;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-btn.active {
  background-color: #839D83;
  color: #FFFFFF;
}


/* Select type de bien */
.bien-select-wrapper {
  display: block;
}

.bien-select-wrapper.hidden {
  display: none;
}

.form-select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background-color: #FFFFFF;
  cursor: pointer;
}

/* Input code postal */
.form-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.form-input::placeholder {
  color: #999999;
}

/* Bouton principal */
.btn-search-card {
  width: 100%;
  height: 60px;
  background-color: #839D83;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Style du select et de ses options */
.form-select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background-color: #FFFFFF;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #839D83;
  background-color: #FFFFFF;
}

.form-select option {
  background-color: #FFFFFF;
  color: #000000;
  padding: 10px;
}

.form-select option:hover {
  background-color: #F5F5F5;
}

/* Icône dans le bouton toggle */
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* === SECTION CABINETS === */
.sv-cabinets-section {
  padding: 20px 0;
}

.sv-cabinets-title {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  margin-bottom: 20px;
  color: #52525B;
}

/* === GRILLE === */
.sv-cabinets-grid {
  display: grid;
  grid-template-columns: repeat(4, 310px);
  gap: 20px;
}

/* === BOUTON AJOUTER === */
.sv-cabinet-add {
  width: 310px;
  height: 320px;
  border-radius: 8px;
  border: 1px solid #839D83;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sv-cabinet-add:hover {
  background-color: rgba(227, 239, 227, 0.3);
}

.sv-cabinet-add__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #E3EFE3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #839D83;
}

.sv-cabinet-add__text {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #000000;
  margin: 0;
}

/* === CARTE CABINET === */
.sv-cabinet-card {
  width: 310px;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sv-cabinet-card__image {
  width: 100%;
  height: 140px;
  background: #ddd;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
}

.sv-cabinet-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-cabinet-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.sv-cabinet-card__content {
  width: 100%;
  height: 180px;
  padding: 15px 20px;
  background: #F7F8F8;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.sv-cabinet-card__name {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  color: #52525B;
  margin: 0 0 10px 0;
}

.sv-cabinet-card__infos {
  display: flex;
  gap: 20px;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #52525B;
  margin-bottom: auto;
}

.sv-cabinet-card__infos-left,
.sv-cabinet-card__infos-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-cabinet-card__btn {
  width: 270px;
  height: 37px;
  border-radius: 8px;
  background: #E3EFE3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #62A662;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sv-cabinet-card__btn:hover {
  background: #d4e6d4;
}

.sv-cabinet-card__btn:hover {
  background: #d4e6d4;
  color: #62A662;
  text-decoration: none;
}

.sv-cabinet-card__btn:visited,
.sv-cabinet-card__btn:active,
.sv-cabinet-card__btn:focus {
  color: #62A662;
  text-decoration: none;
}

.sv-cabinet-card__info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv-cabinet-card__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* === RESPONSIVE CABINETS === */
@media screen and (max-width: 1350px) {
  .sv-cabinets-grid {
    grid-template-columns: repeat(3, 310px);
  }
}

@media screen and (max-width: 1020px) {
  .sv-cabinets-grid {
    grid-template-columns: repeat(2, 310px);
  }
}

@media screen and (max-width: 700px) {
  .sv-cabinets-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sv-cabinet-add,
  .sv-cabinet-card {
    width: 100%;
    max-width: 310px;
  }
}

/* === SECTION PRATICIENS === */
.sv-praticiens-section {
  padding-top: 42px;
  padding-right: 40px;
}

.sv-praticiens-title {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  margin-bottom: 20px;
  color: #52525B;
}

/* === GRILLE PRATICIENS === */
.sv-praticiens-grid {
  display: grid;
  grid-template-columns: 252px repeat(4, 244px);
  gap: 20px;
  margin-bottom: 20px;
}

/* === BOUTON AJOUTER PRATICIEN === */
.btn-add {
  position: relative;
}

.sv-praticien-add__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #E3EFE3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #839D83;
}

.sv-praticien-add__text {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #000000;
  margin: 0;
}

/* === CARTE PRATICIEN === */
.sv-praticien-card {
  width: 244px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sv-praticien-card__image {
  width: 100%;
  height: 200px;
  background: #ddd;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
}

.sv-praticien-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-praticien-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.sv-praticien-card__content {
  width: 100%;
  padding: 15px;
  background: #F0F6F4;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-sizing: border-box;
}

.sv-praticien-card__name {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 28px;
  color: #333333;
  margin: 0;
}

.sv-praticien-card__specialty {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 23px;
  color: #687277;
  margin: 0 0 10px 0;
}

.sv-praticien-card__link {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 9px;
  line-height: 100%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sv-praticien-card__link:hover {
  color: #000000;
  text-decoration: none;
}

.sv-praticien-card__arrow {
  font-size: 24px;
}

/* === RESPONSIVE PRATICIENS === */
@media screen and (max-width: 1400px) {
  .sv-praticiens-grid {
    grid-template-columns: 252px repeat(3, 244px);
  }
}

@media screen and (max-width: 1100px) {
  .sv-praticiens-grid {
    grid-template-columns: 252px repeat(2, 244px);
  }
}

@media screen and (max-width: 800px) {
  .sv-praticiens-grid {
    grid-template-columns: repeat(2, 244px);
    justify-content: center;
  }

  .sv-praticien-add {
    width: 244px;
  }
}

@media screen and (max-width: 550px) {
  .sv-praticiens-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sv-praticien-add,
  .sv-praticien-card {
    width: 100%;
    max-width: 244px;
  }
}