/*
 * markers.css — estilos de markers / clusters / popups Leaflet
 * Lo cargan todas las vistas con mapa (home, /show-map, projects/index, detalle, contacto).
 * Color de marca: #08abc4 (consistente con la implementación previa).
 */

:root {
    --lf-brand: #08abc4;
    --lf-brand-dark: #068298;
}

/* ---- chip de precio (Opción A, cluster-map) -------------------------- */
.lf-price-marker {
    background: none;
    border: 0;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.lf-price-chip {
    display: inline-block;
    transform: translate(-50%, -100%); /* ancla el pico del chip sobre la coordenada */
    white-space: nowrap;
    padding: 5px 10px;
    background: #224143; /* Dark Sea (primario marca) */
    color: #d6ca9c;      /* Dusty Yellow (secundario marca) */
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .1s ease;
}

/* hover desde card / highlight desde click en marker: invertir para feedback claro */
.lf-price-chip:hover,
.lf-price-chip.is-active {
    background: #d6ca9c;
    color: #224143;
    border-color: #224143;
    z-index: 1000;
}

/* ---- cluster --------------------------------------------------------- */
.lf-cluster {
    background: none;
}

.lf-cluster__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #224143;          /* Dark Sea (primario marca) */
    color: #d6ca9c;              /* Dusty Yellow (secundario marca) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 0 6px rgba(34, 65, 67, .25);
}

/* ---- pin simple (single-map / static-map) ---------------------------- */
.lf-pin-marker {
    background: none;
    border: 0;
}

.lf-pin {
    display: block;
    width: 22px;
    height: 22px;
    margin: 3px auto;
    background: #224143; /* Dark Sea (paleta marca) */
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.lf-pin-title {
    margin: 0;
    font-size: 14px;
}

/* ---- popups ---------------------------------------------------------- */
.lf-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.lf-popup-wrap .leaflet-popup-content {
    margin: 0;
    width: 210px !important;
}

.lf-popup {
    padding: 10px;
}

.lf-popup__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lf-popup__thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    display: block;
}

.lf-popup__info {
    min-width: 0;
}

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

.lf-popup__name {
    margin: 2px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lf-popup__price {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #224143;
}

.lf-popup__cta {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    text-align: center;
    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-popup__cta:hover {
    background: #d6ca9c;
    color: #224143;
}

/* ---- botón "Ver mapa completo" (preview del home) -------------------- */
.lf-see-full-map {
    position: absolute;
    z-index: 1000;       /* por encima de los panes de Leaflet (markers 600 / popup 700 / controles 800) */
    top: 16px;
    right: 16px;
    padding: 10px 20px;
    background: #224143; /* Dark Sea */
    color: #d6ca9c;     /* Dusty Yellow */
    font-weight: 700;
    font-size: 14px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.lf-see-full-map:hover {
    background: #d6ca9c;
    color: #224143;
}
