:root {
	--aa-bg: #faf7f2;
	--aa-surface: #ffffff;
	--aa-ink: #2b2521;
	--aa-sub: #675d50;
	--aa-line: #ece5da;
	--aa-t1: #17713f; /* ≤2,000 — 초록 */
	--aa-t2: #2f6fb7; /* ≤3,500 — 파랑 */
	--aa-t3: #7c5cbf; /* 초과 — 보라 (구분용, 경고색 배제) */
	--aa-t1-soft: #e7f4ec;
	--aa-t2-soft: #e9f1f9;
	--aa-t3-soft: #f0ebf8;
	--aa-accent: #6f4e37;
	--aa-accent-deep: #59402e;
	--aa-radius: 16px;
	--aa-shadow-sm: 0 1px 3px rgba(43, 37, 33, .06), 0 4px 14px rgba(43, 37, 33, .06);
	--aa-shadow-md: 0 6px 28px rgba(43, 37, 33, .13);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	background: var(--aa-bg);
	color: var(--aa-ink);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--aa-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--aa-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.aa-num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--aa-accent); outline-offset: 2px; border-radius: 4px; }

button { font-family: inherit; }

/* ---------- 상단바 ---------- */
.aa-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 20px;
	background: var(--aa-bg);
	border-bottom: 1px solid var(--aa-line);
	position: sticky; top: 0; z-index: 1100;
}
.aa-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--aa-ink); letter-spacing: -.01em; }
.aa-brand:hover { text-decoration: none; color: var(--aa-accent); }
.aa-logo { flex: 0 0 auto; display: block; transform: translateY(-1px); } /* 컵 아트가 하단 무게라 시각 중앙 보정 */
.aa-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.aa-nav a {
	font-size: 14px; font-weight: 600; color: var(--aa-ink);
	padding: 6px 12px; border-radius: 999px; transition: background .15s ease;
}
.aa-nav a:hover { background: #f1ebe2; text-decoration: none; }
.aa-nav .aa-nav-cta { background: var(--aa-accent); color: #fff; }
.aa-nav .aa-nav-cta:hover { background: var(--aa-accent-deep); color: #fff; }

/* 햄버거 (태블릿·모바일) */
.aa-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 10px;
	background: transparent; border: 0; border-radius: 10px; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.aa-nav-toggle span {
	display: block; height: 2.5px; border-radius: 2px; background: var(--aa-ink);
	transition: transform .2s ease, opacity .15s ease;
}
.nav-open .aa-nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .aa-nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .aa-nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
	.aa-nav-toggle { display: flex; }
	.aa-nav {
		display: flex; position: absolute; top: calc(100% + 6px); right: 10px;
		flex-direction: column; gap: 2px; min-width: 200px;
		background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: 14px;
		padding: 8px; box-shadow: var(--aa-shadow-md);
		/* 열림/닫힘 모두 부드럽게: display 토글 대신 opacity+transform, 닫힘엔 visibility 지연 */
		opacity: 0; visibility: hidden; pointer-events: none;
		transform: translateY(-8px) scale(.97);
		transform-origin: top right;
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.nav-open .aa-nav {
		opacity: 1; visibility: visible; pointer-events: auto;
		transform: translateY(0) scale(1);
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
	.aa-nav a { padding: 11px 14px; border-radius: 10px; font-size: 15px; }
	.aa-nav .aa-nav-cta { margin-top: 4px; text-align: center; }
}

/* ---------- 지도 레이아웃 ---------- */
body.home { overflow: hidden; } /* 지도 페이지: 페이지 스크롤 제거 (지도 확대/이동은 그대로) */
.aa-map-wrap { position: relative; height: calc(100dvh - 57px); }
#aa-map { position: absolute; inset: 0; z-index: 1; }
.aa-panel {
	position: absolute; top: 16px; left: 16px; z-index: 1000;
	width: 300px; max-height: calc(100% - 32px); overflow-y: auto;
	border: 1px solid rgba(236, 229, 218, .9); border-radius: var(--aa-radius);
	padding: 20px; box-shadow: var(--aa-shadow-md);
	scrollbar-width: thin;
}
.aa-panel h1 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.aa-panel h2 { font-size: 12px; margin: 18px 0 8px; color: var(--aa-sub); text-transform: uppercase; letter-spacing: .06em; }
.aa-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--aa-sub); }
.aa-mini-rank { margin: 0; padding-left: 20px; font-size: 14px; }
.aa-mini-rank li { margin: 6px 0; }
.aa-mini-rank .aa-num { float: right; font-weight: 700; }
.aa-panel-toggle { display: none; } /* 데스크톱에선 항상 펼침 */

@media (max-width: 640px) {
	.aa-topbar { padding: 6px 10px; gap: 8px; }
	.aa-brand { font-size: 15.5px; gap: 6px; white-space: nowrap; flex-shrink: 0; }
	.aa-brand .aa-logo { width: 22px; height: 22px; }
	.aa-map-wrap { height: calc(100dvh - 46px); }
	.aa-panel .aa-sub { display: none; } /* 모바일: 태그라인 숨겨 공간 절약 */
	.aa-panel {
		width: auto; left: 10px; right: 10px; top: auto; bottom: 10px; max-height: 54%;
		border-radius: 18px 18px 14px 14px;

		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		transition: transform .3s cubic-bezier(.4, 0, .2, 1);
		will-change: transform;
	}
	.aa-panel h1 { font-size: 18.5px; }
	.aa-panel h2 { margin: 11px 0 6px; }
	/* 접힘: 핸들+제목 한 줄만 남기고 아래로 슬라이드 */
	.aa-panel.is-collapsed {
		transform: translateY(calc(100% - 116px));
		overflow: hidden;
	}
	.aa-panel-toggle {
		display: flex; align-items: center; justify-content: center;
		position: sticky; top: -20px; /* 패널 패딩을 파고들어 시각적 최상단 고정 */
		width: calc(100% + 40px); margin: -20px -20px 2px; height: 30px;
		background: inherit; border: 0; cursor: pointer; z-index: 2;
		border-radius: 18px 18px 0 0;
		-webkit-tap-highlight-color: transparent;
	}
	.aa-panel-grip {
		width: 44px; height: 5px; border-radius: 3px; background: #d8d0c4;
		transition: background .15s ease;
	}
	.aa-panel-toggle:active .aa-panel-grip { background: #b8ad9c; }
}

/* ---------- 가격 마커 (지도 divIcon/CustomOverlay) ---------- */
.aa-pin { background: transparent; border: 0; }
.aa-pin span {
	display: inline-block; padding: 4px 9px; border-radius: 999px;
	font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22); border: 2px solid #fff;
	font-variant-numeric: tabular-nums;
	transition: transform .12s ease;
}
.aa-pin:hover span { transform: scale(1.12); }
.aa-pin.aa-t0 span { background: #9aa0a6; } /* 미수집 — 회색 */
.aa-pin.aa-t1 span { background: var(--aa-t1); }
.aa-pin.aa-t2 span { background: var(--aa-t2); }
.aa-pin.aa-t3 span { background: var(--aa-t3); }

/* ---------- 팝업 카드 ---------- */
.aa-popup { font-size: 13px; min-width: 200px; }
.aa-popup h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.aa-popup .aa-popup-price { font-size: 19px; font-weight: 800; }
.aa-popup .aa-popup-meta { color: var(--aa-sub); margin: 3px 0; font-size: 12.5px; }
.aa-popup ul { margin: 8px 0; padding-left: 16px; }
.aa-popup li { margin: 2px 0; overflow-wrap: anywhere; }
.aa-popup .aa-popup-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.aa-popup .aa-popup-actions a, .aa-popup .aa-collect-btn { font-size: 12px; }

.aa-popup-card {
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: 14px;
	padding: 14px 16px; box-shadow: var(--aa-shadow-md);
	position: relative; max-width: 270px;
}
.aa-popup-close {
	position: absolute; top: 8px; right: 10px; border: 0; background: none;
	font-size: 18px; line-height: 1; color: var(--aa-sub); cursor: pointer;
}
.aa-popup-close:hover { color: var(--aa-ink); }

/* ---------- 필터 칩 ---------- */
.aa-filters h2 { margin-top: 14px; }
.aa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-chip {
	border: 1px solid var(--aa-line); background: var(--aa-surface); border-radius: 999px;
	padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--aa-ink);
	transition: all .15s ease;
}
.aa-chip:hover { border-color: var(--aa-accent); color: var(--aa-accent); }
.aa-chip.is-on { background: var(--aa-accent); border-color: var(--aa-accent); color: #fff; }
.aa-filter-count { font-size: 12.5px; color: var(--aa-t1); font-weight: 700; margin: 10px 0 0; }
.aa-admin-map-tools {
	margin: 14px -8px 2px;
	padding: 12px 8px 2px;
	border-top: 1px dashed #c9bfb1;
}
.aa-admin-map-tools h2 { margin-top: 0; color: #9f1239; }
.aa-admin-map-tools .aa-chip.is-on { border-color: #be123c; background: #fff1f2; color: #9f1239; }
.aa-admin-map-tools .aa-chip b { font-size: 10px; }
.aa-admin-dashboard-link {
	display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 10px;
	border-radius: 8px; background: #1d2327; color: #fff; font-size: 12px; font-weight: 700;
	text-decoration: none;
}
.aa-admin-dashboard-link:hover { background: #3c434a; color: #fff; }

/* ---------- 본문 컨테이너 ---------- */
.aa-container { max-width: 760px; margin: 0 auto; padding: 36px 20px 72px; }
.aa-container h1 { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 6px; }
.aa-container h2 {
	font-size: 19px; margin: 36px 0 12px; padding-left: 12px;
	border-left: 4px solid var(--aa-accent); letter-spacing: -.01em;
}
.aa-container p, .aa-container li { font-size: 15px; }
.aa-container ul { padding-left: 22px; }
.aa-container li { margin: 6px 0; }
.aa-crumb { font-size: 13px; margin-bottom: 4px; }
.aa-region { color: var(--aa-sub); margin-top: -2px; }

/* ---------- 가격 히어로 ---------- */
.aa-price-hero {
	border-radius: var(--aa-radius); padding: 22px 24px; margin: 18px 0;
	display: flex; flex-direction: column; gap: 3px; color: #fff;
	box-shadow: var(--aa-shadow-sm);
}
.aa-price-hero.aa-t1 { background: linear-gradient(135deg, var(--aa-t1), #167a42); }
.aa-price-hero.aa-t2 { background: linear-gradient(135deg, var(--aa-t2), #275d9b); }
.aa-price-hero.aa-t3 { background: linear-gradient(135deg, var(--aa-t3), #6a4daa); }
.aa-price-label { font-size: 13px; opacity: .9; }
.aa-price-value { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.aa-price-meta { font-size: 12.5px; opacity: .85; }

/* ---------- 정보/표/목록 ---------- */
.aa-info {
	display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14.5px;
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	padding: 18px 20px; box-shadow: var(--aa-shadow-sm);
}
.aa-info dt { color: var(--aa-sub); }
.aa-info dd { margin: 0; }

.aa-menu-table, .aa-index-table {
	width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px;
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	overflow: hidden; box-shadow: var(--aa-shadow-sm);
}
.aa-menu-table td, .aa-index-table td, .aa-index-table th {
	padding: 11px 16px; border-bottom: 1px solid var(--aa-line); text-align: left;
}
.aa-menu-table tr:last-child td, .aa-index-table tr:last-child td { border-bottom: 0; }
.aa-menu-table tr:hover td, .aa-index-table tbody tr:hover td { background: #fbf8f3; }
.aa-menu-table td:last-child, .aa-index-table td.aa-num { text-align: right; font-weight: 700; }
.aa-index-table thead th { color: var(--aa-sub); font-size: 12px; background: #fbf8f3; text-transform: uppercase; letter-spacing: .04em; }
/* 행 머리글(지역·카페명)은 머리글 톤이 아니라 본문 톤 — 열 하나만 음영지는 현상 방지 */
.aa-index-table tbody th { font-size: 14.5px; font-weight: 700; color: var(--aa-ink); background: transparent; }
/* 표 가로스크롤 래퍼 — 표는 온전한 table로 유지 (display:block 핵은 배경/정렬 깨짐) */
.aa-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aa-table-scroll .aa-index-table { min-width: max-content; width: 100%; }

.aa-history { padding-left: 20px; font-size: 14.5px; }
.aa-cafe-list { list-style: none; padding: 0; }
.aa-cafe-list li {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 13px 4px; border-bottom: 1px solid var(--aa-line);
}
.aa-cafe-list li:hover { background: #fbf8f3; }
.aa-pricetag { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aa-pricetag.aa-t1 { color: var(--aa-t1); background: var(--aa-t1-soft); padding: 3px 10px; border-radius: 999px; }
.aa-pricetag.aa-t2 { color: var(--aa-t2); background: var(--aa-t2-soft); padding: 3px 10px; border-radius: 999px; }
.aa-pricetag.aa-t3 { color: var(--aa-t3); background: var(--aa-t3-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------- 폼 (수집 요청 / 문의) ---------- */
.aa-request-box {
	margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--aa-line);
	border-radius: var(--aa-radius); font-size: 13.5px; background: var(--aa-surface);
}
.aa-request-box h2 { margin: 0 0 4px; font-size: 14.5px; border: 0; padding: 0; }
.aa-request-box input[type=text],
.aa-form input[type=text], .aa-form input[type=email], .aa-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--aa-line); border-radius: 10px;
	margin: 4px 0 12px; font-family: inherit; font-size: 14px; background: #fff;
	transition: border-color .15s ease;
}
.aa-request-box input:focus, .aa-form input:focus, .aa-form textarea:focus {
	border-color: var(--aa-accent); outline: none;
}
.aa-form label { display: block; font-weight: 600; font-size: 13.5px; }
.aa-request-box button, .aa-collect-btn, .aa-form button {
	background: var(--aa-accent); color: #fff; border: 0; border-radius: 10px;
	padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 14px;
	transition: background .15s ease, transform .1s ease;
}
.aa-request-box button:hover, .aa-collect-btn:hover, .aa-form button:hover { background: var(--aa-accent-deep); }
.aa-request-box button:active, .aa-collect-btn:active, .aa-form button:active { transform: scale(.97); }
.aa-request-box button:disabled, .aa-collect-btn:disabled, .aa-form button:disabled { opacity: .55; cursor: wait; }
.aa-request-msg { color: var(--aa-t1); font-weight: 700; margin-top: 8px; }

/* ---------- 푸터 ---------- */
.aa-footer { border-top: 1px solid var(--aa-line); background: #f5f0e8; margin-top: 0; }
.aa-footer-inner {
	max-width: 760px; margin: 0 auto; padding: 32px 20px 8px;
	display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.aa-footer-brand strong { font-size: 15px; }
.aa-footer-brand p { font-size: 12.5px; color: var(--aa-sub); margin: 6px 0 0; }
.aa-footer-nav { display: flex; flex-direction: column; gap: 6px; }
.aa-footer-nav a { font-size: 13px; color: var(--aa-ink); }
.aa-footer-copy {
	max-width: 760px; margin: 0 auto; padding: 12px 20px 28px;
	font-size: 11.5px; color: var(--aa-sub);
}
.aa-map-wrap ~ .aa-footer { display: none; } /* 지도 페이지에선 숨김 */
/* ---------- 광고 슬롯 (항상 "광고" 라벨, 남발 금지) ---------- */
.aa-ad {
	position: relative; display: flex; align-items: center; justify-content: center;
	background: #f3eee6; border: 1px dashed #ddd3c4; border-radius: 12px;
	color: #675d50; overflow: hidden;
}
.aa-ad-label {
	position: absolute; top: 5px; left: 9px; font-size: 10px; font-weight: 700;
	color: #675d50; letter-spacing: .08em;
}
.aa-ad-placeholder { font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.aa-ad--leaderboard { width: 728px; height: 90px; max-width: 100%; }
.aa-ad--responsive { width: 100%; min-height: 100px; margin: 28px 0 4px; }
.aa-ad-bar {
	position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
	z-index: 900; max-width: calc(100% - 24px);
	filter: drop-shadow(0 4px 14px rgba(43, 37, 33, .14));
}
@media (max-width: 900px) {
	.aa-ad-bar { display: none; } /* 모바일 지도에선 하단 시트와 충돌 → 지도 광고 미노출 */
}

/* ---------- 팝업 액션 버튼 ---------- */
.aa-popup .aa-popup-actions { margin-top: 12px; gap: 8px; }
.aa-popup .aa-popup-actions a {
	display: inline-block; background: var(--aa-accent); color: #fff;
	padding: 7px 12px; border-radius: 9px; font-weight: 700;
	transition: background .15s ease;
}
.aa-popup .aa-popup-actions a:hover { background: var(--aa-accent-deep); text-decoration: none; }
.aa-popup .aa-collect-btn {
	background: #fff; color: var(--aa-accent); border: 1.5px solid var(--aa-accent);
	padding: 6px 12px; border-radius: 9px;
}
.aa-popup .aa-collect-btn:hover { background: #f7f2ea; }

/* ---------- 문의 폼 카드 ---------- */
.aa-form {
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	padding: 26px 28px; box-shadow: var(--aa-shadow-sm); margin-top: 20px;
}
.aa-form label + label { margin-top: 6px; }
.aa-form button { min-width: 120px; }

/* ---------- 프리미엄(입점 광고) ---------- */
/* 도형을 회전시키지 않고(알약 모양이 뒤틀림) 그라데이션 각도만 애니메이션 →
   테두리 띠는 고정, 밝은 금색 빛이 테두리 선을 따라 흘러간다. */
@property --aa-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}
.aa-pin--ad span {
	position: relative; z-index: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.aa-pin--ad span::before {
	content: ''; position: absolute; inset: -6px; border-radius: 999px;
	padding: 4px; pointer-events: none;
	background: conic-gradient(from var(--aa-angle),
		#ffd75e 0deg,
		#fff6d8 40deg,
		#ffd75e 80deg,
		rgba(224, 161, 12, .3) 110deg,
		rgba(224, 161, 12, .3) 360deg);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	animation: aa-ad-sweep 1.6s linear infinite;
}
@keyframes aa-ad-sweep {
	to { --aa-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-pin--ad span::before { animation: none; }
}
.aa-ad-mini {
	font-style: normal; background: #fff; color: #a07d15;
	border-radius: 5px; padding: 0 4px; font-size: 9px; font-weight: 800;
	margin-right: 5px; vertical-align: 1px; letter-spacing: .04em;
}
.aa-popup-adbadge {
	display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
	background: #f7ecd2; color: #9c7b1e; padding: 2px 9px; border-radius: 999px;
	margin-bottom: 6px;
}
.aa-promo {
	background: #fbf6ea; border: 1px solid #f0e3c6; border-radius: 10px;
	padding: 9px 11px; font-size: 12.5px; margin: 8px 0; font-weight: 600;
}
.aa-premium-hero {
	background: #fbf6ea; border: 1px solid #f0e3c6; border-radius: var(--aa-radius);
	padding: 14px 18px; margin: 14px 0; font-size: 14.5px; font-weight: 600;
}

/* ---------- 팝업 레이아웃 안정화 ---------- */
.aa-popup-card, .aa-popup, .aa-popup * { white-space: normal; } /* 카카오 오버레이 nowrap 상속 차단 */
.aa-popup { width: 236px; word-break: keep-all; overflow-wrap: anywhere; }
.aa-popup h3 { padding-right: 20px; }
.aa-popup--ad .aa-popup-adbadge { display: inline-block; margin: 0 0 8px; }
.aa-popup-card { width: 284px; }
.aa-promo { word-break: keep-all; overflow-wrap: anywhere; }
.aa-popup img.emoji, .aa-promo img.emoji, .aa-container img.emoji {
	height: 1em !important; width: 1em !important;
	vertical-align: -0.1em; display: inline; border: 0; box-shadow: none;
}

/* ---------- 브랜드 시그니처 컬러 ---------- */
.aa-brand-dot {
	display: inline-block; width: 13px; height: 13px; border-radius: 5px;
	margin-right: 9px; vertical-align: -1.5px;
	border: 1px solid rgba(43, 37, 33, .12);
	box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .08);
}
.aa-brands-table td:first-child { font-weight: 600; }
/* 브랜드 행 틴트가 호버에 덮이지 않게 반투명 호버로 교체 */
.aa-brands-table tbody tr:hover td { background: rgba(43, 37, 33, .04); }

/* ---------- 폼: 셀렉트·체크박스 ---------- */
.aa-form select {
	width: 100%; padding: 11px 13px; border: 1px solid var(--aa-line); border-radius: 10px;
	margin: 4px 0 12px; font-family: inherit; font-size: 14px; background: #fff;
}
.aa-form select:focus { border-color: var(--aa-accent); outline: none; }
.aa-fieldset {
	border: 1px solid var(--aa-line); border-radius: 12px;
	padding: 12px 16px 14px; margin: 4px 0 14px;
}
.aa-fieldset legend { font-weight: 700; font-size: 13.5px; padding: 0 6px; }
.aa-check {
	display: inline-flex !important; align-items: center; gap: 6px;
	font-weight: 500 !important; font-size: 13.5px !important;
	margin: 4px 14px 4px 0;
}
.aa-check input { accent-color: var(--aa-accent); width: 15px; height: 15px; }

/* ---------- 구조화 신청 폼 ---------- */
.aa-form input[type=date], .aa-form input[type=url] {
	width: 100%; padding: 11px 13px; border: 1px solid var(--aa-line); border-radius: 10px;
	margin: 4px 0 12px; font-family: inherit; font-size: 14px; background: #fff;
}
.aa-form input[type=date]:focus, .aa-form input[type=url]:focus { border-color: var(--aa-accent); outline: none; }
.aa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aa-form-hint { font-size: 12px; color: var(--aa-sub); margin: -4px 0 4px; }
.aa-sub-field {
	margin: 6px 0 4px 24px; padding: 10px 14px 2px;
	background: #fbf8f3; border-radius: 10px; border: 1px solid var(--aa-line);
}
.aa-form .aa-fieldset { margin-bottom: 18px; }
@media (max-width: 520px) {
	.aa-form-row { grid-template-columns: 1fr; gap: 0; }
	.aa-sub-field { margin-left: 0; }
}

/* ---------- 기능 데모 (내 가게 홍보) ---------- */
.aa-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 8px; }
.aa-demo-grid > * { min-width: 0; } /* 그리드 아이템이 내용 폭으로 뷰포트를 밀어내지 않게 */
.aa-demo-grid .aa-demo-card:first-child { grid-column: 1 / -1; } /* ① 마커 데모는 가로 100% */
.aa-demo-card {
	background: var(--aa-surface); border: 1px solid var(--aa-line);
	border-radius: var(--aa-radius); padding: 16px; box-shadow: var(--aa-shadow-sm);
}
.aa-demo-card h3 { font-size: 14px; margin: 0 0 10px; border: 0; padding: 0; }
.aa-demo-card p { font-size: 12.5px; color: var(--aa-sub); margin: 10px 0 0; }
.aa-demo-stage {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 18px 8px; background: #f6f1e8; border-radius: 10px; min-height: 64px;
}
/* 의미 있는 2행: ① 일반→AD 변신 예시 ② 스타일 3종 — 행 안에서만 필요 시 줄바꿈 */
.aa-demo-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
/* 기간별 스타일 그리드 — 데모 안에서 기간↔마커 매핑을 한눈에 */
.aa-demo-periods {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px;
	width: 100%; margin-top: 4px; padding-top: 14px; border-top: 1px dashed #e2d9cb;
}
.aa-demo-period { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.aa-demo-period em { font-style: normal; font-size: 11.5px; color: var(--aa-sub); text-align: center; line-height: 1.35; }
.aa-demo-period em b { display: block; color: var(--aa-ink); font-size: 12.5px; }
@media (max-width: 640px) {
	.aa-demo-periods { grid-template-columns: repeat(2, 1fr); }
}
.aa-demo-stage .aa-pin { display: inline-block; }
.aa-demo-arrow { color: var(--aa-sub); font-weight: 800; }
.aa-demo-bubble {
	position: relative; background: #fff; border: 1px solid var(--aa-line);
	border-radius: 12px; padding: 12px 14px 10px; box-shadow: var(--aa-shadow-sm);
	font-size: 13px; margin-bottom: 12px;
}
.aa-demo-bubble::after {
	content: ''; position: absolute; bottom: -8px; left: 26px; width: 14px; height: 14px;
	background: #fff; border-right: 1px solid var(--aa-line); border-bottom: 1px solid var(--aa-line);
	transform: rotate(45deg);
}
.aa-demo-bubble .aa-popup-adbadge { display: inline-block; margin-bottom: 6px; }
.aa-demo-bubble strong { display: block; }
.aa-demo-menu { margin: 0; padding-left: 18px; font-size: 13px; }
.aa-demo-menu li { margin: 4px 0; }
@media (max-width: 680px) {
	.aa-demo-grid { grid-template-columns: 1fr; }
}

/* ---------- 컴팩트 폼 ---------- */
.aa-form--compact { padding: 18px 20px; }
.aa-form--compact input[type=text], .aa-form--compact input[type=email],
.aa-form--compact input[type=url], .aa-form--compact input[type=date],
.aa-form--compact select, .aa-form--compact textarea {
	padding: 8px 10px; margin: 2px 0 8px; font-size: 13.5px;
}
.aa-form--compact label { font-size: 12.5px; }
.aa-form--compact .aa-fieldset { padding: 10px 14px 4px; margin-bottom: 10px; }
.aa-form--compact .aa-fieldset legend { font-size: 12.5px; }
.aa-form--compact .aa-form-hint { margin: -2px 0 4px; }
.aa-form--compact .aa-sub-field { padding: 8px 12px 0; margin: 4px 0 6px 20px; }
.aa-form--compact .aa-chips { margin-bottom: 8px; }
.aa-agree-row { display: flex !important; align-items: center; margin: 10px 0 12px; font-size: 13px !important; }
.aa-agree-row a { text-decoration: underline; }

/* ---------- wpautop이 폼에 주입하는 br 무력화 (2열 그리드 보호) ---------- */
.aa-form br, .aa-chips br, .aa-demo-stage br { display: none; }

/* ---------- 폼 내부 칩(노출 기간) 업그레이드 ---------- */
.aa-form .aa-chips { gap: 8px; }
.aa-form .aa-chip {
	padding: 9px 16px; font-size: 13.5px; font-weight: 700; border-radius: 11px;
	border: 1.5px solid var(--aa-line); background: #fff; color: var(--aa-ink);
	transition: all .16s ease;
}
.aa-form .aa-chip:hover {
	border-color: var(--aa-accent); color: var(--aa-accent); background: #f8f3ec;
	transform: translateY(-1px); box-shadow: 0 3px 10px rgba(111, 78, 55, .16);
}
.aa-form .aa-chip.is-on {
	background: linear-gradient(135deg, var(--aa-accent), var(--aa-accent-deep));
	border-color: var(--aa-accent-deep); color: #fff;
	box-shadow: 0 3px 10px rgba(111, 78, 55, .3);
}
.aa-form .aa-chip.is-on:hover { transform: none; color: #fff; }

/* ---------- 제출 버튼 풀폭 ---------- */
.aa-form button[type=submit] {
	width: 100%; padding: 13px; font-size: 15px; border-radius: 12px; margin-top: 4px;
}

/* ---------- 메인 패널: 프리미엄 카페 노출 ---------- */
.aa-premium-box {
	background: #fbf6ea; border: 1px solid #f0e3c6; border-radius: 12px;
	padding: 12px 14px; margin-top: 16px;
}
.aa-premium-box h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.aa-premium-box .aa-popup-adbadge { margin: 0; }
.aa-premium-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.aa-premium-list li { padding: 7px 0 6px; border-top: 1px dashed #f0e3c6; }
.aa-premium-list li:first-child { border-top: 0; padding-top: 2px; }
.aa-premium-list a { font-weight: 700; }
.aa-premium-list .aa-num { float: right; font-weight: 800; }
.aa-premium-promo { margin: 2px 0 0; font-size: 12px; color: #9c7b1e; }

/* ---------- 프리미엄 히어로 강화 (광택 스윕) ---------- */
.aa-premium-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, #fdf7e7, #faeecb);
	border: 1.5px solid #ecd28c;
	box-shadow: 0 4px 18px rgba(242, 201, 76, .28);
	font-size: 15.5px; font-weight: 700;
}
.aa-premium-hero::after {
	content: ''; position: absolute; top: 0; bottom: 0; width: 70px; left: -100px;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .8), transparent);
	transform: skewX(-20deg);
	animation: aa-shine 3.2s ease-in-out infinite;
}
@keyframes aa-shine {
	0% { left: -100px; }
	45% { left: 110%; }
	100% { left: 110%; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-premium-hero::after { animation: none; }
}

/* ---------- 상세: 지도 보기·신고 버튼 ---------- */
.aa-map-focus-btn {
	display: inline-block; margin: 4px 0 2px;
	background: #fff; color: var(--aa-accent); border: 1.5px solid var(--aa-accent);
	padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
	transition: all .15s ease;
}
.aa-map-focus-btn:hover { background: var(--aa-accent); color: #fff; text-decoration: none; }
.aa-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aa-naver-btn { color: #087a3c; border-color: #087a3c; }
.aa-naver-btn:hover { background: #087a3c; color: #fff; }
.aa-request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.aa-request-actions .aa-collect-btn, .aa-request-actions .aa-closed-btn { width: 100%; }
.aa-closed-btn {
	background: #fff; color: #8a5a3b; border: 1.5px solid #d9c4ae;
	padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px;
	transition: all .15s ease;
}
.aa-closed-btn:hover { border-color: #8a5a3b; background: #faf4ec; }
.aa-closed-btn:disabled { opacity: .55; cursor: wait; }
.aa-request-note { font-size: 12px; color: var(--aa-sub); margin: 6px 0 0; }

/* ---------- 메인 패널 프리미엄 상세보기 버튼 ---------- */
.aa-premium-focus { cursor: pointer; }
.aa-premium-detail {
	display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700;
	background: #fff; border: 1px solid #ecd28c; color: #9c7b1e;
	padding: 3px 10px; border-radius: 999px; transition: all .15s ease;
}
.aa-premium-detail:hover { background: #9c7b1e; color: #fff; text-decoration: none; }

/* ---------- 프리미엄 마커 스타일 옵션 ---------- */
.aa-ad-style-rainbow span::before {
	background: conic-gradient(from var(--aa-angle),
		#ff5e5e, #ffb84d, #ffe74d, #5ed17c, #4da3ff, #b45eff, #ff5e5e);
}
.aa-ad-style-emerald span::before {
	background: conic-gradient(from var(--aa-angle),
		#0aa574, #7dedc8 35%, rgba(10, 165, 116, .2) 60%, rgba(10, 165, 116, .2) 85%, #0aa574);
}
.aa-ad-style-aurora span::before {
	background: conic-gradient(from var(--aa-angle),
		#39c6b5, #6a8dff 30%, #b45eff 55%, rgba(57, 198, 181, .2) 75%, #39c6b5);
}

/* ---------- 상세: 내 가게 홍보 CTA (풀폭) ---------- */
.aa-promote-cta {
	display: block; width: 100%; text-align: center; box-sizing: border-box;
	margin-top: 14px; padding: 14px;
	background: linear-gradient(120deg, #fdf7e7, #faeecb);
	border: 1.5px solid #ecd28c; border-radius: 12px;
	color: #8a6a12; font-weight: 800; font-size: 15px;
	transition: all .15s ease;
}
.aa-promote-cta:hover {
	background: linear-gradient(120deg, #faeecb, #f5e2a8);
	box-shadow: 0 4px 16px rgba(242, 201, 76, .3);
	text-decoration: none; color: #6f5408;
}

/* ---------- 기간별 스타일 도트 ---------- */
.aa-style-dot {
	display: inline-block; width: 14px; height: 14px; border-radius: 999px;
	margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(43, 37, 33, .12);
}

/* ---------- 얼리버드 박스 ---------- */
.aa-earlybird-box {
	background: linear-gradient(120deg, #fdf7e7, #faeecb);
	border: 1.5px solid #ecd28c; border-radius: var(--aa-radius);
	padding: 18px 22px; margin: 18px 0; box-shadow: 0 4px 18px rgba(242, 201, 76, .2);
}
.aa-earlybird-box h3 { margin: 0 0 10px; font-size: 16px; border: 0; padding: 0; }
.aa-earlybird-box ul { margin: 0; padding-left: 20px; }
.aa-earlybird-box li { margin: 5px 0; font-size: 14px; }
.aa-earlybird-box p { margin: 10px 0 0; font-size: 13px; color: #8a6a12; font-weight: 600; }

/* ---------- 모바일 전반 최적화 ---------- */
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
	/* iOS 포커스 확대 방지: 입력류 16px 고정 */
	input[type=text], input[type=email], input[type=url], input[type=date],
	select, textarea { font-size: 16px !important; }
	/* 표는 셀 축소 + (필요시) 래퍼 가로 스크롤 — 랭킹·브랜드 */
	/* 랭킹 표(5열): 최저~최고 열 숨기고 셀 여백 축소 → 한 화면에 들어오게 */
	.aa-index-table th:nth-child(4):nth-last-child(2),
	.aa-index-table td:nth-child(4):nth-last-child(2) { display: none; }
	.aa-index-table th, .aa-index-table td { padding: 8px 10px; font-size: 13.5px; }
	/* 필터 칩 탭 타깃 확대 */
	.aa-chip { padding: 8px 13px; min-height: 36px; }
	/* 팝업 카드가 화면을 넘지 않게 */
	.aa-popup { max-width: min(84vw, 280px); }
	/* 본문 컨테이너 여백 축소 */
	.aa-container { padding-left: 14px; padding-right: 14px; }
	.aa-form { padding: 18px 16px; }
}

/* ---------- 가격 제보 (크라우드소스) ---------- */
.aa-report-btn {
	background: var(--aa-t1); color: #fff; border: 0; border-radius: 10px;
	padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 14px;
	transition: background .15s ease, transform .1s ease;
}
.aa-report-btn:hover { background: #166f3f; }
.aa-report-btn:active { transform: scale(.97); }
.aa-request-box .aa-report-btn { background: var(--aa-t1); }
.aa-request-box .aa-report-btn:hover { background: #166f3f; }
.aa-request-actions .aa-report-btn { grid-column: 1 / -1; width: 100%; }
.aa-popup .aa-popup-actions { flex-wrap: wrap; }
.aa-popup .aa-report-btn { padding: 6px 12px; border-radius: 9px; font-size: 12px; }

.aa-report-form {
	margin-top: 12px; padding: 14px; border: 1px solid var(--aa-line);
	border-radius: 12px; background: var(--aa-bg); max-width: 420px;
}
.aa-report-title { font-weight: 700; font-size: 13.5px; margin: 0 0 8px; color: var(--aa-ink); }
.aa-report-form input[type=number] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--aa-line); border-radius: 10px;
	font-family: inherit; font-size: 15px; background: #fff; font-variant-numeric: tabular-nums;
	margin: 0;
}
.aa-report-form input[type=number]:focus { border-color: var(--aa-t1); outline: none; }
.aa-report-roles { display: flex; gap: 14px; margin: 10px 0; font-size: 13.5px; }
.aa-report-roles label { display: flex; align-items: center; gap: 5px; font-weight: 600; cursor: pointer; margin: 0; }
.aa-report-roles input { accent-color: var(--aa-t1); margin: 0; }
.aa-report-buttons { display: flex; gap: 8px; }
.aa-report-form .aa-report-submit {
	flex: 1; background: var(--aa-t1); color: #fff; border: 0; border-radius: 10px;
	padding: 9px 16px; font-weight: 700; cursor: pointer; font-size: 14px;
	transition: background .15s ease, transform .1s ease;
}
.aa-report-form .aa-report-submit:hover { background: #166f3f; }
.aa-report-form .aa-report-submit:active { transform: scale(.97); }
.aa-report-form .aa-report-submit:disabled { opacity: .55; cursor: wait; }
.aa-report-form .aa-report-cancel {
	flex: 0 0 auto; background: #fff; color: var(--aa-sub); border: 1px solid var(--aa-line);
	border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600;
	transition: border-color .15s ease;
}
.aa-report-form .aa-report-cancel:hover { border-color: var(--aa-sub); background: #fff; }
.aa-popup .aa-report-form { padding: 10px 12px; margin-top: 10px; }
.aa-popup .aa-report-form input[type=number] { font-size: 14px; padding: 8px 10px; }

/* ---------- 팝업 액션 3버튼 통일 (상세보기·가격제보·수집요청 — 동일 크기/형태, 역할별 색) ---------- */
.aa-popup .aa-popup-actions a,
.aa-popup .aa-report-btn,
.aa-popup .aa-collect-btn {
	display: inline-block; box-sizing: border-box;
	padding: 7px 12px; border-radius: 9px;
	font-size: 12px; font-weight: 700; line-height: 1.4;
	transition: background .15s ease, border-color .15s ease;
}
.aa-popup .aa-popup-actions a { background: var(--aa-accent); color: #fff; border: 1.5px solid var(--aa-accent); }
.aa-popup .aa-popup-actions a:hover { background: var(--aa-accent-deep); border-color: var(--aa-accent-deep); }
.aa-popup .aa-report-btn { background: var(--aa-t1); color: #fff; border: 1.5px solid var(--aa-t1); }
.aa-popup .aa-report-btn:hover { background: #166f3f; border-color: #166f3f; }
.aa-popup .aa-collect-btn { background: #fff; color: var(--aa-accent); border: 1.5px solid var(--aa-accent); }
.aa-popup .aa-collect-btn:hover { background: #f7f2ea; }

/* 상세 페이지 3버튼 동일 높이 (폰트·패딩·라디우스 일치) */
.aa-request-actions .aa-report-btn,
.aa-request-actions .aa-collect-btn,
.aa-request-actions .aa-closed-btn {
	padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.5;
}

/* ---------- 상세: 액션 2버튼 50/50 + 제보 폼 풀폭 ---------- */
.aa-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aa-detail-actions .aa-map-focus-btn { width: 100%; text-align: center; margin: 0; box-sizing: border-box; }
.aa-report-form { max-width: none; width: 100%; box-sizing: border-box; }
.aa-report-form input[type=tel] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--aa-line); border-radius: 10px;
	font-family: inherit; font-size: 14px; background: #fff; margin: 0 0 10px; box-sizing: border-box;
}
.aa-report-form input[type=tel]:focus { border-color: var(--aa-t1); outline: none; }

/* ---------- 가격 출처 배지 (사장님/손님 확인) ---------- */
.aa-src-badge {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .22); color: #fff; width: fit-content; margin-top: 5px;
}
.aa-popup .aa-src-badge { background: var(--aa-t1-soft); color: var(--aa-t1); padding: 2px 8px; margin: 2px 0 0; }

/* ---------- 관리자: 숨김 마커·버튼 ---------- */
.aa-pin--hidden { opacity: .5; filter: grayscale(.5); outline: 2px dashed #c0392b; outline-offset: 1px; border-radius: 12px; }
.aa-pin--hidden span { text-decoration: line-through; }
/* 관리자 전용: '제보 필요' 표시 마커 — 앰버 링 + 🙏 배지 (needs_report는 관리자에게만 전달됨) */
.aa-pin--needreport { position: relative; outline: 2px solid #f6a609; outline-offset: 2px; border-radius: 12px; }
.aa-pin--needreport::after {
	content: '🙏'; position: absolute; top: -12px; right: -11px; z-index: 3;
	font-size: 12px; line-height: 1; padding: 2px 2px 1px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
/* 관리자 전용: 자동 수집 실패 마커 — 빨간 링 + 느낌표 */
.aa-pin--collectfail { position: relative; box-shadow: 0 0 0 3px #dc2626; border-radius: 12px; }
.aa-pin--collectfail::before {
	content: '!'; position: absolute; top: -12px; left: -10px; z-index: 4;
	display: grid; place-items: center; width: 18px; height: 18px;
	border-radius: 50%; background: #dc2626; color: #fff;
	font-size: 12px; font-weight: 900; line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.aa-pin--collectresolved { position: relative; box-shadow: 0 0 0 3px #0f766e; border-radius: 12px; }
.aa-pin--collectresolved::before {
	content: '✓'; position: absolute; top: -12px; left: -10px; z-index: 4;
	display: grid; place-items: center; width: 18px; height: 18px;
	border-radius: 50%; background: #0f766e; color: #fff;
	font-size: 11px; font-weight: 900; line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.aa-admin-collect-fail {
	display: grid; gap: 3px; margin: 8px 0; padding: 9px 10px;
	border: 1px solid #f3a29a; border-left: 4px solid #dc2626; border-radius: 8px;
	background: #fff7f6; color: #7f1d1d; font-size: 11.5px; line-height: 1.4;
}
.aa-admin-collect-fail strong { color: #b91c1c; font-size: 12.5px; }
.aa-admin-collect-fail span { font-weight: 700; }
.aa-admin-collect-fail small { color: #7f1d1d; overflow-wrap: anywhere; }
.aa-admin-collect-fail time { color: #9f4a43; font-size: 10.5px; }
.aa-admin-collect-fail.is-resolved {
	border-color: #99d5cf; border-left-color: #0f766e;
	background: #f0fdfa; color: #115e59;
}
.aa-admin-collect-fail.is-resolved strong,
.aa-admin-collect-fail.is-resolved small { color: #115e59; }
.aa-admin-collect-fail.is-resolved time { color: #397b75; }
.aa-collect-resolve {
	justify-self: start; margin-top: 4px; padding: 5px 8px;
	border: 1px solid currentColor; border-radius: 6px; background: #fff;
	color: inherit; cursor: pointer; font-size: 11px; font-weight: 700;
}
.aa-collect-resolve:hover { background: rgba(255, 255, 255, .55); }
.aa-collect-resolve:disabled { cursor: wait; opacity: .55; }
.aa-hide-btn {
	display: inline-block; box-sizing: border-box; padding: 7px 12px; border-radius: 9px;
	font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer;
	background: #fff; color: #c0392b; border: 1.5px solid #c0392b;
	transition: background .15s ease;
}
.aa-hide-btn:hover { background: #fdf1ef; }
.aa-hide-btn:disabled { opacity: .55; cursor: wait; }

/* ---------- 제보 동의 체크박스 ---------- */
.aa-report-consent {
	display: block; position: relative; padding-left: 23px;
	font-size: 12px; line-height: 1.5; color: var(--aa-sub);
	margin: 0 0 10px; cursor: pointer; font-weight: 500; word-break: keep-all;
}
.aa-report-consent input { position: absolute; left: 0; top: 2px; accent-color: var(--aa-t1); }
.aa-report-consent a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 출처 뱃지 (상세보기 전용) — 아아가족/사장님/공식 확인 ---------- */
.aa-src-badge { position: relative; overflow: hidden; }
.aa-src-family { background: rgba(255, 255, 255, .25); color: #fff; }
.aa-src-owner { background: linear-gradient(100deg, #ffd76a, #ffbe3d); color: #5a3d00; }
.aa-src-admin { background: #fff; color: var(--aa-accent); }
.aa-src-owner::after, .aa-src-admin::after {
	content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
	animation: aa-badge-shine 3.2s ease-in-out infinite;
}
@keyframes aa-badge-shine {
	0% { left: -70%; }
	55% { left: 130%; }
	100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-src-owner::after, .aa-src-admin::after { animation: none; }
}

/* ---------- 관리자: 말풍선 가격 즉시 등록 ---------- */
.aa-admin-price { display: flex; gap: 6px; margin-top: 8px; }
.aa-admin-price input {
	flex: 1; min-width: 0; padding: 6px 10px; border: 1.5px solid var(--aa-accent);
	border-radius: 9px; font-family: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.aa-admin-price input:focus { outline: none; border-color: var(--aa-accent-deep); }
.aa-admin-price .aa-admin-save {
	flex: 0 0 auto; background: var(--aa-accent); color: #fff; border: 1.5px solid var(--aa-accent);
	border-radius: 9px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.aa-admin-price .aa-admin-save:hover { background: var(--aa-accent-deep); }
.aa-admin-price .aa-admin-save:disabled { opacity: .55; cursor: wait; }

/* ---------- 관리자: 카페 상세 즉시 등록 박스 ---------- */
.aa-admin-price-wrap {
	margin: 12px 0 4px; padding: 12px 14px; max-width: 420px;
	border: 1.5px dashed var(--aa-accent); border-radius: 12px; background: #fff;
}
.aa-admin-price-wrap .aa-report-title { margin: 0 0 8px; }
.aa-admin-price-wrap .aa-admin-price { margin-top: 0; }
.aa-admin-price-wrap .aa-admin-price input { font-size: 14px; padding: 9px 12px; }
.aa-admin-price-wrap .aa-admin-price .aa-admin-save { font-size: 13.5px; padding: 8px 18px; }

/* ---------- 관리자: 말풍선 네이버 검색 버튼 (통일 규격 + 네이버 그린) ---------- */
.aa-popup .aa-popup-actions a.aa-naver-btn { background: #fff; color: #087a3c; border-color: #087a3c; }
.aa-popup .aa-popup-actions a.aa-naver-btn:hover { background: #087a3c; color: #fff; border-color: #087a3c; }

/* ---------- 헤더 검색 ---------- */
.aa-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 340px; margin: 0 4px; }
.aa-search input[type=search] {
	width: 100%; box-sizing: border-box; padding: 8px 14px;
	border: 1px solid var(--aa-line); border-radius: 999px;
	font-family: inherit; font-size: 13.5px; background: #fff;
	-webkit-appearance: none; appearance: none;
}
.aa-search input[type=search]:focus { border-color: var(--aa-accent); outline: none; }
.aa-search-results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1300;
	background: #fff; border: 1px solid var(--aa-line); border-radius: 12px;
	box-shadow: var(--aa-shadow-md); overflow: hidden auto; max-height: 62vh;
}
.aa-sr-label { font-size: 11px; color: var(--aa-sub); font-weight: 700; padding: 8px 14px 2px; }
.aa-search-results a {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 8px 14px; font-size: 13.5px; color: var(--aa-ink);
}
.aa-search-results a:hover, .aa-search-results a:focus { background: var(--aa-bg); text-decoration: none; }
.aa-search-results a .aa-sr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-sr-price { flex: 0 0 auto; color: var(--aa-t1); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.aa-sr-empty { padding: 12px 14px; font-size: 13px; color: var(--aa-sub); }
@media (max-width: 640px) {
	.aa-search { max-width: none; margin: 0 6px; }
	.aa-search input[type=search] { font-size: 16px; padding: 6px 12px; } /* iOS 줌 방지 + 콤팩트 */
}

/* ---------- 검색 동네 항목: [지도]/[동네 페이지] 2택 ---------- */
.aa-sr-row {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 8px 14px; font-size: 13.5px; color: var(--aa-ink);
}
.aa-sr-row:hover { background: var(--aa-bg); }
.aa-sr-row .aa-sr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-sr-avg { color: var(--aa-t1); font-style: normal; font-weight: 700; font-size: 12px; }
.aa-sr-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.aa-sr-acts a, .aa-sr-map {
	display: inline-block; box-sizing: border-box; padding: 4px 10px; border-radius: 8px;
	font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer;
	border: 1px solid var(--aa-accent); background: #fff; color: var(--aa-accent);
	font-family: inherit; transition: background .15s ease;
}
.aa-sr-acts a:hover { background: #f7f2ea; text-decoration: none; }
.aa-sr-map { background: var(--aa-accent); color: #fff; }
.aa-sr-map:hover { background: var(--aa-accent-deep); }

/* ---------- 대시보드 배경: 뒷 지도가 보이도록 반투명 + 가독성용 약한 블러 (단일 정의) ---------- */
.aa-panel {
	background: rgba(252, 250, 246, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---------- 데스크톱: 헤더 검색 정중앙 (브랜드 좌 · 검색 중앙 · 내비 우) ---------- */
@media (min-width: 769px) {
	.aa-topbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
	/* 햄버거(≤1024)도 우측 칼럼에 고정 — 미지정 시 3열 시작점에 놓여 오른쪽이 크게 비었다 */
	.aa-nav-toggle { grid-column: 3; justify-self: end; }
	.aa-brand { grid-column: 1; justify-self: start; }
	.aa-search { grid-column: 2; justify-self: center; flex: none; width: 340px; max-width: 100%; margin: 0; }
	.aa-nav { grid-column: 3; justify-self: end; }
	.aa-popup { width: 286px; } /* 데스크톱 말풍선 +50px */
	.aa-popup-card { max-width: 322px; } /* 늘어난 .aa-popup(286)+패딩(32) 수용 — 메뉴 오버플로 방지 */
}

/* ---------- 상세: '제보 필요'(관리자 지정) → 손님 제보 유도 배너 ---------- */
.aa-report-cta {
	margin: 14px 0 6px; padding: 16px 18px;
	border: 1.5px solid var(--aa-t1); border-radius: 14px;
	background: linear-gradient(180deg, #f1faf4 0%, #ffffff 100%);
}
.aa-report-cta-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--aa-ink); }
.aa-report-cta-sub { margin: 4px 0 12px; font-size: 13.5px; color: var(--aa-sub); line-height: 1.55; }
.aa-report-cta .aa-report-btn { width: 100%; padding: 12px 18px; font-size: 15px; }

/* ---------- 관리자: '제보 필요' 토글 (말풍선 · 상세) — 앰버 ---------- */
.aa-needreport-btn {
	background: #fff; color: #b5730a; border: 1.5px solid #e0a53d; border-radius: 10px;
	padding: 7px 12px; font-size: 12px; font-weight: 700; line-height: 1.5;
	font-family: inherit; cursor: pointer; transition: background .15s ease;
}
.aa-needreport-btn:hover { background: #fdf6e9; }
.aa-needreport-btn.is-on { background: #f6a609; color: #fff; border-color: #f6a609; }
.aa-needreport-btn:disabled { opacity: .55; cursor: wait; }
.aa-popup .aa-needreport-btn { display: inline-block; box-sizing: border-box; padding: 7px 12px; border-radius: 9px; }
.aa-admin-price-wrap .aa-needreport-btn { margin-top: 10px; width: 100%; }

/* ---------- 사장님 가격 비공개 (optout): 상호는 남기고 가격만 가림 ---------- */
.aa-pin--optout span { background: #6b7280; } /* 슬레이트 — 미수집(t0 회색)과 구분되는 '비공개' */
.aa-price-hero.aa-t0 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.aa-price-private { font-size: 24px; }
.aa-optout-btn {
	background: #fff; color: #475569; border: 1.5px solid #94a3b8; border-radius: 10px;
	padding: 7px 12px; font-size: 12px; font-weight: 700; line-height: 1.5;
	font-family: inherit; cursor: pointer; transition: background .15s ease;
}
.aa-optout-btn:hover { background: #f1f5f9; }
.aa-optout-btn.is-on { background: #475569; color: #fff; border-color: #475569; }
.aa-optout-btn:disabled { opacity: .55; cursor: wait; }
.aa-popup .aa-optout-btn { display: inline-block; box-sizing: border-box; padding: 7px 12px; border-radius: 9px; }
.aa-admin-price-wrap .aa-optout-btn { margin-top: 10px; width: 100%; }

/* ---------- 제보 폼: 빠른 가격칩 + 참여 안내 (제보 참여 촉진) ---------- */
.aa-report-hint { margin: 2px 0 10px; font-size: 12.5px; color: var(--aa-sub); line-height: 1.5; }
.aa-price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.aa-price-chip {
	flex: 1 1 auto; min-width: 58px; padding: 9px 4px; border-radius: 10px;
	border: 1.5px solid var(--aa-line); background: #fff; color: var(--aa-ink);
	font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	font-variant-numeric: tabular-nums; transition: background .12s ease, border-color .12s ease;
}
.aa-price-chip:hover { border-color: var(--aa-t1); background: #f1faf4; }
.aa-price-chip.is-sel { background: var(--aa-t1); color: #fff; border-color: var(--aa-t1); }
.aa-popup .aa-price-chip { min-width: 44px; padding: 7px 3px; font-size: 12.5px; }

/* ---------- '아직 이 가격이에요' 원터치 확인 + 사회적 증거 ---------- */
.aa-confirm-box { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.aa-confirm-btn {
	align-self: flex-start; background: #fff; color: var(--aa-t1); border: 1.5px solid var(--aa-t1);
	border-radius: 10px; padding: 10px 18px; font-family: inherit; font-size: 14.5px; font-weight: 800;
	cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.aa-confirm-btn:hover { background: #f1faf4; }
.aa-confirm-btn:active { transform: scale(.97); }
.aa-confirm-btn.is-done { background: var(--aa-t1); color: #fff; border-color: var(--aa-t1); cursor: default; }
.aa-confirm-btn:disabled { opacity: .6; cursor: wait; }
.aa-confirm-social { font-size: 13px; font-weight: 700; color: var(--aa-t1); }
.aa-confirm-social--empty { color: var(--aa-sub); font-weight: 600; }
.aa-confirm-hint { margin: 0; font-size: 12.5px; color: var(--aa-sub); line-height: 1.5; }
.aa-popup .aa-confirm-btn { padding: 7px 14px; font-size: 12px; border-radius: 9px; }
.aa-popup .aa-popup-meta.aa-confirm-social { color: var(--aa-t1); font-weight: 700; }

/* 제보 '보내기' 비활성 (동의 미체크 등) */
.aa-report-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 참여형 반응 (아아 맛있어요 / 없어졌어요 / 있어요) ---------- */
.aa-vote-box { margin: 12px 0; }
.aa-vote-row { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-vote-btn {
	background: #fff; border: 1.5px solid var(--aa-line); border-radius: 999px;
	padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--aa-ink);
	cursor: pointer; transition: background .15s ease, border-color .15s ease; line-height: 1.4;
}
.aa-vote-btn b { font-variant-numeric: tabular-nums; }
.aa-vote-tasty:hover { background: #fff7e9; border-color: #e0a53d; color: #b5730a; }
.aa-vote-gone:hover { background: #fdecea; border-color: #c0392b; color: #c0392b; }
.aa-vote-here:hover { background: #f1faf4; border-color: var(--aa-t1); color: var(--aa-t1); }
.aa-vote-btn.is-done { background: #f4f1ec; color: var(--aa-sub); border-color: var(--aa-line); cursor: default; }
.aa-vote-btn:disabled { opacity: .7; cursor: wait; }
.aa-gone-social { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #c0392b; }
.aa-popup .aa-vote-row { margin-top: 8px; gap: 5px; }
.aa-popup .aa-vote-btn { padding: 5px 10px; font-size: 11.5px; }
.aa-popup .aa-gone-social { color: #c0392b; font-weight: 700; }

/* 프랜차이즈 '가격이 바뀌었어요' 변동 신고 */
.aa-vote-pricechg:hover { background: #f3f0fb; border-color: #7c5cc4; color: #6a4daa; }
.aa-pricechg-social { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #6a4daa; }
.aa-popup .aa-pricechg-social { color: #6a4daa; font-weight: 700; }

/* ============ 참여형 특징 태그 (vibe) + 말풍선 반응형 하드닝 (0.5.21) ============ */

/* 특징 태그 칩 클라우드 (팝업·상세 공용) */
.aa-tag-box { margin: 14px 0; }
.aa-tag-wrap { margin: 10px 0 2px; }
.aa-tag-lead { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--aa-ink); }
.aa-tag-lead span { display: block; font-weight: 400; font-size: 12px; color: var(--aa-sub); margin-top: 2px; }
.aa-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-tag-btn {
	display: inline-flex; align-items: center;
	background: #fff; border: 1.5px solid var(--aa-line); border-radius: 999px;
	padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--aa-ink);
	cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
	line-height: 1.35; max-width: 100%; box-sizing: border-box; white-space: nowrap;
}
.aa-tag-btn b { font-variant-numeric: tabular-nums; margin-left: 4px; color: var(--aa-t1); font-weight: 800; }
.aa-tag-btn.has-n { border-color: var(--aa-t1-soft); }
.aa-tag-btn:hover { background: var(--aa-bg); border-color: var(--aa-accent); }
.aa-tag-btn.is-on { background: var(--aa-t1-soft); border-color: var(--aa-t1); color: var(--aa-t1); }
.aa-tag-btn.is-on b { color: var(--aa-t1); }
.aa-tag-btn:disabled { opacity: .7; cursor: wait; }
/* 팝업 내 태그: 더 콤팩트 */
.aa-popup .aa-tag-wrap { margin: 8px 0 2px; }
.aa-popup .aa-tag-lead { font-size: 11.5px; margin-bottom: 5px; color: var(--aa-sub); font-weight: 700; }
.aa-popup .aa-tag-lead span { display: none; }
.aa-popup .aa-tag-row { gap: 5px; }
.aa-popup .aa-tag-btn { padding: 4px 9px; font-size: 11px; font-weight: 600; }

/* 말풍선 반응형 하드닝 — 내용이 카드 밖으로 넘치지 않게 (Kakao: .aa-popup-card>.aa-popup / Leaflet: .aa-popup) */
.aa-popup { width: min(86vw, 286px); box-sizing: border-box; }
.aa-popup-card { box-sizing: border-box; width: min(92vw, 322px); max-width: none; }
.aa-popup-card > .aa-popup { width: 100%; }
.aa-popup * { max-width: 100%; box-sizing: border-box; }
.aa-popup h3 { overflow-wrap: anywhere; }
.aa-popup .aa-popup-actions,
.aa-popup .aa-vote-row,
.aa-popup .aa-tag-row,
.aa-popup .aa-admin-price,
.aa-popup .aa-report-roles,
.aa-popup .aa-report-buttons,
.aa-popup .aa-price-chips { flex-wrap: wrap; }
.aa-popup .aa-admin-price { display: flex; gap: 6px; }
.aa-popup .aa-admin-price input { flex: 1 1 90px; min-width: 0; }

/* ============ 참여 감사 토스트 + 동네 랭킹 지역 필터 (0.5.22) ============ */

/* 참여 토스트 (아아가족) */
.aa-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(14px);
	z-index: 3000; max-width: min(92vw, 440px);
	background: #2b2521; color: #fff; text-align: center;
	padding: 12px 20px; border-radius: 999px;
	font-size: 13.5px; font-weight: 600; line-height: 1.45;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
	opacity: 0; pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}
.aa-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.aa-toast b { color: #ffd76a; font-weight: 800; }
@media (max-width: 640px) {
	.aa-toast { bottom: 20px; font-size: 12.5px; padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-toast { transition: opacity .22s ease; transform: translateX(-50%); }
	.aa-toast.is-show { transform: translateX(-50%); }
}

/* 동네 랭킹 지역 필터 (시도/구 칩) */
.aa-rank-filter { margin: 4px 0 20px; }
.aa-rank-scope { font-size: 12px; font-weight: 700; color: var(--aa-sub); margin-bottom: 7px; }
.aa-rank-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-rank-chips--gu { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--aa-line); }
.aa-rank-chip {
	display: inline-block; padding: 6px 13px; border-radius: 999px;
	border: 1.5px solid var(--aa-line); background: #fff; color: var(--aa-ink);
	font-size: 12.5px; font-weight: 600; text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.aa-rank-chip:hover { border-color: var(--aa-accent); background: var(--aa-bg); text-decoration: none; }
.aa-rank-chip.is-on { background: var(--aa-accent); border-color: var(--aa-accent); color: #fff; }
.aa-rank-chips--gu .aa-rank-chip { font-size: 12px; padding: 5px 11px; }
.aa-rank-head { margin: 2px 0 12px; font-size: 14px; color: var(--aa-ink); }
.aa-rank-head strong { font-weight: 800; }
.aa-rank-head span { color: var(--aa-sub); font-weight: 600; font-size: 12.5px; }

/* ---------- 0.6.0 아아가족 즉시 반영 — 말풍선 출처 라인 + 참여 유도 ---------- */
.aa-popup .aa-popup-meta.aa-src-line { font-weight: 700; color: var(--aa-t1); }
.aa-popup .aa-popup-meta.aa-src-line--owner { color: #a06b00; }
.aa-popup .aa-popup-meta.aa-src-line--admin { color: var(--aa-accent); }
.aa-popup .aa-popup-meta.aa-family-cta {
	font-weight: 700; color: #a06b00;
	background: rgba(246, 166, 9, .12); border-radius: 8px; padding: 5px 8px;
}

/* ---------- 요약 카드 (수집 현황 · 아아가족) ---------- */
.aa-stat-cards {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px;
}
.aa-stat-card {
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	padding: 14px 16px; box-shadow: var(--aa-shadow-sm); display: flex; flex-direction: column; gap: 3px;
}
.aa-stat-label { font-size: 12px; font-weight: 700; color: var(--aa-sub); letter-spacing: .02em; }
.aa-stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.aa-stat-note { font-size: 11.5px; color: var(--aa-sub); line-height: 1.45; }
@media (max-width: 640px) {
	.aa-stat-cards { grid-template-columns: 1fr; }
	.aa-stat-value { font-size: 23px; }
}

/* ---------- 비율 막대 ---------- */
.aa-bar {
	display: inline-block; width: 68px; height: 7px; border-radius: 999px;
	background: var(--aa-line); overflow: hidden; vertical-align: middle; flex-shrink: 0;
}
.aa-bar i { display: block; height: 100%; width: var(--aa-bar-w, 0%); border-radius: 999px; background: var(--aa-t1); }
.aa-bar--fam i { background: #f6a609; }

/* ---------- 지역 수집률 표 ---------- */
.aa-cov-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 12px; }
.aa-cov-crumb span { color: var(--aa-sub); }
.aa-cov-crumb strong { font-weight: 800; }
.aa-cov-table th[scope="row"] { font-weight: 700; white-space: nowrap; }
.aa-cov-rate { white-space: nowrap; }
.aa-cov-rate b { margin-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.aa-cov-when { color: var(--aa-sub); font-size: 13px; white-space: nowrap; }
.aa-cov-foot { color: var(--aa-sub); font-size: 12.5px; line-height: 1.6; margin-top: 10px; }
.aa-index-table td.aa-rank-no { color: var(--aa-sub); font-weight: 700; font-variant-numeric: tabular-nums; width: 46px; }

/* ---------- 업데이트 기록 카드 ---------- */
.aa-update-note {
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	padding: 16px 18px; margin: 12px 0; box-shadow: var(--aa-shadow-sm);
}
.aa-update-note h3 { font-size: 16.5px; margin: 0 0 6px; letter-spacing: -.01em; }
.aa-update-note p { margin: 4px 0; line-height: 1.65; }
.aa-update-meta { color: var(--aa-accent); font-size: 13.5px; }

/* ---------- 아아가족 랭킹 ---------- */
.aa-btn-rank { list-style: none; padding: 0; margin: 12px 0 0; }
.aa-btn-rank li {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 7px;
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: 12px;
	box-shadow: var(--aa-shadow-sm); font-size: 14px;
}
.aa-btn-rank-no { color: var(--aa-sub); font-weight: 800; width: 20px; font-variant-numeric: tabular-nums; }
.aa-btn-rank-label { flex: 1; font-weight: 700; }
.aa-btn-rank-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.aa-btn-rank-sub { color: var(--aa-sub); font-size: 12px; white-space: nowrap; }
.aa-fam-region { color: var(--aa-sub); font-size: 13px; white-space: nowrap; }
.aa-fam-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.aa-fam-tag {
	display: inline-block; padding: 3px 8px; border-radius: 999px;
	background: var(--aa-bg); border: 1px solid var(--aa-line); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.aa-family-empty {
	background: var(--aa-bg); border: 1.5px dashed var(--aa-line); border-radius: var(--aa-radius);
	padding: 18px 20px; margin: 18px 0 4px;
}
.aa-family-empty p { margin: 4px 0; }
.aa-family-cta-btn {
	display: inline-block; margin-top: 8px; padding: 9px 16px; border-radius: 10px;
	background: var(--aa-accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.aa-family-cta-btn:hover { background: var(--aa-accent-deep); text-decoration: none; color: #fff; }
@media (max-width: 640px) {
	.aa-btn-rank li { flex-wrap: wrap; gap: 7px; }
	.aa-btn-rank-label { flex: 1 1 100%; }
	.aa-bar { width: 56px; }
}

/* 표 머리글은 줄바꿈 금지 — '순위'가 '순/위'로 쪼개지는 것 방지 (가로 스크롤 래퍼가 폭을 흡수) */
.aa-index-table thead th { white-space: nowrap; }

/* ---------- 지도 중앙 확대 안내 ---------- */
.aa-map-hint {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px;
	max-width: min(320px, calc(100% - 32px));
	padding: 14px 18px; border: 0; border-radius: 16px;
	background: rgba(26, 21, 18, .86); color: #fff;
	font-size: 13.5px; font-weight: 600; line-height: 1.5; text-align: center;
	box-shadow: 0 8px 28px rgba(26, 21, 18, .28);
	pointer-events: none; cursor: default;
	-webkit-tap-highlight-color: transparent;
}
.aa-map-hint[hidden] { display: none; }
.aa-map-hint.is-action { pointer-events: auto; cursor: pointer; }
.aa-map-hint-cta {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	background: #fff; color: var(--aa-accent-deep); font-size: 13.5px; font-weight: 800;
}
.aa-map-hint.is-action:hover .aa-map-hint-cta,
.aa-map-hint.is-action:active .aa-map-hint-cta { background: #f3ece2; }

/* ---------- 랭킹 지역 칩: 전국 / 시·도 / 시·군·구 3줄 ---------- */
.aa-rank-chips + .aa-rank-chips { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--aa-line); }
.aa-rank-chips--sido .aa-rank-chip { font-size: 12px; padding: 5px 11px; }

/* ---------- 아아가족 표: 기본 가운데, 버튼 목록만 왼쪽 ---------- */
.aa-index-table.aa-center-table th,
.aa-index-table.aa-center-table td,
.aa-index-table.aa-center-table td.aa-num,
.aa-index-table.aa-center-table td.aa-rank-no { text-align: center; }
.aa-index-table.aa-center-table th.aa-col-tags,
.aa-index-table.aa-center-table td.aa-fam-tags { text-align: left; }
.aa-index-table.aa-center-table td.aa-fam-tags { justify-content: flex-start; }
.aa-index-table.aa-center-table td.aa-fam-region { text-align: center; }

@media (max-width: 640px) {
	/* 모바일은 하단 시트가 지도 아래쪽을 덮어 안내가 가리지 않도록 살짝 위로 */
	.aa-map-hint { top: 38%; padding: 12px 16px; font-size: 13px; }
}

/* 태블릿(≤1024)은 햄버거로 전환되므로, 그 위 폭에서는 메뉴가 두 줄로 접히지 않게 압축 */
@media (min-width: 1025px) and (max-width: 1400px) {
	.aa-nav { flex-wrap: nowrap; gap: 2px; }
	.aa-nav a { padding: 6px 9px; font-size: 13.5px; white-space: nowrap; }
	.aa-search { max-width: 300px; }
}

/* ---------- 404 ---------- */
.aa-404-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 8px; }
.aa-404-card {
	display: flex; flex-direction: column; gap: 3px; padding: 16px 18px;
	background: var(--aa-surface); border: 1px solid var(--aa-line); border-radius: var(--aa-radius);
	box-shadow: var(--aa-shadow-sm); color: var(--aa-ink); text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}
.aa-404-card:hover { border-color: var(--aa-accent); text-decoration: none; transform: translateY(-1px); }
.aa-404-card strong { font-size: 15.5px; font-weight: 800; }
.aa-404-card span { font-size: 12.5px; color: var(--aa-sub); }
.aa-404-search { color: var(--aa-sub); font-size: 13px; margin-top: 14px; }
@media (max-width: 640px) {
	.aa-404-links { grid-template-columns: 1fr; }
}
