/* =====================================================================
   assets/style.css — Tampilan Booking Engine v2 (gaya OTA)
   Ubah warna utama cukup di bagian :root.
   ===================================================================== */
:root {
    --c-primary: #1f4d36;      /* hijau tropis */
    --c-primary-2: #2c6b4b;
    --c-accent: #e2725b;       /* terracotta — tombol utama */
    --c-accent-2: #cf5d46;
    --c-gold: #c99a4a;
    --c-text: #1d2521;
    --c-muted: #6a716d;
    --c-line: #e6e8e7;
    --c-soft: #f6f7f6;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
    --shadow: 0 6px 24px rgba(0, 0, 0, .10);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .16);
}

body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--c-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: inherit; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--c-primary-2); }
.text-muted { color: var(--c-muted) !important; }

/* ---------- Tombol ---------- */
.btn { font-weight: 600; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--c-primary-2); border-color: var(--c-primary-2); }
.btn-accent { background: linear-gradient(90deg, var(--c-accent), #ea8a5e); border: 0; color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: linear-gradient(90deg, var(--c-accent-2), var(--c-accent)); color: #fff; }
.btn-accent:disabled { background: #e8b8ad; color: #fff; }
.form-control, .form-select { border-radius: 10px; border-color: #cfd4d1; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--c-text); box-shadow: 0 0 0 .15rem rgba(0, 0, 0, .08); }
.form-label { font-weight: 600; font-size: .9rem; }

/* =====================================================================
   HEADER & FOOTER (tamu)
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); padding: .7rem 0; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--c-text); font-weight: 800; font-size: 1.2rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--c-line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; color: var(--c-muted); font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.lang-switch a.active { background: var(--c-text); color: #fff; }
.site-footer { background: var(--c-soft); border-top: 1px solid var(--c-line); padding: 2.5rem 0 1.5rem; margin-top: 4rem; }

/* =====================================================================
   BERANDA
   ===================================================================== */
.hero { position: relative; color: #fff; padding: 5.5rem 0 7.5rem; background: var(--c-primary) center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 30, 20, .35), rgba(12, 30, 20, .65)); }
.hero > .container-xl { position: relative; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 760px; line-height: 1.1; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 620px; }
.hero .loc-chip { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

.searchbar { position: relative; background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; align-items: stretch; margin-top: -2.6rem; z-index: 5; border: 1px solid var(--c-line); }
.searchbar .seg { flex: 1; padding: .8rem 1.6rem; border: 0; background: transparent; text-align: left; border-radius: 999px; cursor: pointer; min-width: 0; }
.searchbar .seg:hover { background: var(--c-soft); }
.searchbar .seg + .seg { border-left: 1px solid var(--c-line); }
.seg-label { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text); }
.seg-value { display: block; font-size: .95rem; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-value.empty { color: var(--c-muted); }
.searchbar .search-btn { margin: .5rem; border-radius: 999px; padding: 0 1.6rem; font-size: 1rem; display: inline-flex; align-items: center; gap: .45rem; }
.searchbar .picker-popup { left: 0; top: calc(100% + 10px); }

.guest-stepper { display: flex; align-items: center; gap: .75rem; }
.guest-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #b9bfbc; background: #fff; line-height: 1; font-size: 1.1rem; color: var(--c-text); }
.guest-stepper button:hover { border-color: var(--c-text); }
.guest-stepper [data-stepper-label] { min-width: 18px; text-align: center; font-weight: 600; }

.why { display: flex; gap: .9rem; align-items: flex-start; }
.why i { font-size: 1.4rem; color: var(--c-primary); background: #e8f1ec; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why b { display: block; }
.section-title { font-size: 1.6rem; font-weight: 800; }

/* Kartu listing */
.listing { display: block; text-decoration: none; color: inherit; }
.listing:hover { color: inherit; }
.listing-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #e7ebe8; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.listing:hover .listing-img img { transform: scale(1.04); }
.listing-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #9fb3a6; }
.listing-badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.listing-badge.full { background: #2b2b2b; color: #fff; }
.listing-photos { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 8px; padding: .15rem .5rem; font-size: .75rem; }
.listing-title { font-weight: 700; font-size: 1.05rem; margin: .7rem 0 .1rem; display: flex; justify-content: space-between; gap: .5rem; }
.rating { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.rating i { color: var(--c-text); }
.listing-meta { color: var(--c-muted); font-size: .9rem; }
.listing-price { margin-top: .35rem; font-size: .98rem; }
.listing-price b { font-weight: 800; }
.listing-total { font-size: .85rem; color: var(--c-muted); text-decoration: underline; }
.listing.unavailable { opacity: .55; }
.amen-mini { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.amen-mini span { font-size: .75rem; background: var(--c-soft); border-radius: 6px; padding: .15rem .5rem; color: #3e4642; }

/* =====================================================================
   DETAIL KAMAR
   ===================================================================== */
.room-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .g-item { position: relative; overflow: hidden; background: #e7ebe8; cursor: pointer; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, transform .4s; }
.gallery .g-item:hover img { filter: brightness(.88); }
.gallery .g-main { grid-row: 1 / 3; }
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 430px; }
.gallery.g-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 430px; }
.gallery.g-2 .g-main, .gallery.g-1 .g-main { grid-row: auto; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; }
.gallery .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #9fb3a6; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: #fff; border: 1px solid var(--c-text); border-radius: 10px; font-weight: 600; font-size: .85rem; padding: .4rem .9rem; }
#galleryModal .modal-content { background: #111; }
#galleryModal .carousel-item img { max-height: 82vh; object-fit: contain; width: 100%; }

.specs { font-size: 1rem; color: #3e4642; }
.specs span + span::before { content: '·'; margin: 0 .5rem; color: var(--c-muted); }
.divider { border-top: 1px solid var(--c-line); margin: 2rem 0; }
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.5rem; }
.amen-grid div { display: flex; gap: .85rem; align-items: center; font-size: .98rem; }
.amen-grid i { font-size: 1.35rem; width: 28px; text-align: center; }
.highlight { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.highlight i { font-size: 1.5rem; width: 30px; }
.highlight b { display: block; }

.booking-card { position: sticky; top: 90px; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; background: #fff; }
.booking-card .price-head { font-size: 1.4rem; font-weight: 800; }
.booking-card .price-head small { font-size: .95rem; font-weight: 400; color: var(--c-muted); }
.date-box { position: relative; border: 1px solid #b9bfbc; border-radius: 12px; margin: 1rem 0 .9rem; }
.date-box .row-dates { display: grid; grid-template-columns: 1fr 1fr; }
.date-box .db-cell { padding: .55rem .8rem; text-align: left; background: none; border: 0; cursor: pointer; min-width: 0; }
.date-box .db-cell + .db-cell { border-left: 1px solid #b9bfbc; }
.date-box .db-guests { border-top: 1px solid #b9bfbc; padding: .55rem .8rem; display: flex; justify-content: space-between; align-items: center; }
.date-box .picker-popup { right: -1.5rem; top: calc(100% + 8px); }
.quote-lines { margin-top: 1rem; }
.q-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; }
.q-total { border-top: 1px solid var(--c-line); margin-top: .5rem; padding-top: .8rem; font-weight: 800; font-size: 1.05rem; }

.review-summary { font-size: 1.5rem; font-weight: 800; }
.review-card { padding: 1rem 0; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.stars { color: #f2b01e; letter-spacing: 1px; }

.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--c-line); padding: .75rem 1rem; z-index: 1020; display: none; box-shadow: 0 -4px 18px rgba(0, 0, 0, .06); }
@media (max-width: 991.98px) {
    .mobile-bar { display: flex; justify-content: space-between; align-items: center; }
    body.has-mobile-bar { padding-bottom: 80px; }
    .booking-card { position: static; }
}

/* =====================================================================
   KALENDER (date range picker)
   ===================================================================== */
.picker-popup { position: absolute; z-index: 1050; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.25rem 1.5rem 1rem; width: 700px; max-width: calc(100vw - 24px); display: none; border: 1px solid var(--c-line); }
.picker-popup.show { display: block; animation: pkIn .15s ease-out; }
@keyframes pkIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.picker-inline { width: 100%; }
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.pk-status { font-size: .95rem; color: var(--c-text); text-align: center; }
.pk-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--c-text); }
.pk-nav:hover:not(:disabled) { background: var(--c-soft); }
.pk-nav:disabled { opacity: .25; }
.pk-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem; }
.pk-title { text-align: center; font-weight: 700; margin-bottom: .5rem; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.pk-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--c-muted); padding: .3rem 0; }
.pk-day { position: relative; height: 48px; border: 0; background: transparent; border-radius: 0; font-size: .9rem; font-weight: 600; color: var(--c-text); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 0; }
.pk-day span { position: relative; z-index: 1; }
.pk-day small { position: relative; z-index: 1; font-size: .62rem; font-weight: 500; color: var(--c-primary-2); margin-top: 2px; }
.pk-day::before { content: ''; position: absolute; inset: 1px 2px; border-radius: 50%; }
.pk-day:hover:not(:disabled)::before { border: 1.5px solid var(--c-text); }
.pk-day.today span { text-decoration: underline; text-underline-offset: 3px; }
.pk-day.past { color: #c4c9c6; }
.pk-day.booked, .pk-day.blocked { color: #b5bbb8; }
.pk-day.booked span { text-decoration: line-through; }
.pk-day.booked-out small { display: none; }
.pk-day.in-range { background: #f1f3f2; }
.pk-day.start, .pk-day.end { color: #fff; }
.pk-day.start small, .pk-day.end small { color: rgba(255, 255, 255, .85); }
.pk-day.start::before, .pk-day.end::before { background: var(--c-text); }
.pk-day.start { background: linear-gradient(90deg, transparent 50%, #f1f3f2 50%); }
.pk-day.end { background: linear-gradient(90deg, #f1f3f2 50%, transparent 50%); }
.pk-day.start.end { background: transparent; }
.pk-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--c-line); margin-top: .75rem; padding-top: .6rem; font-size: .85rem; }
.pk-hint s { color: #b5bbb8; }

/* =====================================================================
   CHECKOUT / SUKSES / ULASAN
   ===================================================================== */
.page-narrow { max-width: 1120px; }
.co-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; }
.co-summary { position: sticky; top: 90px; }
.co-room { display: flex; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-line); margin-bottom: 1rem; }
.co-room img, .co-room .ph { width: 120px; height: 100px; border-radius: 12px; object-fit: cover; background: #e7ebe8; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #9fb3a6; font-size: 2rem; }
.trip-row { display: flex; justify-content: space-between; align-items: flex-start; padding: .6rem 0; }
.trip-row a { font-weight: 600; color: var(--c-text); }
.pay-option { display: flex; gap: .9rem; align-items: center; border: 2px solid var(--c-text); border-radius: 12px; padding: .85rem 1rem; }
.pay-option i { font-size: 1.5rem; }

.success-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #e3f1e6; color: #1f6b3a; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.booking-code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 1.7rem; font-weight: 700; letter-spacing: 2px; background: var(--c-soft); border: 2px dashed var(--c-gold); border-radius: 12px; padding: .5rem 1.2rem; display: inline-block; }
.pay-box { white-space: pre-line; background: #fff8ee; border-left: 4px solid var(--c-gold); border-radius: 10px; padding: 1rem 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--c-line); font-size: .95rem; gap: 1rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-total { font-size: 1.15rem; font-weight: 800; }

.star-input { display: inline-flex; gap: .35rem; font-size: 2.2rem; cursor: pointer; }
.star-input [data-star] { color: #d6dad8; transition: color .1s, transform .1s; }
.star-input [data-star].on { color: #f2b01e; }
.star-input [data-star]:hover { transform: scale(1.12); }

@media (max-width: 767.98px) {
    .searchbar { flex-direction: column; border-radius: 20px; margin-top: -3rem; }
    .searchbar .seg { border-radius: 12px; padding: .7rem 1.1rem; }
    .searchbar .seg + .seg { border-left: 0; border-top: 1px solid var(--c-line); }
    .searchbar .search-btn { justify-content: center; padding: .8rem; border-radius: 14px; }
    .searchbar .picker-popup, .date-box .picker-popup { position: fixed; left: 12px; right: 12px; top: 80px; width: auto; max-height: calc(100vh - 100px); overflow: auto; }
    .gallery { grid-template-columns: 1fr; grid-template-rows: 260px; }
    .gallery .g-item:not(.g-main) { display: none; }
    .gallery .g-main { grid-row: auto; }
    .amen-grid { grid-template-columns: 1fr; }
    .booking-code { font-size: 1.3rem; }
}

/* =====================================================================
   ADMIN
   ===================================================================== */
body.admin { background: #f3f5f4; }
.admin-nav { background: var(--c-primary); }
.admin-nav .navbar-brand { color: #fff; font-weight: 700; }
.admin-nav .navbar-brand i { color: var(--c-gold); }
.admin-nav .nav-link { color: rgba(255, 255, 255, .78); border-radius: 8px; padding: .45rem .8rem !important; }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .12); }
.admin-nav .navbar-text { color: rgba(255, 255, 255, .7); }
.admin-main { max-width: 1500px; }
body.admin h4, body.admin h5, body.admin h6 { color: var(--c-primary); }
.badge.bg-info { background-color: #cfe8f7 !important; color: #0b4f75 !important; }

.stat-card { background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); height: 100%; }
.stat-card .label { color: var(--c-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--c-primary); }
.stat-card i { font-size: 1.6rem; color: var(--c-gold); }
.card-admin { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.table-bookings td, .table-bookings th { vertical-align: middle; font-size: .9rem; }
.table-bookings tr.row-cancelled td { opacity: .55; }

.cal-wrap { overflow-x: auto; }
.cal-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .78rem; }
.cal-table th, .cal-table td { border-right: 1px solid #eef0ef; border-bottom: 1px solid #eef0ef; text-align: center; padding: 0; height: 42px; min-width: 38px; }
.cal-table thead th { background: #fafbfa; position: sticky; top: 0; font-weight: 600; padding: 4px 2px; }
.cal-table thead th.weekend { color: #b04a4a; }
.cal-table thead th.today { background: var(--c-gold); color: #fff; }
.cal-table .room-col { position: sticky; left: 0; background: #fff; text-align: left; padding: 0 .75rem; min-width: 170px; font-weight: 600; z-index: 1; }
.cal-bar { display: block; margin: 4px 2px; padding: 6px 6px; border-radius: 8px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal-bar:hover { color: #fff; filter: brightness(1.08); }
.cal-pending { background: #e0a53b; }
.cal-paid { background: #2f8f57; }
.cal-checkedin { background: #2b7bb9; }
.cal-completed { background: #7a8580; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .85rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.room-thumb { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; background: #e7ece9; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.thumb-grid .thumb { position: relative; width: 110px; }
.thumb-grid img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.amen-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .8rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--c-primary), var(--c-primary-2)); }
.login-card { background: #fff; border-radius: 18px; padding: 2.25rem; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
