/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/


/* Forzar altura fija del header aunque tenga imagen */
/*.single-job_listing .profile-cover.profile-cover-image {
    height: 350px !important;
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}*/

/* Ajustar la imagen dentro */
/*.single-job_listing .profile-cover.profile-cover-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}*/

/* Ocultar promotions de menu usuario */
.menu-item-677 {
    display: none;
}

/* Mostrar solo el primer párrafo de la descripción y recortarlo con ellipsis */
.lf-item .lf-item-info p:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Mostrar solo 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

    font-size: 13px;
    color: #666666;
    line-height: 1.4;
    margin-top: 6px;
}

/* Ocultar todos los demás párrafos */
.lf-item .lf-item-info p:not(:first-of-type) {
    display: none;
}

/* Reducir tamaño cabecera sin imagen */
/*.profile-cover.profile-cover-no-img {
    height: 200px;
}*/

/* Login page*/
.login-bg-container {
    position: fixed;
    width: calc(100% - 500px);
    top: 0;
    right: 0;
    height: 100vh;
    background-image: url('https://lirla.uv.es/wp-content/uploads/2025/02/cropped-shutterstock_1699960924_grande-scaled-1.jpg') !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

/* Overlay con azul oscuro */
.login-bg-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 51, 153, 0.6); /* azul con opacidad */
    z-index: 1;
    pointer-events: none;
}

.author-listings-header {
    margin-bottom: 10px;
}

.author-listings-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1 200px;
}

.author-search-field {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.search-container .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.author-listings-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-listings-table th,
.author-listings-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.author-listings-table th {
    background: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.author-listings-table tr:hover {
    background-color: #f3f4f6;
}

.author-listings-table a {
    color: inherit;
    text-decoration: none;
}

#pagination-controls {
    text-align: center;
    margin-top: 20px;
}

#load-more-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background: #003399; 
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .author-listings-header h2 {
        flex: 1 1 100%;
    }
    .author-listings-filters {
        flex-direction: column;
        gap: 10px;
    }
}

.author-listings-table tr:hover {
    background-color: #fdfdfd; /* Un blanco más claro */
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.015);
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}


/* Contenedor del buscador: campo + icono en línea */
.author-listings-filters .search-container {
	display: flex;
	align-items: center;
}

/* Campo de búsqueda de título ocupa todo el ancho disponible */
.author-listings-filters .search-container input.author-search-field {
	flex: 1;
}

/* Corrección del margen del icono para mantenerlo alineado */
.author-listings-filters .search-container .search-icon {
	margin-left: -25px;
}


