/* ============================================================
   Tripcetera theme overrides
   - Global font: Plus Jakarta Sans (sumber tunggal via --tripcetera-sans)
   - Perbaikan spacing hero halaman akun
   - Tampilan My Booking yang bersih & profesional (travel agent)
   Di-load paling akhir agar menang atas stylesheet lain.
   ============================================================ */

:root {
    --tripcetera-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body,
.btn, input, button, select, textarea,
.footer-links h2, .booking-box h2,
.hero h1, h1, h2, h3, h4, h5, h6,
.brand,
.account-hero h1, .account-detail-card h2, .static-hero h1 {
    font-family: var(--tripcetera-sans) !important;
}

body { font-weight: 400; }

/* -------- Skala tipografi lebih besar & nyaman (referensi: OTA modern spt tiket.com) --------
   Base 16px, line-height 1.6, hierarki heading lebih tegas. Di-load terakhir agar menang. */
html { font-size: 16px; }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Navigasi utama lebih terbaca */
.nav-primary .nav-link, .nav-link { font-size: 15px !important; }
.dropdown-item { font-size: 15px; padding-top: 9px; padding-bottom: 9px; }
.account-link { font-size: 15px; }

/* Paragraf & teks umum */
p { font-size: 16px; }
.btn { font-size: 15px; }
input, select, textarea { font-size: 15px; }

/* Heading hero/halaman lebih besar dan tegas */
.account-hero h1, .static-hero h1 { font-size: 38px !important; line-height: 1.2; }
.account-hero p:last-child, .static-hero p:last-child { font-size: 16px; }
.eyebrow { font-size: 12.5px; letter-spacing: 1.5px; }

/* Footer sedikit dinaikkan */
.footer-links h2 { font-size: 15px; }
.footer-links a { font-size: 15px; }

/* My Booking: teks tabel & elemen dinaikkan */
.account-card-heading h2 { font-size: 24px; }
.booking-table td { font-size: 15px; }
.booking-table th { font-size: 12px; }
.booking-filter label { font-size: 13px; }
.booking-filter select { font-size: 15px; }
.booking-status { font-size: 12.5px; }
.booking-table .btn-outline-brand, .booking-table a.btn { font-size: 14px; }

/* -------- Hero akun: rapatkan tinggi berlebih -------- */
.account-hero { padding: 34px 0 30px !important; }
.account-hero h1 { margin: 4px 0 6px !important; font-weight: 700; letter-spacing: -.5px; }
.account-hero .eyebrow { margin-bottom: 2px; }
.account-hero p:last-child { font-size: 15px; }
.account-workspace { padding-top: 34px !important; }

/* -------- My Booking: kartu, tabel, status, tombol -------- */
.account-card-heading h2 { font-size: 22px; font-weight: 700; }

/* Filter status ringkas dan sejajar */
.booking-filter {
    grid-template-columns: minmax(220px, 320px) auto !important;
    gap: 12px !important;
    align-items: end;
    margin-bottom: 22px !important;
}
.booking-filter label { font-size: 12px; font-weight: 700; color: #5a6a63; }
.booking-filter select {
    width: 100%; margin-top: 6px; height: 44px;
    border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
    background: #fff; font: inherit; color: #26332e;
}
.booking-filter .btn { height: 44px; padding: 0 22px; border-radius: 9px; font-weight: 700; }

/* Tabel booking: bersih, banyak whitespace, baris hover */
.booking-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.booking-table { min-width: 720px; }
.booking-list-table { min-width: 0; table-layout: fixed; }
.booking-list-table-wrap { overflow: hidden; }
.booking-list-table th:nth-child(1), .booking-list-table td:nth-child(1) { width: 16%; }
.booking-list-table th:nth-child(2), .booking-list-table td:nth-child(2) { width: 12%; }
.booking-list-table th:nth-child(3), .booking-list-table td:nth-child(3) { width: 27%; }
.booking-list-table th:nth-child(4), .booking-list-table td:nth-child(4) { width: 16%; }
.booking-list-table th:nth-child(5), .booking-list-table td:nth-child(5) { width: 16%; }
.booking-list-table th:nth-child(6), .booking-list-table td:nth-child(6) { width: 13%; }
.booking-list-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
.booking-table th {
    background: #fafbfa; color: #6a7772;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    padding: 14px 18px;
}
.booking-table td { padding: 18px; font-size: 14px; color: #2b3a34; vertical-align: middle; border-bottom: 1px solid #eef1ef; }
.booking-table tbody tr:last-child td { border-bottom: 0; }
.booking-table tbody tr { transition: background .12s ease; }
.booking-table tbody tr:hover { background: #fafcfb; }
.booking-table td:first-child { font-weight: 700; color: #1f2f2a; white-space: nowrap; }

/* Badge status berwarna */
.booking-status {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
    background: #eef1ef; color: #55635c;
}
.booking-status--confirmed { background: #e6f6ec; color: #1a7f43; }
.booking-status--completed { background: #e7f0fb; color: #1e5fa8; }
.booking-status--pending   { background: #fff4e2; color: #b5730a; }
.booking-status--reserved  { background: #e7f5f4; color: #0a6f78; }
.booking-status--cancelled { background: #fdece8; color: #c23b1e; }
.booking-status--default   { background: #eef1ef; color: #55635c; }
.payment-method-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.payment-method-badge--host { background: #e7f5f4; color: #08726f; }
.payment-method-badge--tripcetera { background: #fff0ea; color: #d85832; }

/* Tombol View detail: kecil, rapi, satu baris */
.booking-table .btn-outline-brand,
.booking-table a.btn {
    display: inline-block; white-space: nowrap;
    padding: 8px 16px; font-size: 13px; font-weight: 700;
    border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); background: #fff;
}
.booking-table .btn-outline-brand:hover,
.booking-table a.btn:hover { background: var(--brand); color: #fff; }
.booking-list-table td:first-child a.btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.booking-table td:last-child { text-align: right; white-space: nowrap; }

/* Pagination rapi */
.booking-pagination { display: flex; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.booking-pagination a, .booking-pagination .page-current, .booking-pagination .page-nav {
    min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; color: #46564f;
}
.booking-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.booking-pagination .page-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.booking-pagination .page-nav { color: #46564f; }
.booking-pagination .page-nav.is-disabled { opacity: .45; pointer-events: none; }
.booking-pagination .page-gap { min-width: 24px; text-align: center; color: #97a29c; border: 0; }

/* -------- Host booking requests: kolom Action rapi -------- */
.booking-table td:last-child:has(.request-actions) { white-space: normal; }
.request-actions {
    display: flex; flex-direction: column; gap: 10px;
    align-items: stretch; width: 220px; margin-left: auto;
}
.request-actions form { margin: 0; }
.request-actions .request-approve-form .btn,
.request-actions .request-reject-form .btn { width: 100%; }
.request-actions .btn-brand {
    padding: 10px 16px; font-size: 14px; font-weight: 700; border-radius: 8px;
}
.request-actions .request-reject-form {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 10px; border-top: 1px solid #eef1ef;
}
.request-actions .request-reject-form input {
    width: 100%; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit; font-size: 14px; color: #26332e; background: #fff;
}
.request-actions .request-reject-form input::placeholder { color: #97a29c; }
.request-actions .request-reject-form input:focus {
    outline: none; border-color: var(--brand);
}
.booking-table .request-actions .btn-outline-brand {
    padding: 9px 16px; font-size: 14px;
}

/* -------- My Sales: ringkasan total earning -------- */
.sales-total { text-align: right; }
.sales-total span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #6a7772; text-transform: uppercase; }
.sales-total strong { font-size: 20px; color: var(--teal); }
.sales-filter { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.sales-filter label { min-width: 0; font-size: 12px; font-weight: 700; color: #5a6a63; }
.sales-filter input, .sales-filter select { display: block; width: 100%; height: 44px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: #fff; color: #26332e; font: inherit; }
.sales-filter .btn { height: 44px; padding: 0 20px; white-space: nowrap; }
.sales-table-wrap { overflow: hidden; }
.sales-table { width: 100%; min-width: 0; table-layout: fixed; }
.sales-table th, .sales-table td { padding: 12px 8px; font-size: 13px; overflow-wrap: anywhere; }
.sales-table th:nth-child(1), .sales-table td:nth-child(1) { width: 17%; }
.sales-table th:nth-child(2), .sales-table td:nth-child(2) { width: 15%; }
.sales-table th:nth-child(3), .sales-table td:nth-child(3) { width: 17%; }
.sales-table th:nth-child(4), .sales-table td:nth-child(4) { width: 15%; }
.sales-table th:nth-child(5), .sales-table td:nth-child(5) { width: 14%; }
.sales-table th:nth-child(6), .sales-table td:nth-child(6) { width: 12%; }
.sales-table th:nth-child(7), .sales-table td:nth-child(7) { width: 10%; }
.sales-table th:nth-child(8), .sales-table td:nth-child(8) { width: 14%; }
.sales-table td:first-child { white-space: normal; }
.sales-table th:first-child { white-space: nowrap; }
.sales-document-links { display: flex; gap: 6px; margin-top: 8px; }
.sales-icon-action { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--brand); border-radius: 7px; color: var(--brand); background: #fff; }
.sales-icon-action:hover, .sales-icon-action:focus-visible { color: #fff; background: var(--brand); outline: none; }
.sales-icon-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sales-icon-action::after { position: absolute; z-index: 10; left: 0; bottom: calc(100% + 7px); width: max-content; max-width: 180px; padding: 6px 8px; border-radius: 6px; background: #21332c; color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 600; line-height: 1.2; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .15s, transform .15s; }
.sales-icon-action:hover::after, .sales-icon-action:focus-visible::after { opacity: 1; transform: translateY(0); }
.sales-reminder-button { padding: 8px 10px; font-size: 12px; line-height: 1.2; white-space: normal; }

/* -------- My Listing -------- */
.listing-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 4px 0 20px; }
.listing-tab { padding: 10px 18px; font-weight: 700; font-size: 14px; color: #5a6a63; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.listing-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.listing-tab:hover { color: var(--brand); }

.listing-filter { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 10px; margin-bottom: 22px; }
.listing-filter input, .listing-filter select { height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font: inherit; font-size: 14px; color: #26332e; background: #fff; }
.listing-filter input:focus, .listing-filter select:focus { outline: none; border-color: var(--brand); }
.listing-filter .btn { height: 44px; padding: 0 20px; border-radius: 9px; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.listing-thumb { position: relative; aspect-ratio: 16 / 10; background: #f1f3f2; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; }
.listing-badge--live { background: #1a7f43; }
.listing-badge--draft { background: #b5730a; }
.listing-badge--muted { background: #6a7772; }
.listing-badge--edit { top: 10px; left: auto; right: 10px; background: #1e5fa8; }
.listing-badge--pending { top: 10px; left: auto; right: 10px; background: #b5730a; }
.listing-status-btn--pending { background: #fff4e2; color: #b5730a; border-color: #f0d6a8; cursor: default; display: inline-flex; align-items: center; justify-content: center; }
.listing-body { padding: 15px 16px 6px; flex: 1; }
.listing-type { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6a7772; }
.listing-name { font-size: 17px; font-weight: 700; margin: 6px 0 6px; color: #1f2f2a; line-height: 1.3; }
.listing-rating { color: #e79522; font-size: 13px; font-weight: 700; }
.listing-rating span { color: #6a7772; font-weight: 400; }
.listing-location { color: #63706d; font-size: 13px; margin: 6px 0 0; }
.listing-id { color: #97a29c; font-size: 12px; margin: 8px 0 0; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #f0f2f1; }
.listing-actions { padding: 12px 16px 16px; border-top: 1px solid #f0f2f1; display: flex; flex-direction: column; gap: 10px; }
.listing-actions form { margin: 0; }
/* Tombol Edit sebagai aksi utama (masuk ke halaman edit bertab) */
.listing-action-btn { display: block; text-align: center; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #33413e; font-size: 13px; font-weight: 700; transition: all .12s ease; }
.listing-action-btn:hover { border-color: var(--brand); color: var(--brand); background: #fff6f3; }
.listing-action-btn--edit { border-color: var(--brand); color: var(--brand); }
.listing-action-btn--edit:hover { background: var(--brand); color: #fff; }
/* Baris aksi status/lifecycle */
.listing-actions-status { display: flex; gap: 8px; }
.listing-actions-status form { flex: 1; }
.listing-status-btn { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #f7f8f7; color: #55635c; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .12s ease; }
.listing-status-btn:hover { background: #eef0ee; }
.listing-status-btn--danger { color: #c23b1e; }
.listing-status-btn--danger:hover { background: #fdece8; border-color: #f3c4b8; }
.listing-status-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.listing-status-btn--primary:hover { background: #ce5030; }
.btn-sm { padding: 7px 14px !important; font-size: 13px !important; }
.btn-ghost { background: #f4f6f5; color: #46564f; border: 1px solid var(--line); }
.btn-ghost:hover { background: #e6eae8; }
.listing-danger { color: #c23b1e; }
.listing-danger:hover { background: #fdece8; }
.listing-pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.listing-pagination a, .listing-pagination .page-current { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; color: #46564f; }
.listing-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.listing-pagination .page-current { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } .listing-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .sales-filter { grid-template-columns: 1fr 1fr; } .sales-filter .btn { width: 100%; } }
@media (max-width: 560px) { .listing-grid { grid-template-columns: 1fr; } .listing-filter { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sales-filter { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .sales-table-wrap { overflow: visible; border: 0; }
    .sales-table, .sales-table tbody, .sales-table tr, .sales-table td { display: block; width: 100% !important; }
    .sales-table thead { display: none; }
    .sales-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .sales-table tr:last-child { border-bottom: 0; }
    .sales-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 7px 0; text-align: right !important; }
    .sales-table td::before { flex: 0 0 92px; color: #6a7772; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .sales-table td:nth-child(1)::before { content: "Booking"; }
    .sales-table td:nth-child(2)::before { content: "Listing"; }
    .sales-table td:nth-child(3)::before { content: "Traveller"; }
    .sales-table td:nth-child(4)::before { content: "Period"; }
    .sales-table td:nth-child(5)::before { content: "Payment"; }
.sales-table td:nth-child(6)::before { content: "Status"; }
.sales-table td:nth-child(7)::before { content: "Sales amount"; }
.sales-table td:nth-child(8)::before { content: "Action"; }
    .sales-document-links { justify-content: flex-start; }
}

/* -------- Edit listing form -------- */
.listing-edit-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.listing-nav-link { padding: 10px 16px; font-size: 14px; font-weight: 700; color: #5a6a63; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.listing-nav-link:hover { color: var(--brand); }
.listing-nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }
.listing-edit-media { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.listing-edit-media img { width: 130px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.listing-edit-media .muted { font-size: 13px; color: #6a7772; margin: 0; }
.profile-photo-form { margin: 0; }
.profile-photo-upload { flex: 1; }
.profile-photo-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.profile-photo-controls input[type=file] { font-size: 13px; }

/* -------- Quill rich-text editor -------- */
.listing-edit-section .quill-editor { background: #fff; margin-bottom: 16px; }
.listing-edit-section .quill-editor .ql-editor { min-height: 120px; font-size: 14px; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line); }
.ql-toolbar.ql-snow { border-radius: 9px 9px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 9px 9px; }
.listing-edit-section .quill-editor + label { margin-top: 4px; }

/* -------- Rich content rendering (HTML dari editor, ditampilkan di halaman detail) -------- */
.rich-content { line-height: 1.65; color: #3a4844; font-size: 15px; }
.rich-content p { margin: 0 0 10px; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { margin: 0 0 10px; padding-left: 22px; }
.rich-content li { margin: 3px 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 14px 0 8px; color: #1f2f2a; }
.rich-content a { color: var(--brand); text-decoration: underline; }
.rich-content blockquote { margin: 10px 0; padding: 6px 14px; border-left: 3px solid var(--line); color: #5a6a63; }
.rich-content strong { font-weight: 700; }
.listing-edit-section { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; margin: 0 0 18px; }
.listing-edit-section legend { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); padding: 0 8px; }
.listing-edit-section label { display: block; font-size: 13px; font-weight: 700; color: #55635c; margin-bottom: 14px; }
.listing-edit-section input, .listing-edit-section select, .listing-edit-section textarea {
    display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px;
    padding: 10px 12px; font: inherit; font-size: 14px; color: #26332e; background: #fff;
}
.listing-edit-section input:focus, .listing-edit-section select:focus, .listing-edit-section textarea:focus { outline: none; border-color: var(--brand); }
.listing-edit-section textarea { resize: vertical; }
.edit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edit-row label { margin-bottom: 0; }
.listing-edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 640px) { .edit-row { grid-template-columns: 1fr; } }

/* -------- Map picker (Leaflet) -------- */
.map-picker-wrap { margin-top: 4px; }
.map-picker-toolbar { display: flex; gap: 10px; margin-bottom: 10px; }
.map-picker-toolbar input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font: inherit; font-size: 14px; }
.map-picker-toolbar input:focus { outline: none; border-color: var(--brand); }
.map-picker { width: 100%; height: 320px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-picker-hint { font-size: 13px; color: #6a7772; margin: 8px 0 0; }

/* -------- Pricing & Availability -------- */
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-label input { width: auto !important; margin: 0 !important; }
.align-end { display: flex; align-items: flex-end; }
.align-end .btn { height: 42px; }
.cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.cal-toolbar strong { font-size: 16px; min-width: 170px; text-align: center; }
.avail-calendar { }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: 11px; font-weight: 800; color: #6a7772; text-transform: uppercase; padding: 4px 0; }
.cal-cell { aspect-ratio: 1 / 1; display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.cal-cell--empty { border: 0; cursor: default; }
.cal-cell--none { background: #f4f6f5; color: #b4bdb8; cursor: default; }
.cal-cell--open { background: #e9f6ee; color: #1a7f43; border-color: #c4e6d1; }
.cal-cell--open:hover { background: #d6efe0; }
.cal-cell--blackout { background: #fdece8; color: #c23b1e; border-color: #f6cabd; }
.cal-cell--blackout:hover { background: #fbdccf; }
.cal-cell--booked { background: #e7f0fb; color: #1e5fa8; border-color: #c6dcf5; cursor: not-allowed; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: #55635c; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-dot--open { background: #b6e3c7; }
.cal-dot--blackout { background: #f4b8a6; }
.cal-dot--booked { background: #b6d0f0; }
.cal-dot--none { background: #dfe3e1; }

/* -------- Listing gallery -------- */
.gallery-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.gallery-upload input[type=file] { flex: 1; min-width: 220px; font-size: 14px; }
.gallery-upload input[type=text] { flex: 1; min-width: 180px; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font: inherit; font-size: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.gallery-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gallery-item img { width: 100%; height: 150px; object-fit: cover; display: block; background: #f1f3f2; }
.gallery-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; color: #55635c; }
.gallery-item figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item form { margin: 0; }

/* -------- Amenity checkboxes -------- */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.amenity-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #33413e; margin: 0; }
.amenity-check input { width: auto !important; margin: 0 !important; }

/* -------- Host verification -------- */
.verif-status-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.verif-status-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; }
.verif-chip { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1ef; color: #55635c; }
.verif-chip--ok { background: #e6f6ec; color: #1a7f43; }
.verif-chip--pending { background: #fff4e2; color: #b5730a; }
.verif-note { font-size: 13px; color: #6a7772; margin: 0 0 18px; }
.verif-note a { color: var(--brand); }
.verif-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.verif-doc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.verif-doc img { width: 100%; height: 120px; object-fit: cover; background: #f1f3f2; }
.verif-doc-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
@media (max-width: 700px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .amenity-grid { grid-template-columns: 1fr; } }
.booking-page-info { margin: 12px 0 0; font-size: 13px; color: #77837d; }

/* Empty state lebih lembut */
.booking-empty { padding: 44px 20px; }
.booking-empty strong { font-size: 16px; color: #26332e; }

@media (max-width: 800px) {
    .booking-filter { grid-template-columns: 1fr !important; }
    .booking-filter .btn { width: 100%; }
    .account-hero h1 { font-size: 28px !important; }
}


/* ── Booking detail: Hotel & Room information cards ───────────────────────
   Mirrors the voucher's Hotel/Room cards so the detail page feels less rigid. */
.booking-section-title { font-family: var(--tripcetera-sans); font-size: 17px; font-weight: 700; color: #1f2f2a; margin: 26px 0 12px; }
.booking-hotel-card { display: flex; gap: 18px; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.booking-hotel-image { flex: 0 0 190px; width: 190px; height: 150px; object-fit: cover; display: block; }
.booking-hotel-body { flex: 1; min-width: 0; padding: 16px 18px; }
.booking-hotel-name { font-family: var(--tripcetera-sans); font-size: 18px; font-weight: 700; color: #1f2f2a; margin: 0 0 4px; }
.booking-hotel-location { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.booking-room-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px 18px; }
.booking-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 0; }
.booking-info-grid > div { display: flex; flex-direction: column; gap: 3px; }
.booking-info-grid dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.booking-info-grid dd { color: #1f2f2a; font-size: 15px; font-weight: 600; margin: 0; word-break: break-word; }
@media (max-width: 640px) {
    .booking-hotel-card { flex-direction: column; }
    .booking-hotel-image { width: 100%; flex-basis: auto; height: 180px; }
}

/* Booking detail action row: give it breathing room from the table above. */
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
