/* ==========================================================================
   Cẩm Phả Port — giao diện website
   Bố cục: khung fanpage — thanh trên màu than, ảnh bìa đa giác + logo chồng lên,
   thanh chuyên mục dính, 3 cột: giới thiệu · bảng tin · đọc nhiều.
   ========================================================================== */

:root {
  /* màu thương hiệu (lấy từ logo) */
  --coal: #0f1012;
  --coal-2: #1a1b1d;
  --navy: #253662;
  --teal: #00537f;

  /* màu giao diện – nền sáng */
  --bg: #e8ecf2;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --line: #d9dfe8;
  --fg: #151a24;
  --muted: #586275;
  --accent: #00537f;
  --accent-hover: #00456a;
  --accent-soft: #e0edf5;
  --accent-on: #ffffff;
  --brand: #253662;
  --tag: #00628f;
  --warn-soft: #fff4d6;
  --warn-fg: #6b4e00;
  --shadow: 0 1px 2px rgba(21, 32, 56, .08), 0 3px 10px rgba(21, 32, 56, .05);

  /* không đổi theo giao diện sáng/tối */
  --bar-bg: #0f1012;
  --bar-fg: #f2f4f8;
  --bar-muted: #9aa3b3;
  --bar-field: #1d1f24;
  --overlay: rgba(6, 8, 12, .94);
  --overlay-fg: #f2f4f8;

  --f-display: "Josefin Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --bar-h: 56px;
  --tabs-h: 50px;
  --radius: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f;
    --surface: #16181d;
    --surface-2: #1f2229;
    --line: #2b303a;
    --fg: #e8ebf1;
    --muted: #9ba4b6;
    --accent: #45a6d6;
    --accent-hover: #67b9e2;
    --accent-soft: #11314a;
    --accent-on: #04121c;
    --brand: #a9bcec;
    --tag: #74c3ea;
    --warn-soft: #3a2f10;
    --warn-fg: #f3d68a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #16181d;
  --surface-2: #1f2229;
  --line: #2b303a;
  --fg: #e8ebf1;
  --muted: #9ba4b6;
  --accent: #45a6d6;
  --accent-hover: #67b9e2;
  --accent-soft: #11314a;
  --accent-on: #04121c;
  --brand: #a9bcec;
  --tag: #74c3ea;
  --warn-soft: #3a2f10;
  --warn-fg: #f3d68a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

/* ---------- thanh trên cùng ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bar-bg); color: var(--bar-fg);
  padding-top: var(--safe-top);
}
.topbar-inner { height: var(--bar-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bar-fg); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-name { font: 700 17px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.search { flex: 1; max-width: 380px; margin-left: auto; position: relative; min-width: 0; }
.search .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--bar-muted); width: 18px; height: 18px; }
.search input {
  width: 100%; height: 38px; border: 1px solid transparent; border-radius: 999px;
  background: var(--bar-field); color: var(--bar-fg);
  padding: 0 14px 0 38px; font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--bar-muted); }
.search input:focus { outline: none; border-color: var(--teal); }
.bar-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; font-size: 14px; flex: none;
}
.bar-btn:hover { text-decoration: none; filter: brightness(1.12); }

/* ---------- ảnh bìa + thông tin page ---------- */
.profile { background: var(--surface); box-shadow: var(--shadow); }
.cover {
  aspect-ratio: 1640 / 560; max-height: 400px; width: 100%;
  background: var(--navy) center / cover no-repeat;
  border-radius: 0 0 12px 12px; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-row { display: flex; align-items: flex-end; gap: 20px; padding-bottom: 18px; }
.avatar-xl {
  width: 168px; height: 168px; border-radius: 50%; flex: none;
  margin-top: -84px; border: 5px solid var(--surface); background: var(--navy);
}
.profile-id { flex: 1; min-width: 0; padding-bottom: 4px; }
.page-name {
  margin: 0; font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--f-display);
  text-transform: uppercase; letter-spacing: .03em; color: var(--fg); text-wrap: balance;
}
.page-stats { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.page-stats strong { color: var(--fg); font-weight: 600; }
.page-tagline { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 8px; border: 0;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: var(--surface-2); color: var(--fg); }
.btn-soft:hover { background: var(--line); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- thanh chuyên mục ---------- */
.tabs-bar {
  position: sticky; top: calc(var(--safe-top) + var(--bar-h)); z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: var(--tabs-h); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: none; padding: 0 14px; height: 100%;
  font-weight: 600; font-size: 15px; color: var(--muted);
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--fg); background: var(--surface-2); }
.tab-link { text-decoration: none; color: var(--accent); }
.guide-card .eyebrow + .link-list { margin-top: 8px; }
.guide-card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; }
.tab[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count {
  font-size: 12px; font-weight: 600; min-width: 22px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums;
}
.tab[aria-pressed="true"] .count { background: var(--accent-soft); color: var(--accent); }

/* ---------- bố cục 3 cột ---------- */
.layout {
  display: grid; gap: 20px; align-items: start; padding-block: 20px 40px;
  grid-template-columns: 300px minmax(0, 1fr) 290px;
  grid-template-areas: "left feed right";
}
.col-left { grid-area: left; }
.col-feed { grid-area: feed; min-width: 0; }
.col-right { grid-area: right; }
.col-left, .col-right, .col-feed { display: grid; gap: 16px; min-width: 0; }
/* Hai cột bên đứng yên khi kéo trang (chỉ khi đủ chỗ 3 cột); cột quá cao thì tự cuộn bên trong */
@media (min-width: 1101px) {
  .col-left, .col-right {
    position: sticky; align-self: start; align-content: start;
    top: calc(var(--safe-top) + var(--bar-h) + var(--tabs-h) + 16px);
    max-height: calc(100vh - var(--safe-top) - var(--bar-h) - var(--tabs-h) - 32px);
    overflow-y: auto; scrollbar-width: thin;
  }
}

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.eyebrow {
  margin: 0 0 12px; font: 700 14px/1 var(--f-display); letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); padding-top: 2px;
}

/* giới thiệu */
.about-text { margin: 0 0 12px; font-size: 15px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; min-width: 0; }
.info-list .icon { color: var(--muted); margin-top: 1px; }
.info-list a, .info-list span { min-width: 0; overflow-wrap: anywhere; }
.info-list .fresh { color: var(--muted); }

/* ảnh */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 8px; overflow: hidden; }
.photo-grid button { border: 0; padding: 0; background: var(--surface-2); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid button:hover img { opacity: .88; }

/* đọc nhiều */
.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: t; }
.trend-list li { counter-increment: t; }
.trend-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--fg); }
.trend-list a:hover { text-decoration: none; }
.trend-list a:hover strong { color: var(--accent); }
.trend-list a::before {
  content: counter(t); font: 700 22px/1 var(--f-display); color: var(--accent); padding-top: 3px;
}
.trend-list strong { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* quảng bá */
.promo {
  position: relative; overflow: hidden; color: #f2f4f8; isolation: isolate;
  background: var(--coal);
}
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15, 16, 18, .55), rgba(15, 16, 18, .92)); }
.promo > * { position: relative; }
.promo > .promo-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.promo .eyebrow { color: #9fc6e0; }
.promo p { margin: 0 0 14px; font-size: 14px; color: #d9dee8; }
.promo h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; text-wrap: balance; }
.promo .btn { background: #fff; color: var(--coal); }
.promo .btn:hover { background: #e2e8f0; }

/* ---------- bảng tin ---------- */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.feed-head small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.search-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.search-note button { border: 0; background: none; color: var(--accent); font-weight: 600; }
.demo-note { background: var(--warn-soft); color: var(--warn-fg); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; }

.post { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.post-who { min-width: 0; flex: 1; }
.post-who strong { display: block; font-size: 15px; font-weight: 600; }
.post-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.post-who time { color: inherit; }
.chip {
  display: inline-block; border: 0; font-size: 12px; font-weight: 600; line-height: 1.6;
  color: var(--accent); background: var(--accent-soft); padding: 0 8px; border-radius: 999px;
}
button.chip:hover { filter: brightness(.96); }
.post-body { padding: 10px 16px 12px; }
.post-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 .7em; }
.post-text p:last-child { margin-bottom: 0; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-text .tag, .article-body .tag { color: var(--tag); font-weight: 600; }
.more { border: 0; background: none; padding: 0; margin-top: 4px; font-weight: 600; color: var(--fg); }
.more:hover { text-decoration: underline; }
mark { background: var(--warn-soft); color: inherit; border-radius: 2px; }

.media { display: grid; gap: 3px; background: var(--surface); }
.media .tile { position: relative; border: 0; padding: 0; background: var(--surface-2); overflow: hidden; display: block; min-width: 0; }
.media .tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.media .tile:hover img { opacity: .92; }
.media.n1 .tile { max-height: 620px; }
.media.n1 .tile img { height: auto; max-height: 620px; }
.media.n2 { grid-template-columns: 1fr 1fr; }
.media.n2 .tile { aspect-ratio: 1; }
.media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.media.n3 .tile:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; }
.media.n4 .tile { aspect-ratio: 1; }
/* 5 ảnh: 2 ảnh trên, 3 ảnh dưới (giống Facebook). Lưới 6 cột: ô trên chiếm 3, ô dưới chiếm 2. */
.media.n5 { grid-template-columns: repeat(6, 1fr); }
.media.n5 .tile:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 1; }
.media.n5 .tile:nth-child(n+3) { grid-column: span 2; aspect-ratio: 1; }
a.tile .more-count { pointer-events: none; }
.lightbox { touch-action: pan-y; }
.tile .more-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6, 8, 12, .55); color: #fff; font: 700 30px/1 var(--f-body);
}
.tile .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 8, 12, .6); color: #fff; border: 2px solid rgba(255, 255, 255, .85);
}
.tile .play .icon { width: 26px; height: 26px; margin-left: 4px; }

.link-card {
  display: grid; gap: 2px; margin: 0 16px 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--fg);
}
.link-card:hover { text-decoration: none; border-color: var(--accent); }
.link-card .link-host { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.link-card strong { font-size: 15px; line-height: 1.4; }
.link-card span:last-child:not(.link-host) { font-size: 13.5px; color: var(--muted); }

.post-stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.likes { display: inline-flex; align-items: center; gap: 6px; }
.like-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.like-dot .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.action {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 0;
  border: 0; background: none; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.action:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.action .icon { width: 19px; height: 19px; }

.feed-list { display: grid; gap: 16px; min-width: 0; }
.load-more { width: 100%; height: 44px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; color: var(--fg); }
.load-more:hover { background: var(--surface-2); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }

/* khung chờ khi đang tải */
.skeleton { height: 360px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- xem ảnh lớn ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--overlay); color: var(--overlay-fg);
}
.lightbox::backdrop { background: var(--overlay); }
.lb-stage { position: absolute; inset: 56px 64px 72px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: var(--overlay-fg); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: calc(10px + var(--safe-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.lb-foot a { color: #9fd3f0; font-weight: 600; }
.lb-count { font-variant-numeric: tabular-nums; color: #b8c0cc; }

/* ---------- đọc bài (hộp thoại & trang riêng) ---------- */
.reader { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 12px; background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.reader::backdrop { background: rgba(6, 8, 12, .6); }
.reader-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.reader-bar span { font-size: 13px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--fg); }
.icon-btn:hover { background: var(--line); }

.article { padding: 24px 24px 28px; }
.article-cat { margin: 0 0 10px; }
.article h1 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-meta img { width: 32px; height: 32px; border-radius: 50%; }
.article-meta strong { color: var(--fg); font-weight: 600; }
.article-body { font-size: 17px; line-height: 1.7; max-width: 65ch; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1em; }
.article-media { margin: 20px 0 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.article-media img { width: 100%; height: auto; }
.video-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(6, 8, 12, .75); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.article .link-card { margin: 20px 0 0; }
.article-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* trang bài viết riêng */
.page-article { padding-block: 24px 48px; display: grid; gap: 20px; max-width: 800px; }
.page-article .article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.related-list { display: grid; gap: 12px; }
.related-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--fg); }
.related-item:hover { text-decoration: none; }
.related-item:hover strong { color: var(--accent); }
.related-item img, .related-noimg { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.related-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.4; }
.related-item small { color: var(--muted); font-size: 13px; }

/* ---------- chân trang ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { font: 700 16px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; display: block; }
.footer-brand small { color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-note { flex-basis: 100%; margin: 0; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 60;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

/* ---------- màn hình vừa & nhỏ ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "left feed" "right feed"; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "feed" "right"; padding-block: 16px 32px; }
  .profile-row { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .avatar-xl { width: 132px; height: 132px; margin-top: -66px; }
  .profile-actions { justify-content: center; }
  .hide-sm { display: none !important; }
  .about-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .bar-btn span { display: none; }
  .bar-btn { width: 38px; padding: 0; justify-content: center; }
  .search { max-width: none; }
  .cover { aspect-ratio: 16 / 7; }
  .profile-actions .btn { flex: 1; }
  .post-head, .post-body, .post-stats { padding-inline: 12px; }
  .link-card { margin-inline: 12px; }
  .post-actions { margin-inline: 8px; }
  .action { font-size: 13px; gap: 4px; }
  .article { padding: 18px 16px 22px; }
  .article-body { font-size: 16px; }
  .lb-stage { inset: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- trang giới thiệu & 404 ---------- */
.card.article { padding: 24px 24px 28px; }
.article-body h2 { margin: 1.6em 0 .5em; font-size: 20px; line-height: 1.35; }
.article-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.article-body li { margin-bottom: .35em; }
.notfound { text-align: center; }
.notfound .article-body { margin-inline: auto; }
.notfound .article-actions { justify-content: center; }
.notfound-code { margin: 0; font: 700 64px/1 var(--f-display); color: var(--accent); letter-spacing: .04em; }

/* ---------- SEO: breadcrumb, chuyên mục, cẩm nang ---------- */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 600; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.site-nav .eyebrow + ul { margin-top: 8px; }
.site-nav .eyebrow:not(:first-child) { margin-top: 16px; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.link-list, .guide-list { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.guide-list { gap: 14px; }
.guide-list small { color: var(--muted); }
.tldr { background: var(--accent-soft); border-radius: 8px; padding: 14px 16px; }
.guide .article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.guide .article-body th, .guide .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide .article-body th { background: var(--surface-2); }
.guide .article-body h3 { font-size: 17px; margin: 1.2em 0 .3em; }
.sources { font-size: 14px; }
.related-item small { display: block; }

/* ---------- truy cập: link trong đoạn văn luôn gạch chân (không chỉ dựa vào màu) ---------- */
.article-body p a, .article-body li a, .article-body td a, .post-text a { text-decoration: underline; text-underline-offset: 2px; }
.article-body p a:hover, .article-body li a:hover, .article-body td a:hover, .post-text a:hover { text-decoration-thickness: 2px; }

/* ---------- GEO: bảng "Thông tin nhanh" và khối hỏi đáp ---------- */
.facts { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; line-height: 1.5; background: var(--surface); }
.facts > div { display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { margin: 0; padding: 9px 12px; font-weight: 600; background: var(--surface-2); border-right: 1px solid var(--line); }
.facts dd { margin: 0; padding: 9px 12px; overflow-wrap: anywhere; }
.facts-section, .faq-section { padding-block: 0 24px; display: grid; gap: 16px; }
.facts-section .card > h2, .faq-section .card > h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.facts-section .facts { margin: 0; }
.faq h3 { margin: 1.1em 0 .3em; font-size: 16px; line-height: 1.4; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.article-body .facts { max-width: none; }
.article-body .faq h3 { font-size: 17px; }
.article-body .faq p { font-size: inherit; margin: 0 0 .6em; }

/* ---------- tốc độ: phần dưới màn hình đầu chỉ dựng khi cuộn tới ---------- */
.feed-list > .post:nth-child(n+2), .col-right > .card, .facts-section > .card, .footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.facts a, .faq a { text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════ Chỉ đường & bản đồ ══════════════ */
.place {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 12px 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.place-pin { color: var(--accent); width: 22px; height: 22px; }
.place-id { flex: 1; min-width: 160px; display: grid; gap: 2px; }
.place-id strong { font-size: 15px; line-height: 1.25; }
.place-id span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.place-go { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.article .place { margin-inline: 0; }

.map-embed { margin: 14px 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map-embed .map-open {
  width: 100%; min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: none; color: var(--accent); font: 600 15px/1.4 var(--f-body); cursor: pointer;
  padding: 24px 16px;
}
.map-embed .map-open:hover { background: var(--accent-soft); }
.map-embed.is-on { aspect-ratio: 16 / 10; }
.map-embed-lg.is-on { aspect-ratio: 16 / 11; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .map-embed.is-on { aspect-ratio: 4 / 5; } }

.map-page h2 { margin-top: 28px; }
.map-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.map-item {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.map-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.map-item-id { flex: 1; min-width: 200px; display: grid; gap: 3px; }
.map-item-id strong { font-size: 16px; }
.map-addr { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.map-addr .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.map-cat { font-size: 13px; color: var(--muted); }
.map-item-go { display: flex; gap: 8px; flex-wrap: wrap; }
.map-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.bar-map .icon { width: 18px; height: 18px; }

/* ══════════════ Đăng nhập Google & bài đã lưu ══════════════ */
.account { position: relative; flex: none; }
.acct-btn { gap: 7px; }
.acct-avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.acct-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff;
  font: 600 11px/18px var(--f-body); text-align: center;
}
.icon-g { fill: currentColor; stroke: none; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 232px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(8, 12, 20, .22); padding: 8px; display: grid; gap: 2px;
}
.acct-who { margin: 4px 8px 8px; display: grid; gap: 2px; }
.acct-who strong { font-size: 14px; }
.acct-who small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--fg); font: 600 14px/1.3 var(--f-body); text-align: left; cursor: pointer;
}
.acct-item:hover { background: var(--surface-2); text-decoration: none; }
.acct-item .icon { width: 18px; height: 18px; color: var(--muted); }

.btn-save[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.btn-save[aria-pressed="true"] .icon { fill: currentColor; }

.ui-dialog { border: 0; padding: 0; background: none; max-width: min(460px, calc(100vw - 32px)); }
.ui-dialog::backdrop { background: rgba(8, 10, 16, .6); }
.ui-dialog-box { position: relative; background: var(--surface); color: var(--fg); border-radius: 14px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.ui-dialog-box h2 { margin: 0 34px 8px 0; font-size: 19px; }
.ui-note { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.ui-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--surface-2); color: var(--fg); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ui-close:hover { background: var(--line); }
.g-btn-wrap { display: flex; justify-content: center; min-height: 44px; }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.saved-list li { display: flex; align-items: center; gap: 8px; }
.saved-list a { flex: 1; display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: var(--fg); }
.saved-list a:hover { background: var(--surface-2); text-decoration: none; }
.saved-list strong { font-size: 14px; font-weight: 600; }
.saved-list small { color: var(--muted); font-size: 12px; }
.saved-list .ui-empty { display: block; padding: 10px; font-size: 14px; color: var(--muted); }
.ui-del { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: none; }
.ui-del:hover { background: var(--surface-2); color: var(--fg); }

/* ══════════════ Mượt & nhanh ══════════════ */
/* Bài ngoài khung nhìn: trình duyệt bỏ qua phần dựng hình cho tới khi cuộn tới. */
.feed-list > .post { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.map-list > .map-item { content-visibility: auto; contain-intrinsic-size: auto 92px; }
.photo-grid img, .media img, .article-media img { background: var(--surface-2); }

html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
a, button, .tab, .tile, .action, .chip { -webkit-tap-highlight-color: transparent; }
.btn, .bar-btn, .action, .tab, .chip, .more, .load-more, .acct-item, .related-item, .trend-list a, .link-list a {
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, opacity .16s ease, transform .12s ease;
}
.btn:active, .bar-btn:active, .action:active, .load-more:active { transform: scale(.975); }
.photo-grid img, .media img { transition: opacity .2s ease; }
.card { transition: box-shadow .2s ease; }

/* Viền focus rõ cho người dùng bàn phím, không hiện khi bấm chuột */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
:where(a, button, input):focus:not(:focus-visible) { outline: none; }

/* Tải danh sách bài: con trỏ chờ ở thanh tìm kiếm và chuyên mục */
body.is-loading-feed .tabs, body.is-loading-feed .search { cursor: progress; }
body.is-loading-feed .tab { opacity: .72; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ══════════ 4 nút to đầu trang bản đồ: mở ra là bấm được ══════════ */
.map-lead { margin-bottom: 14px; }
.map-quick-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px;
}
.map-quick {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px; min-height: 92px; cursor: pointer; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--fg); font: 700 14px/1.25 var(--f-display);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.map-quick .icon { width: 26px; height: 26px; color: var(--accent); }
.map-quick-n { font: 600 12px/1 var(--f); color: var(--muted); }
.map-quick:hover { border-color: var(--accent); transform: translateY(-2px); }
.map-quick[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.map-quick[aria-pressed="true"] .map-quick-n { color: var(--accent); }
@media (max-width: 560px) {
  .map-quick-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .map-quick { min-height: 80px; padding: 12px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .map-quick:hover { transform: none; } }

/* ══════════ Hộp gợi ý khi gõ, kiểu ô tìm của Google ══════════ */
.map-search-wrap { position: relative; }
.map-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 32, 56, .14); overflow: hidden; max-height: 340px;
  overflow-y: auto;
}
.map-sug-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--fg);
  font: 15px/1.35 var(--f);
}
.map-sug-item + .map-sug-item { border-top: 1px solid var(--line); }
.map-sug-item .icon { width: 19px; height: 19px; flex: none; color: var(--muted); }
.map-sug-item strong { display: block; font-weight: 600; }
.map-sug-item small { display: block; color: var(--muted); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-sug-item span { min-width: 0; }
.map-sug-item:hover, .map-sug-item[aria-selected="true"] { background: var(--accent-soft); }
.map-sug-go { font: 600 11px/1 var(--f); color: var(--warn); font-style: normal;
  background: var(--warn-soft); padding: 2px 6px; border-radius: 999px; margin-left: 6px; }

/* Dãy tab lọc loại địa điểm trên trang bản đồ (kiểu Google Maps) */
.map-chips {
  display: flex; gap: 8px; margin: 18px 0 12px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.map-chips::-webkit-scrollbar { display: none; }
.map-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--fg); font: 600 14px/1 var(--f-body); white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.map-chip:hover { background: var(--surface-2); }
.map-chip .icon { width: 17px; height: 17px; color: var(--muted); }
.map-chip .count { color: var(--muted); font-weight: 500; font-size: 13px; }
.map-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.map-chip[aria-pressed="true"] .icon, .map-chip[aria-pressed="true"] .count { color: inherit; opacity: .92; }
.map-kind { display: inline-flex; align-items: center; gap: 5px; }
.map-kind .icon { width: 15px; height: 15px; }
.map-item[hidden] { display: none; }
.map-page .map-embed-lg { margin-top: 0; }

/* Ô tìm quán trên trang bản đồ */
.map-search { position: relative; display: block; margin: 18px 0 0; }
.map-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); width: 19px; height: 19px; }
.map-search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font: 400 15px/1 var(--f-body); box-shadow: var(--shadow);
}
.map-search input::placeholder { color: var(--muted); }
.map-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.map-empty { margin: 16px 0 0; padding: 18px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 15px; }
.map-hint { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.map-hint kbd {
  font: 600 12px/1 var(--f-body); padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.map-source { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Thẻ địa điểm gợi ý: ảnh | thông tin, hàng nút luôn nằm riêng một dòng cho đều nhau */
.map-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "thumb info" "go go"; gap: 12px 14px; align-items: start;
}
.map-thumb {
  grid-area: thumb; width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
}
.map-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-thumb:hover img { opacity: .9; }
.map-thumb-none .icon { width: 26px; height: 26px; color: var(--muted); }
.map-item-id { grid-area: info; min-width: 0; }
.map-item-id strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.map-item-go { grid-area: go; }
@media (max-width: 560px) {
  .map-item { grid-template-columns: 62px minmax(0, 1fr); }
  .map-thumb { width: 62px; height: 62px; }
  .map-item-go .btn { flex: 1 1 auto; justify-content: center; }
}

/* ══════════════ Local Guide: chibi thợ mỏ + hiệu ứng thu hút ══════════════ */
.mascot { width: 24px; height: 24px; flex: none; display: block; }
.mascot-lg { width: 72px; height: 72px; }

/* Chibi nhún nhẹ cho bắt mắt */
.bar-map .mascot, .btn-guide .mascot, .tab-map .mascot { animation: mascot-bob 2.2s ease-in-out infinite; }
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%      { transform: translateY(-2.5px) rotate(-5deg); }
  60%      { transform: translateY(-1px) rotate(4deg); }
}

/* Chấm đỏ nhấp nháy */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .75);
  animation: live-pulse 1.4s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 48, .8); transform: scale(1); opacity: 1; }
  55%  { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); transform: scale(1.35); opacity: .75; }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); transform: scale(1); opacity: 1; }
}

.bar-map { gap: 8px; }
/* Tab Hướng Dẫn Viên trên trang chủ: cũng nháy hai màu như nút kia cho khỏi lọt mắt. */
.tab-map {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; border-color: transparent !important;
  animation: guide-flash 1.4s steps(1, end) infinite;
}
.tab-map .mascot { width: 21px; height: 21px; }
.tab-map .live-dot { display: inline-block; }

/* Nút ở khu hồ sơ: viền sáng toả ra cho nổi giữa các nút khác */
/* Nút Hướng Dẫn Viên: nháy qua lại hai màu xanh ↔ vàng mũ thợ mỏ cho bắt mắt.
   Đổi màu dứt khoát ở mốc 50% chứ không chuyển dần, để ra hiệu ứng nhấp nháy. */
.btn-guide {
  gap: 9px; font-weight: 700; border: 1px solid transparent;
  background: var(--accent); color: #fff;
  animation: guide-flash 1.4s steps(1, end) infinite;
}
.btn-guide .mascot { width: 26px; height: 26px; margin: -4px 0; }
.btn-guide:hover { filter: brightness(1.08); }
.bar-map { animation: guide-flash 1.4s steps(1, end) infinite; }
@keyframes guide-flash {
  0%   { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 rgba(240, 165, 0, .55); }
  50%  { background: #f0a500; color: #1a1205; box-shadow: 0 0 0 5px rgba(240, 165, 0, 0); }
  100% { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 rgba(240, 165, 0, 0); }
}
/* Chấm đỏ đổi sang trắng khi nền vàng cho khỏi chìm */
.bar-map .live-dot, .btn-guide .live-dot, .tab-map .live-dot { animation: live-pulse 1.4s ease-out infinite, dot-flip 1.4s steps(1, end) infinite; }
@keyframes dot-flip {
  0%   { background: #ff3b30; }
  50%  { background: #b3261e; }
  100% { background: #ff3b30; }
}

/* Khối chào ở đầu trang Local Guide */
.guide-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.guide-hero h1 { margin: 2px 0 0; }
.guide-eyebrow {
  margin: 0; font: 700 12px/1.3 var(--f-display); letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
@media (max-width: 560px) {
  .mascot-lg { width: 54px; height: 54px; }
  .guide-hero { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .btn-guide, .bar-map, .tab-map, .bar-map .mascot, .btn-guide .mascot, .tab-map .mascot { animation: none; }
  /* Máy tắt hiệu ứng động thì không nháy, nhưng phải nổi bằng màu chứ không
     được chìm lẫn với các nút khác: nền vàng mũ thợ mỏ + viền đậm. */
  .btn-guide, .bar-map, .tab-map {
    background: #f0a500; color: #1a1205;
    border-color: #a87400 !important; box-shadow: 0 0 0 2px rgba(240, 165, 0, .35);
  }
  .live-dot { background: #b3261e; }
}
.map-pin-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn-fg); font: 700 11px/1.6 var(--f-body);
  vertical-align: 2px; white-space: nowrap;
}

/* Lối vào trang quản trị: để lẫn ở chân trang, nhạt hơn các liên kết khác */
.admin-link { color: var(--muted); opacity: .75; }
.admin-link:hover { color: var(--accent); opacity: 1; }

/* Nhóm tìm thẳng trên Google Maps: không có số đếm, viền nét đứt cho dễ phân biệt */
.map-chip-tim { border-style: dashed; }
.map-chip-tim[aria-pressed="true"] { border-style: solid; }
.map-chip-note { margin: 2px 2px 0; font-size: 13px; color: var(--muted); }

/* Nút to đang chọn: .map-chip[aria-pressed=true] cho nền xanh đặc, nên chữ
   phụ phải đổi sang trắng mờ chứ không thì chìm hẳn vào nền. */
.map-quick[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.map-quick[aria-pressed="true"] .icon { color: #fff; }
.map-quick[aria-pressed="true"] .map-quick-n { color: rgba(255, 255, 255, .88); }

/* ══════════ Theo yêu cầu: ô tìm to gấp đôi, 4 nút nhóm nhỏ còn một nửa ══════════ */
.map-search { margin-top: 14px; }
.map-search input {
  height: 92px; padding: 0 22px 0 64px; border-width: 2px;
  font-size: 20px; border-radius: 22px;
}
.map-search .icon { left: 22px; width: 28px; height: 28px; }
.map-sug { top: calc(100% + 6px); }
.map-sug-item { padding: 13px 16px; font-size: 16px; }

.map-quick-row { grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 4px; }
.map-quick {
  flex-direction: row; gap: 5px; min-height: 40px; padding: 6px 8px;
  font-size: 13px; border-radius: 999px;
}
.map-quick .icon { width: 15px; height: 15px; }
.map-quick-n { display: none; }   /* nút nhỏ thì bỏ dòng "12 chỗ" cho gọn */
@media (max-width: 560px) {
  .map-quick-row { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .map-quick { min-height: 38px; padding: 5px 4px; font-size: 11.5px; gap: 3px; }
  .map-quick .icon { width: 13px; height: 13px; }
  .map-search input { height: 84px; font-size: 18px; padding-left: 58px; }
  .map-search .icon { left: 20px; width: 25px; height: 25px; }
}
/* 4 nút nhỏ không được tràn khung trên điện thoại: ô lưới co được (min-width 0),
   màn hẹp thì bỏ biểu tượng và cho chữ xuống 2 dòng. */
.map-quick { min-width: 0; white-space: normal; line-height: 1.15; }
@media (max-width: 420px) {
  .map-quick .icon { display: none; }
  .map-quick { font-size: 12px; padding: 4px 3px; }
}
