/* =====================================================
   HONFLEUR INSIDER - MON HEBERGEMENT
   ===================================================== */

.rdh-hebergement {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 120px;
  box-sizing: border-box;
}

.rdh-hebergement-page-header {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}


/* FORMULAIRE */

.rdh-hebergement-form,
.rdh-hebergement-saved {
  background: #fff;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(18, 39, 74, 0.08);
}

.rdh-hebergement-field {
  margin-bottom: 17px;
}

.rdh-hebergement-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #17345c;
}

.rdh-hebergement-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #dbe2eb;
  border-radius: 15px;
  background: #f7f9fc;
  color: #17263c;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.rdh-hebergement-field input:focus {
  border-color: #254d7d;
  background: #fff;
}


/* BOUTON PRINCIPAL */

.rdh-hebergement-save,
.rdh-hebergement-locate {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #17345c;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.rdh-hebergement-save:disabled {
  opacity: .6;
}

.rdh-hebergement-message {
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.4;
  color: #526278;
}

.rdh-hebergement-message.rdh-error {
  color: #a42d2d;
}


/* HEBERGEMENT MEMORISE */

.rdh-hebergement-summary {
  padding: 2px 2px 17px;
}

.rdh-hebergement-saved-name {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 850;
  color: #17345c;
}

.rdh-hebergement-saved-address {
  margin-top: 5px;
  color: #637087;
  font-size: 14px;
  line-height: 1.4;
}

.rdh-hebergement-distance {
  margin-top: 11px;
  font-size: 16px;
  font-weight: 800;
  color: #17345c;
}


/* CARTE */

.rdh-hebergement-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #e9eef4;
}

.rdh-hebergement-map {
  width: 100%;
  height: 390px;
  background: #e9eef4;
}

.rdh-hebergement-locate {
  position: absolute;
  z-index: 800;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: auto;
  min-height: 46px;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}


/* BOUTONS MODIFIER / EFFACER */

.rdh-hebergement-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.rdh-hebergement-edit,
.rdh-hebergement-delete {
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.rdh-hebergement-edit {
  background: #eef3f8;
  color: #17345c;
  border: 0;
}

.rdh-hebergement-delete {
  background: #fff;
  color: #8f3535;
  border: 1px solid #eadada;
}


/* MARQUEURS */

.rdh-hebergement-marker {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #17345c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  border: 3px solid #fff;
  box-sizing: border-box;
}

.rdh-hebergement-marker span {
  transform: rotate(45deg);
  font-size: 19px;
}

.rdh-hebergement-user-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2585e6;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 4px rgba(37,133,230,.20),
    0 3px 10px rgba(0,0,0,.25);
}


/* MOBILE */

@media (max-width: 480px) {

  .rdh-hebergement {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rdh-hebergement-page-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rdh-hebergement-form,
  .rdh-hebergement-saved {
    padding: 16px;
    border-radius: 22px;
  }

  .rdh-hebergement-map {
    height: 350px;
  }
}

/* MODE DE SAISIE HEBERGEMENT */

.rdh-hebergement-or {
  margin: 14px 0;
  text-align: center;
  color: #8995a6;
  font-size: 13px;
  font-weight: 700;
}

.rdh-hebergement-current {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #d8e1eb;
  border-radius: 16px;
  background: #f1f5f9;
  color: #17345c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.rdh-hebergement-current:disabled {
  opacity: .6;
}

/* VALIDATION DE L'HEBERGEMENT */

.rdh-hebergement-confirm-buttons {
  margin-top: 15px;
}

.rdh-hebergement-confirm {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #17345c;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.rdh-hebergement-confirm-buttons .rdh-hebergement-edit {
  width: 100%;
}

/* Pendant la validation, masquer les boutons normaux */
#rdh-hebergement-confirm-buttons:not([hidden])
~ #rdh-hebergement-buttons {
  display: none !important;
}

/* RESULTATS DE RECHERCHE */

.rdh-hebergement-results {
  margin-top: 16px;
}

.rdh-hebergement-results-title {
  margin-bottom: 9px;
  color: #17345c;
  font-size: 15px;
  font-weight: 800;
}

.rdh-hebergement-result {
  display: block;
  width: 100%;
  margin-bottom: 9px;
  padding: 13px 15px;
  border: 1px solid #d7e0ea;
  border-radius: 15px;
  background: #f5f8fb;
  text-align: left;
  cursor: pointer;
}

.rdh-hebergement-result-name {
  color: #17345c;
  font-size: 15px;
  font-weight: 800;
}

.rdh-hebergement-result-address {
  margin-top: 4px;
  color: #69768a;
  font-size: 13px;
  line-height: 1.35;
}
