/* =========================================================
 * CREATE LISTING (Landing + Form)
 * ========================================================= */

.vm-site-header { position: relative; }

/* ==========================
 * Landing wrapper
 * ========================== */
.vm-create-listing-wrap {
    max-width: 1150px;
    margin: 16px auto 34px auto;
    padding: 0 16px;
}

.vm-create-listing-wrap::before{
  content:"";
  display:block;
  height: 10px;
}

.vm-cl-card{
  background: var(--vm-white);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-lg);
  padding: 22px;
  box-shadow: var(--vm-shadow);
}

/* ==========================
 * Headings / copy (Step header)
 * ========================== */

#vm-create-listing .vm-cl-step-head{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1px solid var(--vm-border);
  border-radius: 18px;
  background: #f8fafc;
  margin: 0 0 20px;
}

#vm-create-listing .vm-cl-step-badge{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 850;
  font-size: 16px;
  line-height: 1;
  background: var(--vm-brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .14);
  flex: 0 0 auto;
}

#vm-create-listing .vm-cl-step-head-main{
  min-width: 0;
}

#vm-create-listing .vm-cl-step-head h2{
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0f172a;
}

#vm-create-listing .vm-cl-step-head p{
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.55;
}

/* Separación visual entre pasos (cuando se alternan) */
#vm-create-listing .vm-cl-step{
  padding-top: 6px;
}

#vm-create-listing .vm-cl-hidden{ display:none; }

/* ==========================
 * Grid base (campos)
 * ========================== */
.vm-cl-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 14px;
}

/* En paso 1 common es 1 columna */
#vm-cl-common{
  grid-template-columns: 1fr;
}

/* Campo */
.vm-cl-field{
  position: relative;
}

.vm-cl-field label{
  display:block;
  font-weight: 650;
  margin: 0 0 6px;
  color: var(--vm-brand-700);
  letter-spacing: -0.005em;
}

/* ==========================
 * Inputs / selects / textarea
 * ========================== */
.vm-cl-input,
.vm-cl-select,
.vm-cl-textarea,
.ds-interval-row select,
input.vm-tax-search{
  width: 100%;
  height: 45px;
  border: 1px solid var(--vm-border) !important;
  padding: 10px 12px;
  box-shadow: none !important;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 400;
  transition: border-color .12s ease, background-color .12s ease, outline-color .12s ease;
  border-radius: var(--vm-radius-md);
  font-size: 16px;
}

.vm-cl-textarea{
  height: auto;
  min-height: 132px;
  resize: vertical;
  padding: 12px 12px;
}

.vm-cl-input:hover,
.vm-cl-select:hover,
.vm-cl-textarea:hover,
.ds-interval-row select:hover,
input.vm-tax-search:hover{
  border-color:#cbd5e1 !important;
}

.vm-cl-input:focus,
.vm-cl-select:focus,
.vm-cl-textarea:focus,
.ds-interval-row select:focus,
input.vm-tax-search:focus{
  outline: 2px solid var(--vm-brand) !important;
  outline-offset: 2px !important;
  border-style: solid !important;
  border-color: var(--vm-brand) !important;
}

#vm-create-listing ::placeholder{ color:#9aa3b2; }

/* ==========================
 * Help text
 * ========================== */
.vm-cl-help{
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* ==========================
 * Check / radio (unificación)
 * ========================== */
.vm-cl-check, .vm-cl-radio, .ds-flag {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
}

/* Checkbox consistente (solo dentro del formulario) */
#vm-create-listing input[type="checkbox"]{
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  border: 2px solid var(--vm-border);
  border-radius: 5px;
  background: #fff;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}

#vm-create-listing input[type="checkbox"]:focus{
    border-style: solid !important;
}

#vm-create-listing input[type="checkbox"]:hover{
  border-color: #cbd5e1 !important;
}

#vm-create-listing input[type="checkbox"]:focus-visible{
  outline: 2px solid var(--vm-brand);
  outline-offset: 2px;
  border-color: var(--vm-brand);
}

#vm-create-listing input[type="checkbox"]:checked{
  background: var(--vm-brand);
  border-color: var(--vm-brand);
}

#vm-create-listing input[type="checkbox"]:checked:hover {
    opacity: 0.96;
    border-color: var(--vm-brand) !important;
}

#vm-create-listing input[type="checkbox"]:checked::after{
  content: "";
  width: 10px;
  height: 10px;
  display: block;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path fill='white' d='M4.3 7.4L1.6 4.7 0.2 6.1l4.1 4.1L12 2.5 10.6 1z'/></svg>");
  transform: translateY(-1px);
}

#vm-create-listing input[type="checkbox"]:disabled{
  background: #f3f4f6;
  border-color: #e5e7eb;
  cursor: not-allowed;
}
#vm-create-listing input[type="checkbox"]:disabled:checked{
  background: #9ca3af;
  border-color: #9ca3af;
}

/* ==========================
 * Botones (unificados)
 * ========================== */
#vm-create-listing button::-moz-focus-inner{ border:0; }

.vm-cl-type,
.vm-geo-btn,
.vm-atr-btn,
.ds-actions .button,
.ds-remove-interval,
.vm-cl-actions button,
.vm-cl-field.vm-field-multi .vm-chip-btn,
.vm-cl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 16px;
  border: 1px solid var(--vm-border) !important;
  background:#fff;
  color: var(--vm-brand);
  font-weight: 650;
  text-decoration:none;
  cursor:pointer;
  box-shadow:none !important;
  transition: border-color .12s ease, background-color .12s ease, transform .04s ease;
  border-radius: 999px;
}

.vm-cl-type:focus,
.vm-geo-btn:focus,
.vm-atr-btn:focus,
.ds-actions .button:focus,
.vm-cl-actions button:focus,
#vm-create-listing .vm-cl-btn.is-ghost:focus{
  border: 1px solid var(--vm-border) !important;
  color: var(--vm-brand) !important;;
  background: #fff !important;
}

.vm-cl-type:hover,
.vm-geo-btn:hover,
.vm-atr-btn:hover,
.ds-actions .button:hover,
.vm-cl-actions button:hover,
.vm-cl-field.vm-field-multi .vm-chip-btn:hover,
#vm-create-listing .vm-cl-btn.is-ghost:hover{
  color: var(--vm-brand);
  background: var(--vm-soft) !important;
  border:1px solid #cbd5e1 !important;
}

.vm-cl-type:active,
.vm-geo-btn:active,
.vm-atr-btn:active,
.ds-actions .button:active,
.vm-cl-actions button:active,
#vm-create-listing .vm-cl-btn.is-ghost:active{
  background: var(--vm-soft-active) !important;
}

.vm-cl-type:focus-visible,
.vm-geo-btn:focus-visible,
.vm-atr-btn:focus-visible,
.ds-actions .button:focus-visible,
.vm-cl-actions button:focus-visible,
#vm-create-listing .vm-cl-btn.is-ghost:focus-visible{
  outline: 2px solid var(--vm-brand) !important;
  outline-offset: 2px !important;
}

.vm-geo-btn:disabled,
.ds-actions .button:disabled,
.vm-cl-actions button:disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}

/* Acciones: primario / secundario */
.vm-cl-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--vm-border);
}

.vm-cl-actions .vm-cl-next,
.vm-geo-btn.vm-geo-btn-save,
.vm-cl-actions .vm-cl-submit,
#vm-create-listing .vm-cl-btn.is-primary{
  background: var(--vm-brand) !important;
  border-color: var(--vm-brand) !important;
  color:#fff !important;
}

.vm-cl-actions .vm-cl-next:focus,
.vm-geo-btn.vm-geo-btn-save:focus,
.vm-cl-actions .vm-cl-submit:focus,
#vm-create-listing .vm-cl-btn.is-primary:focus{
  background: var(--vm-brand) !important;
  border-color: var(--vm-brand) !important;
  border-style: solid !important;
  color:#fff !important;
}

.vm-cl-actions .vm-cl-next:hover,
.vm-geo-btn.vm-geo-btn-save:hover,
.vm-cl-actions .vm-cl-submit:hover,
#vm-create-listing .vm-cl-btn.is-primary:hover{
  background: var(--vm-brand-700) !important;
  border-color: var(--vm-brand-700) !important;
}

.vm-cl-actions .vm-cl-next:active,
.vm-geo-btn.vm-geo-btn-save:active,
.vm-cl-actions .vm-cl-submit:active,
#vm-create-listing .vm-cl-btn.is-primary:active{
  background: #142135 !important;
  border-color: #142135 !important;
}

.vm-cl-actions .vm-cl-back{
  background:#fff !important;
  border-color: var(--vm-border) !important;
  color: var(--vm-brand) !important;
}

/* ==========================
 * Paso 0: selección CPT
 * ========================== */
.vm-cl-types{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.vm-cl-type{
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
}

.vm-cl-type:hover{
  border-color: var(--vm-brand) !important;
}

/* ==========================
 * Paso 1: layout (campos + mapa)
 * ========================== */
.vm-cl-step1-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.vm-cl-step1-left{
  min-width: 0;
}

.vm-cl-step1-right{
  min-width: 0;
}

/* Sticky map card en desktop */
.vm-cl-step1-right .vm-geo-map-wrap{
  margin-top: 0;
  position: sticky;
  top: 14px;
}

/* Compact layout cuando GEO está oculto (SOLO DESKTOP)*/
@media (min-width: 721px){
  .vm-cl-step1-layout.vm-geo-compact{
    grid-template-columns: 1fr;
  }

  .vm-cl-step1-layout.vm-geo-compact .vm-cl-step1-right{
    display: none;
  }

  /* Cuando GEO está oculto en desktop -> common en 2 columnas */
  .vm-cl-step1-layout.vm-geo-compact #vm-cl-common{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================
 * GEO (inputs + clear)
 * ========================== */
.vm-geo-input-wrap{
  position: relative;
  display: block;
}

.vm-geo-input-wrap .vm-cl-input{
  padding-right: 44px;
}

.vm-geo-clear{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 0;
    color: #64748b;
}

.vm-geo-input-wrap.is-clearable .vm-geo-clear{
  display: inline-flex;
}

.vm-geo-clear:hover{
  background: rgba(255,255,255,.98);
  color: #cc3530;
}

/* Dropdown estilo “Google” (pinned al input) */
.vm-geo-dd-host,
.vm-geo-input-wrap,
.vm-geo-address-row{
  position: relative;
  overflow: visible;
}

.vm-geo-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 999;
  background: #fff;
  border: 1px solid var(--vm-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2,6,23,.14);
  max-height: 290px;
  overflow: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Scrollbar discreto */
.vm-geo-suggest::-webkit-scrollbar{ width: 10px; }
.vm-geo-suggest::-webkit-scrollbar-thumb{ background: #e5e7eb; border-radius: 999px; border: 3px solid #fff; }

.vm-geo-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  width:100%;
  text-align:left;
  padding: 10px 10px;
  background:transparent;
  border: 0;
  cursor:pointer;
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a;
  border-radius: 12px;
}

.vm-geo-item:hover{ background: #f8fafc; color: var(--vm-brand-900); }
.vm-geo-item.is-manual{ font-weight: 700; color: var(--vm-brand); }
.vm-geo-item.is-add{ font-weight: 700; }

.vm-geo-item svg{
  flex:0 0 auto;
  pointer-events:none;
  opacity:.95;
  min-width: 18px;
  margin-top: 1px;
}

.vm-geo-empty{
  padding: 10px 10px;
  color:#64748b;
  font-size:13px;
}

/* Address row + buscar */
.vm-geo-address-row{
  display:flex;
  gap:6px;
  align-items:center;
}

.vm-geo-btn-search{
  min-width: 100px;
  height: 45px;
  padding: 10px 14px;
  border-radius: 4px;
}

/* País bloqueado */
.vm-cl-field.is-locked input{
  opacity:.75;
  cursor:not-allowed;
}

/* ==========================
 * Mapa (card)
 * ========================== */
.vm-geo-map-wrap{
  margin-top: 14px;
  border: 1px solid var(--vm-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--vm-shadow-soft);
}

.leaflet-top {
    z-index: 20 !important;
}
.leaflet-pane {
    z-index: 19;
}

.vm-geo-map{
  height: 340px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid #edf2f7;
}

.leaflet-marker-icon.vm-leaflet-marker{
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
}
.leaflet-marker-icon.vm-leaflet-marker:hover{
  filter: brightness(1.06) drop-shadow(0 3px 10px rgba(0,0,0,.28));
}

.vm-geo-map-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap: wrap;
}

.vm-geo-map-actions .vm-geo-btn-mark{
  background: var(--vm-accent) !important;
  border-color: var(--vm-accent) !important;
  color:#fff !important;
}
.vm-geo-map-actions .vm-geo-btn-mark:hover{
  opacity: .95;
}

.vm-geo-adjust-hint{
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 13px;
  color: #475569;
}

.vm-geo-map-confirm{
  margin-top: 12px;
  padding: 12px 12px;
  border: 1px solid var(--vm-border);
  border-radius: 14px;
  background: #f8fafc;
}
.vm-geo-map-confirm-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap: wrap;
}
.vm-geo-map-confirm-text {
    font-size: 16px;
}
.confirm-address {
    font-weight: bold;
    font-style: italic;
}

/* Checkbox de owner intend */
div#vm-cl-owner-intent {
    margin: 16px 0;
    padding: 5px;
    border: none;
}
#vm-cl-owner-intent .vm-cl-help {
    margin-top: 5px;
}

/* ==========================
 * STEP 2 (Specific): secciones por group
 * ========================== */

#vm-cl-specific{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vm-cl-specific-section{
  border: 1px solid var(--vm-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.vm-cl-specific-section > h3{
    margin: 0 0 10px;
    font-weight: 750;
    font-size: 20px;
    color: #002f5e;
    letter-spacing: -0.01em;
}

.vm-cl-specific-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.vm-cl-specific-section.is-single .vm-cl-specific-grid{
  grid-template-columns: 1fr;
}

.vm-cl-field.is-wide{
  grid-column: 1 / -1;
}

.vm-cl-subsection{
  grid-column: 1 / -1;
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
  margin-top: 6px;
}

.vm-cl-subsection-title{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 17.5px;
  color: #002f5e;
}

.vm-cl-subgrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 14px;
}

/* ==========================
 * Taxonomías / secciones
 * ========================== */
#vm-cl-poi .vm-cl-check {
    margin: 8px 0 12px 0;
}

.vm-cl-tax-section{
    margin: 24px 0;
    padding: 14px;
    border: 1px solid var(--vm-border);
    border-radius: 16px;
    background: #fff;
}

.vm-cl-tax-section h3{
    margin: 0 0 6px;
    font-weight: 750;
    font-size: 20px;
    color: var(--vm-brand-700);
    letter-spacing: -0.01em;
}

.vm-cl-tax-section .vm-cl-help{
  margin: 2px 0 10px;
}

.vm-cl-tax-list{
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 340px;
    overflow: auto;
    padding: 12px;
    background: #fff;
}

.vm-cl-tax-list::-webkit-scrollbar{ width: 10px; }
.vm-cl-tax-list::-webkit-scrollbar-thumb{ background: #e5e7eb; border-radius: 999px; border: 3px solid #fff; }

.vm-tax-search{
  max-width: 320px;
  height: 42px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
}

/* Checks en lista: más aire */
.vm-cl-tax-list .vm-cl-check{
  padding: 2px 0;
}

/* ==========================
 * Atracción: botones de categoría principal
 * ========================== */
.vm-atr-buttons{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.vm-atr-btn{
  background: #fff;
  border-color: var(--vm-border) !important;
  padding: 10px 12px;
  font-weight: 500;
}

.vm-atr-btn.is-active{
  background: var(--vm-brand) !important;
  border-color: var(--vm-brand) !important;
  color:#fff !important;
}

.vm-atr-btn.is-active .vm-atr-ico{
  filter: brightness(0) invert(1);
}

.vm-atr-ico{
  width: 18px;
  height: 18px;
  flex:0 0 18px;
}

/* ==========================
 * Chips (multi-select)
 * ========================== */
.vm-cl-field.vm-field-multi{
  border: 1px solid var(--vm-border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.vm-cl-field.vm-field-multi label{
  margin-bottom: 8px;
}

.vm-cl-field.vm-field-multi .vm-hidden-select{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
}

.vm-cl-field.vm-field-multi .vm-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 6px 0 12px;
}

.vm-cl-field.vm-field-multi .vm-chip{
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 8px 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.35;
  transition: background .15s ease, border-color .15s ease, transform .04s ease;
}

.vm-cl-field.vm-field-multi .vm-chip:hover{
  background:#eef2f7;
  border-color:#b6c2cf;
}

.vm-cl-field.vm-field-multi .vm-chip:focus-within{
  outline: 2px solid var(--vm-brand);
  outline-offset: 2px;
}

.vm-cl-field.vm-field-multi .vm-chip-x{
  box-shadow: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: #cc3530;
}

.vm-cl-field.vm-field-multi .vm-chip-options{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.vm-cl-field.vm-field-multi .vm-chip-btn{
  font-size: 16px;
  font-weight: 600;
  padding: 10px 12px;
}

.vm-cl-field.vm-field-multi .vm-chip-btn[aria-pressed="true"]{
  background: var(--vm-brand) !important;
  border-color: var(--vm-brand) !important;
  color:#fff !important;
}

/* ==========================
 * Schedule (Owner-like, modern)
 * ========================== */
.vm-cl-check.vm-cl-schedule-toggle {
    margin: 10px 0 13px 0;
}

.vm-schedule-mode{
  margin-top: 12px;
}

.vm-schedule-mode .vm-subtle{
  color:#64748b;
  font-size: 16.3px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.ds-wrap{
  display: grid;
  gap: 16px;
  margin: 16px 0 6px;
}

.ds-day-block{
  padding: 14px 12px;
  background: var(--vm-soft);
  border: 1px solid var(--vm-border);
  border-radius: 16px;
}

.ds-day-block h4{
    margin: 0 0 4px;
    color: var(--vm-brand);
    font-size: 16.5px;
}

.ds-flag {
    gap: 6px;
    margin-right: 8px;
}

.ds-actions{
  margin: 6px 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-actions .button{
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    margin: 4px 0 3px 0;
    padding: 7.3px 12px;
    border-radius: 10px;
}

.ds-intervals{
  display:grid;
  gap: 8px;
}

.ds-interval-row{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ds-interval-row select{
  min-width: 140px;
  height: 42px;
  padding: 8px 28px 8px 10px;
  line-height: 1.35;
  font-size: 15px;
  border-radius: 12px;
}

.ds-interval-row > span{
  color:#475569;
  user-select:none;
}

.ds-remove-interval{
    min-width: 38px;
    min-height: 38px;
    padding: 0 0 2px 0 !important;
    font-size: 21px;
    font-weight: 500;
    line-height: 0 !important;
}

.ds-remove-interval:hover{
  color: #cc3530;
  background: #fff !important;
}

/* ==========================
 * GEO - Skeleton loaders
 * ========================== */
@keyframes vm-geo-shimmer{
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.vm-geo-item.is-skeleton{
  cursor: default;
  pointer-events: none;
}

.vm-geo-item.is-skeleton:hover{ background: transparent; }

.vm-geo-skel-ico{
  width:18px;
  height:18px;
  border-radius:6px;
  flex:0 0 18px;
}

.vm-geo-skel-bar{
  height:12px;
  border-radius:999px;
  display:block;
  flex:0 0 auto;
}

.vm-geo-skel-ico,
.vm-geo-skel-bar{
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: vm-geo-shimmer 3.35s ease-in-out infinite;
}

/* ==========================
 * GEO - Confirm loader (reverse)
 * ========================== */
@keyframes vm-geo-spin { to { transform: rotate(360deg); } }

.vm-geo-confirm-loader{
  display:flex;
  align-items:center;
  gap:8px;
  color:#475569;
  font-size:13px;
  padding:2px 0;
}

.vm-geo-spinner{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.55);
  animation: vm-geo-spin .8s linear infinite;
}

/* ==========================
 * Errores inline y mensajería
 * ========================== */
.vm-cl-field.is-error .vm-cl-input,
.vm-cl-field.is-error .vm-cl-select,
.vm-cl-field.is-error .vm-cl-textarea,
.vm-cl-field.is-error .ds-interval-row select{
  border-color: var(--vm-danger) !important;
}

.vm-cl-error{
  color: var(--vm-danger);
  font-size: 13px;
  margin-top: 6px;
}

.vm-cl-msg{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  display:none;
  line-height: 1.45;
}

.vm-cl-msg.is-error{
  display:block;
  background:#fff1f1;
  border:1px solid #fecaca;
  color:#7f1d1d;
}

.vm-cl-msg.is-success{
  display:block;
  background:#ecfff0;
  border:1px solid #b6f0c2;
  color:#14532d;
}

.vm-cl-msg.is-info{
  display:block;
  background:#eef6ff;
  border:1px solid #b9d8ff;
  color:#0b2a5b;
}

/* Multi-select chips en error */
.vm-cl-field.is-error.vm-field-multi{
  border-color: var(--vm-danger) !important;
}

/* =========================================================
 * LOADING OVERLAY
 * ========================================================= */
#vm-cl-loading-overlay.vm-loading{
  position: fixed;
  display: none;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 2.5vw, 24px);
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: saturate(120%) blur(5px);
  backdrop-filter: saturate(120%) blur(5px);
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
#vm-cl-loading-overlay.vm-loading.is-open{ display: grid; }

#vm-cl-loading-overlay .vm-loading-card{
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--vm-border);
  border-radius: 16px;
  padding: 20px 22px;
  min-width: 280px;
  max-width: min(420px, 92vw);
  box-shadow: 0 10px 30px rgba(2,6,23,.18);
  text-align: center;
  margin: 0;
}

#vm-cl-loading-overlay .vm-spinner{
  width: 28px;
  height: 28px;
  border: 3px solid var(--vm-accent);
  border-right-color: transparent;
  border-radius: 50%;
  margin: 0 auto 10px;
  -webkit-animation: vmspin .8s linear infinite;
          animation: vmspin .8s linear infinite;
}
#vm-cl-loading-text{
  margin: 0;
  font-weight: 600;
  color: var(--vm-brand-900);
}

/* Animación base spinner */
@-webkit-keyframes vmspin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes vmspin { to { transform: rotate(360deg); } }

/* =========================================================
 * Inline loaders coherentes
 * ========================================================= */
.vm-inline-loader{
  margin: 8px 0;
}

/* ==========================
 * Success screen (post-submit)
 * ========================== */
#vm-create-listing .vm-cl-success{
  display:block;
}

#vm-create-listing .vm-cl-success.is-open{
  animation: vmClPop .28s ease-out both;
}

@keyframes vmClPop{
  from{ transform: translateY(6px); opacity: .0; }
  to{ transform: translateY(0); opacity: 1; }
}

#vm-create-listing .vm-cl-success-inner {
    position: relative;
    overflow: hidden;
}

#vm-create-listing .vm-cl-confetti{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
}

#vm-create-listing .vm-cl-confetti.is-fadeout{
  opacity: 0;
  transition: opacity .7s ease;
}

#vm-create-listing .vm-cl-success-hero{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--vm-border);
}

#vm-create-listing .vm-cl-success-icon{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
  flex: 0 0 auto;
}

#vm-create-listing .vm-cl-success-title{
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0f172a;
}

#vm-create-listing .vm-cl-success-sub{
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.55;
}

#vm-create-listing .vm-cl-success-panels{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  margin-top: 18px;
}

#vm-create-listing .vm-cl-success-panel{
  border: 1px solid var(--vm-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

#vm-create-listing .vm-cl-success-panel h3{
  margin: 0 0 10px;
  font-size: 17.3px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

#vm-create-listing .vm-cl-success-steps{
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.6;
  font-size: 16.3px;
}

#vm-create-listing .vm-cl-success-steps li + li{
  margin-top: 6px;
}

#vm-create-listing .vm-cl-success-meta{
  display:grid;
  grid-template-columns: 1fr;
}

#vm-create-listing .vm-cl-success-meta dl{
  margin: 0;
  display:grid;
  gap: 6px 0px;
  grid-template-columns: 120px 1fr;
  align-items:start;
  font-size: 16.3px;
}

#vm-create-listing .vm-cl-success-meta dt{
  color: #64748b;
  font-weight: 650;
}

#vm-create-listing .vm-cl-success-meta dd{
  margin: 0;
  color: #0f172a;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#vm-create-listing .vm-cl-success-actions{
  display:flex;
  gap: 10px;
  margin-top: 18px;
}

#vm-create-listing .vm-cl-success-note{
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.5;
  font-size: 13px;
}

/* ==========================
 * Responsive
 * ========================== */
@media (max-width: 912px){
    .vm-cl-card { border: none; border-radius: 0; padding: 0; box-shadow: none; }

    .vm-cl-tax-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }    
}

@media (max-width: 720px){
  .ast-container { padding-left: 0; padding-right: 0; }
  .vm-site-header { padding-left: 20px; padding-right: 20px; }
  #vm-create-listing { padding: 0; }
  #vm-create-listing .vm-cl-step { padding-left: 20px; padding-right: 20px; }

  #vm-create-listing .vm-cl-step-head{
    padding: 12px;
  }
  #vm-create-listing .vm-cl-step-badge{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
  }
  #vm-create-listing .vm-cl-step-head h2{
    font-size: 20px;
  }

  .vm-cl-step1-layout{ display: block; }
  .vm-cl-grid{ grid-template-columns: 1fr; }

  .vm-geo-map-wrap { position: static; top: auto; margin-top: 14px; padding: 0; border: none; border-radius: 0; box-shadow: none; }

  .vm-cl-specific-grid{ grid-template-columns: 1fr; }

  .ds-interval-row select{ min-width: auto; }

  .vm-cl-tax-list { grid-template-columns: repeat(1, minmax(0, 1fr)); }

  /* Barra de acciones más usable en móvil */
  .vm-cl-actions{
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-top: 1px solid var(--vm-border);
    margin-top: 16px;
    z-index: 1000;
  }

  .vm-cl-actions .vm-cl-back,
  .vm-cl-actions .vm-cl-next,
  .vm-cl-actions .vm-cl-submit{
    flex: 1 1 auto;
    justify-content: center;
  }

  .vm-cl-msg{ margin-left: 20px; margin-right: 20px; }

  #vm-create-listing .vm-cl-success { padding: 8px 20px 36px 20px; }
  #vm-create-listing .vm-cl-success-panels{ grid-template-columns: 1fr; }
  .vm-cl-success-hero { flex-direction: column; text-align: center; }
  #vm-create-listing .vm-cl-success-actions{ flex-direction: column; }
  #vm-create-listing .vm-cl-btn{ width: 100%; }
}