/* Spaces & Layout, Photos-by-space and Rental pricing — public detail page.
   Mobile-first: base styles target phones, min-width queries scale up.
   Brand: navy #0c2340, gold #d4af37 (with token fallbacks). */

:root {
    --sp-navy: var(--color-primary, #0c2340);
    --sp-gold: var(--color-accent, #d4af37);
    --sp-line: rgba(12, 35, 64, .12);
    --sp-soft: rgba(12, 35, 64, .04);
}

/* ── Spaces & Layout (rooms.html) ─────────────────────────────── */
.property-rooms__type-icon {
    width: 1.25rem;
    margin-right: .4rem;
    color: var(--sp-gold);
    text-align: center;
}

/* ── Photos by space (gallery_by_space.html) ──────────────────── */
.space-gallery__floor + .space-gallery__floor { margin-top: 1.25rem; }

.space-gallery__floor-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--sp-navy);
}
.space-gallery__floor-title i { color: var(--sp-gold); }

.space-gallery__item {
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.space-gallery__item + .space-gallery__item { margin-top: .6rem; }

.space-gallery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 52px;
    padding: .65rem .9rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--sp-navy);
    background: var(--sp-soft);
}
.space-gallery__head::-webkit-details-marker { display: none; }

.space-gallery__name { display: flex; align-items: center; gap: .55rem; }
.space-gallery__name > i { width: 1.2rem; color: var(--sp-gold); text-align: center; }
.space-gallery__chip { color: #2d7dd2; font-size: .85em; }

.space-gallery__meta { display: flex; align-items: center; gap: .6rem; color: #6b7280; }
.space-gallery__count {
    min-width: 1.4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sp-line);
    font-size: .8rem;
    text-align: center;
}
.space-gallery__chev { transition: transform .2s ease; font-size: .8rem; }
.space-gallery__item[open] .space-gallery__chev { transform: rotate(180deg); }

.space-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem;
    padding: .6rem;
}
.space-gallery__thumb {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sp-soft);
}
.space-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.space-gallery__thumb:hover img { transform: scale(1.05); }

@media (min-width: 640px) {
    .space-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .space-gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Rental options & pricing (pricing.html) ──────────────────── */
.rental-pricing__group + .rental-pricing__group { margin-top: 1.1rem; }

.rental-pricing__group-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .6rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--sp-navy);
}
.rental-pricing__group-title i { color: var(--sp-gold); }

.rental-pricing__tiers { display: grid; gap: .5rem; }

.rental-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: #fff;
}
.rental-tier--default {
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 1px var(--sp-gold) inset;
    background: linear-gradient(0deg, rgba(212, 175, 55, .06), rgba(212, 175, 55, .06)), #fff;
}
.rental-tier__label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: var(--sp-navy);
}
.rental-tier__badge {
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--sp-gold);
    color: var(--sp-navy);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rental-tier__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sp-navy);
    white-space: nowrap;
}
.rental-tier__per { font-size: .8rem; font-weight: 500; color: #6b7280; }

.rental-pricing__note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: .65rem 0 0;
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.4;
}
.rental-pricing__note i { color: var(--sp-gold); margin-top: .15rem; }

@media (min-width: 768px) {
    .rental-pricing__tiers { grid-template-columns: repeat(2, 1fr); }
}
