/*
 * FINCASLAXE
 * Tarxetas inmobiliarias V1
 *
 * Estilo compartido:
 * portada, catálogo e listados.
 */

/* Cuadrícula */

.flc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Tarxeta */

.flc-tarjeta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;

    background: #FFFFFF;
    border: 1px solid #E1EAF0;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 3px 15px rgba(22, 59, 85, .045);

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

/* Fotografía */

.flc-tarjeta-imagen {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    overflow: hidden;

    background: #EDF2F5;
}

.flc-tarjeta-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Etiqueta sobre a fotografía */

.flc-tarjeta-imagen > span {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;

    padding: 7px 12px;
    border-radius: 7px;

    background: #FFFFFF;
    color: #172D3C;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: none;
    letter-spacing: 0;

    box-shadow: 0 2px 9px rgba(0,0,0,.09);
}

/* Contido */

.flc-tarjeta-contenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;

    padding: 22px 22px 20px;
}

/* Municipio: abandonar o antigo LAXE */

.flc-tarjeta .flc-municipio {
    margin: 0 0 9px;

    color: #637480;
    font-family: system-ui, -apple-system,
        "Segoe UI", sans-serif;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

    text-transform: none;
    letter-spacing: 0;
}

/* Título */

.flc-tarjeta h2,
.flc-tarjeta h3 {
    margin: 0 0 12px;

    color: #172D3C;
    font-family: system-ui, -apple-system,
        "Segoe UI", sans-serif;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.025em;

    overflow-wrap: anywhere;
}

.flc-tarjeta h2 a,
.flc-tarjeta h3 a {
    color: inherit;
    text-decoration: none;
}

.flc-tarjeta h2 a:hover,
.flc-tarjeta h3 a:hover {
    color: #007AC2;
}

/* Superficie e características */

.flc-tarjeta .flc-metros {
    margin: 0 0 12px;

    color: #697984;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Zona inferior */

.flc-tarjeta-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid #E8EDF1;
}

.flc-tarjeta-pie strong {
    color: #007AC2;
    font-size: clamp(20px, 1.55vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.flc-tarjeta-pie a {
    color: #155F8C;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.flc-tarjeta-pie a:hover {
    color: #007AC2;
}

/* Efecto discreto no ordenador */

@media (hover:hover) and
       (prefers-reduced-motion:no-preference) {

    .flc-tarjeta:hover {
        transform: translateY(-3px);

        box-shadow:
            0 13px 32px rgba(22, 59, 85, .11);
    }
}

/* Tablet */

@media (max-width: 950px) {

    .flc-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 20px;
    }
}

/* Móbil */

@media (max-width: 650px) {

    .flc-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 22px;
    }

    .flc-tarjeta {
        border-radius: 13px;
    }

    .flc-tarjeta-imagen {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .flc-tarjeta-contenido {
        padding: 20px;
    }

    .flc-tarjeta .flc-municipio {
        font-size: 14px;
    }

    .flc-tarjeta h2,
    .flc-tarjeta h3 {
        font-size: 20px;
    }

    .flc-tarjeta-pie strong {
        font-size: 23px;
    }

    .flc-tarjeta-pie a {
        font-size: 14px;
    }
}

/* Accesibilidade */

@media (prefers-reduced-motion:reduce) {

    .flc-tarjeta {
        transition: none;
    }
}


/* FLX_DATOS_TARXETAS_V1 */

/* Fila pequena de características */

.flc-tarjeta .flc-datos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;

    margin: 4px 0 17px;
    padding: 0;

    list-style: none;
    border: 0;
}

.flc-tarjeta .flc-datos li {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin: 0;
    padding: 0;

    color: #526572;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.flc-tarjeta .flc-datos svg {
    display: block;
    flex: 0 0 19px;
    color: #155F8C;
}

@media (max-width:650px) {

    .flc-tarjeta .flc-datos {
        gap: 12px 20px;
        margin-bottom: 18px;
    }

    .flc-tarjeta .flc-datos li {
        font-size: 14px;
    }
}

/* FIN_FLX_DATOS_TARXETAS_V1 */


/* FLX_ETIQUETAS_CORES_V1 */

/* Presentación común */

.flc-tarjeta .flc-tarjeta-imagen > span {
    border: 0;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* VENDA: laranxa corporativo */

.flc-tarjeta--venta .flc-tarjeta-imagen > span {
    background: var(--fl-orange, #F77E21);
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,.20);
}

/* ALUGUEIRO: azul corporativo */

.flc-tarjeta--alquiler .flc-tarjeta-imagen > span,
.flc-tarjeta--temporada .flc-tarjeta-imagen > span,
.flc-tarjeta--vacacional .flc-tarjeta-imagen > span {
    background: #007AC2;
    color: #FFFFFF;
}

/* DESTACADO: verde, cando exista o distintivo */

.flc-tarjeta .flc-tarjeta-imagen > .flc-destacado,
.flc-tarjeta .flc-tarjeta-imagen > .flc-etiqueta--destacado {
    background: #137A50;
    color: #FFFFFF;
}

/* FIN_FLX_ETIQUETAS_CORES_V1 */
