/* Seoul Glow Korea Local Guide. Uses the V2 theme tokens when present, brand fallbacks otherwise. */
.sgg {
	--sgg-ink: var(--ink, #17161D);
	--sgg-soft: var(--ink-soft, #4A4754);
	--sgg-mute: var(--ink-mute, #837F8C);
	--sgg-accent: var(--gold, #C7A05A);
	--sgg-accent-deep: var(--gold-deep, #A8823F);
	--sgg-cream: var(--cream2, #FBF6F0);
	--sgg-line: var(--line, #EBE1D4);
	/* Break out of the theme's 760px .prose column: up to 1600px wide, 24px gutters. */
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1600px, calc(100vw - 48px));
	max-width: none;
	margin: 0;
	padding: 24px 16px 32px;
	font-family: var(--sans, Inter, system-ui, -apple-system, sans-serif);
	color: var(--sgg-ink);
	box-sizing: border-box;
}
.sgg *, .sgg *::before, .sgg *::after { box-sizing: inherit; }
.sgg-label { margin: 0 0 6px; font-size: .69rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--sgg-accent-deep); }
.sgg-title { margin: 0 0 18px; font-family: var(--serif, Fraunces, Georgia, serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
/* Saved-places map */
.sgg-map { margin: 0 0 32px; }
.sgg-area { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.sgg-select {
	font: inherit; font-size: 15px; font-weight: 600; padding: 10px 40px 10px 16px; min-width: 260px; max-width: 100%;
	color: var(--sgg-ink); background: #fff; border: 1px solid var(--sgg-line); border-radius: 999px; cursor: pointer;
}
.sgg-select:focus { outline: 2px solid var(--sgg-accent); outline-offset: 1px; }
.sgg-map-body { display: grid; gap: 12px; }
.sgg-frame { position: relative; border: 1px solid var(--sgg-line); background: var(--sgg-cream); }
.sgg-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.sgg-open {
	position: absolute; right: 10px; bottom: 28px; padding: 8px 12px; font-size: 13px; font-weight: 600;
	background: var(--sgg-accent); color: #fff; text-decoration: none; border-radius: 999px;
}
.sgg-open:hover { background: var(--sgg-accent-deep); color: #fff; }
.sgg .sgg-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sgg .sgg-places li { margin: 0; padding: 0; }
.sgg .sgg-places li::before { content: none; }
.sgg .sgg-places li[hidden] { display: none; }
.sgg-place {
	display: block; width: 100%; text-align: left; font: inherit; padding: 12px 14px; cursor: pointer;
	height: 100%; background: #fff; color: var(--sgg-ink); border: 1px solid var(--sgg-line);
}
.sgg-place { display: flex; gap: 12px; align-items: flex-start; }
.sgg-place .sgg-thumb { display: none; flex: 0 0 88px; width: 88px; height: 88px; overflow: hidden; background: var(--sgg-cream); }
.has-photo .sgg-place .sgg-thumb { display: block; }
.sgg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgg-text { display: block; min-width: 0; }
.sgg .sgg-places li { position: relative; }
.sgg-credit { position: absolute; left: 14px; bottom: 6px; width: 88px; font-size: 9px; line-height: 1.2; color: var(--sgg-mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.has-photo .sgg-place { padding-bottom: 22px; }
.sgg-place strong { display: block; font-size: 15px; }
.sgg-place span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--sgg-soft); }
.sgg-place:hover { background: var(--sgg-cream); }
.sgg-place[aria-pressed="true"] { background: var(--sgg-cream); border-color: var(--sgg-accent); }
.sgg .sgg-sub { margin: 0 auto 12px; font-family: var(--serif, Fraunces, Georgia, serif); font-weight: 400; font-size: 1.5rem; }
@media (min-width: 1000px) {
	.sgg-map-body { grid-template-columns: minmax(0, 1fr) 420px; }
	.sgg-frame iframe { height: 620px; }
	.sgg .sgg-places { grid-template-columns: 1fr; align-content: start; max-height: 622px; overflow-y: auto; }
}
/* Chat stays at a readable width under the wide map. */
.sgg-sub, .sgg-log, .sgg-chips, .sgg-form, .sgg-foot { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
	.sgg-frame iframe { height: 320px; }
	.sgg .sgg-places { grid-template-columns: 1fr; }
}
.sgg-log {
	height: min(60vh, 520px);
	overflow-y: auto;
	padding: 16px;
	background: var(--sgg-cream);
	border: 1px solid var(--sgg-line);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sgg-msg { max-width: 88%; padding: 10px 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.sgg-msg p { margin: 0 0 6px; }
.sgg-msg p:last-child { margin-bottom: 0; }
.sgg-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.sgg-msg li { margin-bottom: 6px; }
.sgg-msg a { color: var(--sgg-accent-deep); text-decoration: underline; }
.sgg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--sgg-line); }
.sgg-user { align-self: flex-end; background: var(--sgg-ink); color: #fff; }
.sgg-wait { color: var(--sgg-mute); font-style: italic; }
.sgg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sgg-chip {
	font: inherit; font-size: 13px; padding: 7px 12px; cursor: pointer;
	background: #fff; color: var(--sgg-ink); border: 1px solid var(--sgg-line); border-radius: 999px;
}
.sgg-chip:hover { border-color: var(--sgg-accent); }
.sgg-form { display: flex; gap: 8px; }
.sgg-input {
	flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px;
	border: 1px solid var(--sgg-line); background: #fff; color: var(--sgg-ink);
}
.sgg-input:focus { outline: 2px solid var(--sgg-accent); outline-offset: -1px; }
.sgg-send {
	font: inherit; font-weight: 600; padding: 0 20px; cursor: pointer;
	background: var(--sgg-accent); color: #fff; border: 0;
}
.sgg-send:hover { background: var(--sgg-accent-deep); }
.sgg-send:disabled { opacity: .5; cursor: default; }
.sgg-foot { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--sgg-mute); }
.sgg-foot a { color: inherit; }
