/* ==========================================================
   Lakbay Arakan - Admin dashboard styles
   Layout follows the "Travelie" dashboard reference
   ========================================================== */
:root {
  --a-primary: #1f7a4d;
  --a-primary-dark: #165c3a;
  --a-soft: #e8f4ec;
  --a-soft-2: #f5faf6;
  --a-ink: #12301f;
  --a-text: #556259;
  --a-muted: #8a978f;
  --a-border: #e2ece5;
  --a-bg: #f1f6f2;
  --a-green: #13a06a;
  --a-red: #e5484d;
  --a-amber: #e0a823;
  --a-radius: 16px;
  --bs-primary: var(--a-primary);
  --bs-primary-rgb: 31, 122, 77;
  --bs-link-color: var(--a-primary);
  --bs-link-color-rgb: 31, 122, 77;
  --bs-body-font-family: 'Poppins', system-ui, sans-serif;
}
body.admin { font-family: 'Poppins', system-ui, sans-serif; background: var(--a-bg); color: var(--a-text); font-size: .9rem; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6, b, strong { color: var(--a-ink); }
.min-w-0 { min-width: 0; }

.btn { border-radius: 10px; font-weight: 500; font-size: .86rem; }
.btn-primary { --bs-btn-bg: var(--a-primary); --bs-btn-border-color: var(--a-primary); --bs-btn-hover-bg: var(--a-primary-dark); --bs-btn-hover-border-color: var(--a-primary-dark); --bs-btn-active-bg: var(--a-primary-dark); --bs-btn-disabled-bg: var(--a-primary); }
.btn-light { --bs-btn-bg: var(--a-soft-2); --bs-btn-border-color: var(--a-border); --bs-btn-hover-bg: var(--a-soft); --bs-btn-hover-border-color: #cfe6d7; color: var(--a-ink); }
.btn-sq { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.form-control, .form-select { border-radius: 10px; border-color: var(--a-border); font-size: .88rem; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--a-primary); box-shadow: 0 0 0 .2rem rgba(31,122,77,.12); }
.form-label { font-weight: 500; color: var(--a-ink); font-size: .82rem; margin-bottom: .35rem; }
.alert { border-radius: 12px; font-size: .88rem; }

/* Logo */
.side-logo { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; margin-bottom: 24px; }
.side-logo img { width: 100%; max-width: 200px; height: auto; }
.side-logo span { font-size: .72rem; font-weight: 600; color: var(--a-muted); letter-spacing: .04em; text-transform: uppercase; }
.login-logo img { max-width: 260px; }

/* Shell */
.admin-shell { display: flex; min-height: 100vh; width: 100%; }
.sidebar { width: 236px; flex: 0 0 236px; background: #fff; border-right: 1px solid var(--a-border); padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.15rem; color: var(--a-ink); padding: 0 8px; margin-bottom: 26px; }
.side-brand i { color: var(--a-primary); font-size: 1.4rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--a-text); font-weight: 500; font-size: .87rem; }
.side-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.side-link:hover { background: var(--a-soft-2); color: var(--a-primary); }
.side-link.active { background: var(--a-primary); color: #fff; box-shadow: 0 6px 16px rgba(31,122,77,.25); }
.side-badge { margin-left: auto; background: var(--a-primary); color: #fff; border-radius: 6px; font-size: .68rem; padding: 2px 7px; font-weight: 600; }
.side-link.active .side-badge { background: #fff; color: var(--a-primary); }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); margin: 16px 12px 6px; font-weight: 600; }
.side-help { margin-top: 18px; background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 14px; padding: 14px; color: var(--a-ink); }
.sidebar-backdrop { display: none; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--a-border); position: sticky; top: 0; z-index: 20; }
.topbar-title { font-size: 1.25rem; font-weight: 600; margin: 0 auto 0 0; }
.top-search { align-items: center; gap: 8px; background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 10px; padding: 0 12px; width: 260px; }
.top-search i { color: var(--a-muted); }
.top-search input { border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: .85rem; width: 100%; }
.btn-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--a-border); background: #fff; color: var(--a-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-icon:hover { background: var(--a-soft); }
.btn-icon .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--a-red); border: 2px solid #fff; }
.notif-menu { width: 300px; border-radius: 14px; border-color: var(--a-border); box-shadow: 0 16px 40px rgba(18,48,31,.12); }
.notif-menu .dropdown-item { white-space: normal; padding: 8px 16px; }
.user-chip { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px; color: var(--a-ink); }
.user-chip b { font-size: .84rem; line-height: 1.1; }
.user-chip small { font-size: .72rem; color: var(--a-muted); }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: linear-gradient(135deg, #3f9e6c, var(--a-primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; }
.avatar.sm { width: 34px; height: 34px; flex-basis: 34px; font-size: .7rem; }
.avatar.lg { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.1rem; }
.admin-content { padding: 24px 28px 40px; }
.dropdown-menu { border-radius: 12px; border-color: var(--a-border); font-size: .86rem; }

/* Cards */
.card-a { background: #fff; border: 1px solid var(--a-border); border-radius: var(--a-radius); padding: 20px; }
.card-a-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-a-head h6 { margin: 0; font-weight: 600; font-size: .98rem; }
.stat-card { position: relative; display: flex; align-items: center; gap: 14px; background: var(--a-soft); border: 1px solid #cfe6d7; border-radius: var(--a-radius); padding: 18px; height: 100%; }
.stat-card small { display: block; color: var(--a-text); font-size: .76rem; }
.stat-card b { font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.stat-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #fff; border: 1px solid #cfe6d7; color: var(--a-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.trend { position: absolute; bottom: 10px; right: 10px; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.stat-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card > div { min-width: 0; }
.trend.up { background: #dcf5ea; color: var(--a-green); }
.trend.down { background: #fde3e4; color: var(--a-red); }
.trend.neutral { background: #fff; color: var(--a-muted); }
.select-pill { width: auto; border-radius: 8px; background-color: var(--a-primary); color: #fff; border: 0; font-size: .76rem; padding: .3rem 2rem .3rem .7rem; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.select-pill.static { background: var(--a-primary); padding: .3rem .7rem; border-radius: 8px; font-weight: 500; }
.chart-box { position: relative; height: 250px; }
.chart-box.sm { height: 180px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-box { position: relative; width: 170px; height: 170px; flex: 0 0 170px; }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.donut-legend li { display: flex; gap: 10px; margin-bottom: 10px; }
.donut-legend b { display: block; font-size: .8rem; font-weight: 600; }
.donut-legend small { color: var(--a-muted); font-size: .72rem; }
.sw { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin-top: 5px; display: inline-block; }
.empty-a { color: var(--a-muted); text-align: center; padding: 22px 10px; font-size: .86rem; list-style: none; }

.source-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--a-soft); }
.seg.a { background: var(--a-primary); }
.seg.b { background: #e9c24a; }
.seg-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: .78rem; }
.seg-legend .sw { margin: 0 4px 0 0; width: 9px; height: 9px; }
.sw.a { background: var(--a-primary); } .sw.b { background: #e9c24a; } .sw.c { background: var(--a-amber); }

.pkg-card { display: block; background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 14px; padding: 10px; color: var(--a-text); height: 100%; transition: .2s; }
.pkg-card:hover { border-color: #bfdfca; box-shadow: 0 8px 22px rgba(31,122,77,.08); }
.pkg-img { position: relative; height: 130px; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #e1efe6; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; }
.pkg-tag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--a-ink); border-radius: 6px; font-size: .66rem; font-weight: 600; padding: 3px 8px; }
.pkg-card b { display: block; font-size: .88rem; }
.pkg-card small { font-size: .74rem; color: var(--a-muted); }
.pkg-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--a-border); margin-top: 8px; padding-top: 8px; font-size: .75rem; color: var(--a-primary); font-weight: 500; }

.icon-link-a { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; color: var(--a-primary); background: var(--a-soft-2); border: 1px solid var(--a-border); }
.icon-link-a.off { color: #c5cddb; pointer-events: none; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li a { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-radius: 10px; color: var(--a-text); }
.msg-list li a:hover { background: var(--a-soft-2); }
.msg-list li + li { border-top: 1px solid var(--a-border); }
.msg-list b { font-size: .84rem; }
.msg-list small { font-size: .74rem; color: var(--a-muted); }
.msg-list.inbox { max-height: 70vh; overflow-y: auto; padding: 6px 12px 12px; }
.msg-list.inbox li.active a { background: var(--a-soft); }
.unread-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--a-primary); }
.msg-body { background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 12px; padding: 18px; margin: 20px 0; color: var(--a-ink); line-height: 1.7; white-space: normal; }

/* Mini calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--a-border); background: #fff; color: var(--a-ink); display: inline-flex; align-items: center; justify-content: center; }
.cal-nav:hover { background: var(--a-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .7rem; color: var(--a-muted); padding: 4px 0; font-weight: 500; }
.cal-day { font-size: .78rem; color: var(--a-ink); border-radius: 8px; padding: 6px 0; position: relative; }
.cal-day:hover { background: var(--a-soft-2); }
.cal-day.muted { color: #c3cad8; }
.cal-day.has { background: var(--a-soft); color: var(--a-primary); font-weight: 600; }
.cal-day.today { background: var(--a-primary); color: #fff; font-weight: 600; }
.cal-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--a-soft); border: 1px solid #bfdfca; vertical-align: -1px; margin-right: 4px; }

.trip { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--a-text); border: 1px solid transparent; }
.trip + .trip { margin-top: 4px; }
.trip:hover, .trip:first-of-type { background: var(--a-soft-2); border-color: var(--a-border); }
.trip img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: 0 0 58px; background: #e1efe6; }
.trip-date { display: inline-block; background: var(--a-soft); color: var(--a-primary); font-size: .66rem; font-weight: 600; border-radius: 5px; padding: 1px 6px; margin-bottom: 3px; }
.trip b { font-size: .85rem; }
.trip small { font-size: .74rem; color: var(--a-muted); }

/* Big calendar */
.big-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.big-dow { text-align: center; font-size: .76rem; color: var(--a-muted); font-weight: 600; padding: 6px 0; }
.big-day { min-height: 92px; border: 1px solid var(--a-border); border-radius: 12px; padding: 8px 10px; color: var(--a-ink); display: flex; flex-direction: column; justify-content: space-between; transition: .15s; }
.big-day:hover { border-color: var(--a-primary); }
.big-day.empty { border-style: dashed; background: transparent; pointer-events: none; }
.big-day .num { font-weight: 600; font-size: .85rem; }
.big-day.today .num { background: var(--a-primary); color: #fff; border-radius: 6px; padding: 0 7px; align-self: flex-start; }
.big-info { font-size: .78rem; }
.big-info small { display: block; font-size: .66rem; color: var(--a-muted); }
.big-day.lvl-1 { background: #f1f8f3; } .big-day.lvl-2 { background: #e2f1e7; }
.big-day.lvl-3 { background: #c3e2cd; } .big-day.lvl-4 { background: #9fd1b0; }

/* Tables & lists */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--a-muted); z-index: 2; }
.input-icon .form-control { padding-left: 36px; }
.table-a { --bs-table-bg: transparent; font-size: .85rem; margin-bottom: 0; }
.table-a thead th { background: var(--a-soft-2); color: var(--a-muted); font-weight: 500; font-size: .76rem; border-bottom: 1px solid var(--a-border); padding: 10px 12px; white-space: nowrap; }
.table-a thead th:first-child { border-radius: 10px 0 0 10px; } .table-a thead th:last-child { border-radius: 0 10px 10px 0; }
.table-a td { border-color: var(--a-border); padding: 12px; }
.table-a b { font-weight: 600; }
.table-a .row-active td { background: var(--a-soft); }
.thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: #e1efe6; }
.pill-a { display: inline-block; background: var(--a-soft-2); border: 1px solid var(--a-border); color: var(--a-ink); border-radius: 6px; font-size: .72rem; font-weight: 500; padding: 2px 8px; }
.pill-a.blue { background: var(--a-soft); border-color: #cbe5d4; color: var(--a-primary); }
.pill-a.green { background: #e2f6ee; border-color: #c7ecdc; color: var(--a-green); }
.pill-a.amber { background: #fdf2dd; border-color: #f8e2b5; color: #b47407; }
.status-a { border: 0; border-radius: 6px; font-size: .72rem; font-weight: 600; padding: 3px 10px; cursor: pointer; }
.status-a.static { cursor: default; }
.status-a.ok { background: #dcf5ea; color: var(--a-green); }
.status-a.off { background: #eef1f6; color: var(--a-muted); }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr) repeat(2, 1fr) auto; gap: 10px; margin-bottom: 16px; }
.pagination { --bs-pagination-border-radius: 8px; --bs-pagination-active-bg: var(--a-primary); --bs-pagination-active-border-color: var(--a-primary); --bs-pagination-color: var(--a-ink); }

/* Forms */
.back-link { color: var(--a-text); font-size: .85rem; font-weight: 500; }
.back-link:hover { color: var(--a-primary); }
.form-section { font-weight: 600; font-size: .92rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--a-border); }
.map-preview { position: relative; height: 260px; border-radius: 12px; overflow: hidden; background: var(--a-soft-2); border: 1px solid var(--a-border); }
.map-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.img-preview { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; background: #e1efe6; }
.meta-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: .84rem; }
.meta-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--a-border); }
.perm-box { margin-top: 16px; background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 12px; padding: 12px 16px; font-size: .8rem; display: grid; gap: 4px; }

/* Reports */
.report-filter { grid-template-columns: repeat(3, 1fr) 1fr 1.3fr; align-items: end; }
.quick-ranges { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.quick-ranges .pill-a { padding: 4px 12px; }
.report-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bar-a { display: inline-block; width: calc(100% - 48px); height: 8px; border-radius: 4px; background: var(--a-soft); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.bar-a span { display: block; height: 100%; background: var(--a-primary); border-radius: 4px; }
.print-head, .print-sign { display: none; }

/* Login */
.login-page { background: var(--a-bg); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1100px; margin: 0 auto; padding: 28px; gap: 28px; align-items: stretch; }
.login-art { border-radius: 24px; background-size: cover; background-position: center; position: relative; overflow: hidden; min-height: 520px; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,50,32,0) 30%, rgba(12,50,32,.75)); }
.login-art-text { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1; color: #fff; }
.login-art-text h2 { color: #fff; font-weight: 600; font-size: 1.7rem; margin-top: 12px; }
.badge-soft { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .72rem; padding: 4px 12px; }
.login-form { background: #fff; border-radius: 24px; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--a-border); }
.login-form .side-brand { padding: 0; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--a-muted); z-index: 2; }

/* Responsive */
@media (max-width: 1399.98px) { .filter-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1050; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(18,48,31,.35); z-index: 1040; }
  .topbar { padding: 14px 16px; }
  .admin-content { padding: 18px 16px 32px; }
  .filter-grid, .report-filter { grid-template-columns: 1fr 1fr; }
  .login-wrap { grid-template-columns: 1fr; padding: 16px; }
  .login-art { min-height: 220px; }
  .login-form { padding: 32px 24px; }
  .big-day { min-height: 70px; padding: 6px; }
}
@media (max-width: 575.98px) {
  .donut-wrap { flex-direction: column; }
  .filter-grid, .report-filter { grid-template-columns: 1fr; }
  .big-cal { gap: 4px; }
  .big-info small { display: none; }
}

/* Print (reports) */
@media print {
  @page { size: A4; margin: 14mm; }
  body.admin { background: #fff; font-size: 11px; }
  .sidebar, .topbar, .no-print, .alert, .no-print-chart, .sidebar-backdrop { display: none !important; }
  .admin-content { padding: 0; }
  .card-a, .stat-card { border: 1px solid #ccd; break-inside: avoid; padding: 10px; }
  .stat-card { background: #fff; }
  .print-head { display: block; text-align: center; margin-bottom: 10px; border-bottom: 2px solid #000; padding-bottom: 6px; }
  .print-sign { display: flex; justify-content: space-between; margin-top: 50px; }
  .print-sign span { display: block; width: 220px; border-top: 1px solid #000; margin-bottom: 4px; }
  .page-break { break-before: page; }
  .table-a thead th { background: #eee !important; }
  a { color: inherit; }
}

/* Arakan seal palette accents */
.side-link.active { box-shadow: 0 6px 16px rgba(31,122,77,.25); }
.side-badge { background: #e9b824; color: #3a2c00; }
.side-link.active .side-badge { background: #fff; color: var(--a-primary); }
.btn-icon .dot { background: #e9b824; }
.cal-day.today { background: var(--a-primary); }
.sidebar { border-top: 4px solid #e9b824; }

/* Full-width admin */
.admin-content { padding-left: clamp(16px, 2.2vw, 40px); padding-right: clamp(16px, 2.2vw, 40px); }
.topbar { padding-left: clamp(16px, 2.2vw, 40px); padding-right: clamp(16px, 2.2vw, 40px); }
@media (min-width: 1700px) { .chart-box { height: 300px; } .donut-box { width: 210px; height: 210px; flex-basis: 210px; } }
.login-wrap { max-width: none; grid-template-columns: 1.4fr 1fr; padding: clamp(16px, 2vw, 32px); }
.login-form { padding: 48px clamp(28px, 5vw, 110px); }
@media (max-width: 991.98px) { .login-wrap { grid-template-columns: 1fr; } }

/* Message details */
.msg-meta { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.msg-meta li { background: var(--a-soft-2); border: 1px solid var(--a-border); border-radius: 10px; padding: 8px 12px; }
.msg-meta span { display: block; font-size: .7rem; color: var(--a-muted); }
.msg-meta b { font-size: .84rem; font-weight: 600; word-break: break-word; }

.cmp-bars { display: grid; gap: 6px; }
.cmp-bars .seg-bar { height: 10px; }

.msg-filters { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto auto auto; gap: 10px; align-items: center; }
@media (max-width: 991.98px) { .msg-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .msg-filters { grid-template-columns: 1fr; } }

.origin-row { margin-bottom: 12px; }
.origin-row .seg-bar { height: 8px; margin-top: 4px; }

/* Accommodation form: nearby destinations checklist */
.near-list { max-height: 220px; overflow-y: auto; border: 1px solid #e3ebe6; border-radius: 10px; padding: 8px 12px; }
.near-list .form-check { display: flex; gap: 8px; align-items: center; padding: 3px 0; margin: 0; font-size: .88rem; }
.near-list .form-check-input { margin: 0; float: none; }

/* Ratings & Reviews */
.stat-mini { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.stat-mini .ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #fdf6dc; color: #c99a10; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-mini small { display: block; color: #8a978f; font-size: .78rem; }
.stat-mini b { font-size: 1.35rem; color: #12301f; }
.stars-a { color: #e9b824; font-size: .8rem; letter-spacing: 1px; }
.review-admin { list-style: none; margin: 0; padding: 0; }
.review-admin li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #edf2ee; }
.review-admin li:last-child { border-bottom: 0; }
.review-admin li.is-hidden { opacity: .55; }
.review-admin p { margin: 4px 0; }
.rate-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #e3ebe6; color: #12301f; font-size: .9rem; }
.rate-row:hover { color: var(--a-primary); }
.msg-filters.review-filters { grid-template-columns: 1fr 1.25fr .95fr .95fr auto auto; }
@media (max-width: 1199.98px) { .msg-filters.review-filters { grid-template-columns: 1fr 1fr; } }

/* Municipality of Arakan official seal beside the tourism office logo */
.side-logos { display: flex; align-items: center; gap: 8px; }
.side-logo .side-logos img { width: auto; max-width: 150px; height: 40px; }
.side-logo .side-logos img.seal { width: 44px; height: 44px; max-width: none; flex: 0 0 44px; }
.login-logo .side-logos img { height: 54px; max-width: 210px; }
.login-logo .side-logos img.seal { width: 60px; height: 60px; flex-basis: 60px; }

/* Login page hero slider */
.login-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.login-slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center; }
.login-cap { position: absolute; top: 20px; left: 20px; z-index: 2; background: rgba(0,0,0,.4); color: #fff; font-size: .78rem; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.login-dots { position: absolute; right: 24px; top: 24px; z-index: 2; display: flex; gap: 6px; }
.login-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); transition: width .3s; }
.login-dots button.on { width: 24px; background: #fff; }

/* Visitor's Logbook (form and list) */
.logbook-head { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--a-border); padding-bottom: 14px; margin-bottom: 12px; }
.logbook-head img { width: 58px; height: 58px; }
.logbook-head small { display: block; color: var(--a-muted); font-size: .72rem; }
.logbook-head b { display: block; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
.logbook-head h5 { margin: 2px 0 0; font-weight: 700; }
.table-logbook thead th { background: #fbf3c8; }
.logbook-print-head { text-align: center; }
.logbook-print-head img { width: 64px; height: 64px; float: left; }
.logbook-print-head h4 { margin: 8px 0 0; font-weight: 800; letter-spacing: .04em; }
@media print { .table-logbook th, .table-logbook td { border: 1px solid #555 !important; padding: 4px 6px !important; font-size: 11px; } }

.top-add { border-radius: 999px; padding: 8px 16px; white-space: nowrap; font-weight: 500; }

/* Messages: select all and delete selected */
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--a-border); }
.msg-list.inbox li { display: flex; align-items: center; gap: 4px; }
.msg-list.inbox li > a { flex: 1; min-width: 0; }
.msg-list.inbox .msg-check { flex: 0 0 auto; margin: 0 2px 0 4px; cursor: pointer; }
.msg-list.inbox li.checked > a { background: #fff7e0; }

/* Add Visitor form layout */
.logbook-form { padding: 28px 32px; }
.vf-section { border: 1px solid var(--a-border); border-radius: 16px; padding: 18px 20px 20px; margin-top: 18px; background: #fcfdfc; }
.vf-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
.vf-title span { width: 24px; height: 24px; border-radius: 50%; background: var(--a-primary, #1f7a4d); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.vf-num { text-align: center; font-size: 1.15rem; font-weight: 600; height: 48px; }
.vf-total { background: #eef6f1; border-color: #b9dbc7; color: #1f7a4d; }
.vf-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--a-border); }
@media (max-width: 575.98px) { .logbook-form { padding: 20px 16px; } .vf-section { padding: 14px; } .vf-actions .btn { flex: 1 1 100%; } }

/* Visitors: select all and delete */
.vis-bulk { border: 1px solid var(--a-border); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; background: #fcfdfc; }
.chk-col { width: 36px; }
.table-logbook tr.row-checked td { background: #fff7e0; }

/* Add Visitor: full width and larger */
.vf-wrap { width: 100%; }
.vf-full { width: 100%; max-width: none; padding: 32px 40px 28px; }
.vf-full .logbook-head img { width: 76px; height: 76px; }
.vf-full .logbook-head small { font-size: .8rem; }
.vf-full .logbook-head b { font-size: .9rem; }
.vf-full .logbook-head h5 { font-size: 1.6rem; }
.vf-full .vf-note { font-size: .9rem; }
.vf-full .vf-section { padding: 24px 28px 26px; margin-top: 22px; }
.vf-full .vf-title { font-size: 1.1rem; margin-bottom: 18px; }
.vf-full .vf-title span { width: 30px; height: 30px; font-size: .85rem; }
.vf-full .form-label { font-size: .95rem; font-weight: 500; margin-bottom: 8px; }
.vf-full .form-control, .vf-full .form-select { height: 54px; font-size: 1rem; padding-left: 16px; border-radius: 12px; }
.vf-full .vf-num { height: 64px; font-size: 1.5rem; }
.vf-full #paxHint { font-size: .9rem; }
.vf-full .vf-actions { margin-top: 26px; padding-top: 22px; }
.vf-full .vf-actions .btn { padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
@media (max-width: 767.98px) { .vf-full { padding: 22px 18px; } .vf-full .vf-section { padding: 18px 16px; } .vf-full .logbook-head h5 { font-size: 1.3rem; } .vf-full .logbook-head img { width: 56px; height: 56px; } }

.acc-thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: 0 0 56px; }
.acc-thumb.empty { display: inline-flex; align-items: center; justify-content: center; background: var(--a-soft-2, #f1f5f2); color: #9aa8a0; }

/* ---------- Resort owner accounts ---------- */
.owner-chip { align-items: center; gap: 8px; background: #e2f6ee; color: var(--a-green); border: 1px solid #c7ecdc; border-radius: 10px; padding: 7px 12px; font-size: .85rem; font-weight: 600; }
.side-badge.amber { background: #fdf2dd; color: #b47407; }
.listing-status { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; }
.listing-status i { font-size: 1.2rem; }
.listing-status.pending { background: #fdf2dd; border: 1px solid #f8e2b5; color: #7a5200; }
.listing-status.rejected { background: #fdecec; border: 1px solid #f5c6c6; color: #8a1f1f; }
.listing-status.approved { background: #e2f6ee; border: 1px solid #c7ecdc; color: #1d6b48; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.check-grid .form-check { margin: 0; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gallery-admin figure { margin: 0; position: relative; border: 1px solid var(--a-border); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-admin img { width: 100%; height: 105px; object-fit: cover; display: block; }
.gallery-admin figcaption { padding: 6px 8px; font-size: .75rem; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.gallery-admin .tag { position: absolute; top: 6px; left: 6px; font-size: .68rem; padding: 2px 7px; border-radius: 6px; background: #fdf2dd; color: #b47407; font-weight: 600; }
.diff-table td, .diff-table th { vertical-align: top; font-size: .85rem; }
.diff-table .old { color: #8a1f1f; background: #fff6f6; white-space: pre-line; }
.diff-table .new { color: #1d6b48; background: #f2fbf6; white-space: pre-line; }
.approval-card + .approval-card { margin-top: 18px; }

/* Amenities with photo and name */
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.amen-item { border: 1px solid var(--a-border); border-radius: 12px; padding: 8px; background: #fff; transition: opacity .2s; }
.amen-item.is-pending { border-color: #f8e2b5; background: #fffaf0; }
.amen-item.is-removed { opacity: .45; }
.amen-item.is-removed .amen-name { text-decoration: line-through; }
.amen-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--a-soft-2); cursor: pointer; margin-bottom: 8px; }
.amen-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amen-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--a-muted); border: 2px dashed var(--a-border); border-radius: 8px; }
.amen-none i { font-size: 1.4rem; }
.amen-change { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: .2s; }
.amen-photo:hover .amen-change { opacity: 1; }
.amen-name { font-weight: 600; }
.amen-tag { font-size: .65rem; padding: 2px 7px; border-radius: 6px; background: #fdf2dd; color: #b47407; font-weight: 600; }
.amen-add { border: 2px dashed var(--a-border); border-radius: 12px; background: var(--a-soft-2); color: var(--a-primary); min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 600; font-size: .85rem; }
.amen-add i { font-size: 1.6rem; }
.amen-add:hover { background: var(--a-soft); border-color: var(--a-primary); }
.side-dev { margin-top: 14px; padding: 0 12px 4px; font-size: .68rem; line-height: 1.45; color: var(--a-muted); text-align: center; }
.dev-credit { font-size: .74rem; color: var(--a-muted); }
