/* ============================================================
   Gaya khusus halaman publik (marketplace)
   ============================================================ */

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #0d9488;
    color: #fff;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

/* ---------- Kartu kos ---------- */
.kos-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .875rem;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.kos-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.kos-card .kos-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    overflow: hidden;
}

.kos-card .kos-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* gambar tidak gepeng walau rasionya beda */
    display: block;
}

.kos-card .kos-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .95);
    color: #0f172a;
}

.kos-card .kos-badge-avail {
    left: auto;
    right: .6rem;
    background: rgba(13, 148, 136, .95);
    color: #fff;
}

.kos-card .kos-body { padding: 1rem; flex: 1 1 auto; }
.kos-card .kos-foot { padding: 0 1rem 1rem; }

.kos-price { font-size: 1.05rem; font-weight: 700; color: #0d9488; }
.kos-price small { font-weight: 500; color: #64748b; }

/* ---------- Galeri halaman detail ---------- */
.gallery-main {
    aspect-ratio: 16 / 9;
    border-radius: .875rem;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }

.gallery-thumbs button {
    flex: 0 0 auto;
    width: 84px;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: .5rem;
    overflow: hidden;
    padding: 0;
    background: #e2e8f0;
    cursor: pointer;
}

.gallery-thumbs button.active { border-color: #0d9488; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Chip fasilitas ---------- */
.facility-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: .85rem;
    font-weight: 500;
}

/* ---------- Panel harga menempel saat scroll ---------- */
@media (min-width: 992px) {
    .sticky-panel { position: sticky; top: 88px; }
}

/* ---------- Kotak unggah foto ---------- */
.photo-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: .625rem;
    overflow: hidden;
    background: #e2e8f0;
}

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

.photo-tile .photo-actions {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    gap: .25rem;
    padding: .4rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, .75));
}