/* Listado sencillo de custom post type "trasteros" */
.hj93-trasteros-instance .loader {
    padding: 1rem;
    text-align: center;
    color: var(--e-global-color-text, #1E1E1E);
    opacity: 0.8;
}

.hj93-trasteros {
    width: 100%;
    font-family: var(--e-global-typography-text-font-family, "Manrope"), sans-serif;
    color: var(--e-global-color-text, #1E1E1E);
}

.hj93-trasteros__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hj93-trasteros__item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #F0F0F0;
    background: #F7F7F7;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hj93-trasteros__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hj93-trasteros__item-title {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.hj93-trasteros__empty {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ---------- Hotspot ---------- */
.hj93-trasteros__hotspot {
    position: relative;
    width: 100%;
    overflow: visible;
    border-radius: 8px;
    background: #F0F0F0;
}

.hj93-trasteros__hotspot-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 8px;
}

.hj93-trasteros__hotspot-markers {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hj93-trasteros__hotspot-markers .hj93-trasteros__marker {
    pointer-events: auto;
}

/* ---------- Marcador ---------- */
.hj93-trasteros__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease;
}

.hj93-trasteros__marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 100;
}

.hj93-trasteros__marker.is-active {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 100;
}

.hj93-trasteros__marker-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: filter 0.15s ease, border-color 0.15s ease;
}

.hj93-trasteros__marker-dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
}

.hj93-trasteros__marker:hover .hj93-trasteros__marker-dot,
.hj93-trasteros__marker.is-active .hj93-trasteros__marker-dot {
    filter: brightness(1.15);
    border-color: var(--e-global-color-text, #1E1E1E);
}

/* ---------- Popup (hover) ---------- */
.hj93-trasteros__popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 260px;
    overflow: hidden;
    z-index: 20;
    pointer-events: auto;
    animation: hj93-popup-in 0.15s ease;
}

.hj93-trasteros__popup::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -8px;
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

@keyframes hj93-popup-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ---------- Popup fijado (click-to-pin) ---------- */
.hj93-trasteros__popup.is-pinned {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hj93-trasteros__popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 30;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.hj93-trasteros__popup-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* ---------- Carrusel ---------- */
.hj93-trasteros__carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4;
    background: #e8e8e8;
    overflow: hidden;
}

.hj93-trasteros__carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hj93-trasteros__carousel-estado-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.hj93-trasteros__carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 2;
    pointer-events: none;
}

.hj93-trasteros__carousel-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hj93-trasteros__carousel-btn:hover {
    background: #ffffff;
}

/* ---------- Popup body ---------- */
.hj93-trasteros__popup-body {
    padding: 0.8rem 1rem 1rem;
}

.hj93-trasteros__popup-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--e-global-color-text, #1E1E1E);
    text-align: center;
}

/* ---------- Datos ---------- */
.hj93-trasteros__popup-datos {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.hj93-trasteros__popup-dato {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.hj93-trasteros__popup-dato-check {
    display: inline-block;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid #FF3C35;
    border-bottom: 2.5px solid #FF3C35;
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-top: 2px;
}

.hj93-trasteros__popup-dato-label {
    color: #555;
}

.hj93-trasteros__popup-dato-value {
    font-weight: 600;
    color: var(--e-global-color-text, #1E1E1E);
    margin-left: auto;
}

.hj93-trasteros__popup-dato-label--alquiler {
    color: #ff6b35;
    font-weight: 700;
}

/* ---------- Footer: precio o estado ---------- */
.hj93-trasteros__popup-footer {
    border-top: 1px solid #eee;
    padding-top: 0.6rem;
    text-align: center;
}

.hj93-trasteros__popup-precio {
    display: block;
    width: 100%;
    padding: 0.45rem 0;
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    box-sizing: border-box;
}

.hj93-trasteros__popup-estado {
    display: block;
    width: 100%;
    padding: 0.45rem 0;
    border: 1px solid #999;
    border-radius: 0;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    box-sizing: border-box;
}

/* ---------- Botón de contacto ---------- */
.hj93-trasteros__popup-contacto {
    padding: 0.6rem 1rem 0.2rem;
    text-align: center;
}

.hj93-trasteros__popup-contacto-btn {
    display: inline-block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--e-global-color-primary, #ff6b35);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.hj93-trasteros__popup-contacto-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.hj93-trasteros__popup-contacto-btn:active {
    transform: translateY(0);
}
