/* Córdoba Turística — herramientas del formulario de dueños */
/* Editor de texto */
.mde{border:1px solid var(--line,#d6dde6);border-radius:12px;background:#fff;overflow:hidden;margin-top:6px}
.mde:focus-within{border-color:var(--brand,#0e7490);box-shadow:0 0 0 3px rgba(14,116,144,.12)}
.mde-bar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:5px;border-bottom:1px solid var(--line,#e2e8f0);background:#f8fafc;position:sticky;top:0;z-index:2}
.mde-bar button{min-width:38px;height:36px;border:0;border-radius:8px;background:none;cursor:pointer;color:#334155;font:inherit;font-size:.95rem;padding:0 9px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.mde-bar button:hover:not(:disabled),.mde-bar button[aria-pressed=true]{background:#e2e8f0;color:#0f172a}
.mde-bar button:disabled{opacity:.35;cursor:default}
.mde-bar .mde-h{font-weight:800;font-size:1.05rem}
.mde-bar .mde-prev{font-size:.85rem;font-weight:600;color:var(--brand,#0e7490)}
.mde-sp{flex:1}
.mde textarea{display:block;width:100%;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:12px 14px;font:inherit;font-size:16px;line-height:1.55;resize:vertical;min-height:180px;background:#fff;outline:0}
.mde-lite textarea{min-height:96px}
.mde-preview{padding:12px 16px;line-height:1.6;font-size:.98rem;color:#1e293b;overflow-wrap:anywhere}
.mde-preview h3{font-size:1.08rem;margin:.6em 0 .3em}.mde-preview p{margin:0 0 .7em}.mde-preview ul,.mde-preview ol{margin:0 0 .7em;padding-left:22px}
.mde-foot{padding:6px 12px;font-size:.78rem;color:#64748b;border-top:1px solid #f1f5f9;background:#fcfdfe}
.mde-warn{color:#b45309;font-weight:600}

/* Listas con «+ Agregar» */
.led{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.led [data-led-rows]{display:flex;flex-direction:column;gap:8px}
.led-row{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line,#d6dde6);border-radius:12px;padding:0 6px 0 12px}
.led-row:focus-within{border-color:var(--brand,#0e7490);box-shadow:0 0 0 3px rgba(14,116,144,.12)}
.led-ic{color:var(--brand,#0e7490);font-size:.85rem}
.led-row input{flex:1;border:0!important;box-shadow:none!important;background:none!important;height:44px;padding:0!important;margin:0!important;font-size:16px;outline:0;min-width:0}
.led-del{border:0;background:none;color:#94a3b8;width:36px;height:36px;border-radius:8px;cursor:pointer}
.led-del:hover{background:#fee2e2;color:#b91c1c}
.led-add{align-self:flex-start}

/* Unidades */
.ued-wrap{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.ued-wrap [data-units-list]{display:flex;flex-direction:column;gap:12px}
.ued{border:1px solid var(--line,#d6dde6);border-radius:14px;background:#fff;overflow:hidden}
.ued-head{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;background:#f8fafc;border-bottom:1px solid var(--line,#e2e8f0);cursor:pointer;user-select:none}
.ued.is-closed .ued-head{border-bottom:0}
.ued-num{width:26px;height:26px;border-radius:50%;background:var(--brand,#0e7490);color:#fff;font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.ued-title{font-size:.98rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ued-sp{flex:1}
.ued-ic{border:0;background:none;width:36px;height:36px;border-radius:8px;cursor:pointer;color:#475569}
.ued-ic:hover{background:#e2e8f0}.ued-del:hover{background:#fee2e2;color:#b91c1c}
.ued.is-closed .ued-body{display:none}
.ued.is-closed [data-unit-toggle] i{transform:rotate(180deg)}
.ued-body{padding:14px}
.ued-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 12px}
.ued-grid label{display:flex;flex-direction:column;gap:4px;font-size:.86rem;font-weight:600;color:#334155;margin:0}
.ued-grid input,.ued-grid select{font-size:16px}
.ued-wide{grid-column:1/-1}
.ued-grid label:has(select){grid-column:span 2}
.ued-photos{margin-top:12px}
.ued-label{display:block;font-size:.86rem;font-weight:600;color:#334155;margin-bottom:6px}
.ued-label small{font-weight:400;color:#64748b}
.ued-thumbs{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.ued-thumbs li{position:relative;width:92px;height:92px;border-radius:10px;overflow:hidden;background:#f1f5f9;flex:none}
.ued-thumbs li:first-child:not(.ued-add){outline:2px solid var(--brand,#0e7490);outline-offset:-2px}
.ued-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.ued-thumbs li>button{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(15,23,42,.7);color:#fff;cursor:pointer;font-size:.75rem}
.ued-thumbs li.is-error{display:flex;align-items:center;justify-content:center;padding:6px;font-size:.7rem;color:#b91c1c;text-align:center;background:#fef2f2}
.ued-spin{position:absolute;inset:0;margin:auto;width:26px;height:26px;border:3px solid #cbd5e1;border-top-color:var(--brand,#0e7490);border-radius:50%;animation:ot-spin .8s linear infinite}
.ued-add label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:100%;border:2px dashed #cbd5e1;border-radius:10px;color:#475569;font-size:.75rem;cursor:pointer;text-align:center}
.ued-add label:hover{border-color:var(--brand,#0e7490);color:var(--brand,#0e7490)}
.ued-add input{position:absolute;width:1px;height:1px;opacity:0}
.ued-add i{font-size:1.2rem}
.ued-addbtn{align-self:flex-start}
@media (max-width:640px){.ued-grid{grid-template-columns:1fr 1fr}.ued-grid label:has(select){grid-column:1/-1}.ued-thumbs li{width:78px;height:78px}}

/* Videos */
.vup{margin-top:18px}
.vup-list{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:10px}
.vup-item{display:flex;align-items:center;gap:12px;border:1px solid var(--line,#d6dde6);border-radius:14px;padding:8px;background:#fff}
.vup-item.is-error{border-color:#fecaca;background:#fef2f2}
.vup-prev{position:relative;width:132px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#0f172a;color:#94a3b8;display:flex;align-items:center;justify-content:center;flex:none;font-size:1.4rem}
.vup-item.is-vert .vup-prev{width:64px;aspect-ratio:9/16}
.vup-prev img{width:100%;height:100%;object-fit:cover}
.vup-badge{position:absolute;left:4px;bottom:4px;right:4px;background:rgba(0,0,0,.62);color:#fff;font-size:.62rem;font-weight:600;border-radius:6px;padding:2px 5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vup-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.vup-info b{font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vup-status{font-size:.8rem;color:#64748b}
.vup-item.is-error .vup-status{color:#b91c1c}
.vup-item.is-done .vup-info b::before{content:"\2713  ";color:#16a34a}
.vup-bar{height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin-top:3px}
.vup-bar i{display:block;height:100%;width:0;background:var(--brand,#0e7490);transition:width .3s}
.vup-del{border:0;background:none;width:38px;height:38px;border-radius:10px;color:#64748b;cursor:pointer;flex:none}
.vup-del:hover{background:#fee2e2;color:#b91c1c}
.vup-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px;border:2px dashed #cbd5e1;border-radius:14px;text-align:center;cursor:pointer;color:#334155;background:#fbfdff}
.vup-drop:hover,.vup-drop.is-over{border-color:var(--brand,#0e7490);background:#f0f9ff}
.vup-drop input{position:absolute;width:1px;height:1px;opacity:0}
.vup-drop i{font-size:1.6rem;color:var(--brand,#0e7490)}
.vup-drop span{font-size:.82rem;color:#64748b}
@keyframes ot-spin{to{transform:rotate(360deg)}}
/* ajustes de ancho en celulares */
.mde,.mde *,.ued,.ued *,.led,.led *,.vup,.vup *{box-sizing:border-box}
.ued-grid label{min-width:0}
.ued-grid input,.ued-grid select,.ued-grid textarea{width:100%;min-width:0;max-width:100%}
.ued-wrap,.ued,.mde{max-width:100%;min-width:0}
.vup-item.is-vert .vup-prev{width:72px}
.vup-item.is-vert .vup-badge{font-size:.56rem;padding:2px 3px}
@media (max-width:480px){.mde-prev span{display:none}.mde-bar button{min-width:40px}}
.mde textarea[hidden],.mde-preview[hidden]{display:none!important}
