/* ==========================================================================
   Página 404 — Topdormitorios
   ========================================================================== */

#pagenotfound .breadcrumb {
    display: none;
}

#pagenotfound .wrapper {
    padding-top: 48px;
    padding-bottom: 80px;
}

#pagenotfound .columns-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

#pagenotfound #center-column.page--full-width {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

#pagenotfound .tpd-error-404 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.tpd-error-404__content {
    width: 100%;
    padding: 0;
}

.tpd-error-404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ilustración */
.tpd-error-404__image {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 32px;
}

/* ¡UPPPSSS! */
.tpd-error-404__title {
    font-family: var(--tpd-font-family);
    font-size: 59px;
    font-weight: 600;
    color: var(--tpd-color-black);
    line-height: 1;
    margin: 0 0 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Esta página no existe... */
.tpd-error-404__subtitle {
    font-family: var(--tpd-font-family);
    font-size: 29px;
    font-weight: 600;
    color: var(--tpd-color-black);
    line-height: 1.35;
    margin: 0 0 15px;
}

/* Texto gris */
.tpd-error-404__text {
    font-family: var(--tpd-font-family);
    font-weight: 400;
    color: #7a7a7a;
    line-height: 1.5;
    margin: 0 0 15px;
}

/* Contenedor búsqueda (~65% del área de contenido) */
.tpd-error-404__search {
    width: 50%;
    max-width: max(50%, 100%);
    margin: 0 auto;
}

.tpd-error-404__search #search_widget {
    width: 100%;
}

.tpd-error-404__search form {
    min-height: 64px;
    background: #eceeef;
    border-radius: 10px;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.tpd-error-404__search form .js-search-input {
    flex-grow: 2;
    background: transparent;
    border: none;
    padding: 0 calc(64px / 3);
    font-size: 19px;
    color: #7a7a7a;
}

.tpd-error-404__search form .js-search-input:focus-visible {
    outline: none;
}

.tpd-error-404__search form .js-search-input:focus-visible::placeholder {
    color: transparent;
}

.tpd-error-404__search form .js-search-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
    margin-right: 10px;
    opacity: 0;
}

.tpd-error-404__search form .js-search-input::placeholder {
    color: #7a7a7a;
    opacity: 1;
}

/* Variante del widget ps_searchbar solo en 404 */
.tpd-error-404__search #tpd_404_search,
.tpd-error-404__search #search_widget_404,
.tpd-error-404__search #search_widget_404 .form-content,
.tpd-error-404__search #search_widget_404 form {
    width: 100%;
}

.tpd-error-404__search #search_widget_404 .form-content {
    margin: 0;
    padding: 0;
}

.tpd-error-404__search #search_widget_404 form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    background-color: #f0f0f0;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: none;
    padding: 0 20px;
    min-height: 50px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tpd-error-404__search #search_widget_404 form:focus-within {
    background-color: #ececec;
    border-color: #e0e0e0;
    box-shadow: none;
}

.tpd-error-404__search #search_widget_404 .js-search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 14px 0;
    margin: 0;
    font-family: var(--tpd-font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--tpd-color-grey-dark);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.tpd-error-404__search #search_widget_404 .js-search-input::placeholder {
    color: #b3b3b3;
    opacity: 1;
}

.tpd-error-404__search #search_widget_404 .js-search-input::-webkit-search-cancel-button,
.tpd-error-404__search #search_widget_404 .js-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.tpd-error-404__search #search_widget_404 .tpd-icons-search,
.tpd-error-404__search #search_widget_404 .search__offcanvas-close {
    display: none !important;
}

.tpd-error-404__search #search_widget_404 .search-widgets__dropdown {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 12px;
    text-align: left;
}

@media (max-width: 767.98px) {
    #pagenotfound .wrapper {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .tpd-error-404__inner {
        padding: 0 20px;
    }

    .tpd-error-404__image {
        max-width: 280px;
        margin-bottom: 24px;
    }

    .tpd-error-404__title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .tpd-error-404__subtitle {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .tpd-error-404__text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .tpd-error-404__search {
        max-width: 100%;
    }

    .tpd-error-404__search #search_widget_404 form {
        min-height: 48px;
        padding: 0 16px;
        border-radius: 10px;
    }

    .tpd-error-404__search #search_widget_404 .js-search-input {
        font-size: 14px;
        padding: 12px 0;
    }
}
