/* UO EventON Plazas Popup v1.0.10 */

#uoep-popup {
    --u-red:    #e63329;
    --u-black:  #111111;
    --u-white:  #ffffff;
    --u-grey:   #f5f5f5;
    --u-border: #e0e0e0;
    --u-text:   #333333;
    --u-muted:  #888888;

    position: fixed;
    z-index: 9999;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 340px;
    background: var(--u-white);
    border: 1px solid var(--u-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
}
#uoep-popup.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#uoep-popup .uoep-stripe { height: 4px; background: var(--u-red); width: 100%; }

#uoep-popup .uoep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem .75rem;
    border-bottom: 1px solid var(--u-border);
}

#uoep-popup .uoep-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--u-red);
    display: block;
    margin-bottom: 2px;
}

#uoep-popup .uoep-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--u-black);
    text-transform: uppercase;
    letter-spacing: .04em;
}

#uoep-popup .uoep-close {
    background: transparent;
    border: 1px solid var(--u-border);
    cursor: pointer;
    color: var(--u-muted);
    font-size: .75rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
#uoep-popup .uoep-close:hover {
    background: var(--u-black);
    border-color: var(--u-black);
    color: #fff;
}

#uoep-popup .uoep-cards { padding: .75rem 1rem; overflow-y: auto; }

#uoep-popup .uoep-descripcion {
    padding: .65rem 1rem;
    font-size: .7rem;
    line-height: 1.5;
    color: var(--u-muted);
    border-bottom: 1px solid var(--u-border);
}
#uoep-popup .uoep-cards::-webkit-scrollbar { width: 4px; }
#uoep-popup .uoep-cards::-webkit-scrollbar-track { background: transparent; }
#uoep-popup .uoep-cards::-webkit-scrollbar-thumb { background: var(--u-border); border-radius: 2px; }
#uoep-popup .uoep-cards::-webkit-scrollbar-thumb:hover { background: var(--u-muted); }

#uoep-popup .uoep-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: .2rem .75rem;
    padding: .7rem 1rem;
    margin: 0 -1rem;
    border-bottom: 1px solid var(--u-border);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
#uoep-popup .uoep-card:last-child { border-bottom: none; }
#uoep-popup .uoep-card:hover { background: var(--u-grey); }

#uoep-popup .uoep-card-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--u-black);
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
    grid-column: 1;
    grid-row: 1;
}
#uoep-popup .uoep-card-meta {
    font-size: .7rem;
    color: var(--u-muted);
    font-weight: 400;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: .35rem;
}
#uoep-popup .uoep-card-meta .uoep-sep {
    display: inline-block;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--u-muted);
}

#uoep-popup .uoep-card-location {
    font-size: .65rem;
    color: var(--u-muted);
    font-weight: 400;
    grid-column: 1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: -1px;
}
#uoep-popup .uoep-card-location::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

#uoep-popup .uoep-badge-text {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    text-align: right;
    align-self: center;
}
#uoep-popup .uoep-badge-text.urgente { color: var(--u-red); }
#uoep-popup .uoep-badge-text.pocas { color: var(--u-black); }
#uoep-popup .uoep-badge-text.disponible { color: var(--u-muted); }

#uoep-popup .uoep-btn {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .55rem;
    grid-column: 2;
    grid-row: 2;
    white-space: nowrap;
    text-align: center;
    align-self: start;
    justify-self: end;
    cursor: pointer;
    transition: opacity .2s;
}
#uoep-popup .uoep-btn:hover { opacity: .8; }
#uoep-popup .uoep-btn.urgente { background: var(--u-red); color: #fff; border: 1px solid var(--u-red); }
#uoep-popup .uoep-btn.normal { background: transparent; color: var(--u-black); border: 1px solid var(--u-black); }

#uoep-popup .uoep-footer { padding: .75rem 1rem 1rem; }

#uoep-popup .uoep-cta {
    display: block;
    text-align: center;
    background: var(--u-black);
    color: #fff !important;
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .65rem 1rem;
    transition: background .2s;
}
#uoep-popup .uoep-cta:hover { background: var(--u-red); }

@media (max-width: 600px) {
    #uoep-popup {
        width: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,.12);
        transform: translateY(100%);
    }
    #uoep-popup.visible { transform: translateY(0); }
    #uoep-popup .uoep-cards { max-height: 50vh !important; }
}
