/*
Theme Name: AnGi
Template: generatepress
Description: Child theme của GeneratePress cho AnGi. Tông màu & font tham khảo thegioididong.com: header vàng, màu chính xanh, giá đỏ, font Inter.
Version: 0.3.10
Text Domain: angi
*/

/* ============ Font Inter (tự host, có subset tiếng Việt) ============ */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/inter-vietnamese-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ Design tokens ============ */
:root {
	--ag-yellow: #ffd400;        /* header TGDD */
	--ag-yellow-soft: #fff8d6;
	--ag-blue: #2a83e9;          /* màu chính TGDD */
	--ag-blue-dark: #1d6fd1;
	--ag-blue-soft: #eaf3fd;
	--ag-red: #d0021c;           /* giá */
	--ag-orange: #f27301;
	--ag-green: #0f9d58;
	--ag-green-soft: #e6f6ee;
	--ag-gray-soft: #f2f4f7;     /* nền trang */
	--ag-border: #e4e7ec;
	--ag-text: #1d2939;
	--ag-text-2: #475467;
	--ag-muted: #667085;
	--ag-white: #fff;
	--ag-radius: 12px;
	--ag-radius-sm: 8px;
	--ag-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--ag-shadow-lg: 0 8px 24px rgba(16, 24, 40, .12);
	--ag-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ag-max: 1200px;
}

/* ============ Base ============ */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--ag-gray-soft);
	color: var(--ag-text);
	font-family: var(--ag-font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 15px; } }
body, button, input, select, textarea { font-family: var(--ag-font); }
a { color: var(--ag-blue); text-decoration: none; }
a:hover { color: var(--ag-blue-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ag-text); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
@media (min-width: 768px) { h1 { font-size: 28px; } h2 { font-size: 20px; } }
:focus-visible { outline: 3px solid rgba(42, 131, 233, .45); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.ag-container { max-width: var(--ag-max); margin: 0 auto; padding: 0 12px; }
@media (min-width: 768px) { .ag-container { padding: 0 20px; } }
.ag-main { padding: 16px 0 48px; min-height: 60vh; }

/* ============ Header (vàng như TGDD) ============ */
.ag-header { background: var(--ag-yellow); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.admin-bar .ag-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ag-header { top: 32px; } }
.ag-header__bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.ag-logo { display: flex; align-items: center; gap: 8px; color: var(--ag-text); font-weight: 800; font-size: 22px; letter-spacing: -.5px; flex-shrink: 0; }
.ag-logo:hover { color: var(--ag-text); }
.ag-logo__mark { display: block; width: 40px; height: 40px; }
.ag-logo__tag { display: none; font-size: 12px; font-weight: 500; color: var(--ag-text-2); letter-spacing: 0; }
@media (min-width: 1024px) { .ag-logo__tag { display: inline; } }

.ag-search { flex: 1; display: flex; max-width: 560px; background: var(--ag-white); border-radius: 999px; overflow: hidden; }
.ag-search input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font-size: 14px; background: transparent; color: var(--ag-text); }
.ag-search input:focus { outline: none; }
.ag-search:focus-within { box-shadow: 0 0 0 3px rgba(42, 131, 233, .35); }
.ag-search button { border: 0; background: transparent; padding: 0 14px; color: var(--ag-text-2); cursor: pointer; display: grid; place-items: center; }
.ag-header__bar .ag-search { display: none; }
@media (min-width: 768px) { .ag-header__bar .ag-search { display: flex; } }

.ag-nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.ag-nav a, .ag-nav .ag-nav__user { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--ag-text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ag-nav a:hover { background: rgba(0, 0, 0, .06); color: var(--ag-text); }
.ag-nav a[aria-current="page"] { background: rgba(0, 0, 0, .08); }
.ag-nav .ag-nav__cta { background: var(--ag-text); color: var(--ag-yellow); }
.ag-nav .ag-nav__cta:hover { background: #000; color: var(--ag-yellow); }
.ag-nav-toggle { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .06); cursor: pointer; color: var(--ag-text); }
@media (min-width: 900px) {
	.ag-nav { display: flex; }
	.ag-nav-toggle { display: none; }
}
@media (max-width: 899px) {
	.ag-nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--ag-yellow); padding: 8px 12px 16px; box-shadow: var(--ag-shadow-lg); }
	.ag-nav.is-open a { border-radius: var(--ag-radius-sm); padding: 12px; }
}
.ag-header .ag-header__search-mobile { margin: 0 0 10px; }
@media (min-width: 768px) { .ag-header .ag-header__search-mobile { display: none; } }

/* ============ Footer ============ */
.ag-footer { background: var(--ag-text); color: rgba(255, 255, 255, .72); font-size: 14px; padding: 36px 0 20px; margin-top: 32px; }
.ag-footer a { color: rgba(255, 255, 255, .86); }
.ag-footer a:hover { color: var(--ag-yellow); }
.ag-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ag-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .ag-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ag-footer__brand { grid-column: auto; } }
.ag-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.ag-footer__brand p { margin: 12px 0; line-height: 1.55; max-width: 380px; }
.ag-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.ag-footer h2 { color: var(--ag-yellow); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.ag-footer__col ul + h2 { margin-top: 20px; }
.ag-footer__bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; text-align: center; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.ag-footer__bottom a { color: inherit; text-decoration: underline; }
.ag-contact__zalo--sm { width: 22px; height: 22px; border-radius: 6px; font-size: 7px; }

/* ============ Buttons ============ */
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: var(--ag-radius-sm); border: 1px solid transparent; background: var(--ag-blue); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-align: center; transition: background .15s, box-shadow .15s; }
@media (hover: hover) { .ag-btn:hover { background: var(--ag-blue-dark); color: #fff; } }
.ag-btn--lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.ag-btn--sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.ag-btn--ghost { background: var(--ag-white); color: var(--ag-blue); border-color: var(--ag-blue); }
@media (hover: hover) { .ag-btn--ghost:hover { background: var(--ag-blue-soft); color: var(--ag-blue-dark); } }
.ag-btn--light { background: var(--ag-white); color: var(--ag-text); border-color: var(--ag-border); }
@media (hover: hover) { .ag-btn--light:hover { background: var(--ag-gray-soft); color: var(--ag-text); } }
.ag-btn--dark { background: var(--ag-text); color: var(--ag-yellow); }
@media (hover: hover) { .ag-btn--dark:hover { background: #000; color: var(--ag-yellow); } }
.ag-btn--danger { background: var(--ag-white); color: var(--ag-red); border-color: var(--ag-border); }
.ag-btn--block { width: 100%; }
.ag-btn[disabled] { opacity: .6; cursor: not-allowed; }
.ag-btn.is-busy { position: relative; color: transparent !important; }
.ag-btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: ag-spin .7s linear infinite; }
.ag-btn--ghost.is-busy::after, .ag-btn--light.is-busy::after { border-color: var(--ag-blue) var(--ag-blue) transparent transparent; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
.ag-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Card / layout ============ */
.ag-card { background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); padding: 16px; }
@media (min-width: 768px) { .ag-card { padding: 20px; } }
.ag-card + .ag-card { margin-top: 12px; }
.ag-section { margin-top: 24px; }
.ag-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ag-section__head h2 { margin: 0; }
.ag-breadcrumb { font-size: 13px; color: var(--ag-muted); margin-bottom: 10px; }
.ag-breadcrumb a { color: var(--ag-text-2); }
.ag-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ag-page-head h1 { margin: 0; }
.ag-muted { color: var(--ag-muted); }
.ag-small { font-size: 13px; }

/* ============ Badge / tag ============ */
.ag-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; background: var(--ag-gray-soft); color: var(--ag-text-2); white-space: nowrap; }
.ag-badge--open { background: var(--ag-green-soft); color: var(--ag-green); }
.ag-badge--closed { background: #fdecee; color: var(--ag-red); }
.ag-badge--soon { background: var(--ag-yellow-soft); color: #93370d; }
.ag-badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ag-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ag-blue-soft); color: var(--ag-blue-dark); font-size: 12px; font-weight: 500; }
a.ag-tag:hover { background: var(--ag-blue); color: #fff; }
.ag-price { color: var(--ag-red); font-weight: 700; white-space: nowrap; }
.ag-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ag-text); }
.ag-rating__star { color: #f79009; }

/* ============ Hero (trang chủ) ============ */
.ag-hero { background: linear-gradient(180deg, var(--ag-yellow) 0%, #ffe56a 55%, var(--ag-gray-soft) 100%); padding: 28px 0 36px; margin-top: -16px; }
.ag-hero__inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .ag-hero__inner { grid-template-columns: 1.2fr 1fr; padding: 24px 0; } }
.ag-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
@media (min-width: 768px) { .ag-hero h1 { font-size: 40px; } }
.ag-hero p { font-size: 16px; color: var(--ag-text-2); margin: 0 0 18px; max-width: 520px; }
.ag-hero .ag-search { max-width: none; box-shadow: var(--ag-shadow-lg); }
.ag-hero .ag-search input { padding: 14px 20px; font-size: 16px; }
.ag-hero .ag-search button { background: var(--ag-blue); color: #fff; padding: 0 22px; font-weight: 600; font-size: 15px; }
.ag-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ag-hero__chips a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ag-text); font-weight: 500; font-size: 13px; }
.ag-hero__chips a:hover { background: #fff; }
.ag-hero__card { background: var(--ag-white); border-radius: 16px; padding: 20px; box-shadow: var(--ag-shadow-lg); }
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.ag-steps__no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ag-yellow); font-weight: 800; }
.ag-steps strong { display: block; }
.ag-steps span { color: var(--ag-muted); font-size: 13px; }

/* ============ Lưới quán ============ */
.ag-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ag-grid--4 { grid-template-columns: repeat(4, 1fr); } .ag-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.ag-place-card { display: flex; flex-direction: column; background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); overflow: hidden; color: var(--ag-text); transition: box-shadow .15s, transform .15s; }
.ag-place-card:hover { color: var(--ag-text); box-shadow: var(--ag-shadow-lg); transform: translateY(-1px); }
.ag-place-card__img { position: relative; aspect-ratio: 16 / 9; background: var(--ag-yellow-soft); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.ag-place-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ag-place-card__img .ag-badge { position: absolute; top: 8px; left: 8px; box-shadow: var(--ag-shadow); }
.ag-place-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ag-place-card__name { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-place-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ag-muted); }
.ag-place-card__addr { font-size: 13px; color: var(--ag-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-place-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 4px; }
/* Danh sách dạng hàng trên mobile */
.ag-list .ag-place-card { flex-direction: row; }
.ag-list .ag-place-card__img { width: 108px; aspect-ratio: auto; flex-shrink: 0; font-size: 32px; }
.ag-list .ag-place-card__img .ag-badge { display: none; }
@media (min-width: 600px) {
	.ag-list .ag-place-card { flex-direction: column; }
	.ag-list .ag-place-card__img { width: auto; aspect-ratio: 16 / 9; }
	.ag-list .ag-place-card__img .ag-badge { display: inline-flex; }
}

/* ============ Danh sách quán + bộ lọc ============ */
.ag-filters { display: flex; flex-direction: column; gap: 10px; }
.ag-filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ag-filters .ag-search { max-width: none; border: 1px solid var(--ag-border); flex: 1 1 260px; }
.ag-chip-group { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ag-chip-group::-webkit-scrollbar { display: none; }
.ag-chip { position: relative; }
.ag-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ag-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ag-border); background: var(--ag-white); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.ag-chip input:checked + span { border-color: var(--ag-blue); background: var(--ag-blue-soft); color: var(--ag-blue-dark); }
.ag-chip input:focus-visible + span { outline: 3px solid rgba(42, 131, 233, .45); }
.ag-select { min-height: 36px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1px solid var(--ag-border); background: var(--ag-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-size: 13px; font-weight: 500; color: var(--ag-text); }
.ag-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0 10px; }
.ag-places-layout { display: grid; gap: 16px; }
.ag-places__map { display: none; height: 320px; border-radius: var(--ag-radius); overflow: hidden; box-shadow: var(--ag-shadow); }
.is-map-open .ag-places__map { display: block; }
@media (min-width: 1024px) {
	.is-map-open .ag-places-layout { grid-template-columns: 1fr 420px; }
	.is-map-open .ag-places__map { height: calc(100vh - 140px); position: sticky; top: 80px; order: 2; }
	.is-map-open .ag-places-layout .ag-grid { grid-template-columns: repeat(2, 1fr); }
}
.ag-empty { text-align: center; padding: 40px 16px; color: var(--ag-muted); }
.ag-empty__icon { font-size: 44px; }
.ag-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.ag-pagination .page-numbers { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--ag-radius-sm); background: var(--ag-white); color: var(--ag-text); box-shadow: var(--ag-shadow); font-weight: 600; }
.ag-pagination .current { background: var(--ag-blue); color: #fff; }

/* ============ Trang quán ============ */
.ag-place-hero { display: grid; gap: 16px; }
@media (min-width: 900px) { .ag-place-hero { grid-template-columns: 1fr 360px; align-items: start; } }
.ag-place-hero__photo { border-radius: var(--ag-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ag-yellow-soft); display: grid; place-items: center; font-size: 64px; margin: -16px -16px 16px; border-radius: var(--ag-radius) var(--ag-radius) 0 0; }
@media (min-width: 768px) { .ag-place-hero__photo { margin: -20px -20px 16px; } }
.ag-place-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ag-place-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.ag-place-title h1 { margin: 0; }
.ag-place-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-place-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--ag-text-2); }
.ag-place-facts .ag-icon { color: var(--ag-muted); margin-top: 1px; }
.ag-place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ag-mini-map { height: 220px; border-radius: var(--ag-radius-sm); overflow: hidden; margin-bottom: 12px; z-index: 0; }
.ag-place-desc { color: var(--ag-text-2); margin-top: 12px; }

/* Menu */
.ag-menu-group + .ag-menu-group { margin-top: 18px; }
.ag-menu-group__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ag-muted); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ag-yellow); display: inline-block; }
.ag-menu-list { list-style: none; margin: 0; padding: 0; }
.ag-menu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--ag-border); }
.ag-menu-item:last-child { border-bottom: 0; }
.ag-menu-item__name { font-weight: 600; }
.ag-menu-item__desc { grid-column: 1; font-size: 13px; color: var(--ag-muted); }
.ag-menu-item__opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ag-menu-item__opts span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--ag-gray-soft); color: var(--ag-text-2); }
.ag-menu-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; color: var(--ag-muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ag-border); }

/* Review */
.ag-review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ag-review-summary__score { font-size: 40px; font-weight: 800; line-height: 1; }
.ag-stars { color: #f79009; letter-spacing: 1px; }
.ag-stars--empty { color: var(--ag-border); }
.ag-review { padding: 14px 0; border-top: 1px solid var(--ag-border); }
.ag-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ag-review__author { font-weight: 600; }
.ag-review__body { margin: 6px 0 0; color: var(--ag-text-2); white-space: pre-line; }
.ag-review__photos { display: flex; gap: 6px; margin-top: 8px; }
.ag-review__photos img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--ag-radius-sm); }
.ag-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ag-yellow); font-weight: 700; font-size: 13px; }
.ag-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ag-stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.ag-stars-input label { font-size: 30px; line-height: 1; color: var(--ag-border); cursor: pointer; transition: transform .1s; }
.ag-stars-input label:hover, .ag-stars-input label:hover ~ label, .ag-stars-input input:checked ~ label { color: #f79009; }
.ag-stars-input input:focus-visible + label { outline: 2px solid var(--ag-blue); border-radius: 4px; }
.ag-stars-label { margin-left: 10px; font-weight: 600; color: var(--ag-text-2); }

/* Báo sai */
.ag-report { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-report__label { font-size: 13px; color: var(--ag-muted); margin-right: 4px; }
.ag-dialog { border: 0; border-radius: var(--ag-radius); padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: var(--ag-shadow-lg); }
.ag-dialog::backdrop { background: rgba(16, 24, 40, .5); }
.ag-dialog form { padding: 20px; }
.ag-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ============ Form ============ */
.ag-form { display: grid; gap: 14px; }
.ag-form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .ag-form-grid--2 { grid-template-columns: 1fr 1fr; } }
.ag-field { display: flex; flex-direction: column; gap: 6px; }
.ag-field > label, .ag-label { font-weight: 600; font-size: 14px; }
.ag-label .ag-req { color: var(--ag-red); }
.ag-label .ag-opt-label { font-weight: 400; color: var(--ag-muted); font-size: 13px; }
.ag-input, .ag-form input[type="text"], .ag-form input[type="tel"], .ag-form input[type="url"], .ag-form input[type="time"], .ag-form textarea, .ag-form select {
	width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d0d5dd; border-radius: var(--ag-radius-sm); background: var(--ag-white); color: var(--ag-text); font-size: 15px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.ag-form textarea { min-height: 90px; resize: vertical; }
.ag-form input:focus, .ag-form textarea:focus, .ag-form select:focus, .ag-input:focus { outline: none; border-color: var(--ag-blue); box-shadow: 0 0 0 3px rgba(42, 131, 233, .2); }
.ag-form [aria-invalid="true"], .ag-input[aria-invalid] { border-color: var(--ag-red) !important; }
.ag-help { font-size: 13px; color: var(--ag-muted); margin: 0; }
.ag-field-error { font-size: 13px; color: var(--ag-red); margin: 0; font-weight: 500; }
.ag-fieldset { border: 0; padding: 0; margin: 0; }
.ag-fieldset legend { font-weight: 700; font-size: 16px; margin-bottom: 10px; padding: 0; }
.ag-form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.ag-sticky-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); margin: 16px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--ag-border); border-radius: 0 0 var(--ag-radius) var(--ag-radius); }
@media (min-width: 768px) { .ag-sticky-actions { margin: 20px -20px -20px; padding: 12px 20px; } }
.ag-map-picker { height: 300px; border-radius: var(--ag-radius-sm); border: 1px solid #d0d5dd; z-index: 0; }
.ag-map-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-map-hint { font-size: 13px; color: var(--ag-orange); margin: 0; font-weight: 500; }
.ag-map-hint.is-ok { color: var(--ag-green); }
.ag-dupes { background: var(--ag-yellow-soft); border: 1px solid #fde68a; border-radius: var(--ag-radius-sm); padding: 12px; display: grid; gap: 8px; }
.ag-dupes__title { margin: 0; font-weight: 600; }
.ag-dupes__item { display: flex; flex-direction: column; padding: 8px 10px; background: var(--ag-white); border-radius: var(--ag-radius-sm); color: var(--ag-text); }
.ag-dupes__item span { font-size: 13px; color: var(--ag-muted); }
.ag-file { padding: 8px; border: 1px dashed #d0d5dd; border-radius: var(--ag-radius-sm); background: var(--ag-gray-soft); }

/* ============ Trình sửa menu ============ */
.ag-menu-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.ag-menu-rows { display: grid; gap: 10px; counter-reset: row; }
.ag-menu-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px 10px; padding: 12px 10px; border: 1px solid var(--ag-border); border-radius: var(--ag-radius-sm); background: var(--ag-white); }
.ag-menu-row:focus-within { border-color: var(--ag-blue); box-shadow: 0 0 0 3px rgba(42, 131, 233, .12); }
.ag-menu-row__no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ag-yellow); font-weight: 700; font-size: 13px; }
.ag-menu-row__fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.ag-menu-row__fields > *, .ag-opt > * { min-width: 0; }
.ag-menu-row__fields .ag-field--name, .ag-menu-row__fields .ag-more { grid-column: 1 / -1; }
@media (min-width: 768px) {
	.ag-menu-row__fields { grid-template-columns: 2.2fr 1fr 1.1fr; }
	.ag-menu-row__fields .ag-field--name { grid-column: auto; }
}
.ag-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ag-blue); }
.ag-more__count { font-weight: 400; color: var(--ag-muted); }
.ag-more__body { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 768px) { .ag-more__body { grid-template-columns: 1fr 1fr; } .ag-more__body .ag-opts { grid-column: 1 / -1; } }
.ag-opts > label { display: block; margin-bottom: 4px; }
.ag-menu-row label { font-size: 12px; font-weight: 600; color: var(--ag-muted); }
.ag-menu-row .ag-input { min-height: 38px; font-size: 14px; }
.ag-price-preview { font-size: 12px; color: var(--ag-green); min-height: 16px; }
.ag-input[aria-invalid] + .ag-price-preview { color: var(--ag-red); }
.ag-menu-row__actions { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.ag-icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--ag-radius-sm); border: 1px solid var(--ag-border); background: var(--ag-white); color: var(--ag-text-2); cursor: pointer; }
.ag-icon-btn:hover { background: var(--ag-gray-soft); }
.ag-icon-btn--danger:hover { color: var(--ag-red); border-color: var(--ag-red); }
.ag-opts summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ag-blue); }
.ag-opts__list { display: grid; gap: 6px; margin: 8px 0; }
.ag-opt { display: grid; grid-template-columns: 1fr 96px 34px; gap: 6px; align-items: start; }
.ag-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ag-paste summary { cursor: pointer; font-weight: 600; }

/* ============ Toast ============ */
/* Toast ở trên để không che thanh nút lưu dính đáy; không chặn click */
.ag-toasts { position: fixed; z-index: 10000; left: 50%; top: 72px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.ag-toast { padding: 12px 16px; border-radius: var(--ag-radius-sm); background: var(--ag-text); color: #fff; box-shadow: var(--ag-shadow-lg); font-weight: 500; animation: ag-in .2s ease-out; }
.ag-toast--error { background: var(--ag-red); }
@keyframes ag-in { from { opacity: 0; transform: translateY(-8px); } }

/* ============ Map pin ============ */
.ag-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--ag-blue); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ag-pin--active span { background: var(--ag-red); }
.leaflet-container { font-family: var(--ag-font); }

/* ============ Notice ============ */
.ag-notice { padding: 12px 14px; border-radius: var(--ag-radius-sm); background: var(--ag-blue-soft); color: var(--ag-blue-dark); font-size: 14px; }
.ag-notice--warn { background: var(--ag-yellow-soft); color: #93370d; }

/* ============ Trang WP mặc định (page/post của GeneratePress) ============ */
.ag-main .inside-article { background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); padding: 20px; }
.ag-main .site-main { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Quán chưa có ảnh: dải màu thấp thay vì khung 16:9 trống */
.ag-place-hero__photo--empty { aspect-ratio: auto; height: 120px; font-size: 48px; }
@media (min-width: 768px) { .ag-place-hero__photo--empty { height: 150px; } }

/* Nút chọn file theo tông AnGi */
.ag-file { font-size: 14px; color: var(--ag-text-2); width: 100%; box-sizing: border-box; }
.ag-file::file-selector-button { margin-right: 10px; padding: 7px 14px; border: 1px solid var(--ag-blue); border-radius: var(--ag-radius-sm); background: var(--ag-white); color: var(--ag-blue); font: 600 13px var(--ag-font); cursor: pointer; }
.ag-file::file-selector-button:hover { background: var(--ag-blue-soft); }

/* Thuộc tính hidden luôn thắng display của component */
[hidden] { display: none !important; }
/* fieldset mặc định min-width: min-content làm tràn ngang trên mobile */
.ag-fieldset { min-width: 0; }
.ag-main { overflow-x: clip; }

/* ============ N2: Ăn gì ở đâu ============ */
.ag-nav__label-m { display: inline; }
@media (min-width: 900px) { .ag-nav__label-m { display: none; } }
.ag-hero--compact { padding: 24px 0 28px; text-align: left; }
.ag-hero--compact h1 { margin-bottom: 6px; }
.ag-kitchen-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
.ag-kitchen-tabs::-webkit-scrollbar { display: none; }
.ag-kitchen-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ag-text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.ag-kitchen-tabs a:hover { background: #fff; }
.ag-kitchen-tabs a[aria-current="page"] { background: var(--ag-text); color: #fff; }
.ag-kitchen-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.ag-kitchen-link:hover { box-shadow: var(--ag-shadow-lg); }
.ag-field[hidden] { display: none; }
.ag-recipe-steps { counter-reset: ag-rstep; list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ag-recipe-steps li { display: block; counter-increment: ag-rstep; position: relative; padding-left: 40px; line-height: 1.6; }
.ag-recipe-steps li::before { content: counter(ag-rstep); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ag-blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ag-btn--tiktok { background: #111; color: #fff; border-color: #111; text-decoration: none; }
@media (hover: hover) { .ag-btn--tiktok:hover { background: #333; color: #fff; } }
.ag-tiktok-search { max-width: 560px; margin: 0 0 14px; }
.ag-tiktok-search button { background: #111; color: #fff; padding: 0 16px; font-weight: 600; white-space: nowrap; }
.ag-tiktok-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ag-tiktok-cta p { margin: 0; }

/* Thẻ thành phố: màu theo vùng khi chưa có ảnh bìa */
.ag-city-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .ag-city-grid { grid-template-columns: repeat(4, 1fr); } }
.ag-city-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ag-radius); overflow: hidden; box-shadow: var(--ag-shadow); color: #fff; background: linear-gradient(135deg, #f27301, #ffd400); transition: transform .15s, box-shadow .15s; }
.ag-city-card--bac { background: linear-gradient(135deg, #b42318, #f79009); }
.ag-city-card--trung { background: linear-gradient(135deg, #1d6fd1, #36bffa); }
.ag-city-card--nam { background: linear-gradient(135deg, #0f9d58, #a6ef67); }
.ag-city-card:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--ag-shadow-lg); }
.ag-city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-city-card__emoji { position: absolute; top: 10px; right: 12px; font-size: 40px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
@media (min-width: 768px) { .ag-city-card__emoji { font-size: 52px; } }
.ag-city-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); display: flex; flex-direction: column; }
.ag-city-card__name { font-weight: 800; font-size: 17px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
@media (min-width: 768px) { .ag-city-card__name { font-size: 20px; } }
.ag-city-card__meta { font-size: 12px; opacity: .9; }
.ag-city-card__place { font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-city-card img + .ag-city-card__body { padding-top: 40px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.ag-credit-note { margin: 8px 0 0; font-size: 12px; color: var(--ag-muted, #6b7280); }

/* Trang thành phố */
.ag-city-hero { position: relative; margin-top: -16px; padding: 18px 0 28px; color: #fff; background: linear-gradient(135deg, #f27301, #ffd400); }
.ag-city-hero--bac { background: linear-gradient(135deg, #b42318, #f79009); }
.ag-city-hero--trung { background: linear-gradient(135deg, #1d6fd1, #36bffa); }
.ag-city-hero--nam { background: linear-gradient(135deg, #0f9d58, #6ce9a6); }
.ag-city-hero[style*="--ag-cover"] { background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .6)), var(--ag-cover) center / cover; padding: 24px 0 40px; }
.ag-city-hero .ag-breadcrumb, .ag-city-hero .ag-breadcrumb a { color: rgba(255, 255, 255, .9); }
.ag-city-hero h1 { color: #fff; font-size: 30px; font-weight: 800; margin: 4px 0 6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
@media (min-width: 768px) { .ag-city-hero h1 { font-size: 42px; } }
.ag-city-hero p { margin: 0 0 12px; max-width: 640px; font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ag-city-hero__emoji { font-size: 48px; line-height: 1; display: block; margin-top: 6px; }
.ag-city-hero__meta { display: flex; gap: 6px; }
.ag-city-hero .ag-city-hero__credit { margin: 14px 0 0; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ag-city-hero__credit a { color: inherit; text-decoration: underline; }
.ag-city-hero .ag-badge { background: rgba(255, 255, 255, .92); color: var(--ag-text); }
.ag-city-layout { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) { .ag-city-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.ag-aside-title { font-size: 16px; margin-bottom: 10px; }
.ag-mini-list { list-style: none; margin: 0; padding: 0; }
.ag-mini-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--ag-border); }
.ag-mini-list li:last-child { border-bottom: 0; }
.ag-cta-card { background: var(--ag-yellow-soft); }

/* Thẻ bài viết */
.ag-article-card { display: flex; flex-direction: column; background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); overflow: hidden; color: var(--ag-text); transition: box-shadow .15s, transform .15s; }
.ag-article-card:hover { color: var(--ag-text); box-shadow: var(--ag-shadow-lg); transform: translateY(-1px); }
.ag-article-card__img { position: relative; aspect-ratio: 16 / 9; background: var(--ag-yellow-soft); display: grid; place-items: center; font-size: 44px; overflow: hidden; }
.ag-article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ag-article-card__img .ag-badge { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .95); color: var(--ag-text); box-shadow: var(--ag-shadow); }
.ag-article-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ag-article-card__title { font-size: 16px; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-article-card__excerpt { margin: 0; font-size: 13px; color: var(--ag-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ag-article-card__meta { margin-top: auto; font-size: 12px; color: var(--ag-muted); }

/* Bài viết */
.ag-article { max-width: 820px; }
.ag-article__head { margin-bottom: 14px; }
.ag-article__head h1 { font-size: 26px; font-weight: 800; margin: 10px 0 12px; letter-spacing: -.3px; }
@media (min-width: 768px) { .ag-article__head h1 { font-size: 36px; } }
.ag-article__byline { display: flex; align-items: center; gap: 10px; }
.ag-article__cover { margin: 0 0 14px; border-radius: var(--ag-radius); overflow: hidden; }
.ag-article__cover img { width: 100%; display: block; }
.ag-prose { font-size: 16px; line-height: 1.75; color: var(--ag-text); }
@media (min-width: 768px) { .ag-prose { font-size: 17px; padding: 28px 32px; } }
.ag-prose > :first-child { margin-top: 0; }
.ag-prose p, .ag-prose ul, .ag-prose ol, .ag-prose blockquote, .ag-prose figure { margin: 0 0 1.1em; }
.ag-prose h2 { font-size: 22px; margin: 1.6em 0 .6em; padding-left: 10px; border-left: 4px solid var(--ag-yellow); }
.ag-prose h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.ag-prose ul, .ag-prose ol { padding-left: 1.3em; }
.ag-prose li { margin-bottom: .35em; }
.ag-prose a { text-decoration: underline; text-underline-offset: 2px; }
.ag-prose blockquote { border-left: 4px solid var(--ag-blue); background: var(--ag-blue-soft); padding: 10px 16px; border-radius: 0 var(--ag-radius-sm) var(--ag-radius-sm) 0; color: var(--ag-text-2); }
.ag-prose img { border-radius: var(--ag-radius-sm); display: block; }

/* Form viết bài + bài của tôi */
.ag-editor { border: 1px solid #d0d5dd; border-radius: var(--ag-radius-sm); overflow: hidden; }
.ag-editor .wp-editor-container, .ag-editor .mce-panel { border: 0 !important; }
.ag-editor .mce-toolbar-grp { background: var(--ag-gray-soft) !important; border-bottom: 1px solid var(--ag-border) !important; }
.ag-my-posts { list-style: none; margin: 0; padding: 0 16px !important; }
.ag-my-posts li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ag-border); }
.ag-my-posts li:last-child { border-bottom: 0; }
.ag-my-posts__act { grid-column: 1 / -1; }
@media (min-width: 640px) { .ag-my-posts li { grid-template-columns: 1fr auto auto; } .ag-my-posts__act { grid-column: auto; } }
.ag-entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-entry-list a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--ag-radius-sm); color: var(--ag-text); border: 1px solid var(--ag-border); }
.ag-entry-list a:hover { border-color: var(--ag-blue); background: var(--ag-blue-soft); color: var(--ag-text); }
.ag-entry__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ag-yellow-soft); font-size: 22px; }
.ag-entry-list strong { display: block; }
.ag-entry-list span span { font-size: 13px; color: var(--ag-muted); }
.ag-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ag-cta-row h2 { margin: 0 0 4px; }
.ag-cta-row p { margin: 0; }

/* ============ N3: Quán gần đây ============ */
.ag-locate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-locate__or { color: var(--ag-muted); font-size: 13px; }
.ag-select--lg { min-height: 44px; font-size: 14px; }
.ag-locate__addr { flex: 1 1 260px; max-width: none; border: 1px solid var(--ag-border); }
@media (max-width: 599px) { .ag-locate > * { width: 100%; box-sizing: border-box; } .ag-locate__or { text-align: center; } }
.ag-nb-suggest { flex: 1 1 100%; font-size: 14px; }
.ag-nb-suggest p { margin: 0 0 6px; font-size: 13px; }
.ag-nb-suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag-nb-suggest__item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--ag-border); border-radius: 10px; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; line-height: 1.4; }
.ag-nb-suggest__item:hover, .ag-nb-suggest__item.is-active { border-color: var(--ag-blue, #2A83E9); background: #F0F6FE; }
#ag-nb-intro { margin-top: 12px; }
.ag-select, .ag-search { box-sizing: border-box; max-width: 100%; }
.ag-nb-results { margin-top: 12px; }
.ag-nb-list { display: grid; gap: 10px; }
@media (min-width: 768px) { .ag-nb-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .is-map-open .ag-nb-list { grid-template-columns: 1fr; } }
.ag-nb-card { background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.ag-nb-card:target { box-shadow: 0 0 0 3px var(--ag-blue); }
.ag-nb-card--angi { border-left: 4px solid var(--ag-green); }
.ag-nb-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ag-nb-card__name { font-size: 16px; margin: 0; }
.ag-nb-card__name a { color: var(--ag-text); }
.ag-nb-card__dist { flex-shrink: 0; font-weight: 700; color: var(--ag-blue); font-size: 13px; }
.ag-nb-card__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--ag-text-2); }
.ag-nb-card__facts a { word-break: break-all; }
.ag-nb-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ag-btn--grab { color: #00a651; }
.ag-btn--shopee { color: #ee4d2d; }
.ag-osm-credit { font-size: 12px; color: var(--ag-muted); margin-top: 16px; text-align: center; }
.ag-skeleton { min-height: 140px; }
.ag-skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 50%, #eef0f3 75%); background-size: 200% 100%; animation: ag-shimmer 1.2s infinite; }
.ag-skeleton span:nth-child(1) { width: 60%; height: 18px; }
.ag-skeleton span:nth-child(2) { width: 85%; }
.ag-skeleton span:nth-child(3) { width: 40%; }
@keyframes ag-shimmer { to { background-position: -200% 0; } }
.ag-nearby-cta { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; color: var(--ag-text); margin-bottom: 12px; }
.ag-nearby-cta:hover { color: var(--ag-text); box-shadow: var(--ag-shadow-lg); }
.ag-nearby-cta strong { display: block; }

/* ============ N4: Nội trợ ============ */
.ag-cook-controls { display: grid; gap: 14px; margin-top: 16px; }
.ag-cook-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ag-stepper { display: inline-flex; align-items: center; gap: 8px; }
.ag-stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 18px; }
.ag-stepper .ag-icon-btn { font-size: 20px; font-weight: 700; line-height: 1; padding: 0; }
.ag-cook-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .ag-cook-actions .ag-btn { width: 100%; } }
.ag-cook-layout { display: grid; gap: 16px; margin-top: 20px; scroll-margin-top: 80px; }
@media (min-width: 960px) { .ag-cook-layout { grid-template-columns: 1fr 380px; align-items: start; } .ag-shop { position: sticky; top: 80px; } }
.ag-meal { display: grid; gap: 10px; }
.ag-dish-card, .ag-one { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: start; background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); padding: 14px; }
.ag-one { margin-top: 12px; border: 2px dashed var(--ag-yellow); }
.ag-dish-card.is-locked { box-shadow: 0 0 0 2px var(--ag-blue), var(--ag-shadow); }
.ag-dish-card__emoji { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ag-yellow-soft); font-size: 30px; }
.ag-dish-card__type { font-size: 12px; font-weight: 700; color: var(--ag-orange); text-transform: uppercase; letter-spacing: .4px; }
.ag-dish-card__name { font-size: 18px; margin: 2px 0 4px; }
.ag-dish-card__name a { color: var(--ag-text); }
.ag-dish-card__desc { margin: 0 0 6px; color: var(--ag-text-2); font-size: 14px; }
.ag-dish-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ag-muted); }
.ag-dish-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (min-width: 640px) { .ag-dish-card__actions { grid-column: 2; justify-content: flex-start; } }
.ag-dish-card--empty { opacity: .7; }

.ag-shop h2 { font-size: 18px; }
.ag-shop__group { margin-top: 12px; }
.ag-shop__group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--ag-muted); margin: 0 0 4px; padding-bottom: 4px; border-bottom: 2px solid var(--ag-yellow); display: inline-block; }
.ag-shop__group ul, .ag-ing-list { list-style: none; margin: 0; padding: 0; }
.ag-shop__item { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--ag-border); cursor: pointer; }
.ag-shop__item input { width: 18px; height: 18px; accent-color: var(--ag-green); }
.ag-shop__item.is-done .ag-shop__name { text-decoration: line-through; color: var(--ag-muted); }
.ag-shop__qty { font-weight: 700; white-space: nowrap; color: var(--ag-text); }
.ag-shop__pantry summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ag-muted); margin-top: 8px; }
.ag-shop__actions { display: flex; gap: 8px; margin-top: 14px; }
.ag-ing-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--ag-border); }

.ag-dish-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ag-dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ag-dish-grid { grid-template-columns: repeat(3, 1fr); } }
.ag-dish-tile { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); color: var(--ag-text); }
.ag-dish-tile:hover { color: var(--ag-text); box-shadow: var(--ag-shadow-lg); }
.ag-dish-tile__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-dish-tile__emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 28px; background: var(--ag-yellow-soft); }
.ag-dish-tile__emoji--canh { background: #e0f2fe; }
.ag-dish-tile__emoji--kho { background: #fde9d9; }
.ag-dish-tile__emoji--chien { background: #fef3c7; }
.ag-dish-tile__emoji--xao { background: #dcfce7; }
.ag-dish-tile__emoji--luoc { background: #f3f4f6; }
.ag-dish-tile__emoji--nuong { background: #fee2e2; }
.ag-dish-tile__emoji--goi { background: #ecfccb; }
.ag-dish-tile__emoji--to { background: #fff7cc; }
.ag-tag--bac { background: #fdecee; color: #b42318; }
.ag-tag--trung { background: var(--ag-blue-soft); color: var(--ag-blue-dark); }
.ag-tag--nam { background: var(--ag-green-soft); color: var(--ag-green); }

.ag-dish-page { max-width: 1000px; }
.ag-dish-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.ag-dish-head > .ag-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .ag-dish-head { grid-template-columns: 88px 1fr auto; } .ag-dish-head > .ag-btn { grid-column: auto; align-self: center; } }
.ag-dish-head__emoji { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; font-size: 40px; background: var(--ag-yellow-soft); }
@media (min-width: 768px) { .ag-dish-head__emoji { width: 88px; height: 88px; font-size: 48px; } }
.ag-dish-head h1 { margin: 0 0 6px; }
.ag-dish-layout { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 860px) { .ag-dish-layout { grid-template-columns: 360px 1fr; align-items: start; } }
/* Trong lưới 2 cột không cộng khoảng cách giữa các thẻ liền nhau */
.ag-dish-layout > .ag-card, .ag-cook-layout > .ag-card, .ag-city-layout .ag-card + .ag-card, .ag-place-hero > * > .ag-card:first-child { margin-top: 0; }
.ag-city-layout aside .ag-card + .ag-card, .ag-place-hero aside .ag-card + .ag-card { margin-top: 12px; }

/* ============ N5: tất cả tỉnh thành ============ */
.ag-all-cities-cta { text-align: center; margin: 20px 0 4px; }
.ag-prov-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .ag-prov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-prov-grid { grid-template-columns: repeat(3, 1fr); } }
.ag-prov { background: var(--ag-white); border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ag-prov__main { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; color: var(--ag-text); }
.ag-prov__main:hover { color: var(--ag-blue); }
.ag-prov__main > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.ag-prov__emoji { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ag-yellow-soft); font-size: 22px; }
.ag-prov__spots { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 50px; }

/* ============ Món cho bé ============ */
.ag-safety { margin-top: 12px; background: var(--ag-yellow-soft); }
.ag-safety ul { margin: 0; padding-left: 1.2em; }
.ag-safety li { margin-bottom: 4px; }
.ag-baby-day { margin-bottom: 12px; }
.ag-baby-day h3 { margin: 0 0 8px; font-size: 17px; }
.ag-baby-meal { display: grid; gap: 4px; padding: 10px 0; border-top: 1px dashed var(--ag-border); }
@media (min-width: 700px) { .ag-baby-meal { grid-template-columns: 150px 1fr; align-items: start; } }
.ag-baby-meal__label { font-weight: 700; display: flex; flex-direction: column; }
.ag-baby-meal.is-snack .ag-baby-meal__label { color: var(--ag-orange); }
.ag-baby-meal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag-baby-dish { display: grid; grid-template-columns: 36px 1fr 34px; gap: 8px; align-items: center; }
.ag-baby-dish__emoji { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ag-yellow-soft); font-size: 20px; }
.ag-baby-dish__body { display: flex; flex-direction: column; min-width: 0; }
.ag-baby-dish__body a { font-weight: 600; color: var(--ag-text); }
.ag-steps-list { padding-left: 1.3em; }
.ag-steps-list li { margin-bottom: .6em; }
.ag-disclaimer { text-align: center; margin-top: 18px; }

/* Ảnh minh hoạ trong bài */
.ag-prose .ag-figure { margin: 4px 0 14px; }
.ag-prose .ag-figure img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--ag-radius-sm); }
.ag-prose .ag-figure figcaption { font-size: 13px; color: var(--ag-muted); margin-top: 6px; text-align: center; }
.ag-prose .ag-figure figcaption a { color: var(--ag-muted); }
.ag-prose .ag-source { font-size: 13px; color: var(--ag-muted); border-top: 1px solid var(--ag-border); padding-top: 12px; margin-top: 20px; }

/* Đánh giá quán OSM ở Quán gần đây */
.ag-nb-card__rating .ag-stars { font-size: 13px; }
.ag-rv-list { max-height: 240px; overflow: auto; margin-bottom: 8px; }
.ag-rv-list .ag-review { padding: 10px 0; }
.ag-rv-list .ag-review p { margin: 4px 0 0; font-size: 14px; }
.ag-link-btn { background: none; border: 0; padding: 0; color: var(--ag-blue); font: inherit; cursor: pointer; }
.ag-link-btn:hover { text-decoration: underline; }
.ag-google-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--ag-border); color: #4285f4; font-weight: 800; font-size: 11px; }

/* Hộp thoại liên hệ admin (bấm "Viết bài") */
.ag-contact { padding: 20px; }
.ag-contact__list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.ag-contact__list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ag-border); border-radius: var(--ag-radius-sm); color: var(--ag-text); font-size: 20px; }
.ag-contact__list a:hover { border-color: var(--ag-blue); background: #f5f9ff; }
.ag-contact__list a > span:last-child { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; }
.ag-contact__list strong { font-size: 12px; font-weight: 500; color: var(--ag-muted); }
.ag-contact__zalo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #0068ff; color: #fff; font-size: 9px; font-weight: 800; }
.ag-footer__logo img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ag-nb-osm { font-size: 11px; color: var(--ag-muted); white-space: nowrap; } /* ghi công ODbL bắt buộc, giữ nhỏ */
