/*
 * airbnb-layout.css — split mapa + cards estilo Airbnb (SOLO /show-map).
 * /show-map es una página standalone (no usa el layout del tema), así que estas
 * reglas no se filtran al resto del sitio.
 */

.lf-showmap {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #222;
    overflow: hidden;
}

/* ---- header standalone ---------------------------------------------- */
.lf-showmap__topbar {
    flex: 0 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    z-index: 1100;
}

.lf-showmap__brand img {
    height: 38px;
    width: auto;
    display: block;
}

.lf-showmap__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.lf-showmap__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 22px;
    background: var(--lf-brand, #08abc4);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.lf-showmap__back:hover {
    background: var(--lf-brand-dark, #068298);
    color: #fff;
}

/* ---- split ----------------------------------------------------------- */
.lf-split {
    flex: 1 1 auto;
    display: flex;
    min-height: 0; /* permite que los hijos scrolleen dentro del flex */
}

.lf-split__list {
    flex: 1 1 55%;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
}

.lf-split__map {
    flex: 1 1 45%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100%;
}

.lf-map {
    width: 100%;
    height: 100%;
}

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

.lf-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.lf-card:hover,
.lf-card.is-highlighted {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    border-color: var(--lf-brand, #08abc4);
    transform: translateY(-2px);
}

.lf-card__thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.lf-card__body {
    padding: 10px 12px 14px;
}

.lf-card__status {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lf-brand-dark, #068298);
    font-weight: 600;
}

.lf-card__title {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 700;
}

.lf-card__price {
    margin: 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.lf-card__excerpt {
    margin: 0;
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lf-card__cta {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #224143;
    color: #d6ca9c;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.lf-card__cta:hover {
    background: #d6ca9c;
    color: #224143;
}

/* ---- responsive: mapa arriba, cards abajo --------------------------- */
@media (max-width: 768px) {
    .lf-showmap {
        height: auto;
        overflow: visible;
    }

    .lf-split {
        flex-direction: column;
    }

    .lf-split__map {
        position: sticky;
        top: 0;
        flex-basis: auto;
        height: 45vh;
        order: -1; /* mapa arriba en mobile */
        z-index: 500;
    }

    .lf-split__list {
        flex-basis: auto;
        overflow: visible;
    }

    .lf-showmap__title {
        font-size: 15px;
    }
}
