/* ==========================================================================
 * Next Core Functions - Frontend Styles (Form, Gallery DnD, Catalog)
 * ========================================================================== */

.acf-field-wysiwyg .tmce-active textarea.wp-editor-area {
    display: none !important;
}

/* Shell Editorial Apple del Formulario */
.next-hub-form-shell {
    max-width: 1120px;
    margin: 0 auto 48px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    color: #1D1D1F;
    -webkit-font-smoothing: antialiased;
}
.next-hub-form-shell *,
.next-hub-form-shell *::before,
.next-hub-form-shell *::after {
    box-sizing: border-box;
}
.next-hub-form-header {
    margin-bottom: 22px;
}
.next-hub-form-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868B;
    margin-bottom: 6px;
}
.next-hub-form-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1D1D1F;
}
.next-hub-saved-banner {
    background: #F0FDF4;
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 12px;
    padding: 13px 18px;
    margin: 0 0 18px 0;
    font-size: 14px;
    font-weight: 600;
    color: #15803D;
}

/* Barra de Estado de Cupos (2 filas completas alineadas en Sindicación) */
.next-quotas-bar {
    width: 100%;
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #1D1D1F;
}
.next-quotas-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #F5F5F7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}
.next-quotas-label {
    font-size: 12px;
    font-weight: 600;
    color: #1D1D1F;
    min-width: 125px;
    margin-right: 4px;
}
.next-quotas-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.next-quota-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-size: 12px;
    color: #1D1D1F;
    white-space: nowrap;
}
.next-quota-pill strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
    .next-quotas-pills {
        justify-content: flex-start;
    }
}

/* Contenedor principal del formulario */
.next-hub-form-shell .acf-form {
    background: #FFFFFF;
    padding: 28px 32px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

/* Apple Tab Bar en una sola fila horizontal */
.next-hub-form-shell .acf-tab-wrap {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    grid-column: 1 / -1;
}
.next-hub-form-shell .acf-tab-wrap .acf-tab-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    overflow-x: auto !important;
    scrollbar-width: none;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 2px;
}
.next-hub-form-shell .acf-tab-wrap .acf-tab-group::-webkit-scrollbar {
    display: none;
}
.next-hub-form-shell .acf-tab-wrap li {
    margin: 0 !important;
    float: none !important;
    flex: 0 0 auto;
}
.next-hub-form-shell .acf-tab-wrap li a {
    display: block;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    color: #6E6E73 !important;
    padding: 10px 8px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
}
.next-hub-form-shell .acf-tab-wrap li a:hover {
    color: #1D1D1F !important;
}
.next-hub-form-shell .acf-tab-wrap li.active a {
    color: #1D1D1F !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #1D1D1F !important;
}

/* Grid limpio de campos ACF */
.next-hub-form-shell .acf-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.next-hub-form-shell .acf-fields::before,
.next-hub-form-shell .acf-fields::after {
    display: none !important;
}
.next-hub-form-shell .acf-fields > .acf-field {
    grid-column: 1 / -1;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    border: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
}
.next-hub-form-shell .acf-fields > .acf-field[data-width="50"] {
    grid-column: span 2;
}
.next-hub-form-shell .acf-fields > .acf-field[data-width="25"],
.next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card {
    grid-column: span 1;
    background: #FBFBFD;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 14px;
    padding: 14px 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    height: 92px;
}
.next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card.acf-hidden {
    display: none !important;
}
.next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card .acf-label {
    margin-bottom: 12px !important;
}
.next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card .acf-label label {
    font-size: 13px;
    font-weight: 600;
    color: #1D1D1F;
    line-height: 1.35;
}
@media (max-width: 900px) {
    .next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card {
        grid-column: span 2;
    }
}
@media (max-width: 600px) {
    .next-hub-form-shell .acf-fields {
        grid-template-columns: 1fr;
    }
    .next-hub-form-shell .acf-fields > .acf-field[data-width="50"],
    .next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card {
        grid-column: 1 / -1;
    }
    .next-hub-form-shell .acf-form {
        padding: 20px 18px 24px;
    }
}

/* Campos y tipografía */
.next-hub-form-shell .acf-field .acf-label {
    margin-bottom: 8px !important;
}
.next-hub-form-shell .acf-field .acf-label label {
    font-weight: 600;
    color: #1D1D1F;
    font-size: 13px;
    letter-spacing: -0.01em;
    text-transform: none;
    margin-bottom: 0;
}
.next-hub-form-shell .acf-input input[type="text"],
.next-hub-form-shell .acf-input input[type="number"],
.next-hub-form-shell .acf-input input[type="url"],
.next-hub-form-shell .acf-input select,
.next-hub-form-shell .acf-input textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font-size: 15px;
    color: #1D1D1F;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.next-hub-form-shell .acf-input input[type="text"],
.next-hub-form-shell .acf-input input[type="number"],
.next-hub-form-shell .acf-input input[type="url"] {
    height: 46px;
}
.next-hub-form-shell .acf-input input:focus,
.next-hub-form-shell .acf-input select:focus,
.next-hub-form-shell .acf-input textarea:focus {
    border-color: #1D1D1F;
    background-color: #FFFFFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

/* Botón Guardar Propiedad (Estilo Apple) */
.next-hub-form-shell .acf-form-submit {
    margin-top: 28px;
    text-align: right;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 22px;
}
.next-hub-form-shell .acf-form-submit input[type="submit"],
.next-hub-form-shell .acf-form-submit .acf-button {
    background: #1D1D1F !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    padding: 13px 26px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    height: auto !important;
    line-height: 1.2 !important;
}
.next-hub-form-shell .acf-form-submit input[type="submit"]:hover,
.next-hub-form-shell .acf-form-submit .acf-button:hover {
    background: #333336 !important;
}

/* Ajuste para el texto descriptivo del botón Gemini */
.acf-input span[style*="margin-left: 15px"] {
    display: inline-block;
    margin-top: 12px;
}

/* Select y Select2 refinados (sin flechas duplicadas) */
.next-hub-form-shell select + .select-arrow,
.next-hub-form-shell .select-wrapper::after,
.next-hub-form-shell .select2-selection__arrow b,
.next-hub-form-shell .select2-selection__arrow::after {
    display: none !important;
}
.next-hub-form-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
    border-left: none !important;
}
.next-hub-form-shell .acf-input select,
.next-hub-form-shell .select2-container--default .select2-selection--single {
    height: 46px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background-color: #FFFFFF !important;
    padding: 0 38px 0 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1D1D1F !important;
    text-transform: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231D1D1F%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.next-hub-form-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding: 0 !important;
    color: #1D1D1F !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}
.next-hub-form-shell .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #86868B !important;
    text-transform: none !important;
}
.next-hub-form-shell .acf-input select:focus,
.next-hub-form-shell .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1D1D1F !important;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08) !important;
    outline: none !important;
}
body > .select2-container--open .select2-dropdown--below {
    position: relative !important;
    top: 0 !important;
    margin-top: 26px !important;
    transform: none !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12) !important;
    padding: 6px !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
}
body > .select2-container--open .select2-dropdown--above {
    position: relative !important;
    bottom: 8px !important;
    margin-top: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12) !important;
    padding: 6px !important;
    overflow: hidden !important;
}
body > .select2-container--open .select2-search--dropdown {
    padding: 4px 4px 8px !important;
}
body > .select2-container--open .select2-search--dropdown .select2-search__field {
    border-radius: 9px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 7px 11px !important;
    font-size: 13px !important;
    color: #1D1D1F !important;
    background: #FFFFFF !important;
    text-transform: none !important;
}
body > .select2-container--open .select2-results__options {
    max-height: 240px !important;
    overflow-y: auto !important;
    display: block !important;
}
body > .select2-container--open .select2-results__option {
    text-transform: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 9px !important;
    padding: 9px 12px !important;
    margin: 2px 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1D1D1F !important;
    background: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}
body > .select2-container--open .select2-results__option--highlighted[aria-selected],
body > .select2-container--open .select2-results__option--highlighted[data-selected],
body > .select2-container--open .select2-results__option--highlighted {
    background-color: #F2F2F7 !important;
    color: #1D1D1F !important;
    text-decoration: none !important;
}
body > .select2-container--open .select2-results__option[aria-selected=true],
body > .select2-container--open .select2-results__option[data-selected=true] {
    background-color: #1D1D1F !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* Toggle Pill estilo iOS / macOS */
.next-hub-form-shell .acf-switch {
    display: inline-flex !important;
    align-items: center;
    width: 46px !important;
    height: 26px !important;
    border-radius: 999px !important;
    background: #E5E5EA !important;
    border: none !important;
    cursor: pointer;
    position: relative;
    padding: 0 !important;
    transition: background-color 0.22s ease;
    box-shadow: none !important;
}
.next-hub-form-shell .acf-switch.-on {
    background: #16A34A !important;
}
.next-hub-form-shell .acf-switch .acf-switch-on,
.next-hub-form-shell .acf-switch .acf-switch-off {
    display: none !important;
}
.next-hub-form-shell .acf-switch .acf-switch-slider {
    background: #FFFFFF !important;
    border-radius: 50% !important;
    border: none !important;
    height: 22px !important;
    width: 22px !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: auto !important;
    z-index: 2;
    transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16) !important;
}
.next-hub-form-shell .acf-switch.-on .acf-switch-slider {
    left: 2px !important;
    transform: translateX(20px);
}

/* Segmented Controls estilo macOS para Exposición */
.next-hub-form-shell .acf-button-group {
    display: flex !important;
    width: 100%;
    background: #F2F2F7 !important;
    padding: 4px !important;
    border-radius: 12px !important;
    border: none !important;
    gap: 4px;
}
.next-hub-form-shell .acf-button-group label {
    background: transparent !important;
    border: none !important;
    color: #6E6E73 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    flex: 1 1 0;
    text-align: center;
    margin: 0 !important;
}
.next-hub-form-shell .acf-button-group label.selected {
    background: #FFFFFF !important;
    color: #1D1D1F !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}
.next-hub-form-shell .acf-button-group label:hover:not(.selected) {
    color: #1D1D1F !important;
    background: rgba(255, 255, 255, 0.45) !important;
}

/* Drag & Drop Galería ACF */
.acf-field[data-name="galeria"] .acf-gallery {
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.acf-field[data-name="galeria"] .acf-gallery.next-gallery-empty .acf-gallery-attachments::before {
    content: "Arrastra y suelta tus fotos aquí o usa el botón Agregar a galería";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    margin: 8px;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}
.acf-field[data-name="galeria"] .acf-gallery.next-drag-over {
    border: 2px dashed #2b6cb0 !important;
    background-color: #ebf8ff !important;
}
.acf-field[data-name="galeria"] .acf-gallery.next-drag-over::after {
    content: "Soltar fotos aquí para subir";
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 248, 255, 0.9);
    color: #1a365d;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}
.next-gallery-upload-status {
    display: none;
    padding: 8px 12px;
    margin: 8px 0 0 0;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    pointer-events: none;
}
.next-gallery-upload-status.is-error {
    background: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
    pointer-events: auto;
}

/* Catálogo Público [next_hub_catalogo] */
.next-catalogo-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a202c;
    margin: 24px 0;
}
.next-catalogo-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 24px;
}
.next-catalogo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.next-catalogo-pill {
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    background: #ffffff;
    color: #2d3748;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.next-catalogo-pill.is-active,
.next-catalogo-pill:hover {
    background: #1a202c;
    color: #ffffff;
    border-color: #1a202c;
}
.next-catalogo-select {
    padding: 8px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #ffffff;
    color: #2d3748;
    font-size: 13px;
    font-weight: 600;
    min-width: 210px;
}
.next-catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.next-prop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-prop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.next-prop-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #edf2f7;
    overflow: hidden;
}
.next-prop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.next-prop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(26, 32, 44, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.next-prop-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.next-prop-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}
.next-prop-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px 0;
}
.next-prop-card-title a {
    color: #1a202c;
    text-decoration: none;
}
.next-prop-card-title a:hover {
    text-decoration: underline;
}
.next-prop-card-loc {
    font-size: 13px;
    color: #718096;
    margin-bottom: 14px;
}
.next-prop-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #edf2f7;
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}
.next-prop-card-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 14px;
    text-align: center;
    background: #1a202c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.next-prop-card-cta:hover {
    background: #2d3748;
    color: #ffffff;
}
.next-catalogo-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #718096;
    font-size: 14px;
}

/* Blindaje Responsive Formulario [next_hub_carga] */
@media (max-width: 768px) {
    .next-hub-form-shell .acf-form {
        padding: 20px 16px !important;
    }
    .next-hub-form-shell .acf-tab-group {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
        gap: 6px;
    }
    .next-hub-form-shell .acf-tab-group::-webkit-scrollbar {
        display: none;
    }
    .next-hub-form-shell .acf-tab-group li,
    .next-hub-form-shell .acf-tab-group li a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .next-hub-form-shell .acf-fields {
        grid-template-columns: 1fr !important;
    }
    .next-hub-form-shell .acf-fields > .acf-field,
    .next-hub-form-shell .acf-fields > .acf-field[style*="width"] {
        width: 100% !important;
        float: none !important;
        grid-column: 1 / -1 !important;
    }
    .next-hub-form-shell .acf-button-group {
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .next-hub-form-shell .acf-button-group label {
        flex: 1 1 auto !important;
        text-align: center;
    }
}


/* ==========================================================================
   SILENCIAR NOTIFICACIÓN AJAX GLOBAL DE REALTYSPACE Y ELEMENTOS RESIDUALES
   ========================================================================== */
.notify-bar,
.site-notify,
.js-notify-bar,
.pnotify,
.alert-danger.notify,
body > .alert:not(#next-hub-dashboard-app):not(.next-hub-form-wrapper) {
    display: none !important;
}

/* ==========================================================================
   MODO ANCHO COMPLETO PARA PÁGINAS INTERNAS DEL HUB (body.next-hub-fullwidth-page)
   ========================================================================== */
body.next-hub-fullwidth-page .sidebar,
body.next-hub-fullwidth-page aside.sidebar,
body.next-hub-fullwidth-page #sidebar,
body.next-hub-fullwidth-page .widget-area,
body.next-hub-fullwidth-page .site-sidebar,
body.next-hub-fullwidth-page .properties-sidebar,
body.next-hub-fullwidth-page .social-share,
body.next-hub-fullwidth-page .post-share,
body.next-hub-fullwidth-page .article-share,
body.next-hub-fullwidth-page .article__footer,
body.next-hub-fullwidth-page .social--share,
body.next-hub-fullwidth-page .site-main .social,
body.next-hub-fullwidth-page .share,
body.next-hub-fullwidth-page .social-links--share,
body.next-hub-fullwidth-page .entry-footer,
body.next-hub-fullwidth-page .post-footer,
body.next-hub-fullwidth-page .site-content [class*="share"],
body.next-hub-fullwidth-page .next-whatsapp-float,
body.next-hub-fullwidth-page .joinchat,
body.next-hub-fullwidth-page .qlwapp {
    display: none !important;
}

body.next-hub-fullwidth-page .site-content .row > div,
body.next-hub-fullwidth-page .col-sm-8,
body.next-hub-fullwidth-page .col-sm-9,
body.next-hub-fullwidth-page .col-md-8,
body.next-hub-fullwidth-page .col-md-9,
body.next-hub-fullwidth-page .col-lg-8,
body.next-hub-fullwidth-page .col-lg-9,
body.next-hub-fullwidth-page .site--main,
body.next-hub-fullwidth-page .site__main,
body.next-hub-fullwidth-page .site-main,
body.next-hub-fullwidth-page .content-area,
body.next-hub-fullwidth-page .main-content,
body.next-hub-fullwidth-page .widget,
body.next-hub-fullwidth-page .widget__content,
body.next-hub-fullwidth-page .article--page,
body.next-hub-fullwidth-page .article__body,
body.next-hub-fullwidth-page .page-content,
body.next-hub-fullwidth-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   PANEL HUB NEXT ([next_hub_dashboard]) — ESTÉTICA APPLE MINIMALISTA
   ========================================================================== */
#next-hub-dashboard-app {
    width: min(1460px, 95vw) !important;
    max-width: 1460px !important;
    margin: 0 auto !important;
    margin-inline: auto !important;
    padding: 24px 0 48px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    color: #1D1D1F;
    box-sizing: border-box;
}

#next-hub-dashboard-app *,
#next-hub-dashboard-app *::before,
#next-hub-dashboard-app *::after {
    box-sizing: border-box;
}

#next-hub-dashboard-app .next-dash-saved-banner {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
}

/* Cabecera */
#next-hub-dashboard-app .next-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

#next-hub-dashboard-app .next-dash-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #86868B;
    text-transform: uppercase;
    margin-bottom: 4px;
}

#next-hub-dashboard-app .next-dash-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1D1D1F;
}

#next-hub-dashboard-app .next-dash-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6E6E73;
}

#next-hub-dashboard-app .next-dash-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#next-hub-dashboard-app .next-dash-secondary-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: #1D1D1F;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#next-hub-dashboard-app .next-dash-secondary-btn:hover {
    background: #F5F5F7;
    border-color: rgba(0, 0, 0, 0.25);
    color: #1D1D1F;
}

#next-hub-dashboard-app .next-dash-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1D1D1F;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.12s ease;
}

#next-hub-dashboard-app .next-dash-new-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Grilla de 4 tarjetas de cupos */
#next-hub-dashboard-app .next-dash-quotas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

#next-hub-dashboard-app .next-dash-quota-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

#next-hub-dashboard-app .next-dash-quota-card.is-web {
    border-top: 3px solid #16A34A;
}

#next-hub-dashboard-app .next-dash-quota-card.is-propia {
    border-top: 3px solid #0284C7;
}

#next-hub-dashboard-app .next-dash-quota-card.is-meli {
    border-top: 3px solid #EAB308;
}

#next-hub-dashboard-app .next-dash-quota-card.is-zonaprop {
    border-top: 3px solid #EA580C;
}

#next-hub-dashboard-app .next-dash-quota-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6E6E73;
    margin-bottom: 6px;
}

#next-hub-dashboard-app .next-dash-quota-val {
    font-size: 24px;
    font-weight: 700;
    color: #1D1D1F;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

#next-hub-dashboard-app .next-dash-quota-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #86868B;
    line-height: 1.4;
}

/* Barra horizontal de búsqueda y filtros */
#next-hub-dashboard-app .next-dash-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

#next-hub-dashboard-app .next-dash-search {
    flex: 1 1 240px;
    min-width: 240px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
    color: #1D1D1F;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#next-hub-dashboard-app .next-dash-search:focus {
    border-color: #1D1D1F;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

#next-hub-dashboard-app .next-dash-op-pills,
#next-hub-dashboard-app .next-dash-status-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    background: #F5F5F7;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#next-hub-dashboard-app .next-dash-op-pill,
#next-hub-dashboard-app .next-dash-filter-pill {
    appearance: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

#next-hub-dashboard-app .next-dash-op-pill:hover,
#next-hub-dashboard-app .next-dash-filter-pill:hover {
    color: #1D1D1F;
    background: rgba(0, 0, 0, 0.05);
}

#next-hub-dashboard-app .next-dash-op-pill.is-active,
#next-hub-dashboard-app .next-dash-filter-pill.is-active {
    background: #1D1D1F;
    color: #FFFFFF;
}

#next-hub-dashboard-app .next-dash-count {
    font-size: 12.5px;
    color: #6E6E73;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* Tabla Ejecutiva (neutraliza estilos globales de Realtyspace) */
#next-hub-dashboard-app .next-dash-table-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    overflow-x: visible;
}

#next-hub-dashboard-app table.next-dash-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
    margin: 0;
    background: transparent;
}

#next-hub-dashboard-app table.next-dash-table thead tr {
    background: #FAFAFB;
}

#next-hub-dashboard-app table.next-dash-table th {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6E6E73;
    background: transparent;
}

#next-hub-dashboard-app table.next-dash-table td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 13px;
    color: #1D1D1F;
    background: transparent;
}

#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table th:nth-child(1),
#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table td:nth-child(1) {
    width: 64px;
}

#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table th:nth-child(2),
#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table td:nth-child(2) {
    min-width: 185px;
    max-width: 260px;
}

#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table th:nth-child(4),
#next-hub-dashboard-app #next-dash-inventory-view table.next-dash-table td:nth-child(4) {
    max-width: 250px;
}

#next-hub-dashboard-app table.next-dash-table th:first-child,
#next-hub-dashboard-app table.next-dash-table td:first-child {
    padding-left: 14px;
}

#next-hub-dashboard-app table.next-dash-table th:last-child,
#next-hub-dashboard-app table.next-dash-table td:last-child {
    padding-right: 14px;
    text-align: right;
    white-space: nowrap;
}

#next-hub-dashboard-app table.next-dash-table tbody tr:last-child td {
    border-bottom: none;
}

#next-hub-dashboard-app table.next-dash-table tbody tr:hover td {
    background: #FAFAFC;
}

/* Miniatura */
#next-hub-dashboard-app .next-dash-thumb {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #F5F5F7;
}

#next-hub-dashboard-app .next-dash-thumb-empty {
    width: 68px;
    height: 50px;
    border-radius: 10px;
    background: #F5F5F7;
    color: #86868B;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Título, dirección e ID */
#next-hub-dashboard-app .next-dash-prop-title {
    font-weight: 600;
    font-size: 14px;
    color: #1D1D1F;
    line-height: 1.3;
}

#next-hub-dashboard-app .next-dash-prop-addr {
    text-transform: capitalize;
    font-size: 12.5px;
    color: #4B5563;
    margin-top: 2px;
}

#next-hub-dashboard-app .next-dash-prop-meta {
    font-size: 11.5px;
    color: #86868B;
    margin-top: 2px;
}

/* Canales Activos */
#next-hub-dashboard-app .next-dash-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}

#next-hub-dashboard-app .next-dash-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

#next-hub-dashboard-app .next-dash-badge.is-web {
    background: #16A34A;
    color: #FFFFFF;
    border: 1px solid #16A34A;
}

#next-hub-dashboard-app .next-dash-badge.is-web:hover {
    background: #15803D;
    color: #FFFFFF;
    text-decoration: none;
}

#next-hub-dashboard-app .next-dash-badge.is-propia {
    background: #E0F2FE;
    color: #075985;
    border: 1px solid #BAE6FD;
}

#next-hub-dashboard-app .next-dash-propia-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}

#next-hub-dashboard-app .next-dash-badge.is-propia-synced {
    background: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
}

#next-hub-dashboard-app .next-dash-badge.is-propia-dryrun {
    background: #E0F2FE;
    color: #075985;
    border-color: #BAE6FD;
}

#next-hub-dashboard-app .next-dash-badge.is-propia-pending {
    background: #F3F4F6;
    color: #4B5563;
    border-color: #E5E7EB;
}

#next-hub-dashboard-app .next-dash-badge.is-propia-paused {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

#next-hub-dashboard-app .next-dash-badge.is-propia-error {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

#next-hub-dashboard-app .next-dash-propia-sync-btn {
    appearance: none;
    background: #FFFFFF;
    color: #075985;
    border: 1px solid #BAE6FD;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#next-hub-dashboard-app .next-dash-propia-sync-btn:hover {
    background: #F0F9FF;
    border-color: #7DD3FC;
}

#next-hub-dashboard-app .next-dash-propia-sync-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

#next-hub-dashboard-app .next-dash-badge.is-meli {
    background: #FEF9C3;
    color: #854D0E;
    border: 1px solid #FDE047;
}

#next-hub-dashboard-app .next-dash-badge.is-zonaprop {
    background: #FFEDD5;
    color: #9A3412;
    border: 1px solid #FDBA74;
}

#next-hub-dashboard-app .next-dash-badge.is-pending {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

/* Precio */
#next-hub-dashboard-app .next-dash-price {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    color: #1D1D1F;
}

/* Estado comercial + Popover oculto por defecto */
#next-hub-dashboard-app .next-dash-status-cell {
    position: relative;
}

#next-hub-dashboard-app .next-dash-status-pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    transition: filter 0.15s ease;
}

#next-hub-dashboard-app .next-dash-status-pill:hover {
    filter: brightness(0.96);
}

#next-hub-dashboard-app .next-dash-status-pill.is-disponible {
    background: #ECFDF5;
    color: #065F46;
}

#next-hub-dashboard-app .next-dash-status-pill.is-oportunidad {
    background: #FEF3C7;
    color: #92400E;
}

#next-hub-dashboard-app .next-dash-status-pill.is-retasada {
    background: #DCFCE7;
    color: #166534;
}

#next-hub-dashboard-app .next-dash-status-pill.is-exclusiva {
    background: #1D1D1F;
    color: #FFFFFF;
}

#next-hub-dashboard-app .next-dash-status-pill.is-reservada {
    background: #FFEDD5;
    color: #9A3412;
}

#next-hub-dashboard-app .next-dash-status-pill.is-vendida,
#next-hub-dashboard-app .next-dash-status-pill.is-alquilada {
    background: #F3E8FF;
    color: #6B21A8;
}

#next-hub-dashboard-app .next-dash-popover {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 16px;
    z-index: 50;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 150px;
}

#next-hub-dashboard-app .next-dash-popover.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#next-hub-dashboard-app .next-dash-popover-item {
    appearance: none;
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #1D1D1F;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

#next-hub-dashboard-app .next-dash-popover-item:hover {
    background: #F5F5F7;
}

#next-hub-dashboard-app .next-dash-popover-item.is-selected {
    background: #1D1D1F;
    color: #FFFFFF;
    font-weight: 600;
}

#next-hub-dashboard-app .next-dash-pub-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
}

#next-hub-dashboard-app .next-dash-pub-sub.is-published {
    color: #16A34A;
}

#next-hub-dashboard-app .next-dash-pub-sub.is-draft {
    color: #9CA3AF;
}

/* Botones de acción */
#next-hub-dashboard-app .next-dash-actions {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
    justify-content: flex-end;
    align-items: center;
}

#next-hub-dashboard-app .next-dash-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
    color: #1D1D1F;
    cursor: pointer;
    box-shadow: none;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#next-hub-dashboard-app .next-dash-btn:hover {
    background: #F5F5F7;
    color: #1D1D1F;
    text-decoration: none;
}

#next-hub-dashboard-app .next-dash-btn.is-primary {
    background: #1D1D1F;
    color: #FFFFFF;
    border-color: #1D1D1F;
}

#next-hub-dashboard-app .next-dash-btn.is-primary:hover {
    background: #000000;
    color: #FFFFFF;
}

#next-hub-dashboard-app .next-dash-empty {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    color: #6E6E73;
    font-size: 14px;
    margin-top: 12px;
}

/* Responsive Tablet & Móvil */
@media (max-width: 1023px) {
    #next-hub-dashboard-app .next-dash-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 900px) {
    #next-hub-dashboard-app .next-dash-quotas {
        grid-template-columns: repeat(2, 1fr);
    }

    #next-hub-dashboard-app .next-dash-table-wrap {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    #next-hub-dashboard-app table.next-dash-table,
    #next-hub-dashboard-app table.next-dash-table tbody,
    #next-hub-dashboard-app table.next-dash-table tr,
    #next-hub-dashboard-app table.next-dash-table td {
        display: block;
        width: 100%;
    }

    #next-hub-dashboard-app table.next-dash-table thead {
        display: none;
    }

    #next-hub-dashboard-app table.next-dash-table tbody tr {
        background: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    #next-hub-dashboard-app table.next-dash-table td {
        border: none;
        padding: 6px 0;
    }

    #next-hub-dashboard-app table.next-dash-table td:last-child {
        padding-top: 10px;
        margin-top: 6px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    #next-hub-dashboard-app .next-dash-actions {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #next-hub-dashboard-app .next-dash-popover {
        left: 0;
    }
}

@media (max-width: 768px) {
    #next-hub-dashboard-app table.next-dash-table tbody tr {
        display: grid;
        grid-template-columns: 76px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    #next-hub-dashboard-app table.next-dash-table tbody tr td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        padding: 0;
    }

    #next-hub-dashboard-app table.next-dash-table tbody tr td:nth-child(1) .next-dash-thumb,
    #next-hub-dashboard-app table.next-dash-table tbody tr td:nth-child(1) .next-dash-thumb-empty {
        width: 76px;
        height: 58px;
        border-radius: 10px;
        object-fit: cover;
    }

    #next-hub-dashboard-app table.next-dash-table tbody tr td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        min-width: 0;
    }

    #next-hub-dashboard-app table.next-dash-table tbody tr td:nth-child(n+3) {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 600px) {
    #next-hub-dashboard-app .next-dash-quotas {
        grid-template-columns: 1fr;
    }

    #next-hub-dashboard-app .next-dash-search {
        min-width: 100%;
    }

    #next-hub-dashboard-app .next-dash-count {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   AJUSTES MÓVILES Y CONTENCIÓN DE ANCHO DEL FORMULARIO HUB ([next_hub_carga])
   ========================================================================== */
body.next-hub-fullwidth-page .site__header,
body.next-hub-fullwidth-page h1.site__title,
body.next-hub-fullwidth-page .site-main > .page-header,
body.next-hub-fullwidth-page .entry-header,
body.next-hub-fullwidth-page h1.page-title,
body.next-hub-fullwidth-page h1.entry-title,
body.next-hub-fullwidth-page .page-title:not(.next-hub-form-shell *):not(.next-hub-form-wrapper *):not(#next-hub-dashboard-app *) {
    display: none !important;
}

/* Contención global de Grid/Flex en todos los anchos (vertical y horizontal) */
body.next-hub-fullwidth-page .site-wrap .site--main,
body.next-hub-fullwidth-page .site-wrap .site__main,
body.next-hub-fullwidth-page .site-wrap .widget,
body.next-hub-fullwidth-page .site-wrap .widget__content,
body.next-hub-fullwidth-page .site-wrap .article--page,
body.next-hub-fullwidth-page .site-wrap .article__body,
.next-hub-form-wrapper,
.next-hub-form-shell,
.next-hub-form-wrapper .acf-form,
.next-hub-form-shell .acf-form,
.next-hub-form-wrapper .acf-fields,
.next-hub-form-shell .acf-fields,
.next-hub-form-wrapper .acf-field,
.next-hub-form-shell .acf-fields > .acf-field,
.next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card,
.next-hub-form-wrapper .acf-input,
.next-hub-form-shell .acf-input,
.next-hub-form-shell .acf-input-wrap,
.next-hub-form-shell .acf-tab-wrap,
.next-hub-form-shell .next-quotas-bar,
.next-hub-form-shell .next-quotas-group {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.next-hub-form-shell .acf-tab-wrap {
    width: 100% !important;
    overflow: hidden !important;
}

.next-hub-form-wrapper .acf-tab-group,
.next-hub-form-shell .acf-tab-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.next-hub-form-wrapper .acf-tab-group > li,
.next-hub-form-shell .acf-tab-group > li {
    flex-shrink: 0 !important;
}

@media (max-width: 1024px) {
    body.next-hub-fullwidth-page .center .container .row,
    body.next-hub-fullwidth-page .site-content .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.next-hub-fullwidth-page .site-wrap [class*="col-"],
    body.next-hub-fullwidth-page .site-content [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .next-hub-form-wrapper,
    .next-hub-form-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .next-hub-form-wrapper .acf-form,
    .next-hub-form-shell .acf-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 18px 14px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .next-hub-form-wrapper .acf-fields,
    .next-hub-form-shell .acf-fields {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .next-hub-form-wrapper .acf-field,
    .next-hub-form-shell .acf-fields > .acf-field,
    .next-hub-form-shell .acf-fields > .acf-field[data-width],
    .next-hub-form-shell .acf-fields > .acf-field[style*="width"],
    .next-hub-form-shell .acf-fields > .acf-field.next-hub-switch-card,
    .next-hub-form-wrapper .acf-fields > .acf-field.next-hub-switch-card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .next-hub-form-wrapper .acf-input,
    .next-hub-form-shell .acf-input,
    .next-hub-form-shell .acf-input-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .next-hub-form-wrapper input[type="text"],
    .next-hub-form-shell input[type="text"],
    .next-hub-form-wrapper input[type="number"],
    .next-hub-form-shell input[type="number"],
    .next-hub-form-wrapper input[type="url"],
    .next-hub-form-shell input[type="url"],
    .next-hub-form-wrapper input[type="email"],
    .next-hub-form-shell input[type="email"],
    .next-hub-form-wrapper input[type="tel"],
    .next-hub-form-shell input[type="tel"],
    .next-hub-form-wrapper input[type="search"],
    .next-hub-form-shell input[type="search"],
    .next-hub-form-wrapper select,
    .next-hub-form-shell select,
    .next-hub-form-wrapper textarea,
    .next-hub-form-shell textarea,
    .next-hub-form-wrapper .select2-container,
    .next-hub-form-shell .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .next-hub-form-wrapper .next-hub-quotas-bar,
    .next-hub-form-wrapper .next-hub-quota-row,
    .next-hub-form-wrapper .next-hub-quota-pills,
    .next-hub-form-wrapper .next-hub-quota-group,
    .next-hub-form-wrapper .next-quotas-bar,
    .next-hub-form-wrapper .next-quotas-group,
    .next-hub-form-shell .next-quotas-bar,
    .next-hub-form-shell .next-quotas-group {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 12px !important;
    }

    .next-hub-form-shell .next-quotas-label,
    .next-hub-form-wrapper .next-quotas-label {
        flex-basis: 100% !important;
    }

    .next-hub-form-wrapper .acf-tab-group,
    .next-hub-form-shell .acf-tab-group {
        padding: 0 4px !important;
        gap: 4px !important;
    }
}

/* ==========================================================================
   PESTAÑA COMODIDADES: SUB-TARJETAS COLAPSABLES (<details>) BLANCO Y NEGRO
   ========================================================================== */
.next-hub-form-shell .next-comodidades-accordion {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 4px 0 8px;
}

.next-hub-form-shell details.next-comodidades-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-hub-form-shell details.next-comodidades-card[open] {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.next-hub-form-shell details.next-comodidades-card > summary.next-comodidades-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #FBFBFD;
    color: #1D1D1F;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    user-select: none;
    border-radius: 14px;
    border-bottom: 1px solid transparent;
}

.next-hub-form-shell details.next-comodidades-card > summary.next-comodidades-summary::-webkit-details-marker {
    display: none;
}

.next-hub-form-shell details.next-comodidades-card[open] > summary.next-comodidades-summary {
    border-radius: 14px 14px 0 0;
    border-bottom-color: rgba(0, 0, 0, 0.07);
    background: #FFFFFF;
}

.next-hub-form-shell .next-comodidades-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.75px solid #1D1D1F;
    border-bottom: 1.75px solid #1D1D1F;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-right: 4px;
}

.next-hub-form-shell details.next-comodidades-card[open] .next-comodidades-chevron {
    transform: rotate(-135deg);
}

.next-hub-form-shell .next-comodidades-card-body {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 16px;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field {
    grid-column: span 12;
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    border: none !important;
    float: none !important;
    clear: none !important;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="25"] {
    grid-column: span 3;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="33"] {
    grid-column: span 4;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="50"] {
    grid-column: span 6;
}

/* Bloque B (Orientación, Disposición, Luminosidad, Tipo de calefacción): 2 columnas en escritorio */
.next-hub-form-shell details.next-comodidades-card[data-com-id="block-b"] .next-comodidades-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-hub-form-shell details.next-comodidades-card[data-com-id="block-b"] .next-comodidades-card-body > .acf-field.next-com-block-b {
    grid-column: span 1;
}

.next-hub-form-shell details.next-comodidades-card[data-com-id="block-b"] .next-comodidades-card-body > .acf-field.next-com-block-b.acf-field-true-false {
    grid-column: 1 / -1;
}

/* Componente dropdown personalizado unificado (.next-ui-select) para TODOS los <select> de [next_hub_carga] */
.next-hub-form-shell select.next-hub-native-select-hidden,
.next-hub-form-shell .acf-input select.next-hub-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.next-hub-form-shell .select2-container {
    display: none !important;
}

.next-hub-form-shell .next-ui-select {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.next-hub-form-shell .acf-field.is-select-open,
.next-hub-form-shell details.next-comodidades-card.is-select-open,
.next-hub-form-shell .next-ui-select.is-open {
    position: relative;
    z-index: 1000;
}

.next-hub-form-shell .next-ui-select-trigger {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #FFFFFF;
    color: #1D1D1F;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-hub-form-shell .next-ui-select-trigger.is-placeholder {
    color: #86868B;
}

.next-hub-form-shell .next-ui-select-trigger:focus-visible,
.next-hub-form-shell .next-ui-select.is-open .next-ui-select-trigger {
    border-color: #1D1D1F;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
    outline: none;
}

.next-hub-form-shell .next-ui-select-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-hub-form-shell .next-ui-select-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231D1D1F%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: transform 0.2s ease;
}

.next-hub-form-shell .next-ui-select.is-open .next-ui-select-chevron {
    transform: rotate(180deg);
}

.next-hub-form-shell .next-ui-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    padding: 6px;
    margin: 0;
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.next-hub-form-shell .next-ui-select.is-open .next-ui-select-menu {
    display: block;
}

.next-hub-form-shell .next-ui-select-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.next-hub-form-shell .next-ui-select-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 9px 12px;
    margin: 2px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #1D1D1F;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.next-hub-form-shell .next-ui-select-option:hover,
.next-hub-form-shell .next-ui-select-option:focus {
    background-color: #f3f4f6;
    color: #1D1D1F;
    outline: none;
}

.next-hub-form-shell .next-ui-select-option.is-selected,
.next-hub-form-shell .next-ui-select-option.is-selected:hover {
    background-color: #1D1D1F;
    color: #FFFFFF;
    font-weight: 600;
}

/* Ocultar "+ Agregar categoría" en campos de taxonomía de Clasificación */
.next-hub-form-shell .acf-taxonomy-field .acf-icon.-plus,
.next-hub-form-shell .acf-taxonomy-field .acf-actions {
    display: none !important;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field.acf-field-true-false {
    background: #FBFBFD;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px;
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field.acf-field-true-false .acf-label {
    margin: 0 !important;
    flex: 1 1 auto;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field.acf-field-true-false .acf-input {
    flex: 0 0 auto;
    width: auto;
}

.next-hub-form-shell .next-comodidades-card-body > .acf-field.acf-field-checkbox,
.next-hub-form-shell .next-comodidades-card-body > .acf-field.acf-field-checkbox .acf-input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list li {
    margin: 0 !important;
}

.next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list li label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    background: #FFFFFF;
    color: #1D1D1F;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list li label:hover {
    border-color: #1D1D1F;
    background: #F5F5F7;
}

.next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list li input[type="checkbox"] {
    accent-color: #1D1D1F;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="25"],
    .next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="33"] {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .next-hub-form-shell .next-comodidades-card-body,
    .next-hub-form-shell details.next-comodidades-card[data-com-id="block-b"] .next-comodidades-card-body {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="25"],
    .next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="33"],
    .next-hub-form-shell .next-comodidades-card-body > .acf-field[data-width="50"],
    .next-hub-form-shell details.next-comodidades-card[data-com-id="block-b"] .next-comodidades-card-body > .acf-field.next-com-block-b {
        grid-column: 1 / -1;
    }
    .next-hub-form-shell .next-comodidades-card-body .acf-checkbox-list {
        grid-template-columns: 1fr;
    }
}
