/* === ListingItemPreviewModal — room photo gallery and details modal. Variables from app.css only. Zero inline styles. === */

.lipm-dialog {
    border-radius: 1rem;
    overflow: hidden;
}

/* ── Gallery ── */

.lipm-gallery {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lipm-photo-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.lipm-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lipm-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    padding: 0.5em 1em;
    margin: 0;
}

.lipm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.lipm-nav:hover { background: #fff; }
.lipm-nav:disabled { opacity: 0.3; cursor: default; }
.lipm-nav--prev { left: 0.75rem; }
.lipm-nav--next { right: 0.75rem; }

.lipm-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.lipm-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.lipm-dot--active { background: #fff; }

.lipm-counter {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 0.15em 0.5em;
    border-radius: 0.4rem;
    margin: 0;
    z-index: 2;
}

.lipm-no-photo {
    font-family: 'Nunito', sans-serif;
    color: var(--antologa-gray);
    font-size: 1.3rem;
    padding: 2em;
}

/* ── Body ── */

.lipm-body {
    padding: 1.5em 1.5em 1em;
}

.lipm-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 0.5em;
}

.lipm-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--antologa-dark);
    margin: 0 0 0.15em;
}

.lipm-meta {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    color: var(--antologa-gray);
    margin: 0;
}

.lipm-price-block {
    text-align: right;
    white-space: nowrap;
}

.lipm-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--antologa-secondary);
}

.lipm-price-unit {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: var(--antologa-gray);
    margin-left: 0.2em;
}

.lipm-urgency {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--antologa-terciary);
    margin: 0.4em 0 0;
}

.lipm-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem;
    color: var(--antologa-dark);
    line-height: 1.55;
    margin: 0;
}

/* ── Actions ── */

.lipm-actions {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.lipm-select-btn {
    background-color: var(--antologa-primary) !important;
    color: #fff !important;
    border-radius: 0.6rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    text-transform: none !important;
    padding: 0.6em 1.5em !important;
}

.lipm-back-btn {
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    color: var(--antologa-gray);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.lipm-back-btn:hover { color: var(--antologa-dark); }
