.room-gallery {
    margin: 8px 0 18px;
}

/* DESKTOP */
.rg-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr; /* kiri besar + 3 kolom kecil */
    grid-auto-rows: 210px;
    gap: 16px;
}
.rg-item {
    display: block; /* penting untuk <a> menjadi block */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}
.rg-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.rg-item:hover img {
    transform: scale(1.03);
}

/* hero kiri: span 2 baris */
.rg-hero {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
}
.rg-hero img {
    height: 100%;
}

/* TABLET */
@media (max-width: 992px) {
    .rg-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    .rg-hero {
        grid-column: 1 / span 2;
        grid-row: 1;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .rg-grid {
        grid-template-columns: 1fr !important; /* 1 kolom */
        grid-auto-rows: unset !important; /* MATIKAN tinggi tetap */
        gap: 12px;
    }
    .rg-hero {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 16 / 10; /* opsional */
    }
    .rg-item:not(.rg-hero) {
        aspect-ratio: 4 / 3;
    }

    /* Paksa gambar isi penuh lebar di HP */
    .rg-item img {
        width: 100% !important;
        height: auto !important; /* jaga rasio */
        max-width: 100% !important;
        object-fit: cover;
    }
}

.deal-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e6f4ff; /* biru muda */
    border: 1px solid #d3e9ff;
    border-radius: 9999px; /* ujung bulat penuh */
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-top: 12px; /* jarak dari foto */
}

.db-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}
.db-icon svg {
    width: 20px;
    height: 20px;
}

.db-text {
    margin: 0;
    color: #0d3b66;
    font-weight: 500;
}
.db-text strong {
    color: #003e8a;
}

/* opsional: efek "pulse" pada kata sisa */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}
.db-text strong {
    animation: pulse 1.8s ease-in-out infinite;
}

/* mobile tweak */
@media (max-width: 576px) {
    .deal-banner {
        border-radius: 14px;
        padding: 10px 12px;
    }
}
/* highlight thumb aktif */
.rg-item.is-active {
    outline: 3px solid #d33;
    border-radius: 12px;
}
/* efek swap halus */
.rg-hero img {
    transition: opacity 0.2s;
}
.rg-hero img.is-swapping {
    opacity: 0.35;
}

/* overlay "lihat semua" */
.rg-seeall::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}
.rg-seeall__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(183, 28, 28, 0.95);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Responsif */

.btn-reservation {
    display: block; /* biar bisa atur lebar */
    width: 100%; /* sama-lebar (ikuti lebar kolom/parent) */
    padding: 14px 22px; /* atur tinggi */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 4px;
    text-align: center;
}
.btn-reservation--red {
    background: #b71c1c;
    color: #fff;
}
.btn-reservation--blue {
    background: #0d6efd;
    color: #fff;
}
.btn-reservation:hover {
    opacity: 0.9;
    color: #fff;
}
/* Box & judul */
.card-mobile {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.rb-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

/* Baris field */
.form-row {
    position: relative;
    margin-bottom: 12px;
}
.rb-label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    color: #666;
}
.rb-input {
    width: 100%;
    height: 44px;
    padding: 10px 40px 10px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
}
.rb-input:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.08);
}

/* Ikon kalender di kanan input */
.rb-icon {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #c00;
}

/* Tombol */
.btn-reservation {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 6px;
    color: #fff;
}
.btn-reservation--red {
    background: #b71c1c;
}
.btn-reservation--blue {
    background: #0d6efd;
}
.btn-reservation:hover {
    opacity: 0.92;
    color: #fff;
}

/* Responsif */
@media (max-width: 576px) {
    .room-booking,
    .sticky-top,
    .sticky-sm-top,
    .sticky-md-top,
    .sticky-lg-top,
    .sticky-xl-top {
        position: static !important;
        top: auto !important;
    }

    /* beri jarak aman di mobile */
    .card-mobile,
    .room-booking {
        margin-top: 16px !important;
        padding: 14px;
    }

    /* judul lebih kecil */
    .rb-title {
        font-size: 18px;
        margin-top: 0;
    }
}

/* Kalau ada floating back-to-top nutup tombol, geser sedikit */
.back-to-top {
    bottom: 80px !important;
}

/* Kalau ada tombol melayang (floating red button) yang nutupin tombol biru */
.back-to-top {
    bottom: 72px !important;
} /* geser ke atas dikit */

/* review */
/* ===== Reviews list ===== */
.rd-reviews {
    margin-top: 8px;
}
.rd-reviews h4 {
    margin: 0 0 16px;
    font-size: 22px;
}

.review-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    margin: 12px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.review-item .ri-pic img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f4f4f4;
}

/* header kecil di tiap review (tanggal kiri, rating kanan) */
.ri-text .ri-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 2px 0 6px;
}
.ri-text .ri-meta .date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aa0a6;
}
.rating i {
    color: #f5b301;
    font-size: 14px;
    margin-left: 1px;
}

/* nama & isi */
.ri-text h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}
.ri-text p {
    margin: 0;
    color: #444;
    line-height: 1.55;
}

/* ===== Add review card ===== */
.review-add {
    margin-top: 26px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.review-add h4 {
    margin: 0 0 12px;
}

/* input/textarea */
.ra-form input[type="text"],
.ra-form textarea,
.ra-form input[type="email"] {
    width: 100%;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 12px 14px;
    outline: 0;
    transition: border-color 0.2s;
}
.ra-form textarea {
    min-height: 140px;
    resize: vertical;
}
.ra-form input:focus,
.ra-form textarea:focus {
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.08);
}

.ra-form button[type="submit"] {
    display: inline-block;
    border: 0;
    padding: 12px 18px;
    border-radius: 8px;
    background: #b71c1c;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Star rating input (interaktif) ===== */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.star-input input {
    display: none;
}
.star-input label {
    font-size: 20px;
    color: #d4d4d4;
    cursor: pointer;
    transition: color 0.15s;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #f5b301;
}

/* Responsive tweak */
@media (max-width: 576px) {
    .review-item {
        padding: 14px 16px;
    }
    .review-add {
        padding: 14px 16px;
    }
}
