/* Plates & Spaces guide – matches the original guide design. Everything is scoped to .psp-guide
   so your theme's styles don't change the cards, and the cards don't change your theme. */
.psp-guide {
	--psp-bg: hsl(40 20% 97%);
	--psp-fg: hsl(30 10% 12%);
	--psp-muted: hsl(30 8% 50%);
	--psp-soft: hsl(30 8% 55%);
	--psp-card: hsl(35 25% 95%);
	--psp-card-hover: hsl(35 25% 92%);
	--psp-img-bg: hsl(35 20% 90%);
	--psp-border: hsl(35 15% 88%);
	--psp-display: "Cormorant Garamond", Georgia, serif;
	--psp-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--psp-bg);
	color: var(--psp-fg);
	font-family: var(--psp-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.psp-guide *, .psp-guide *::before, .psp-guide *::after { box-sizing: border-box; }
.psp-guide h1, .psp-guide h2, .psp-guide h3, .psp-guide p, .psp-guide ul, .psp-guide li { margin: 0; padding: 0; border: 0; background: none; letter-spacing: normal; text-transform: none; }
.psp-guide ul { list-style: none; }
.psp-guide a { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.psp-guide img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.psp-guide button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; line-height: inherit; border-radius: 0; }
.psp-guide button:hover, .psp-guide button:focus { background: none; color: inherit; }
.psp-guide a:focus-visible, .psp-guide button:focus-visible { outline: 2px solid var(--psp-fg); outline-offset: 2px; }

.psp-container { max-width: 800px; margin: 0 auto; padding: 32px 20px 64px; }
.psp-embed .psp-container { padding: 24px 20px; }
.psp-display { font-family: var(--psp-display) !important; }
.psp-label { font-size: 11px; font-weight: 500; letter-spacing: 0.15em !important; text-transform: uppercase !important; color: var(--psp-muted); }
.psp-muted { color: var(--psp-muted); font-size: 14px; }
.psp-i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }

/* Back link and headings */
.psp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--psp-muted) !important; margin-bottom: 24px; transition: color .2s; }
.psp-back:hover { color: var(--psp-fg) !important; }
.psp-head { margin-bottom: 40px; }
.psp-head-list { margin-bottom: 32px; }
.psp-head .psp-label { margin-bottom: 8px; }
.psp-head-icon { display: block; font-size: 36px; line-height: 1.1; margin-bottom: 8px; }
.psp-guide .psp-h1 { font-size: 36px; line-height: 1.1; font-weight: 300; letter-spacing: -0.025em; color: var(--psp-fg); }
.psp-sub { margin-top: 8px !important; font-size: 14px; color: var(--psp-muted); }

/* Home */
.psp-home { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; }
.psp-home-head { text-align: center; margin-bottom: 64px; }
.psp-guide .psp-home-title { font-size: 48px; line-height: 1; font-weight: 300; letter-spacing: -0.025em; color: var(--psp-fg); }
.psp-home-sub { margin: 16px auto 0 !important; max-width: 24rem; font-size: 14px; line-height: 1.625; color: var(--psp-muted); }
.psp-home-choices { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 28rem; }
.psp-choice { flex: 1; display: block; text-align: center; background: var(--psp-card); border-radius: 16px; padding: 32px; transition: background .3s, box-shadow .3s; }
.psp-choice:hover { background: var(--psp-card-hover); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.psp-choice-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.psp-choice-icon .psp-i { width: 24px; height: 24px; }
.psp-choice .psp-label { display: block; margin-bottom: 4px; }
.psp-choice-name { display: block; font-size: 24px; font-weight: 600; line-height: 1.33; }
.psp-home-foot { margin-top: 64px !important; font-size: 12px; color: hsl(30 8% 50% / .5); }

/* Country / category index */
.psp-index { display: grid; grid-template-columns: 1fr; gap: 16px; }
.psp-index-card { display: block; background: var(--psp-card); border-radius: 16px; padding: 24px; transition: background .3s, box-shadow .3s; }
.psp-index-card:hover { background: var(--psp-card-hover); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.psp-index-icon { display: block; font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.psp-index-name { display: block; font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.psp-index-meta { font-size: 12px; color: var(--psp-muted); }
.psp-index-sub { color: hsl(30 8% 50% / .6); }

/* Filter chips */
.psp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.psp-guide .psp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: #fff; border: 1px solid var(--psp-border); transition: all .2s; }
.psp-guide .psp-chip:hover { border-color: hsl(35 15% 75%); background: #fff; }
.psp-guide .psp-chip.is-active, .psp-guide .psp-chip.is-active:hover { background: var(--psp-fg); color: var(--psp-bg); border-color: var(--psp-fg); }
.psp-guide .psp-chip-clear { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; font-size: 14px; color: var(--psp-muted); }
.psp-guide .psp-chip-clear[hidden] { display: none; }
.psp-chip-clear .psp-i { width: 14px; height: 14px; }

/* Sections and cards */
.psp-sections > .psp-section + .psp-section { margin-top: 40px; }
.psp-section[hidden] { display: none; }
.psp-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.psp-count { font-size: 12px; color: hsl(30 8% 50% / .6); }
.psp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.psp-card { display: block; background: var(--psp-card); border-radius: 16px; overflow: hidden; transition: box-shadow .3s; }
.psp-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.psp-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--psp-img-bg); overflow: hidden; }
.psp-guide .psp-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.psp-card:hover .psp-card-img { transform: scale(1.05); }
.psp-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: hsl(30 8% 50% / .4); }
.psp-noimg .psp-i { width: 40px; height: 40px; }
.psp-more { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.psp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--psp-fg); }
.psp-badge-float { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.psp-card-body { padding: 20px; }
.psp-card-cat { color: var(--psp-soft); margin-bottom: 6px !important; }
.psp-guide .psp-card-title { font-size: 20px; font-weight: 600; line-height: 1.375; color: var(--psp-fg); margin-bottom: 10px; }
.psp-card-loc { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: hsl(30 8% 50%); }
.psp-card-loc .psp-i { width: 14px; height: 14px; color: var(--psp-soft); margin-top: 1px; }
.psp-card-exp { margin-top: 10px !important; font-size: 12px; color: var(--psp-muted); }
.psp-grid-single { max-width: 390px; }

/* Details of one place */
.psp-gallery { margin-bottom: 32px; }
.psp-guide .psp-hero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--psp-img-bg); cursor: zoom-in; }
.psp-guide .psp-hero-img { width: 100%; height: 100%; object-fit: cover; }
.psp-more-lg { bottom: 16px; right: 16px; padding: 6px 12px; }
.psp-hero-credit { position: absolute; bottom: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.psp-hero-credit .psp-i { width: 12px; height: 12px; }
.psp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.psp-guide .psp-thumb { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--psp-img-bg); transition: opacity .2s, transform .2s; }
.psp-guide .psp-thumb:hover { opacity: .85; }
.psp-guide .psp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.psp-detail-head { margin-bottom: 32px; }
.psp-detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.psp-badge-soft { background: var(--psp-card); }
.psp-badge-exp { background: var(--psp-card); font-weight: 400; color: var(--psp-muted); }
.psp-exp-visited { color: hsl(145 45% 32%); }
.psp-exp-on-my-list { color: hsl(35 60% 38%); }
.psp-guide .psp-detail-title { font-size: 36px; line-height: 1.15; font-weight: 400; color: var(--psp-fg); }
.psp-detail-loc { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: 14px; color: var(--psp-muted); }
.psp-detail-loc .psp-i { width: 14px; height: 14px; }
.psp-detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.psp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--psp-card); border-radius: 12px; font-size: 14px; }
.psp-pill .psp-i { width: 14px; height: 14px; color: var(--psp-muted); }
.psp-box { background: var(--psp-card); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.psp-box > .psp-label { margin-bottom: 12px; }
.psp-notes, .psp-text { font-size: 15px; line-height: 1.625; }
.psp-with-icon { display: flex; align-items: flex-start; gap: 8px; }
.psp-with-icon + .psp-with-icon { margin-top: 6px !important; }
.psp-with-icon .psp-i { margin-top: 4px; color: var(--psp-muted); }
.psp-box-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.psp-guide .psp-mini { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #fff; border-radius: 10px; font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; white-space: nowrap; }
.psp-guide .psp-mini:hover { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.psp-mini .psp-i { width: 14px; height: 14px; }
.psp-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.psp-soft-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--psp-card); border-radius: 12px; font-size: 14px; transition: background .2s; }
.psp-soft-btn:hover { background: var(--psp-card-hover); }
.psp-tips li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.psp-tips li + li { margin-top: 6px; }
.psp-bulb { color: hsl(45 90% 50%); margin-top: 4px; }
.psp-needed li { display: flex; align-items: center; gap: 12px; }
.psp-needed li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--psp-border); }
.psp-needed-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--psp-muted); }
.psp-needed-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.psp-needed-text strong { display: block; font-weight: 500; }
.psp-needed-text span { display: block; font-size: 13px; color: var(--psp-muted); }
.psp-main-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.psp-guide .psp-main-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--psp-fg); color: var(--psp-bg) !important; border-radius: 12px; font-size: 14px; font-weight: 500; transition: opacity .2s; }
.psp-guide .psp-main-btn:hover { opacity: .9; }
.psp-guide .psp-main-btn-alt { background: #fff; color: var(--psp-fg) !important; border: 1px solid var(--psp-border); }
.psp-credits { font-size: 12px; line-height: 1.6; color: var(--psp-muted); margin-bottom: 8px !important; }
.psp-credits a { text-decoration: underline !important; }
.psp-credits .psp-i { width: 13px; height: 13px; margin: -2px 6px 0 0; }
.psp-detail-foot { margin-top: 48px !important; padding-top: 32px !important; border-top: 1px solid var(--psp-border) !important; text-align: center; font-size: 12px; color: hsl(30 8% 50% / .6); }

/* Photo viewer */
.psp-lightbox { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; font-family: "DM Sans", system-ui, sans-serif; }
.psp-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.psp-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.psp-lightbox button:hover { background: rgba(255,255,255,.22); }
.psp-lightbox svg { width: 22px; height: 22px; }
.psp-lb-close { top: 16px; right: 16px; }
.psp-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.psp-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.psp-lb-info { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }
.psp-lb-info a { color: #fff; text-decoration: underline; }
.psp-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: hsl(30 10% 12%); color: #fff; font: 14px "DM Sans", system-ui, sans-serif; padding: 10px 18px; border-radius: 12px; z-index: 999999; }

@media (min-width: 640px) {
	.psp-home-choices { flex-direction: row; }
	.psp-index, .psp-grid { grid-template-columns: 1fr 1fr; }
	.psp-grid-single { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
	.psp-guide .psp-h1 { font-size: 48px; }
	.psp-guide .psp-home-title { font-size: 60px; }
	.psp-guide .psp-detail-title { font-size: 48px; }
}
@media (min-width: 1024px) {
	.psp-guide .psp-home-title { font-size: 72px; }
}
@media (max-width: 639px) {
	.psp-container { padding-left: 16px; padding-right: 16px; }
	.psp-needed li { flex-wrap: wrap; }
	.psp-needed-text { flex: 1 1 calc(100% - 48px); }
	.psp-guide .psp-needed .psp-mini { margin-left: 48px; }
	.psp-box { padding: 20px; }
}

/* Desktop: wider page, 3 cards per row, opened card in two columns (photos left, details right). */
.psp-detail-info > :last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
	.psp-guide:not(.psp-embed):not(.psp-classic) .psp-container { max-width: 1200px; padding: 40px 32px 80px; }
	.psp-guide:not(.psp-classic) .psp-grid, .psp-guide:not(.psp-classic) .psp-index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.psp-guide .psp-grid-single { grid-template-columns: 1fr; }
	.psp-embed .psp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psp-guide:not(.psp-classic) .psp-detail-grid.has-media { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.psp-guide:not(.psp-classic) .psp-detail-media { position: sticky; top: var(--psp-sticky-top, 24px); }
	.admin-bar .psp-guide:not(.psp-classic) .psp-detail-media { top: calc(var(--psp-sticky-top, 24px) + 32px); }
	.psp-guide:not(.psp-classic) .has-media .psp-gallery { margin-bottom: 0; }
	.psp-guide:not(.psp-classic) .has-media .psp-hero { aspect-ratio: 4 / 3; }
	.psp-guide:not(.psp-classic) .has-media .psp-thumbs { margin-top: 12px; }
	.psp-guide:not(.psp-classic) .has-media .psp-thumb { width: 72px; height: 72px; }
	.psp-guide:not(.psp-classic) .has-media .psp-detail-title { font-size: 44px; }
	.psp-detail-grid:not(.has-media) { max-width: 760px; }
}

/* Flags as images */
.psp-guide img.psp-flag { display: inline-block; width: 32px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); vertical-align: middle; }
.psp-guide img.psp-flag-lg { width: 44px; }
.psp-guide img.psp-flag-sm { width: 18px; border-radius: 2px; }
.psp-flag-globe { font-size: 28px; line-height: 1; }

/* Full-screen guide page */
html:has(body.psp-standalone) { background: hsl(40 20% 97%); }
body.psp-standalone { margin: 0 !important; padding: 0 !important; background: hsl(40 20% 97%) !important; min-height: 100vh; }
body.psp-standalone .psp-guide { min-height: 100vh; }
body.psp-standalone .psp-guide.alignwide { max-width: none !important; width: 100% !important; margin: 0 !important; }
