@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&display=swap');
/* Bảng màu Cityoka: Sky Blue #079DE0 · Aqua Blue #20B9E8 · Orange #FF7900 · Sunshine #FFC52E */
:root {
  --pri: #079DE0; --pri-2: #20B9E8; --pri-soft: #e1f4fd; --pri-dark: #0677b3; --acc: #FF7900; --sun: #FFC52E; --navy: #0b2f4a;
  --ink: #0f172a; --mut: #64748b; --line: #e2e8f0; --bg: #f5f9fc; --card: #fff;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --r: 14px;
  --sh: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; margin-top: 18px; }
a { color: var(--pri); }
.muted { color: var(--mut); } .small { font-size: 13px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ===== Thanh trên ===== */
.topbar { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--pri), var(--pri-2)); font-size: 18px; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { padding: 8px 12px; border-radius: 9px; color: var(--mut); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { background: #f1f5f9; color: var(--ink); }
.topbar nav a.on { color: var(--pri); background: var(--pri-soft); }
.hotline { margin-left: auto; color: var(--mut); font-size: 14px; }

/* ===== Nút, ô nhập ===== */
.btn { appearance: none; border: 0; background: var(--pri); color: #fff; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.btn:hover { background: #0687c3; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f8fafc; }
.btn.acc { background: var(--acc); } .btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.btn.full { width: 100%; padding: 13px; font-size: 16px; margin-top: 10px; }
.link { background: none; border: 0; color: var(--pri); cursor: pointer; font: inherit; font-size: 13px; padding: 0 4px; text-decoration: underline; }
label { display: block; font-size: 13px; color: var(--mut); font-weight: 500; margin-bottom: 8px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri-2); outline-offset: -1px; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--pri-2); }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.chip.light { box-shadow: var(--sh); border-color: transparent; font-weight: 500; }

/* ===== Trang tìm kiếm ===== */
.search-layout { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 60px); }
.panel { overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.filters { padding: 20px 20px 8px; border-bottom: 1px solid var(--line); }
.results-head { padding: 12px 20px 4px; font-size: 14px; }
.results { padding: 8px 14px 24px; display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--sh); border-color: #9edcf6; }
.card h3 { margin: 0 0 2px; font-size: 15px; }
.thumb { border-radius: 10px; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.thumb span { font-size: 36px; } .thumb em { font-style: normal; font-size: 12px; opacity: .9; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.tags span { font-size: 12px; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.price { font-size: 15px; color: var(--ink); } .price small { color: var(--mut); font-weight: 400; }
.badge { font-size: 12px; border-radius: 6px; padding: 2px 7px; font-weight: 500; }
.badge.ok { background: #dcfce7; color: var(--ok); } .badge.warn { background: #fef3c7; color: var(--warn); }
.empty { text-align: center; padding: 40px 10px; }

/* Màu theo loại hình */
.t-villa { background: linear-gradient(135deg, #079DE0, #20B9E8); }
.t-resort { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.t-hotel { background: linear-gradient(135deg, #4338ca, #818cf8); }
.t-homestay { background: linear-gradient(135deg, #c2410c, #fb923c); }
.t-nhanghi { background: linear-gradient(135deg, #a16207, #facc15); }

/* ===== Bản đồ ===== */
.map-wrap { position: relative; }
#map { position: absolute; inset: 0; background: #e5ebe9; }
#map.drawing { cursor: crosshair; touch-action: none; }
#map.drawing .leaflet-marker-icon { pointer-events: none; }
.map-dests { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 500; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.map-dests .chip { pointer-events: auto; }
.map-tools { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 500; display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 8px 30px rgba(15, 23, 42, .18); }
.tool { border: 0; background: #f1f5f9; font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tool:hover { background: #e2e8f0; }
.tool.on { background: var(--pri); color: #fff; animation: pulse 1.6s infinite; }
.tool.ghost { background: #fff; color: var(--bad); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(32, 185, 232, .5); } 50% { box-shadow: 0 0 0 6px rgba(32, 185, 232, 0); } }
.map-hint { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap; }

.mk { background: none; border: 0; }
.dot { display: block; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: pointer; }
.dot.faded { opacity: .45; transform: scale(.75); }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px)); }
.tag-in { color: #fff; font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); border: 2px solid #fff; cursor: pointer; position: relative; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; transition: transform .15s; }
.tag-in::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.tag-in:hover, .tag-in.hl { transform: scale(1.18); z-index: 10; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.3); } to { opacity: 1; transform: none; } }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .5); display: flex; align-items: flex-start; justify-content: center; padding: 30px 14px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; position: relative; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal-box.wide { max-width: 1000px; padding: 0; overflow: hidden; }
.modal-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 22px; cursor: pointer; }
.detail-hero { display: flex; align-items: center; gap: 16px; padding: 28px 24px; color: #fff; }
.detail-hero > span { font-size: 54px; }
.detail-hero h2 { font-size: 24px; margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding: 20px 24px 24px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 8px 0 16px; color: #334155; }
.bk { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; align-self: start; }
.bk-price { font-size: 15px; margin-bottom: 10px; } .bk-price b { font-size: 22px; }
.svc { display: grid; grid-template-columns: 20px 1fr auto 52px; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; color: var(--ink); font-weight: 400; font-size: 14px; cursor: pointer; }
.svc input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--pri); }
.svc-name small { display: block; color: var(--mut); font-size: 12px; }
.svc-price { font-weight: 600; font-size: 13px; text-align: right; } .svc-price small { color: var(--mut); font-weight: 400; }
.svc .qty { margin: 0; padding: 5px 6px; text-align: center; }
.pill { font-size: 11px; background: var(--acc); color: #fff; border-radius: 999px; padding: 1px 8px; vertical-align: middle; font-weight: 600; }
.sum { margin-top: 14px; border-top: 1px dashed #cbd5e1; padding-top: 10px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .tot { font-size: 16px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.sum .dep { color: var(--pri); font-weight: 600; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 6px; }
.alert { background: #fef3c7; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }

/* ===== Lịch ===== */
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.cal-head span { width: 30px; }
.cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid i { font-style: normal; text-align: center; font-size: 11px; color: var(--mut); padding: 2px 0; }
.day { aspect-ratio: 1; border: 0; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; background: #f0fdf4; color: #14532d; padding: 0; }
.day.free:hover { outline: 2px solid var(--pri-2); }
.day.past { background: transparent; color: #cbd5e1; cursor: default; }
.day.booked { background: #fee2e2; color: #991b1b; text-decoration: line-through; cursor: default; }
.day.blocked { background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 4px, #f1f5f9 4px, #f1f5f9 8px); color: #64748b; cursor: default; }
.day.sel { background: var(--pri); color: #fff; font-weight: 700; }
.day.inrange { background: var(--pri-soft); color: var(--pri); }
.day.canend { box-shadow: inset 0 0 0 1px #9edcf6; }
/* Đêm đã kín nằm trong khoảng đang chọn: đỏ đậm, viền để không lẫn với "bạn chọn" */
.day.conflict { background: #fecaca; color: #991b1b; box-shadow: inset 0 0 0 2px #dc2626; text-decoration: line-through; font-weight: 700; }
.day.sel.conflict { background: #dc2626; color: #fff; box-shadow: none; }
.date-err:empty { display: none; }
.date-err { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 12px; margin: 2px 0 8px; }
.suggest { display: block; width: 100%; text-align: left; border: 1px dashed var(--pri-2); background: #eef8fe; color: var(--ink); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font: inherit; font-size: 14px; cursor: pointer; }
.suggest:hover { background: #e1f4fd; }
.bk-cal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 4px 0 6px; gap: 12px; }
.bk-cal .day { font-size: 12px; }
.owner-cal .day.blocked, .owner-cal .day.free { cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: var(--mut); margin-top: 10px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 4px; }
.lg.free { background: #f0fdf4; border: 1px solid #bbf7d0; } .lg.booked { background: #fee2e2; } .lg.sel { background: var(--pri); }
.lg.blocked { background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 3px, #f8fafc 3px, #f8fafc 6px); border: 1px solid #e2e8f0; }

/* ===== Thanh toán QR ===== */
.pay { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; margin: 14px 0; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.pay-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.pay-info dt { color: var(--mut); } .pay-info dd { margin: 0; }
.pay-info .big { font-size: 20px; font-weight: 700; color: var(--pri); }
.done { text-align: center; padding: 20px 0 6px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 12px; }

/* ===== Trang quản lý (chủ nhà / quản trị) ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.box-head h2 { font-size: 17px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi span { color: var(--mut); font-size: 13px; } .kpi b { display: block; font-size: 22px; margin-top: 2px; } .kpi small { color: var(--mut); font-size: 12px; }
.kpi.hl { background: linear-gradient(135deg, var(--pri), var(--pri-2)); color: #fff; border: 0; } .kpi.hl span, .kpi.hl small { color: #e1f4fd; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--mut); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:hover td { background: #fafafa; }
.svc-list { font-size: 12px; color: #334155; } .svc-list div { white-space: nowrap; }
.st { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.st-wait { background: #fef3c7; color: #92400e; } .st-paid { background: #dbeafe; color: #1e40af; }
.st-ok { background: #dcfce7; color: #166534; } .st-cancel { background: #f1f5f9; color: #64748b; }
.acts { display: flex; gap: 4px; flex-wrap: wrap; }
.avail-grid td, .avail-grid th { padding: 4px; text-align: center; }
.avail-grid td:first-child, .avail-grid th:first-child { text-align: left; padding-left: 8px; white-space: nowrap; }
.cell { display: block; width: 100%; min-width: 22px; height: 22px; border-radius: 5px; }
.cell.free { background: #bbf7d0; } .cell.booked { background: #fca5a5; } .cell.blocked { background: #e2e8f0; }
.avail-grid th.we { color: var(--acc); }
.side-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-layout > * { min-width: 0; }
.prop-list { display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; }
.prop-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; }
.prop-item.on { border-color: var(--pri); background: var(--pri-soft); }
.prop-item small { display: block; color: var(--mut); }
.svc-edit { display: grid; grid-template-columns: 1fr 140px 110px auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.svc-edit input { margin: 0; }
.mini-map { height: 260px; border-radius: 12px; border: 1px solid var(--line); margin: 4px 0 10px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 10px; }
.check-grid label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 400; margin: 0; }
.check-grid input { width: auto; margin: 0; }
.switch { width: auto; display: inline-block; margin: 0; accent-color: var(--pri); transform: scale(1.2); }

.who { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
.who b { margin-right: 6px; }
.login-box { max-width: 400px; margin: 40px auto; padding: 28px; }
.hold { background: #eef8fe; color: #0b5f8a; border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.btn:disabled { opacity: .6; cursor: wait; }
/* Ô chọn ngày dd/mm/yyyy */
.dp-in { cursor: pointer; padding-right: 34px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 10px center; }
.dp-in.bad { border-color: var(--bad); background-color: #fef2f2; }
.dp-pop { position: absolute; z-index: 4000; width: 292px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .2); padding: 10px; display: block; }
.dp-pop .cal-month { width: 100%; }
.dp-pop .day.today { box-shadow: inset 0 0 0 1.5px var(--pri-2); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.dp-foot button { border: 0; background: none; color: var(--pri); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 6px; }
#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 3000; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Thẻ kết quả có ảnh + popup bản đồ ===== */
a.card { color: inherit; text-decoration: none; }
.thumb.photo { background: #e2e8f0 center/cover no-repeat; justify-content: flex-end; align-items: flex-start; padding: 6px; }
.thumb.photo em { background: rgba(15, 23, 42, .65); color: #fff; border-radius: 6px; padding: 1px 7px; }
.pop .leaflet-popup-content { margin: 0; width: 240px !important; }
.pop .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; }
.pop-card { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; font-family: inherit; padding-bottom: 10px; }
.pop-card img, .pop-ph { width: 100%; height: 130px; object-fit: cover; display: grid; place-items: center; font-size: 40px; color: #fff; margin-bottom: 6px; }
.pop-card b, .pop-card span { padding: 0 12px; }
.pop-card b { font-size: 15px; }
.pop-card span { font-size: 13px; color: var(--mut); }
.pop-card .pop-price { color: var(--ink); font-weight: 700; font-size: 15px; }
.pop-card .pop-go { color: var(--pri); font-weight: 600; }
.map-dests .chip.on { background: var(--pri); color: #fff; }
.maplibregl-canvas { outline: none; }

/* ===== Trang chi tiết ===== */
.dt { max-width: 1200px; margin: 0 auto; padding: 14px 20px 60px; }
.dt-loading { padding: 80px 0; text-align: center; color: var(--mut); }
.crumbs { font-size: 13px; color: var(--mut); margin-bottom: 10px; }
.crumbs a { color: var(--mut); }
.gal { position: relative; display: grid; gap: 8px; height: 460px; border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.gal.g5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gal.g5 .gal-i:first-child { grid-row: 1 / 3; }
.gal.g4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.gal.g4 .gal-i:first-child { grid-row: 1 / 4; }
.gal.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gal.g3 .gal-i:first-child { grid-row: 1 / 3; }
.gal.g2 { grid-template-columns: 1fr 1fr; }
.gal.g1 { grid-template-columns: 1fr; }
.gal-i { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: #e2e8f0; overflow: hidden; }
.gal-i img, .gal-i video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gal-i:hover img, .gal-i:hover video { transform: scale(1.04); }
.gal-i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(0, 0, 0, .25)); pointer-events: none; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 22px; padding-left: 4px; pointer-events: none; border: 2px solid rgba(255, 255, 255, .8); }
.gal-more { position: absolute; right: 14px; bottom: 14px; z-index: 2; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; box-shadow: var(--sh); }
.gal-note { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.gal-credit { position: absolute; left: 14px; top: 12px; z-index: 2; background: rgba(15, 23, 42, .5); color: #e2e8f0; font-size: 10px; padding: 2px 8px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-head h1 { font-size: 30px; margin: 2px 0 6px; }
.dt-type { color: var(--pri); font-weight: 600; font-size: 14px; }
.dt-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: #334155; font-size: 14px; }
.rate-badge { background: #fef3c7; color: #92400e; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.rate-badge small { font-weight: 500; }
.rate-badge.g { background: #eef2ff; color: #3730a3; display: inline-flex; gap: 6px; align-items: center; }
.rate-badge[hidden] { display: none; }
.dt-tabs { position: sticky; top: 60px; z-index: 900; display: flex; gap: 4px; background: rgba(246, 248, 247, .96); backdrop-filter: saturate(1.4); border-bottom: 1px solid var(--line); margin: 16px 0 6px; overflow-x: auto; }
.dt-tabs a { padding: 12px 14px; color: var(--mut); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.dt-tabs a.on, .dt-tabs a:hover { color: var(--pri); border-bottom-color: var(--pri); }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.dt-sec { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.dt-sec h2 { font-size: 21px; }
.dt-sec h3 { margin-top: 18px; }
.dt-desc { font-size: 16px; color: #334155; }
.amen.big { font-size: 15px; gap: 8px 22px; }
.dt-side { align-self: stretch; }
.bk.sticky { position: sticky; top: 120px; max-height: calc(100vh - 136px); overflow-y: auto; box-shadow: var(--sh); background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--r); padding: 18px; text-align: center; }
.rv-sum { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 14px; }
.rv-big { font-size: 44px; font-weight: 800; color: var(--pri); line-height: 1; }
.rv-big small { font-size: 18px; color: var(--mut); font-weight: 500; }
.rv-row { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rv-row span { width: 150px; color: var(--mut); }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars.sm { font-size: 13px; margin-left: auto; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rv { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: 14px; }
.rv p { margin: 8px 0; color: #334155; white-space: pre-line; }
.rv-top { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
.rv-photos { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.rv-photos button { border: 0; padding: 0; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.rv-photos img { width: 100%; height: 100%; object-fit: cover; }
.g-box { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.g-box > div { flex: 1; }
.g-box p { margin: 2px 0 0; }
.g-logo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); flex: none; }
.g-logo.sm { width: 18px; height: 18px; font-size: 10px; }
.rate-in { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; font-weight: 600; }
.star-in button { border: 0; background: none; font-size: 30px; color: #cbd5e1; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-in button.on { color: #f59e0b; }
.rv-prev { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.rv-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.dt-map { height: 360px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.route-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.route-info { background: #eef8fe; border: 1px solid #b6e5f8; border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-bottom: 8px; }
.route-nums { display: flex; gap: 18px; font-size: 18px; font-weight: 700; color: var(--pri); margin: 6px 0; flex-wrap: wrap; }
.route-links { font-size: 14px; color: var(--mut); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.route-links a { font-weight: 600; text-decoration: none; }
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.tr-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tr-card:hover { box-shadow: var(--sh); }
.tr-card.on { border-color: var(--pri); background: #eef8fe; }
.tr-card > div:nth-child(2) { flex: 1; }
.tr-card p { margin: 2px 0 6px; font-size: 13px; color: var(--mut); }
.tr-ico { font-size: 30px; }
.tr-price { font-weight: 700; } .tr-price small { color: var(--mut); font-weight: 400; }
.tr-card.on .tr-add { background: var(--pri); color: #fff; border-color: var(--pri); }
.transit { padding-left: 20px; margin: 6px 0; } .transit li { margin: 4px 0; }

/* Xem ảnh toàn màn hình */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 6, 23, .94); display: grid; grid-template-rows: 1fr auto auto; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { display: flex; align-items: center; justify-content: center; height: calc(100vh - 150px); padding: 50px 70px 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-stage iframe { width: min(100%, 1100px); aspect-ratio: 16/9; max-height: 100%; border: 0; border-radius: 6px; }
.lb-x { position: absolute; top: 12px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }
.lb-nav { position: absolute; top: 45%; z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-cap { color: #e2e8f0; text-align: center; font-size: 14px; padding: 8px 20px 4px; }
.lb-cap span { color: #94a3b8; margin-right: 6px; } .lb-cap small { color: #94a3b8; display: block; font-size: 11px; }
.lb-strip { display: flex; gap: 6px; justify-content: center; padding: 6px 10px 14px; overflow-x: auto; }
.lb-strip button { position: relative; flex: none; width: 74px; height: 50px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; background: #1e293b; cursor: pointer; opacity: .6; }
.lb-strip button.on { border-color: #fff; opacity: 1; }
.lb-strip img, .lb-strip video { width: 100%; height: 100%; object-fit: cover; }
.lb-strip .play { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }

/* ===== Trang chủ ===== */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg, .hb { position: absolute; inset: 0; }
.hb { background: center/cover no-repeat; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hb.on { opacity: 1; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 23, .25), rgba(2, 6, 23, .55) 70%, rgba(2, 6, 23, .7)); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero h1 span { color: #FFC52E; }
.hero p { font-size: 18px; max-width: 640px; opacity: .95; margin: 0 0 26px; }
.hero-search { display: grid; grid-template-columns: 1.6fr 1fr 1fr .6fr auto; gap: 10px; background: #fff; padding: 12px; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); align-items: end; }
.hero-search > * { min-width: 0; }
.hero-search input, .hero-search select { min-width: 0; width: 100%; }
.hero-search label { color: var(--mut); margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hero-search select, .hero-search input { font-size: 16px; font-weight: 600; border-color: #e2e8f0; text-transform: none; }
.hero-search .btn { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 12px; white-space: nowrap; }
.btn.acc:hover { background: #e56c00; }
.hero-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-themes a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 6px 13px; border-radius: 999px; font-size: 14px; backdrop-filter: blur(4px); }
.hero-themes a:hover { background: rgba(255, 255, 255, .3); }
.hero-credit { position: absolute; right: 10px; bottom: 6px; z-index: 2; font-size: 10px; color: rgba(255, 255, 255, .7); }
.home { max-width: 1200px; margin: 0 auto; padding: 10px 20px 40px; }
.h-sec { padding: 34px 0 6px; }
.h-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.h-head h2 { font-size: 26px; font-weight: 800; margin: 0; }
.h-head a { font-weight: 600; text-decoration: none; }
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.dest-card { position: relative; border-radius: 18px; overflow: hidden; background: #cbd5e1 center/cover no-repeat; color: #fff; text-decoration: none; display: flex; align-items: flex-end; transition: transform .25s, box-shadow .25s; }
.dest-card.big { grid-column: span 2; grid-row: span 2; }
.dest-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(2, 6, 23, .75)); }
.dest-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .25); }
.dc-in { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.dc-in b { font-size: 22px; } .dest-card.big .dc-in b { font-size: 32px; }
.dc-in span { font-size: 13px; opacity: .92; }
.dc-in em { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 4px; background: rgba(255, 255, 255, .2); align-self: flex-start; padding: 2px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.theme-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.theme-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.theme-tile:hover { border-color: var(--pri-2); transform: translateY(-2px); }
.theme-tile span { font-size: 34px; } .theme-tile small { color: var(--mut); }
.stay-row { display: grid; grid-auto-flow: column; grid-auto-columns: 270px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.stay { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); scroll-snap-align: start; transition: box-shadow .2s; }
.stay:hover { box-shadow: var(--sh); }
.stay-img { height: 170px; background: #cbd5e1 center/cover no-repeat; position: relative; display: grid; place-items: center; color: #fff; font-size: 44px; }
.stay-img em { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 12px; background: rgba(15, 23, 42, .65); padding: 2px 8px; border-radius: 6px; }
.stay-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.stay-price { font-weight: 700; margin-top: 4px; } .stay-price small { color: var(--mut); font-weight: 400; }
.svc-band { background: linear-gradient(135deg, #eef8fe, #fff7ed); margin: 34px -20px 0; padding: 34px 20px 30px; border-radius: 24px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; }
.svc-card span { font-size: 32px; } .svc-card p { margin: 0; color: var(--mut); font-size: 13px; flex: 1; } .svc-card em { font-style: normal; color: var(--acc); font-weight: 700; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { color: var(--mut); margin: 6px 0 0; font-size: 14px; }
.owner-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 30px; margin-top: 34px; flex-wrap: wrap; }
.owner-cta h2 { margin: 0 0 4px; } .owner-cta p { margin: 0; color: #cbd5e1; }
.foot { background: #0b1220; color: #cbd5e1; margin-top: 40px; padding: 30px 20px 20px; }
.foot-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { color: #fff; font-size: 20px; }
.foot-links { display: flex; gap: 18px; } .foot-links a { color: #e2e8f0; text-decoration: none; }
.dc-credit { position: absolute; top: 4px; right: 8px; z-index: 2; font-size: 9px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); pointer-events: none; }

/* ===== Quản lý ảnh (trang chủ nhà) ===== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mg .mg-img { position: relative; height: 110px; background: #e2e8f0; }
.mg .mg-img img, .mg .mg-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg .mg-img .play { width: 34px; height: 34px; font-size: 13px; }
.mg input { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 12px; padding: 6px 8px; }
.mg .mg-act { display: flex; justify-content: space-between; padding: 4px; gap: 2px; }
.mg .mg-act button { border: 0; background: #f1f5f9; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 13px; }
.mg .mg-act button.del { color: var(--bad); }
.mg .cover-badge { position: absolute; left: 6px; top: 6px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; z-index: 1; }
.upload-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.upload-bar input[type=file] { display: none; }
.progress { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--pri); width: 0; transition: width .2s; }

/* ===== Điện thoại / máy tính bảng ===== */
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; height: auto; }
  .map-wrap { height: 62vh; order: -1; position: sticky; top: 60px; z-index: 1; }
  .panel { border-right: 0; overflow: visible; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-layout { grid-template-columns: 1fr; }
  .hotline { display: none; }
  .dt-grid { grid-template-columns: 1fr; }
  .bk.sticky { position: static; max-height: none; }
  .gal { height: 340px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .hs-dest { grid-column: 1 / -1; }
  .hero-search .btn { grid-column: 1 / -1; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-row { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gal { height: 260px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; border-radius: 12px; }
  .gal .gal-i:not(:first-child) { display: none; }
  .gal .gal-i:first-child { grid-row: auto !important; }
  .gal-more { display: block; }
  .dt-head h1 { font-size: 24px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .dest-grid { grid-auto-rows: 150px; }
  .dest-card.big { grid-column: span 2; grid-row: span 1; }
  .theme-row { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .rv-sum { flex-direction: column; align-items: flex-start; }
  .lb-stage { padding: 50px 6px 0; }
}
@media (max-width: 600px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand span:last-child { display: none; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 6px 7px; font-size: 13px; white-space: nowrap; }
  .map-wrap { position: relative; top: 0; }
  .map-tools { bottom: 14px; }
  .tool { padding: 9px 10px; font-size: 14px; }
  .pay { grid-template-columns: 1fr; } .qr { max-width: 240px; margin: 0 auto; }
  .card { grid-template-columns: 84px 1fr; }
  .svc-edit { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; } .modal-box { border-radius: 0; min-height: 100%; }
}

/* ===== Dải ảnh nhỏ, điểm ấn tượng & ưu đãi, Google Maps nhúng ===== */
.hotline a { color: inherit; text-decoration: none; }
.hotline a.zalo, #footHotline a.zalo { margin-left: 10px; color: #0068ff; font-weight: 700; }
#footHotline a { color: inherit; }
.gal-strip { display: flex; gap: 8px; overflow-x: auto; margin: -8px 0 18px; padding-bottom: 4px; }
.gal-strip button { position: relative; flex: none; width: 112px; height: 76px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e2e8f0; cursor: zoom-in; }
.gal-strip img, .gal-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-strip button:hover { outline: 2px solid var(--pri); outline-offset: -2px; }
.gal-strip .play { width: 28px; height: 28px; font-size: 11px; }
.dt-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.dt-perks { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; }
.perk { flex: 1 1 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.perk.promo { background: #fff7ed; border-color: #fed7aa; }
.perk ul { margin: 4px 0 0; padding-left: 18px; }
.perk p { margin: 4px 0 0; white-space: pre-line; }
.perk small { color: var(--mut); }
a.rate-badge { text-decoration: none; }
@media (max-width: 960px) { .dt-perks { flex-basis: 100%; } }

/* ===== Đặt chỗ dạng hộp thoại + cẩm nang địa phương ===== */
.gal-strip .dup, .gal-strip.only-m { display: none; }
@media (max-width: 600px) { .gal-strip.only-m { display: flex; } .gal-strip .dup { display: block; } }
.dt-grid .dt-tabs { margin-top: 0; }
.dt-side { padding-bottom: 80px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin-bottom: 14px; }
.book-card p { margin: 0; }
.book-float { position: fixed; right: 20px; bottom: 20px; z-index: 950; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); border-radius: 999px; padding: 13px 22px; }
.bk-modal h4 { margin: 14px 0 8px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }
.guide h3 { margin: 0 0 8px; font-size: 16px; }
.guide ul { list-style: none; margin: 0; padding: 0; }
.guide li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.guide li:first-child { border-top: 0; }
.guide li div { flex: 1; }
.guide li small { display: block; color: var(--mut); }
.guide li a { font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.gd-ico { font-size: 20px; }
.guide.tip { background: #eef8fe; border-color: #b6e5f8; }
.guide.tip p { margin: 0 0 6px; }
.post { border-top: 1px solid var(--line); padding: 10px 0; }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post small { display: block; color: var(--mut); }
.post p { margin: 4px 0; white-space: pre-line; }
.rv-rule { background: #fef3c7; color: #92400e; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
/* Hộp thoại không được rộng hơn màn hình điện thoại. */
.modal-box { min-width: 0; }
.bk-modal .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-modal input { min-width: 0; }
.bk-modal .svc { min-width: 0; }
/* Thanh mục con nằm trong cột nội dung: cho cột co lại để thanh tự cuộn ngang. */
@media (max-width: 960px) { .dt-grid { grid-template-columns: minmax(0, 1fr); } }
.dt-main, .dt-side { min-width: 0; }

/* ===== Đầu trang chỗ nghỉ ===== */
.dt-head { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 20px 22px; margin-bottom: 18px; }
.dt-title { display: flex; flex-direction: column; align-items: flex-start; }
.dt-type { background: var(--pri-soft); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.dt-head h1 { margin: 8px 0; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.facts i { font-style: normal; font-size: 22px; }
.facts b { display: block; font-size: 15px; } .facts small { color: var(--mut); font-size: 12px; }
.perks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.perks > b { font-size: 14px; }
.perks ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; align-items: center; gap: 7px; border: 1px solid #9edcf6; background: #eef8fe; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.perks li span { font-size: 17px; }
.promo-bar { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #fff7ed, #fef3c7); border: 1px solid #fed7aa; }
.promo-bar > span { font-size: 28px; }
.promo-bar div { flex: 1; } .promo-bar b { color: #c2410c; font-size: 14px; } .promo-bar p { margin: 2px 0 0; white-space: pre-line; font-size: 14px; }
.promo-bar small { color: var(--mut); white-space: nowrap; }
@media (max-width: 600px) { .dt-head { padding: 16px; } .facts { grid-template-columns: 1fr 1fr; } .facts li { gap: 8px; padding: 8px 10px; } .promo-bar { flex-wrap: wrap; } }
.extra-note { margin: -2px 0 6px; }
/* Bộ lọc tìm kiếm */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#filterBody[hidden] { display: none; }
.filters .grid3 label { min-width: 0; }
.filters .grid3 { grid-template-columns: 1.3fr 1fr 1fr; }

/* Cẩm nang: mỗi dòng là một liên kết, quá 4 mục thì cuộn */
.guide h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guide h3 em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mut); background: var(--bg); border-radius: 999px; padding: 1px 9px; }
.guide ul.gd-list { position: relative; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; overscroll-behavior: contain; }
.guide .gd-list li { display: block; padding: 0; }
.guide a.gd-row { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.guide a.gd-row:hover { background: #eef8fe; }
.gd-row .gd-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); object-fit: cover; font-size: 21px; }
.gd-text { flex: 1; min-width: 0; line-height: 1.4; }
.gd-text b { display: block; } .gd-text small { display: block; color: var(--mut); }
.gd-go { color: #94a3b8; font-size: 22px; line-height: 1; }
.gd-row:hover .gd-go { color: var(--pri); }
.gd-more { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--mut); }
/* Từng mục nội dung của trang chỗ nghỉ nằm trong khung riêng */
.dt-main .dt-sec { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 20px 22px; margin-bottom: 16px; }
.dt-main .dt-sec h2 { margin-top: 0; }
@media (max-width: 600px) { .dt-main .dt-sec { padding: 16px; } }
/* Tìm theo mô tả */
.filter-bar { flex-wrap: wrap; }
.smart { flex: 1 1 200px; display: flex; gap: 6px; }
.smart input { flex: 1; min-width: 0; margin: 0; padding: 7px 10px; font-size: 14px; }
.smart button { white-space: nowrap; }
.smart-hint { margin: -2px 0 10px; } .smart-hint .link { text-align: left; padding: 0; }
.smart-result { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; background: #eef8fe; border: 1px solid #9edcf6; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.smart-result[hidden], .smart-hint[hidden] { display: none; }
.smart-result p { margin: 4px 0 0; }
.why { font-size: 12px; color: var(--pri); font-weight: 600; margin-top: 4px; }
.why.miss { color: var(--mut); font-weight: 400; margin-top: 0; }
/* Bài viết quán / địa điểm */
.venue { max-width: 860px; }
.venue-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 22px; margin-bottom: 16px; }
.venue-card h1 { margin: 10px 0; font-size: 28px; }
.venue-photo { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; display: block; }
.venue-lead { font-size: 17px; color: #334155; }
.venue-body p { white-space: pre-line; }
.venue-info { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.venue .route-bar a.btn { text-decoration: none; }
.guide ul.gd-list { overflow-x: hidden; }
.gd-dist { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--acc); }

/* ===================== Nhận diện Cityoka (logo, linh vật, phông) ===================== */
h1, h2, .h-head h2, .hero h1, .dt-head h1, .dt-sec h2, .page-head h1 { font-family: 'Nunito', 'Be Vietnam Pro', system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }
a { color: var(--pri-dark); }
.topbar { height: 60px; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(7, 157, 224, .06); border-bottom: 0; }
.brand img { height: 44px; width: auto; display: block; }
.topbar nav a { font-weight: 600; }
.topbar nav a.on { color: var(--pri-dark); background: var(--pri-soft); }
.hotline { color: var(--pri-dark); font-weight: 600; }
.btn { font-weight: 700; border-radius: 12px; }
.btn.acc { background: var(--acc); box-shadow: 0 6px 16px rgba(255, 121, 0, .28); }
.btn.acc:hover { background: #e56c00; }
.chip.on { background: var(--pri); border-color: var(--pri); }
.pill { background: var(--acc); }
.price, .stay-price, .pop-card .pop-price { color: var(--ink); }
.bk-price b, .rv-big { color: var(--pri-dark); }
.kpi.hl { background: linear-gradient(135deg, var(--pri), var(--pri-2)); }
.t-villa { background: linear-gradient(135deg, #079DE0, #20B9E8); }
.t-resort { background: linear-gradient(135deg, #0b5f8a, #20B9E8); }
.t-nhanghi { background: linear-gradient(135deg, #e5a800, #FFC52E); }
.rate-badge { background: #fff4d6; color: #8a5a00; }

/* Trang chủ: ảnh nền phủ xanh trời, chữ nhấn vàng nắng, linh vật vẫy tay */
.hero::after { background: linear-gradient(180deg, rgba(7, 64, 104, .30), rgba(7, 54, 92, .55) 65%, rgba(6, 40, 70, .72)); }
.hero h1 span { color: var(--sun); }
.hero-search { border: 3px solid rgba(255, 255, 255, .6); }
.hero-mascot { position: absolute; z-index: 2; right: max(20px, calc(50% - 560px)); top: 34px; width: 210px; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); animation: bob 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.hero-themes a:hover { background: rgba(255, 197, 46, .35); border-color: var(--sun); }
.dc-in em { background: rgba(255, 197, 46, .92); color: #3b2a00; }
.theme-tile:hover { border-color: var(--pri-2); box-shadow: 0 6px 18px rgba(7, 157, 224, .12); }
.svc-band { background: linear-gradient(135deg, #e6f6fe, #fff5e8); }
.svc-card em { color: var(--acc); }
.steps span { background: linear-gradient(135deg, var(--pri), var(--pri-2)); }
.owner-cta { background: linear-gradient(120deg, var(--navy), #0a5d8f); }
.foot { background: var(--navy); }
.foot-brand { display: inline-block; background: #fff; border-radius: 14px; padding: 6px 12px; }
.foot-brand img { height: 46px; width: auto; display: block; }

/* Linh vật ở các trạng thái trống / đang tải / thành công */
.empty::before, .rv-empty::before, .dt-loading::before { content: ''; display: block; width: 92px; height: 92px; margin: 0 auto 8px; background: url(../img/mascot.webp) center / contain no-repeat; }
.dt-loading::before { animation: bob 1.6s ease-in-out infinite; }
.done-ico { background: url(../img/mascot.webp) center / contain no-repeat; width: 96px; height: 96px; color: transparent; border-radius: 0; }
.login-box::before { content: ''; display: block; width: 84px; height: 84px; margin: -6px auto 6px; background: url(../img/mascot.webp) center / contain no-repeat; }

@media (max-width: 960px) {
  .hero-mascot { width: 150px; right: 10px; bottom: auto; top: 14px; opacity: .95; }
}
@media (max-width: 600px) {
  .brand img { height: 38px; }
  .hero-mascot { width: 92px; top: 8px; right: 6px; }
}
@media (max-width: 600px) {
  .topbar nav { overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: none; }
  .hero-search .dp-in { font-size: 15px; padding-left: 9px; padding-right: 26px !important; background-position: right 6px center; background-size: 16px; }
}

/* ===== Đăng nhập / đăng ký ===== */
.login-box.admin { border-top: 4px solid var(--navy); }
.login-box.owner { border-top: 4px solid var(--pri); }
.login-alt { margin: 12px 0 6px; font-size: 14px; text-align: center; }
.ok-box { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.st-pending { background: #fff4d6; color: #8a5a00; } .st-active { background: #dcfce7; color: #166534; } .st-disabled { background: #fee2e2; color: #991b1b; }

/* ===== Địa chỉ + định vị ===== */
.addr-row { display: flex; gap: 8px; margin-top: 4px; }
.addr-row input { margin: 0; flex: 1; }
.addr-row .btn { white-space: nowrap; }
.addr-msg { margin: 4px 0 6px; min-height: 18px; }
.addr-list { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; font-size: 13px; }
.addr-list .link { text-align: left; }
.dt-addr { color: #475569; font-size: 14px; margin: -2px 0 8px; }

/* ===== Ngày tặng quà ===== */
.gift-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.gift-row input { margin: 0; }
.gift-days { margin: 6px 0 2px; padding-left: 18px; } .gift-days li { margin: 2px 0; }
.gift-hit { display: flex; gap: 10px; align-items: flex-start; background: linear-gradient(135deg, #fff7e0, #ffefd5); border: 1px solid #ffd77a; border-radius: 12px; padding: 10px 12px; margin: 10px 0 4px; font-size: 14px; }
.day.gift { position: relative; }
.day.gift::after { content: '🎁'; position: absolute; top: -5px; right: -3px; font-size: 11px; line-height: 1; }
@media (max-width: 600px) { .gift-row { grid-template-columns: 1fr auto; } .gift-row [name=gift] { grid-column: 1 / -1; grid-row: 2; } }

/* ===== Bảng kéo đổi độ rộng cột + cố định cột đầu ===== */
table.rtable { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
table.rtable th, table.rtable td { overflow: hidden; overflow-wrap: anywhere; }
table.rtable th { position: relative; user-select: none; background: #fff; }
.col-rs { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; z-index: 3; }
.col-rs::after { content: ''; position: absolute; top: 25%; bottom: 25%; right: 3px; width: 2px; border-radius: 2px; background: var(--line); }
th:hover .col-rs::after, .rtable.resizing .col-rs::after { background: var(--pri-2); }
.rtable.resizing { cursor: col-resize; }
.rtable .stk { position: sticky; z-index: 2; background: #fff; }
.rtable thead .stk { z-index: 4; }
.rtable .stk-last { box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .18); }
.rtable tbody tr:hover td.stk { background: #f8fbfe; }
.gift-tag { margin-top: 4px; font-size: 12px; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 2px 6px; display: inline-block; }
.warn-txt { color: #b45309; }

/* ===== Khu chủ nhà: menu con, bộ lọc, biểu đồ, hỗ trợ, duyệt tin ===== */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; border-bottom: 2px solid var(--line); margin: 0 0 16px; scrollbar-width: thin; }
.subtabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--mut); padding: 10px 14px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.subtabs button:hover { color: var(--ink); }
.subtabs button.on { color: var(--pri-dark); border-bottom-color: var(--pri); }
.nbadge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; text-align: center; }
.fbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 14px; }
.fbar label { margin: 0; font-size: 12px; color: var(--mut); display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.fbar select, .fbar input { margin: 0; padding: 7px 9px; font-size: 14px; }
.fbar .fq { flex: 1; min-width: 160px; }
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-bottom: 10px; }
.viz-grid .wide { grid-column: 1 / -1; }
.viz h3 { font-size: 15px; margin: 0 0 12px; }
.rbars { display: grid; gap: 7px; }
.rbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 92px; gap: 8px; align-items: center; font-size: 13px; padding: 2px 0; }
.rb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-t { height: 14px; background: transparent; position: relative; }
.rb-t i { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.rb-t.meter { background: #e8eef5; border-radius: 4px; }
.rb-t.meter i { border-radius: 4px; }
.rb-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rbar:hover .rb-t i { filter: brightness(.9); }
.cols { display: grid; grid-template-columns: 44px 1fr; gap: 6px; height: 230px; margin-top: 8px; }
.cols-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--mut); text-align: right; padding-bottom: 20px; }
.cols-y span { transform: translateY(-50%); } .cols-y span:first-child { transform: none; } .cols-y span:last-child { transform: translateY(0); }
.cols-plot { position: relative; display: flex; align-items: flex-end; gap: 6px; padding-bottom: 20px; }
.cols-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 20px; pointer-events: none; }
.cols-grid .grid { position: absolute; left: 0; right: 0; border-top: 1px solid #edf1f6; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.col i { display: block; width: 70%; max-width: 46px; background: #2a78d6; border-radius: 4px 4px 0 0; min-height: 1px; position: relative; z-index: 1; }
.col span { position: absolute; bottom: -20px; font-size: 11px; color: var(--mut); }
.col:hover i { filter: brightness(.9); }
.segbar { display: flex; height: 44px; gap: 2px; border-radius: 6px; overflow: hidden; margin: 8px 0 10px; }
.segbar i { display: flex; align-items: center; justify-content: center; min-width: 4px; }
.segbar i b { color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.viz-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.viz-tip { position: absolute; z-index: 9999; pointer-events: none; background: #0f172a; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.2); max-width: 260px; }
.sum-tbl .tot-row td, .tot-row td { font-weight: 700; background: #f8fbfe; border-top: 2px solid var(--line); }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #f3f9fe; }
.sup-list { display: grid; gap: 10px; }
.sup { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.sup-score { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#2a78d6 calc(var(--s) * 1%), #e8eef5 0); }
.sup-score b { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; }
.sup-todo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sup-todo .todo { font-size: 12.5px; background: #fff4d6; color: #8a5a00; border-radius: 6px; padding: 2px 8px; }
.sup-todo .tip { font-size: 12.5px; background: var(--pri-soft); color: var(--pri-dark); border-radius: 6px; padding: 2px 8px; }
.sup-todo .done-tag { font-size: 12.5px; background: #dcfce7; color: #166534; border-radius: 6px; padding: 2px 8px; }
.sup-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; max-width: 260px; }
.sup-act .small { width: 100%; text-align: right; }
@media (max-width: 700px) { .sup { grid-template-columns: 52px 1fr; } .sup-act { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } .sup-act .small { text-align: left; } .rbar { grid-template-columns: 90px 1fr 76px; } }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.rv-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: #fff; }
.rv-card img, .rv-ph { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; font-size: 34px; background: var(--pri-soft); }
.ok-box.warn { background: #fff8e6; border-color: #fcd98a; color: #7a4d00; }
.ok-box.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.policy { white-space: normal; font-size: 14px; line-height: 1.6; background: #f8fbfe; border-radius: 10px; padding: 12px 14px; }
.policy-box { margin: 0 0 14px; } .policy-box summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.login-box.wide { max-width: 520px; }
label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; } label.chk input { width: auto; margin: 0; }
.pill { background: var(--pri-soft); color: var(--pri-dark); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.grid-pol { display: grid; gap: 4px; }
.side-layout[hidden], .tab-pane[hidden] { display: none !important; }
/* Quản lý cộng tác viên */
.ctv-list { display: grid; gap: 12px; }
.ctv-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pri); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.ctv-card.pending { border-left-color: var(--acc); background: #fffcf5; }
.ctv-card.disabled { border-left-color: #94a3b8; opacity: .85; }
.ctv-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.ctv-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; background: #f8fbfe; border-radius: 10px; padding: 8px 12px; }
.ctv-body { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.ctv-body label { margin: 0; font-size: 13px; }
.ctv-body input, .ctv-body textarea { margin-top: 4px; }
@media (max-width: 700px) { .ctv-body { grid-template-columns: 1fr; } }
/* Đăng nhập / đăng ký cộng tác viên: màu cam riêng để không nhầm với chủ nhà / quản trị */
.login-box.partner { border-top: 4px solid var(--acc); }
.login-box.partner h1 { color: #c25a00; }
.login-box .portal-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.login-box.owner .portal-tag { background: var(--pri-soft); color: var(--pri-dark); }
.login-box.admin .portal-tag { background: #e2e8f0; color: var(--navy); }
.login-box.partner .portal-tag { background: #fff1e3; color: #c25a00; }
.ctv-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.ctv-perks div { background: #fff7ef; border-radius: 10px; padding: 10px; font-size: 13px; text-align: center; }
.ctv-perks b { display: block; font-size: 18px; color: #c25a00; }
.ctv-cta { background: linear-gradient(120deg, #b45309, #ff7900); margin-top: 14px; }
.ctv-cta .btn { background: #fff; color: #b45309; border-color: #fff; }
.login-box.partner .btn.full, .login-box.partner .btn.acc { background: var(--acc); border-color: var(--acc); }
.field-help { font-size: 12.5px; line-height: 1.55; color: #475569; background: #f8fbfe; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: -4px 0 12px; }
.field-help ul { margin: 4px 0; padding-left: 18px; }
.field-help code { background: #e8f1fa; border-radius: 4px; padding: 0 4px; font-size: 12px; }
.field-help #unPreview { margin-top: 4px; }
.ok-txt { color: var(--ok); }
#toast.long { white-space: pre-line; max-width: min(560px, 92vw); text-align: left; line-height: 1.5; pointer-events: auto; cursor: pointer; }
#toast.show.long { background: #7f1d1d; }
/* Chuông thông báo */
.bell-wrap { position: relative; display: inline-block; margin-right: 6px; }
.bell { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 17px; cursor: pointer; line-height: 1; }
.bell.has { border-color: var(--acc); animation: bell-ring 2.4s ease-in-out infinite; }
@keyframes bell-ring { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(14deg); } 94% { transform: rotate(-12deg); } 97% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .bell.has { animation: none; } }
.bell-n { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-pop { position: absolute; right: 0; top: 44px; width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); z-index: 2000; padding: 6px 0; text-align: left; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.bell-sec { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px 4px; }
.bell-it { display: block; padding: 7px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.bell-it:hover { background: #f3f9fe; }
.bell-empty { padding: 4px 14px 8px; color: var(--mut); font-size: 13px; }
.bell-all { display: block; padding: 10px 14px 6px; border-top: 1px solid var(--line); margin-top: 6px; font-weight: 600; font-size: 14px; }
/* AI */
.ai-btn { background: linear-gradient(120deg, #7c3aed, #2a78d6); color: #fff; border: 0; }
.ai-btn:disabled { opacity: .6; }
.char-count { font-size: 12px; color: var(--mut); text-align: right; margin-top: -8px; margin-bottom: 8px; }
.char-count.over { color: var(--bad); font-weight: 700; }
.ai-check { font-size: 12.5px; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.ai-check.ok { background: #ecfdf5; color: #065f46; }
.ai-check.bad { background: #fef2f2; color: #991b1b; }
.ai-check.na { background: #f1f5f9; color: #475569; }
.desc-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 10px; } .desc-tools .char-count { margin: 0 0 0 auto; }
/* Menu trên: tìm gần đây + khu quản lý */
.topbar nav { align-items: center; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-lbl { font-size: 12px; color: var(--mut); font-weight: 600; margin-right: 2px; white-space: nowrap; }
.topbar nav a { white-space: nowrap; }
.who .area-link { font-weight: 600; color: var(--pri-dark); text-decoration: none; padding: 6px 10px; border-radius: 9px; background: var(--pri-soft); margin-right: 4px; white-space: nowrap; }
.who .area-link.on { background: var(--pri); color: #fff; }
.who { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (max-width: 1180px) { .nav-lbl { display: none; } .topbar nav a { padding: 7px 8px; } }
@media (max-width: 900px) { .who .area-link { padding: 5px 7px; font-size: 13px; } .who b { display: none; } }
/* Chân trang nhiều cột */
.foot-col { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.foot-col b { color: #fff; margin-bottom: 4px; }
.foot-col a { color: #e2e8f0; text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot .hotline a, .foot p.small a { color: #e2e8f0; margin-right: 10px; }
/* Trang tìm gần đây */
.nb-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 12px; }
.nb-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; font: inherit; font-size: 20px; cursor: pointer; }
.nb-cat span { font-size: 12px; font-weight: 600; color: var(--mut); }
.nb-cat.on { border-color: var(--pri); background: var(--pri-soft); }
.nb-cat.on span { color: var(--pri-dark); }
.nb-controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.nb-r { margin: 0; font-size: 12px; color: var(--mut); display: flex; flex-direction: column; gap: 3px; }
.nb-r select { margin: 0; padding: 6px 8px; }
.nb-list { padding: 0 14px 20px; display: grid; gap: 8px; }
.nb-item { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.nb-item:hover, .nb-item.hl { border-color: var(--pri); box-shadow: 0 4px 14px rgba(7, 157, 224, .12); }
.nb-item.cy { border-color: #fcd98a; background: #fffcf3; }
.nb-ic { font-size: 24px; text-align: center; line-height: 1.4; }
.nb-b b { display: block; }
.nb-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.nb-loading, .nb-empty, .nb-warn { padding: 14px; border-radius: 12px; background: #f8fbfe; color: var(--mut); font-size: 14px; }
.nb-warn { background: #fff8e6; color: #7a4d00; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--pri-soft); border-top-color: var(--pri); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nb-mk span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--pri); font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.nb-mk.cy span { border-color: var(--acc); background: #fff7ed; }
.page-nearby .filters input#nbQ { margin: 4px 0 8px; }
.topbar nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar > .who, .topbar > .hotline { flex-shrink: 0; }
@media (max-width: 1400px) { .who .area-link .t, .who #chgPw .t { display: none; } .who .area-link { padding: 6px 8px; } }
/* Tìm gần đây: thẻ là link tới bài giới thiệu */
a.nb-item { grid-template-columns: 52px 1fr 14px; align-items: center; color: inherit; text-decoration: none; }
a.nb-item b { color: var(--ink); }
.nb-ph { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
a.nb-item .nb-ic { width: 52px; }
.nb-go { font-size: 22px; color: var(--mut); line-height: 1; }
a.nb-item:hover .nb-go { color: var(--pri); }
.nb-ads { background: linear-gradient(180deg, #fff7e6, #fffdf8); border: 1px solid #fcd98a; border-radius: 14px; padding: 8px; display: grid; gap: 8px; margin-bottom: 6px; }
.nb-ads-h { font-size: 12px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .04em; padding: 2px 4px; }
a.nb-item.ad { border-color: #fcd98a; }
.ad-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #92400e; background: #fde68a; border-radius: 4px; padding: 0 5px; vertical-align: 2px; }
.nb-mk.ad span { border-color: #f59e0b; background: #fffbeb; transform: scale(1.15); }
.nb-mk.hl span { border-color: var(--acc); transform: scale(1.3); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
/* Khối "Trên Google Maps" ở trang giới thiệu */
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-rate b { font-size: 20px; }
.g-rate .stars, .g-rv .stars { color: #f5a623; letter-spacing: 1px; }
.g-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: 6px; margin: 12px 0; }
.g-photos figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: #eef2f7; }
.g-photos figure.big { grid-column: span 2; grid-row: span 2; }
.g-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 4px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-photos figcaption a { color: #fff; }
.g-reviews { display: grid; gap: 10px; }
.g-rv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.g-rv p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.g-rv-h { display: flex; gap: 8px; align-items: center; }
.g-rv-h img { width: 32px; height: 32px; border-radius: 50%; }
.g-rv-h a { color: var(--ink); text-decoration: none; }
.g-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.g-attr { font-size: 12px; color: var(--mut); }
.admin-bar { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #f1f5f9; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
@media (max-width: 640px) { .g-photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; } }
/* Danh bạ địa điểm (quản trị) */
.pl-tbl td { vertical-align: top; }
.pl-tbl td:nth-child(1) { min-width: 220px; }
.pl-tbl td:nth-child(4) { min-width: 220px; }
.pl-tbl select, .pl-tbl textarea { margin: 0 0 4px; font-size: 13px; padding: 5px 7px; }
.pl-tbl td div { margin-bottom: 2px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 10px; }
/* Chọn ngôn ngữ + làm mờ trong lúc dịch lần đầu */
.lang-sel { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 0 auto; flex-shrink: 0; font-size: 14px; }
.lang-sel select { margin: 0; padding: 5px 6px; border-radius: 9px; font-size: 13px; width: auto; max-width: 130px; }
.topbar .lang-sel + .who, .topbar .lang-sel + .hotline { margin-left: 0; }
html.i18n-wait main { opacity: .25; transition: opacity .2s; }
main { transition: opacity .2s; }
@media (max-width: 700px) { .lang-sel select { max-width: 88px; } }
/* Tin & sự kiện theo nơi khách quan tâm (trên chân trang) + popup */
.dest-news { background: linear-gradient(180deg, #f5f9fc, #eaf5fc); border-top: 1px solid var(--line); padding: 22px 20px; }
.page-search .dest-news { margin-top: 0; }
.dn-in { max-width: 1200px; margin: 0 auto; }
.dn-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dn-head h2 { margin: 0; font-size: 20px; }
.dn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.dn-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
a.dn-card:hover { border-color: var(--pri); box-shadow: 0 6px 18px rgba(7, 157, 224, .12); }
.dn-card b { line-height: 1.35; }
.dn-card p { margin: 0; font-size: 13.5px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dn-tag { font-size: 12px; font-weight: 700; color: var(--pri-dark); }
.dn-more { font-size: 13px; color: var(--pri-dark); font-weight: 600; margin-top: auto; }
.dn-pop { position: fixed; left: 16px; bottom: 16px; z-index: 2500; width: min(320px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, .25); padding: 14px 16px; border-top: 4px solid var(--acc); transform: translateY(20px); opacity: 0; transition: .3s; display: grid; gap: 8px; }
.dn-pop.show { transform: none; opacity: 1; }
.dn-pop-b { display: grid; gap: 2px; }
.dn-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--mut); }
@media (prefers-reduced-motion: reduce) { .dn-pop { transition: none; } }
/* Hộp thư & tin nhắn */
.inbox-list { display: grid; gap: 8px; }
.mail { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 6px; }
.mail.unread { border-left: 4px solid var(--pri); background: #f8fcff; }
.mail-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail p { margin: 0; white-space: pre-wrap; }
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 12px; min-height: 480px; }
.chat-users { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 70vh; background: #fff; }
.chat-u { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; font: inherit; cursor: pointer; }
.chat-u.on { background: var(--pri-soft); }
.chat-u .nbadge { float: right; }
.chat-box { border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; min-height: 480px; }
.chat-msgs { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: #f1f5f9; white-space: pre-wrap; font-size: 14px; }
.msg.me { align-self: flex-end; background: var(--pri); color: #fff; }
.msg small { display: block; opacity: .7; font-size: 11px; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { margin: 0; flex: 1; min-height: 44px; }
@media (max-width: 800px) { .chat-wrap { grid-template-columns: 1fr; } }
/* Thanh quản lý riêng (dưới thanh đầu trang, chỉ khi đăng nhập) */
.area-bar { position: sticky; top: 60px; z-index: 990; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 20px; background: var(--navy); color: #cfe3f2; font-size: 13.5px; overflow-x: auto; scrollbar-width: none; }
.area-bar::-webkit-scrollbar { display: none; }
.ab-links, .ab-me { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ab-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #8fb3cf; margin-right: 6px; font-weight: 700; }
.area-bar .area-link { color: #e6f2fb; background: transparent; text-decoration: none; padding: 5px 10px; border-radius: 8px; font-weight: 600; margin: 0; }
.area-bar .area-link:hover { background: rgba(255, 255, 255, .12); }
.area-bar .area-link.on { background: #fff; color: var(--navy); }
.ab-name { color: #fff; font-weight: 600; margin-right: 6px; }
.ab-btn { border: 0; background: none; color: #cfe3f2; font: inherit; cursor: pointer; padding: 5px 8px; border-radius: 8px; }
.ab-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 961px) { body.has-areabar.page-search .search-layout { height: calc(100vh - 104px); } }
@media (max-width: 700px) { .area-bar { top: 56px; padding: 5px 10px; } .ab-name { display: none; } }
/* Gửi liên hệ thành công */
.sent-ok { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 6px 4px 2px; }
.sent-art { position: relative; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #e1f4fd, #fff 70%); display: grid; place-items: center; animation: sent-pop .45s ease-out; }
.sent-art img { width: 88px; height: 88px; object-fit: contain; }
.sent-check { position: absolute; right: -2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: #16a34a; color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.sent-ok h2 { margin: 6px 0 0; font-size: 24px; color: var(--navy); }
.sent-lead { margin: 0; color: var(--mut); }
.sent-box { width: 100%; text-align: left; background: #f6fafd; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 8px; margin: 6px 0 2px; }
.sent-box div { display: grid; gap: 1px; }
.sent-box span { font-size: 12px; color: var(--mut); }
.sent-ok .btn { min-width: 160px; margin-top: 4px; }
@keyframes sent-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sent-art { animation: none; } }
.sent-ok .muted a { margin-left: 6px; }
.cy-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #075985; background: #e0f2fe; border-radius: 4px; padding: 0 5px; vertical-align: 2px; }
/* Đặc sản trong khung tin của thành phố */
.dn-sub { margin: 16px 0 10px; font-size: 17px; }
.sp-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.sp-ic { font-size: 34px; line-height: 1; }
/* Bộ liên hệ góc phải dưới */
.cw { position: fixed; right: 0; bottom: 120px; z-index: 2400; font-size: 14px; }
.cw-open { display: none; width: 240px; margin-right: 12px; background: #fff; border-radius: 16px; box-shadow: 0 14px 36px rgba(15, 23, 42, .22); overflow: hidden; }
.cw.is-open .cw-open { display: block; }
.cw.is-open .cw-mini { display: none; }
.cw-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 0; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line); }
.cw-head span { color: var(--mut); font-size: 18px; }
.cw-soc { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cw-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cw-row:hover { background: #f3f7fb; }
.cw-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.cw-ic.fb { background: #e7f0ff; color: #1877f2; } .cw-ic.tt { background: #eef0f3; color: #111; } .cw-ic.yt { background: #ffe8e8; color: #ff0000; }
.cw-chat { padding: 10px; display: grid; gap: 8px; }
.cw-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.cw-btn.zoa { background: #0a73ff; } .cw-btn.mgr { background: #0866ff; } .cw-btn.zl { background: #0b89c4; }
.cw-btn:hover { filter: brightness(1.08); }
.cw-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cw-mini { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 6px; background: #fff; border-radius: 14px 0 0 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .2); }
.cw-arrow { border: 0; background: none; color: var(--pri-dark); font-size: 22px; cursor: pointer; line-height: 1; padding: 2px 6px; }
.cw-mi .cw-ic { width: 34px; height: 34px; }
.cw-sep { width: 26px; height: 1px; background: var(--line); }
.cw-mb { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; }
.cw-mb.zoa { background: #0a73ff; } .cw-mb.mgr { background: #0866ff; } .cw-mb.zl { background: #0b89c4; }
@media (max-width: 700px) { .cw { bottom: 90px; } .cw-mini { gap: 6px; padding: 6px 4px; } .cw-mi .cw-ic, .cw-mb { width: 32px; height: 32px; } }
@media print { .cw { display: none; } }
/* Bản đồ thế giới ở trang Thống kê */
.world-map { height: 420px; border-radius: 12px; overflow: hidden; background: #a9cbe8; }
.wm-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2a78d6; vertical-align: -1px; }
.wm-key.live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .35); }
.wm-live { position: relative; }
.wm-core { position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px 3px rgba(34, 197, 94, .9); }
.wm-pulse { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(34, 197, 94, .45); animation: wm-pulse 1.6s ease-out infinite; }
@keyframes wm-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm-pulse { animation: none; opacity: .5; } }
.dest-news + .foot { margin-top: 0; }

/* Đặc sản ở cột phải trang chỗ nghỉ */
.sp-side { display: grid; }
.sp-side a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sp-side a:first-child { border-top: 0; }
.sp-side a:hover { background: #eef8fe; }
.sp-side img, .sp-side .sp-ic { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: #f1f5f9; font-size: 28px; }
.sp-side a > span:nth-child(2) { flex: 1; min-width: 0; }
.sp-side small { display: block; color: var(--mut); }
.sp-side i { font-style: normal; color: var(--mut); font-size: 20px; }
/* Trang đặc sản: trình chiếu ảnh + mô tả, sản phẩm ưu tiên, nơi bán */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.sp-hero .venue-card { margin: 0; }
.sp-slide { position: relative; border-radius: 18px; overflow: hidden; background: #0f172a; min-height: 400px; display: flex; flex-direction: column; }
.sp-stage { position: relative; flex: 1; min-height: 330px; }
.sp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.sp-stage img.on { opacity: 1; }
.sp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .55); color: #fff; font-size: 26px; cursor: pointer; }
.sp-nav.prev { left: 10px; } .sp-nav.next { right: 10px; }
.sp-credit { position: absolute; right: 8px; bottom: 6px; max-width: 92%; font-size: 11px; color: #fff; background: rgba(15, 23, 42, .6); border-radius: 6px; padding: 2px 8px; text-decoration: none; }
.sp-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.sp-thumbs button { flex: none; width: 72px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.sp-thumbs button.on { border-color: #fff; opacity: 1; }
.sp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sp-noimg { background: linear-gradient(135deg, #e0f2fe, #fef3c7); align-items: center; justify-content: center; font-size: 110px; }
.offer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.offer { display: flex; flex-direction: column; border: 1px solid #fcd98a; border-radius: 14px; overflow: hidden; background: #fffdf8; }
.offer-ph { position: relative; border: 0; padding: 0; aspect-ratio: 4 / 3; background: #f1f5f9; cursor: pointer; font-size: 46px; }
.offer-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-ph .ad-tag { position: absolute; left: 8px; top: 8px; }
.offer-b { padding: 10px 12px; display: grid; gap: 4px; align-content: start; flex: 1; font-size: 14px; }
.offer-b .price { color: #c2410c; font-weight: 800; }
.offer-b p { margin: 0; color: var(--mut); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer-act { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.offer-act a { flex: 1; text-align: center; white-space: nowrap; font-size: 13px; font-weight: 700; padding: 7px 8px; border-radius: 9px; background: #e8f6fd; color: #0369a1; text-decoration: none; }
.offer-act a.call { background: var(--pri); color: #fff; }
.offer-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #f5b942; border-radius: 14px; padding: 14px 16px; background: #fffaf0; }
.offer-full img { width: 100%; border-radius: 10px; margin-bottom: 8px; }
.offer-full .offer-act { padding: 0; }
.sp-page .nb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-content: start; }
.sp-page .nb-list > .nb-ads, .sp-page .nb-list > .nb-loading, .sp-page .nb-list > .nb-empty { grid-column: 1 / -1; }
@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sp-hero { grid-template-columns: minmax(0, 1fr); } .sp-slide { min-height: 300px; } .sp-stage { min-height: 240px; } }
@media (max-width: 640px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sp-page .nb-list { grid-template-columns: minmax(0, 1fr); } }
/* Ảnh ở trang địa điểm bản đồ mở */
.about-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.about-photos figure { margin: 0; }
.about-photos img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; display: block; }
.about-photos figcaption { font-size: 11px; color: var(--mut); margin-top: 3px; }
/* Ảnh đang có trong form quản trị */
.ph-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-edit label { width: 120px; margin: 0; font-size: 12px; }
.ph-edit img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.ph-edit input { width: auto; margin: 0; }

/* ===== Menu chính: khung "Gần đây", hàng riêng trên màn hình hẹp ===== */
:root { --hdr: 60px; --stick: var(--hdr); }
.topbar .mainnav { align-items: center; }
.topbar .mainnav a { display: flex; align-items: center; gap: 5px; }
.topbar .mainnav i { font-style: normal; }
.nav-group { display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border: 1.5px solid #bfe3f6; border-radius: 14px; background: #f4fbff; margin-left: 6px; }
.nav-group .nav-lbl { display: inline; color: var(--pri-dark); margin-right: 4px; }
.nav-more { display: none; }
.search-layout { height: calc(100vh - var(--stick)); }
body.has-areabar.page-search .search-layout { height: calc(100vh - var(--stick)); }
.area-bar { top: var(--hdr); }
.dt-tabs { top: var(--stick); }
.dt-sec { scroll-margin-top: calc(var(--stick) + 60px); }
.bk.sticky { top: calc(var(--stick) + 60px); }
@media (max-width: 1439px) {
  .topbar { height: auto; flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .topbar .brand { margin-right: auto; }
  .topbar .mainnav { order: 5; flex: 0 0 100%; justify-content: center; }
  .topbar .mainnav a { padding: 6px 9px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .nav-group { padding-left: 4px; }
  .nav-group .nav-lbl { display: none; }
  .topbar .mainnav a { padding: 5px 5px; font-size: 13px; }
  .topbar .mainnav a i { display: none; }
}
@media (max-width: 760px) {
  .topbar .mainnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .nav-group { display: contents; }
  .nav-group .nav-lbl { display: none; }
  .topbar .mainnav a, .nav-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 6px 2px; border: 1px solid #cfe8f7; border-radius: 12px; background: #f4fbff; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; white-space: normal; }
  .topbar .mainnav i, .nav-more i { font-size: 18px; line-height: 1.2; font-style: normal; }
  .topbar .mainnav a.on { background: var(--pri); border-color: var(--pri); color: #fff; }
  .nav-more { color: var(--pri-dark); background: #fff; cursor: pointer; }
  .nav-more i { font-size: 13px; line-height: 1.65; }
  .topbar .mainnav:not(.open) a:not(.pri) { display: none; }
  /* Mobile header has two rows; the map is in normal flow, so a relative top
     offset only creates an empty band between navigation and map. */
  .map-wrap { top: 0; }
  .area-bar { top: var(--hdr); }
}
@media (min-width: 761px) and (max-width: 960px) { .map-wrap { top: var(--stick); } }
.nb-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
a.nb-cat { text-decoration: none; color: inherit; text-align: center; }
@media (max-width: 560px) { .nb-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Trang Đặc sản (danh sách) */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.sp-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh); color: var(--ink); text-decoration: none; }
.sp-tile > img, .sp-tile > .sp-ic { width: 100%; height: 170px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #e0f2fe, #fef3c7); font-size: 64px; }
.sp-tile div { padding: 12px 14px; display: grid; gap: 4px; }
.sp-tile p { margin: 0; color: var(--mut); font-size: 14px; }
/* ===== Menu con trang quản trị ===== */
.adm-tabs { position: sticky; top: var(--stick); z-index: 800; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 14px; background: var(--bg); scrollbar-width: thin; }
.adm-tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.adm-tabs button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
body.page-admin main [data-tab] { display: none; }
body.page-admin[data-admtab="dat-cho"] main [data-tab="dat-cho"],
body.page-admin[data-admtab="dich-vu"] main [data-tab="dich-vu"],
body.page-admin[data-admtab="dia-diem"] main [data-tab="dia-diem"],
body.page-admin[data-admtab="dac-san"] main [data-tab="dac-san"],
body.page-admin[data-admtab="tin-tuc"] main [data-tab="tin-tuc"],
body.page-admin[data-admtab="tai-khoan"] main [data-tab="tai-khoan"],
body.page-admin[data-admtab="thanh-toan"] main [data-tab="thanh-toan"] { display: block; }
body.page-admin[data-admtab="dat-cho"] main .kpis[data-tab="dat-cho"],
body.page-admin[data-admtab="dich-vu"] main .kpis[data-tab="dich-vu"],
body.page-admin[data-admtab="dia-diem"] main .kpis[data-tab="dia-diem"],
body.page-admin[data-admtab="dac-san"] main .kpis[data-tab="dac-san"],
body.page-admin[data-admtab="tin-tuc"] main .kpis[data-tab="tin-tuc"],
body.page-admin[data-admtab="tai-khoan"] main .kpis[data-tab="tai-khoan"],
body.page-admin[data-admtab="thanh-toan"] main .kpis[data-tab="thanh-toan"] { display: grid; }

.foot .foot-social a { color: #e2e8f0; margin-right: 14px; font-weight: 600; }
.foot .foot-beta { max-width: 1200px; margin: 20px auto 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; font-size: 13px; font-weight: 600; color: #fcd34d; }
