/* JGG Places — place cards in articles (2.12): the "JGG Places" block and [jgg_places].
 * Same rules as the place page: Geist / Geist Mono, black + yellow, hard edges, tokens for dark mode.
 * Selectors are a little heavier than usual so Foxiz's article styles (lists, links, image corners) can't win.
 */

.jggp-pc {
	--pc-yellow: #FEED2A;
	--pc-black: #000;
	--pc-ink: #000;
	--pc-text: #1f1f1f;
	--pc-muted: #666;
	--pc-line: #e2e2e2;
	--pc-panel: #f7f7f7;
	--pc-bg: #fff;
	--pc-badge-bg: #000;
	--pc-badge-fg: var(--pc-yellow);
	--pc-open: #13A160;
	--pc-shut: #E61818;
	--pc-sans: "Geist JGGP", "Geist", sans-serif;
	--pc-mono: "Geist Mono JGGP", "Geist Mono", monospace;
	font-family: var(--pc-sans);
	color: var(--pc-text);
	-webkit-font-smoothing: antialiased;
}
[data-theme="dark"] .jggp-pc {
	--pc-ink: #fff;
	--pc-text: #e6e6e6;
	--pc-muted: #a3a7ad;
	--pc-line: #33373d;
	--pc-panel: #22262b;
	--pc-bg: #191c20;
	--pc-badge-bg: var(--pc-yellow);
	--pc-badge-fg: #000;
}

/* ---------- Reset (beats article list / link / image styles) ---------- */
ul.jggp-pc, ol.jggp-pc {
	list-style: none !important;
	margin: 32px 0 !important;
	padding: 0 !important;
	counter-reset: none;
}
.jggp-pc > li.jggp-pc__item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}
.jggp-pc > li.jggp-pc__item::before,
.jggp-pc > li.jggp-pc__item::marker { content: none !important; display: none !important; }
.jggp-pc a.jggp-pc__link,
.jggp-pc a.jggp-pc__link:hover,
.jggp-pc a.jggp-pc__link:focus {
	display: grid;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
	background-image: none !important;
}
.jggp-pc a.jggp-pc__link {
	font-weight: 400; /* Foxiz makes links in articles bold; the card is one link, so it resets that here and each piece sets its own weight. */
	font-style: normal;
	text-transform: none;
	letter-spacing: normal;
}
.jggp-pc a.jggp-pc__link { font-size: 16px; line-height: 1.5; }
/* Set on the inner box too, so even an !important theme rule on links can't reach the text (children don't inherit what they set themselves). */
.jggp-pc a.jggp-pc__link > .jggp-pc__body { font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: normal; text-transform: none; font-style: normal; }
.jggp-pc a.jggp-pc__link .jggp-pc__desc, .jggp-pc a.jggp-pc__link .jggp-pc__area, .jggp-pc a.jggp-pc__link .jggp-pc__eyebrow, .jggp-pc a.jggp-pc__link .jggp-pc__meta { font-weight: 400; }
.jggp-pc a.jggp-pc__link .jggp-pc__area { font-weight: 600; }
.jggp-pc a.jggp-pc__link .jggp-pc__desc { font-weight: 450; } /* A touch heavier than regular (Geist is a variable font). */
.jggp-pc a.jggp-pc__link:focus-visible { outline: 2px solid var(--pc-ink); outline-offset: 2px; }
.jggp-pc .jggp-pc__img { display: block; position: relative; overflow: hidden; background: var(--pc-panel); }
.jggp-pc .jggp-pc__img img {
	position: absolute; inset: 0;
	width: 100% !important; height: 100% !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important;
	border-radius: 0 !important; box-shadow: none !important;
	object-fit: cover;
	transition: transform .35s ease;
}
.jggp-pc a.jggp-pc__link:hover .jggp-pc__img img { transform: scale(1.03); }
.jggp-pc .jggp-pc__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ---------- Shared pieces ---------- */
.jggp-pc .jggp-pc__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--pc-mono); font-size: 11px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-muted); }
.jggp-pc a.jggp-pc__link .jggp-pc__badge { font-weight: 600; }
.jggp-pc a.jggp-pc__link .jggp-pc__title { font-weight: 700; }
.jggp-pc a.jggp-pc__link .jggp-pc__ja { font-weight: 500; }
.jggp-pc a.jggp-pc__link .jggp-pc__eyebrow, .jggp-pc a.jggp-pc__link .jggp-pc__eyebrow > span:not(.jggp-pc__badge) { text-transform: uppercase; letter-spacing: .04em; }
.jggp-pc a.jggp-pc__link .jggp-pc__k { text-transform: uppercase; letter-spacing: .04em; }
.jggp-pc a.jggp-pc__link .jggp-pc__open, .jggp-pc a.jggp-pc__link .jggp-pc__open *, .jggp-pc a.jggp-pc__link .jggp-pc__cost { font-weight: 600; }
.jggp-pc a.jggp-pc__link .jggp-pc__cost .jggp-pc__k { font-weight: 600; }
.jggp-pc a.jggp-pc__link .jggp-pc__cta, .jggp-pc a.jggp-pc__link .jggp-pc__n { font-weight: 600; }
.jggp-pc a.jggp-pc__link .jggp-pc__status { text-transform: uppercase; letter-spacing: .04em; }
.jggp-pc .jggp-pc__badge { background: var(--pc-badge-bg); color: var(--pc-badge-fg); padding: 4px 7px 3px; font-weight: 600; }
.jggp-pc .jggp-pc__sponsor { color: var(--pc-muted); border: 1px solid var(--pc-line); padding: 3px 6px 2px; }
.jggp-pc .jggp-pc__draft { color: #8a5b00; background: #fcf9e8; padding: 3px 6px 2px; text-transform: none; letter-spacing: 0; font-family: var(--pc-sans); font-size: 12px; }
.jggp-pc .jggp-pc__title { display: block; font-family: var(--pc-sans); font-weight: 700; color: var(--pc-ink); letter-spacing: -.01em; line-height: 1.2; }
.jggp-pc .jggp-pc__ja { font-weight: 400; font-size: .7em; color: var(--pc-muted); margin-left: 4px; letter-spacing: 0; }
.jggp-pc .jggp-pc__desc {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	font-size: 15px; line-height: 1.55; color: var(--pc-text);
}
.jggp-pc .jggp-pc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-family: var(--pc-mono); font-size: 12px; line-height: 1.4; color: var(--pc-text); }
.jggp-pc .jggp-pc__meta:empty { display: none; }
.jggp-pc .jggp-pc__k { color: var(--pc-muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 4px; }
.jggp-pc .jggp-pc__open { display: inline-flex; align-items: flex-start; gap: 7px; }
.jggp-pc .jggp-pc__open .jggp-pc__dot { margin-top: .32em; }
.jggp-pc .jggp-pc__open[hidden] { display: none; }
.jggp-pc .jggp-pc__dot { width: 8px; height: 8px; background: var(--pc-muted); flex: none; }
.jggp-pc .jggp-pc__open.is-open .jggp-pc__dot { background: var(--pc-open); }
.jggp-pc .jggp-pc__open.is-closed .jggp-pc__dot { background: var(--pc-shut); }
.jggp-pc .jggp-pc__status.is-shut { color: var(--pc-shut); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.jggp-pc .jggp-pc__rating span { color: var(--pc-muted); }
.jggp-pc .jggp-pc__eyebrow .jggp-pc__rating { color: var(--pc-ink); letter-spacing: 0; }
.jggp-pc .is-closed-down .jggp-pc__img img { filter: grayscale(1); opacity: .7; }
.jggp-pc .jggp-pc__cta {
	align-self: flex-start;
	margin-top: 4px;
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--pc-sans); font-size: 17px; font-weight: 600; letter-spacing: -.005em;
	color: var(--pc-ink);
	padding: 0 0 3px;
	border-bottom: 2px solid var(--pc-ink);
	transition: border-color .2s ease;
}
.jggp-pc .jggp-pc__cta svg { width: 15px; height: 15px; transition: transform .2s ease; }
.jggp-pc a.jggp-pc__link:hover .jggp-pc__cta { border-color: var(--pc-yellow); }
.jggp-pc a.jggp-pc__link:hover .jggp-pc__cta svg { transform: translate(2px, -2px); }

/* ---------- Feature: one wide card ---------- */
.jggp-pc--feature { display: grid; gap: 20px; container-type: inline-size; container-name: jggp-feature; }
.jggp-pc--feature a.jggp-pc__link {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* Photo 40%. */
	border: 1px solid var(--pc-line);
	background: var(--pc-bg);
	transition: border-color .2s ease;
}
.jggp-pc--feature a.jggp-pc__link:hover { border-color: var(--pc-ink); }
.jggp-pc--feature .jggp-pc__img { min-height: 220px; } /* Fills its column, as tall as the text beside it. */
/* Mockup look at article size (2.12.2). */
.jggp-pc--feature .jggp-pc__body { padding: 22px 26px; gap: 9px; justify-content: center; }
.jggp-pc--feature .jggp-pc__eyebrow { gap: 6px 16px; font-size: 12px; color: #555; }
.jggp-pc--feature .jggp-pc__badge { padding: 4px 8px 3px; font-size: 12px; }
.jggp-pc--feature .jggp-pc__title { font-size: 23px; letter-spacing: -.015em; line-height: 1.2; }
.jggp-pc--feature .jggp-pc__ja { font-size: 15px; margin-left: 8px; letter-spacing: 0; }
.jggp-pc--feature .jggp-pc__desc { font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; }
.jggp-pc--feature .jggp-pc__meta { gap: 4px 18px; font-size: 12.5px; color: var(--pc-ink); }
.jggp-pc--feature .jggp-pc__k { font-size: 12px; margin-right: 8px; color: var(--pc-muted); }
.jggp-pc--feature .jggp-pc__open { gap: 8px; }
.jggp-pc--feature .jggp-pc__dot { width: 9px; height: 9px; }
.jggp-pc--feature .jggp-pc__open .jggp-pc__dot { margin-top: .25em; }
.jggp-pc--feature .jggp-pc__cta { font-size: 15px; gap: 7px; margin-top: 4px; }
.jggp-pc--feature .jggp-pc__cta svg { width: 12px; height: 12px; }

/* Narrow card (phones, sidebars): photo on top. */
@container jggp-feature (max-width: 560px) {
	.jggp-pc--feature a.jggp-pc__link { grid-template-columns: minmax(0, 1fr); }
	.jggp-pc--feature .jggp-pc__img { aspect-ratio: 16 / 10; min-height: 0; }
	.jggp-pc--feature .jggp-pc__body { padding: 16px 16px 18px; }
	.jggp-pc--feature .jggp-pc__title { font-size: 21px; }
}

/* ---------- List: numbered city-guide list ---------- */
.jggp-pc--list { border-top: 1px solid var(--pc-line); }
.jggp-pc--list > li.jggp-pc__item { border-bottom: 1px solid var(--pc-line) !important; }
.jggp-pc--list a.jggp-pc__link {
	grid-template-columns: 32px 112px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 18px 8px 18px 0;
	transition: background-color .2s ease;
}
.jggp-pc--list a.jggp-pc__link:hover { background: var(--pc-panel); }
.jggp-pc--list .jggp-pc__n {
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	background: var(--pc-badge-bg); color: var(--pc-badge-fg);
	font-family: var(--pc-mono); font-size: 14px; font-weight: 600;
}
.jggp-pc--list .jggp-pc__img { aspect-ratio: 1; }
.jggp-pc--list .jggp-pc__title { font-size: 19px; }
.jggp-pc--list .jggp-pc__desc { -webkit-line-clamp: 2; font-size: 14.5px; }

/* ---------- Grid: photo cards ---------- */
.jggp-pc--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.jggp-pc--grid a.jggp-pc__link { grid-template-rows: auto 1fr; gap: 12px; }
.jggp-pc--grid .jggp-pc__img { aspect-ratio: 4 / 3; }
.jggp-pc--grid .jggp-pc__title { font-size: 18px; }
.jggp-pc--grid .jggp-pc__area { display: block; width: 100%; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
	.jggp-pc--list a.jggp-pc__link { grid-template-columns: 28px 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
	.jggp-pc--list .jggp-pc__n { width: 28px; height: 28px; font-size: 13px; }
	.jggp-pc--list .jggp-pc__title { font-size: 17px; }
	.jggp-pc--list .jggp-pc__desc { display: none; }
	.jggp-pc--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Editor preview: nothing to show yet. */
.jggp-pc-empty { padding: 20px; border: 1px dashed #c3c4c7; color: #50575e; font-size: 14px; }

/* ---------- Block editor: the place picker ---------- */
.jggp-pick { display: grid; gap: 10px; width: 100%; text-align: left; }
.jggp-block__edit { margin-bottom: 12px; padding: 12px; border: 1px solid #dcdcde; background: #fff; }
.jggp-pick__chosen { display: grid; gap: 4px; }
.jggp-pick__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px; background: #f6f7f7; }
.jggp-pick__row.is-missing { background: #fcf0f1; }
.jggp-pick__thumb { width: 40px; height: 40px; object-fit: cover; display: block; background: #dcdcde; }
.jggp-pick__text { display: grid; min-width: 0; font-size: 13px; line-height: 1.35; }
.jggp-pick__text strong, .jggp-pick__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jggp-pick__text span { color: #646970; font-size: 12px; }
.jggp-pick__status { font-style: normal; font-weight: 400; color: #8a5b00; }
.jggp-pick__actions { display: flex; }
.jggp-pick__results { display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.jggp-pick__result { all: unset; cursor: pointer; display: block; }
.jggp-pick__result .jggp-pick__row { background: #fff; border: 1px solid #dcdcde; }
.jggp-pick__result:hover .jggp-pick__row, .jggp-pick__result:focus-visible .jggp-pick__row { border-color: #000; }
.jggp-pick__result.is-on { cursor: default; opacity: .55; }
.jggp-pick__add { font-size: 12px; font-weight: 600; padding: 0 6px; }
.jggp-block__hint { margin: 8px 0 0; color: #646970; font-size: 12px; }
.jggp-pick__none { margin: 0; color: #646970; font-size: 13px; }
.jggp-block .components-placeholder__fieldset { display: block; }
