/* Contenedor Principal */
form#form-editar-mapa {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
}

.edit-container {
  margin: 0rem auto;

  border-radius: 0px;
  /* background: #ffffff; */
  padding: 0px 1.5rem;
  max-width: 600px;
}

/* Títulos y Etiquetas */
.edit-container h2 {
  font-weight: 800;
  font-size: var(--text-lg);
  text-align: center;
}

div#map-update {
  margin: 0rem auto;
  margin-top: 0rem;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
  border-radius: 0px;
  border-radius: 16px;
  background: #fdfdfd;
  /* background: #ffffff; */
  padding: 0px 1.5rem;
  padding: 1.5rem;
  max-width: 600px;
}

.edit-container span {
  color: #999;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.edit-container h3 {
  margin-top: 4px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
  color: #444;
  font-size: 1.1rem;
}

/* Envoltorio de Foto Actual */
.current-photo-wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: #fdfdfd;
  padding: 1.5rem;
}

.current-photo-wrapper img {
  display: block;
  margin: 10px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* Botones */
#btn-borrar-foto {
  display: block;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 1rem;
  margin: 0px auto;
  border: 1.5px solid #ff4757;
  border-radius: 10px;
  background: #fff0f1;
  padding: 10px 20px;
  color: #ff4757;
  font-weight: 700;
  font-size: 0.9rem;
}

#btn-borrar-foto:hover {
  background: #ff4757;
  color: #fff;
}

.btn_back_propiedades {
  display: block;
  margin-top: 1rem;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn_back_propiedades:hover {
  text-decoration: underline;
}

/* Estilización básica para FilePond (puedes personalizarlo más) */
.filepond--root {
  cursor: pointer;
  margin-bottom: 0;
}

.filepond--panel-root {
  border: 2px dashed #e1e1e1;
  background-color: #f8f9fa;
}

/* Contenedor Principal */
.wizard-container {
  margin: 2rem auto;
  margin-top: 0px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  background: #fff;
  padding: 2rem;
  width: 100%;
}
.wizard-container form {
  margin: 0px auto;
  width: 100%;
  max-width: 900px;
}

.pristine-error {
  margin-top: 2px;
  color: #ef6767;
  font-size: 13px;
  line-height: 1.5;
}

.wizard-container h2 {
  grid-column: 1 / -1;
  margin: 0px;
  padding: 0px;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.8rem;
}

/* Grid del Formulario */
.wizard-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Una columna en móvil */
  gap: 1.5rem;
}

/* En escritorio pasamos a 2 columnas */
@media (min-width: 768px) {
  .wizard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .full-width {
    grid-column: 1 / -1;
  }
}

/* Estilo de Inputs, Selects y Textareas */
.wizard-grid label {
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 2px;
  color: #444;
  font-weight: 600;
  font-size: 0.8rem;
}

.wizard-grid input[type="text"],
.wizard-grid input[type="number"],
.wizard-grid select,
.wizard-grid textarea {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-transition:
    border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition:
    border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  -webkit-border-radius: var(--radius-sm);
  -moz-border-radius: var(--radius-sm);
  -ms-border-radius: var(--radius-sm);
  -o-border-radius: var(--radius-sm);
  background-clip: padding-box;
  background-color: var(--color-surface);
  padding: 0.47rem 0.75rem;
  width: 100%;
  color: var(--color-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

.wizard-grid input:focus,
.wizard-grid select:focus,
.wizard-grid textarea:focus {
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(28, 132, 238, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(28, 132, 238, 0.25);
  border-color: #8ec2f7;
  background-color: var(--color-background);
  color: var(--color-text);
}

.wizard-grid input::-webkit-input-placeholder {
  opacity: 1;
  color: var(--color-text-light);
}

.wizard-grid input::-moz-placeholder {
  opacity: 1;
  color: var(--color-text-light);
}

.wizard-grid input:-ms-input-placeholder {
  opacity: 1;
  color: var(--color-text-light);
}

.wizard-grid input::-ms-input-placeholder {
  opacity: 1;
  color: var(--color-text-light);
}

.wizard-grid input::placeholder {
  opacity: 1;
  color: var(--color-text-light);
}

.wizard-grid input:disabled {
  opacity: 1;
  background-color: var(--color-surface-soft);
}

.form-check {
  display: block;
  margin-bottom: 0.125rem;
  padding-right: 1.5em;
  min-height: 1.21875rem;
}

.form-check .form-check-input {
  float: right;
  margin-right: -1.5em;
}

.form-check-reverse {
  padding-right: 0;
  padding-left: 1.5em;
  text-align: left;
}

.form-check-reverse .form-check-input {
  float: left;
  margin-right: 0;
  margin-left: -1.5em;
}

.form-check-input {
  --bs-form-check-bg: var(--color-bg);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  vertical-align: top;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-top: 0.25em;
  border: 1px solid var(--color-border);
  background-image: var(--bs-form-check-bg-image);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--bs-form-check-bg);
  width: 1em;
  height: 1em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:active {
  -webkit-filter: brightness(90%);
  filter: brightness(90%);
}

.form-check-input:focus {
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(28, 238, 123, 0.25);
  box-shadow: 0 0 0 0.25rem #1cee6d40;
  border-color: #9fbe9e;
}

.form-check-input:checked {
  border-color: #8ac540;
  background: #8ac540;
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input[type="checkbox"]:indeterminate {
  border-color: #1c84ee;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
  background-color: #8ac540;
}

.form-check-input:disabled {
  opacity: 0.5;
  -webkit-filter: none;
  filter: none;
  pointer-events: none;
}

.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
  opacity: 0.5;
  cursor: default;
}
.form-check-input:checked:focus {
  background-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .wizard-grid input[type="text"],
  .wizard-grid input[type="number"],
  .wizard-grid select,
  .wizard-grid textarea {
    -webkit-transition: none;
    transition: none;
  }
}

.wizard-grid textarea {
  height: 200px;
  /* Altura más razonable para móvil */
  resize: vertical;
}

/* Fieldsets (Operación, Tipo, Amenidades) */
.wizard-grid fieldset {
  margin-bottom: 10px;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
}

.wizard-grid legend {
  padding: 0 10px;
  color: #145a37;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

/* El contenedor de los chips seleccionados */
.selected-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Estilo del chip individual */
.chip-item {
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease;
  border-radius: 0.5rem;
  background-color: #8ac540;
  padding: 5px 12px;
  color: #ffffff;
  font-size: var(--text-micro);
  --bs-text-opacity: 1;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Dropdown (Reusando parte de tu lógica anterior) */
.dropdown-container {
  position: relative;
  width: 100%;
}
.dropdown-trigger {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* Asegura que empiece justo debajo del botón */
  left: 0;
  z-index: 999;
  /* Añade un pequeño margen para que no se solape con el botón */
  margin-top: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
  padding: 10px 0;
  width: 100%;
}
.dropdown-container.open .dropdown-content {
  display: block;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 15px;
}

.explication-txt {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  border-left: 4px solid #389d57;
  border-radius: 9px;
  background: oklab(0.62 -0.12 0.07 / 0.17);
  padding-left: 15px;
  padding: 0.5rem 16px;
  color: #666;
  font-size: var(--text-xs);
}
/* Navegación y Botón Guardar */
.wizard-nav {
  border-top: 1.5px solid #f0f0f0;
  padding-top: 20px;
  text-align: right;
}

.btn-wizard {
  display: block;
  transition:
    transform 0.2s,
    background-color 0.2s;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  cursor: pointer;
  margin: 0px auto;
  border: none;
  border: 1px solid #167516;
  border-radius: 6px;
  background-color: #389d57;
  padding: 16px 40px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.btn-wizard:active {
  transform: scale(0.96);
}

.btn-wizard:hover {
  transform: translateY(-1px);
  -webkit-transform: translateY(-1px);
  -moz-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  -o-transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(124, 248, 7, 0.4);
  background-color: #237b3d;
}

.btn-wizard:focus,
.btn-wizard:hover:focus {
  -webkit-box-shadow:
    0 0 0 0.25rem #1ceeee80,
    0.5;
  box-shadow:
    0 0 0 0.25rem #1ccbee80,
    0.5;
}

/* Opcional: Para que Precio y Moneda se vean juntos en la misma línea */
.price-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.price-group div:first-child {
  flex: 2;
}

.price-group div:last-child {
  flex: 1;
}

/* Contenedor principal */
.dropdown-container {
  position: relative;
  margin-top: 5px;
  width: 100%;
}

/* El botón simulado */
.dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background: #fff;
  padding: 10px 15px;
  min-height: 45px;
}

/* La flechita */
.arrow-icon::after {
  display: inline-block;
  transform: rotate(45deg);
  transition: 0.3s;
  border: solid #666;
  border-width: 0 2px 2px 0;
  padding: 3px;
  content: "";
}

.dropdown-container.open .arrow-icon::after {
  transform: rotate(-135deg);
}

/* El contenido desplegable */
.dropdown-content {
  max-height: 250px;
  overflow-y: auto;
}

/* Los items internos */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  cursor: pointer;
  border-radius: 4px;
  padding: 8px;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.form-switch-md .form-check-label {
  vertical-align: middle;
  font-size: 0.8125rem;
}
/* 1. Estado Base del Switch (Apagado) */
.form-switch .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-position 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
  margin-right: -2.5em; /* Ajusta según tu layout */
  border-radius: 2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
  background-position: left center; /* Posición apagado */
  background-size: contain;
  background-repeat: no-repeat;
  width: 2em;
}

/* 2. Estado al hacer clic o tener el Foco */
.form-switch .form-check-input:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(48, 97, 78, 0.25);
  /* Cambiamos la bolita a un color azul suave o el de tu marca */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23bec7b8'/%3e%3c/svg%3e");
}

/* 3. Estado Encendido (Checked) */
.form-switch .form-check-input:checked {
  border-color: #8ac540;
  /* Bolita blanca pura para que contraste con el fondo azul */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
  background-position: right center; /* La bolita se mueve a la derecha */
  background-color: #8ac540;
}

/* 4. Respetar accesibilidad (Sin movimiento) */
@media (prefers-reduced-motion: reduce) {
  .form-switch .form-check-input {
    transition: none !important;
  }
}
.form-switch-md {
  min-height: 26px;
  font-size: 20px;
  line-height: 26px;
}
.form-switch-md input.form-check-input {
  width: 3rem;
  height: 1.6rem;
}

.split-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px 16px;
}
/* Contenedor de Éxito */
.gracias-container {
  animation: slideUpFade 0.6s ease-out;
  margin: 4rem auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  border-radius: 28px;
  background: #ffffff;
  padding: 3rem 2rem;
  max-width: 500px;
  text-align: center;
}

/* Animación Lottie */
.lottie-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  margin-bottom: 2rem !important;
  /* Verde muy suave de fondo */
  border-radius: 50%;
  background: #f0fdf4;
}

.lottie-wrapper:hover {
  transform: scale(1.05);
}

/* Textos */
.gracias-container h1 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.2;
}

.gracias-container b {
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gracias-container p {
  display: inline-block;
  margin-top: 5px;
  border-radius: 10px;
  background: #f9f9f9;
  padding: 10px;
  color: #333;
  font-size: 1.1rem;
}

/* Acciones */
.gracias-actions {
  margin-top: 2.5rem;
}

.gracias-actions .btn {
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(251, 199, 106, 0.3);
  border-radius: 14px;
  background-color: #fbc76a;
  padding: 16px 32px;
  /* Tu dorado */
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.gracias-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(251, 199, 106, 0.4);
  background-color: #fbc050;
}

.breadcrumb-container {
  display: block;
  background: oklab(0.96 -0.01 0 / 0.39);
  padding: 10px 2rem 1px 2rem;
}

/* Animación de entrada */
@keyframes slideUpFade {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Contenedor de la información del post */
.info-slug {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  padding: 1.5rem;
}

.info-slug b {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.8rem;
}

.info-slug p {
  margin: 0;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.1rem;
  word-break: break-word;
  /* Evita que títulos largos rompan el diseño */
}

/* Botón con estilo "Principal" */
#btn-save-map,
.btn_back_propiedades {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin: 0px auto;
  margin-top: 2rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background-color: #fbc76a;
  padding: 16px 40px;
  max-width: 20rem;
  color: #000;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

#btn-save-map:hover,
.btn_back_propiedades:hover {
  transform: translateY(-2px);
  background-color: #000;
  color: #fbc76a;
}

/* Contenedor principal del mensaje */
.map-status-alert {
  display: inline-block;
  /* Se ajusta al contenido */
  animation: slideInDown 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  margin-top: 15px;
}

.map-status-content {
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  /* Verde esmeralda oscuro */
  border: 1px solid #a7f3d0;
  border-radius: 50px;
  background-color: #ecfdf5;
  padding: 10px 20px;
  /* Verde menta suave */
  color: #065f46;
  font-weight: 600;
  /* Forma de píldora */
  font-size: 0.9rem;
}

.status-icon {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
  font-size: 1.1rem;
}

.status-text {
  letter-spacing: -0.2px;
}

/* Animación de entrada sutil */
@keyframes slideInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modo Oscuro */
@media (prefers-color-scheme: dark) {
  .map-status-content {
    border-color: #065f46;
    background-color: #064e3b;
    color: #d1fae5;
  }
}

.page-title-box.d-sm-flex.align-items-center.justify-content-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0px auto;
  background: #f7f7f7;
  width: 100%;
  max-width: 900px;
}

h4.mb-sm-0.font-size-18 {
  margin: 0px;
  padding: 0px;
}

input.destacar-precio {
  border: 3px solid oklab(0.76 -0.11 0.13 / 0.5) !important;
}

.col-destacado {
  background-color: oklab(0.76 -0.11 0.13 / 0.1);
}

.filepond--drop-label {
  border: 2px solid #000;
  border-style: dashed;
  border-radius: 16px;
  background: oklab(1 0 0);
  width: 100%;
}

.content-wrapper {
  border: 1px solid #f7f7f7;
  border-bottom-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  background: #f7f7f7;
  padding: 2rem;
}
/* Mobile Adjustments */
@media (max-width: 480px) {
  .page-title-box.d-sm-flex.align-items-center.justify-content-between {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
  }
  .panel-der {
    display: flex;
    flex-direction: column-reverse;
  }
  .lottie-wrapper {
    display: block;
    max-width: 10rem;
  }

  .gracias-container {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .gracias-container h1 {
    font-size: 1.5rem;
  }

  .edit-container form {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}
