/*

Theme Name: InmoNacubo

Theme URI: https://inmo.nacubo.es

Author: Ignacio Cuesta Bores

Author URI: https://inmo.nacubo.es

Template: generatepress

Description: Child de generatepress nachil

Version: 1.0

*/

/* GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD como <a> */
.card-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* IMAGEN */
.card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.card-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
	height: 200px;
}

/* PÍLDORA DE CATEGORÍA */
.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
}

/* CONTENIDO */
.card-content {
    padding: 12px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}
.card-date {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
}

/* BOTÓN VISUAL */
.card-btn {
    display: block;
    text-align: center;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    margin-top: auto;
}
.card-item:hover .card-btn {
    background: #333;
}

.lr-wrap .lr-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: url("data:image/svg+xml;utf8,<svg fill='black' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M9.41 8l3.29-3.29a1 1 0 0 0-1.42-1.42L8 6.59 4.71 3.29a1 1 0 1 0-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 0 0 1.42 1.42L8 9.41l3.29 3.3a1 1 0 0 0 1.42-1.42L9.41 8z'/></svg>") no-repeat center center;
  background-size: 12px 12px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .cards-grid {
        gap: 16px;
    }
    .card-title {
        font-size: 15px;
    }
    .card-date {
        font-size: 12px;
    }
}
