.listado-piscinas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.tarjeta-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}
.contenedor-ruta-iframe{
    height: 530px;      /* Ajusta este valor */
    overflow: hidden;
}

.contenedor-ruta-iframe iframe{
    display:block;
    width:100%;
    height:600px;
    border:0;
}
.ficha-piscina {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tarjeta-link-wrapper:hover .ficha-piscina {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.15);
}

/* IMAGEN — FIX REAL */
.tarjeta-imagen {
    width: 100%;
}

.tarjeta-imagen img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    display: block;
}

.ficha-contenido {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ficha-resumen {
    margin-top: 0;
    font-size: .95rem;
    color: #444;
    padding: 0 10px 0 10px;
    text-align: left;
}

.ficha-etiquetas {
    margin: .6rem 0 1rem 0;
}

.tag {
    display: inline-block;
    background: #e8f5e9;
    color: #137d3d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    margin-right: .4rem;
}


.ficha-cta {
    margin-top: auto;
}

.btn-ver-ficha {
    display: inline-block;
    padding: .6rem 1rem;
    background: #00b96b;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
}

.ficha-etiquetas .tag{
    margin: 5px;
}

.ficha-etiquetas-detalle .tag{
    margin: 5px;
    font-size: 20px;
    padding: 10px;
}

.ficha-cta{
    padding-bottom: 15px;
    text-align:center;
}

.lugar-container .text-acordeon {
    padding-left: 0;
    padding-right: 0;
}

.lugar-container .texto-intermedio-container {
    padding-left: 0;
    padding-right: 0;
}

@media only screen and (max-width: 1024px) {
    .ficha-piscina{
        padding-bottom: 15px;
    }
    .btn-ver-ficha{
        padding: 15px 40px;
        font-size: 1.2rem;
        width: 50%;
    }

    .ficha-piscina {
        padding-bottom: 15px;
        height: 96%;
    }
}

/* Estilos para móviles */
@media only screen and (max-width: 768px) {
    .contenedor-ruta-iframe{
        height: 470px;      /* Ajusta este valor */
        overflow: hidden;
    }
}