.wppc-temple {
	--wppc-temple-accent: #0b6e4f;
	--wppc-temple-border: #dcdcde;
	--wppc-temple-muted: #50575e;
	box-sizing: border-box;
	max-width: 100%;
}
.wppc-temple *,
.wppc-temple *::before,
.wppc-temple *::after {
	box-sizing: inherit;
}

/* Listing grid */
.wppc-temple-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wppc-temple-cols-1 .wppc-temple-grid { grid-template-columns: minmax(0, 1fr); }
.wppc-temple-cols-2 .wppc-temple-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wppc-temple-cols-3 .wppc-temple-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wppc-temple-cols-4 .wppc-temple-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.wppc-temple-cols-3 .wppc-temple-grid,
	.wppc-temple-cols-4 .wppc-temple-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.wppc-temple .wppc-temple-grid { grid-template-columns: minmax(0, 1fr); }
}

.wppc-temple-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wppc-temple-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wppc-temple-card:hover,
.wppc-temple-card:focus-visible {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}
.wppc-temple-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f0f0f1;
}
.wppc-temple-card__media .wppc-temple-img,
.wppc-temple-card__media img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.wppc-temple-card__media .wppc-temple-placeholder {
	position: absolute;
	inset: 0;
	min-height: 0;
}
.wppc-temple-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem 1.1rem;
}
.wppc-temple-card__name {
	font-weight: 700;
	font-size: 1.1em;
	color: #1d2327;
}
.wppc-temple-card__location {
	color: var(--wppc-temple-muted);
	font-size: 0.95em;
	line-height: 1.4;
}

.wppc-temple-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 120px;
	color: #8c8f94;
	background: #f0f0f1;
}
.wppc-temple-placeholder-icon {
	width: 40%;
	max-width: 120px;
	height: auto;
}
.wppc-temple-empty,
.wppc-temple-notfound {
	padding: 1.5rem;
	border: 1px dashed var(--wppc-temple-border);
	border-radius: 10px;
	text-align: center;
}
.wppc-temple-notfound__msg {
	font-size: 1.2em;
	font-weight: 700;
}

/* Single view */
.wppc-temple-single {
	max-width: 640px;
	margin: 0 auto;
}
.wppc-temple-back {
	display: inline-block;
	margin-bottom: 0.75rem;
	text-decoration: none;
	color: var(--wppc-temple-accent);
}
.wppc-temple-back:hover { text-decoration: underline; }
.wppc-temple-title { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.3; }
.wppc-temple-hero {
	height: clamp(260px, 50vw, 440px);
	margin-bottom: 1rem;
	border-radius: 10px;
	overflow: hidden;
	background: #f0f0f1;
}
.wppc-temple-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wppc-temple-hero .wppc-temple-placeholder { min-height: 0; }
.wppc-temple-hero .wppc-temple-placeholder-icon {
	width: 160px;
	max-width: 60%;
	height: auto;
}
.wppc-temple-rows {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}
.wppc-temple-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wppc-temple-border);
}
.wppc-temple-row__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}
.wppc-temple-row__label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wppc-temple-muted);
}
.wppc-temple-row__value {
	overflow-wrap: anywhere;
}

/* Buttons */
.wppc-temple-copy,
.wppc-temple-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem;
	border: 1px solid var(--wppc-temple-border);
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.wppc-temple-copy:hover,
.wppc-temple-btn:hover { border-color: var(--wppc-temple-accent); color: var(--wppc-temple-accent); }
.wppc-temple-btn { padding: 0.6rem 1rem; }
.wppc-temple-btn--primary {
	background: #0891b2;
	border-color: #0891b2;
	color: #fff;
}
.wppc-temple-btn--primary:hover,
.wppc-temple-btn--primary:focus-visible,
.wppc-temple-btn--primary.is-copied {
	background: #0e7490;
	border-color: #0e7490;
	color: #fff;
}
.wppc-temple-btn--primary:focus-visible {
	outline: 3px solid #0891b2;
	outline-offset: 2px;
}
.wppc-temple-btn--block {
	display: flex;
	width: 100%;
	padding: 0.7rem 1rem;
}
.wppc-temple-btn--outline:focus-visible {
	outline: 3px solid var(--wppc-temple-accent);
	outline-offset: 2px;
}
.wppc-temple-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.wppc-temple-icon--check,
.wppc-temple-copied { display: none; }
.wppc-temple-copy.is-copied { border-color: var(--wppc-temple-accent); color: var(--wppc-temple-accent); }
.wppc-temple-copy.is-copied .wppc-temple-icon--copy { display: none; }
.wppc-temple-copy.is-copied .wppc-temple-icon--check { display: inline; }
.wppc-temple-row .wppc-temple-copied {
	position: absolute;
	right: 100%;
	margin-right: 0.4rem;
	white-space: nowrap;
	font-size: 0.85em;
	color: var(--wppc-temple-accent);
}
.wppc-temple-row .wppc-temple-copy.is-copied .wppc-temple-copied { display: inline; }
.wppc-temple-btn.is-copied .wppc-temple-btn__label { display: none; }
.wppc-temple-btn.is-copied .wppc-temple-copied { display: inline; }

.wppc-temple-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Search */
.wppc-temple-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.wppc-temple-search {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}
.wppc-temple-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--wppc-temple-border);
	border-radius: 10px;
	font-size: 16px;
	background: #fff;
	color: inherit;
}
.wppc-temple-search__button {
	flex: 0 0 auto;
	padding: 0.6rem 1.1rem;
	border: 1px solid #0891b2;
	border-radius: 10px;
	background: #0891b2;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}
.wppc-temple-search__button:hover,
.wppc-temple-search__button:focus-visible {
	background: #0e7490;
	border-color: #0e7490;
	color: #fff;
}
.wppc-temple-search-status {
	margin: 0 0 1rem;
}
.wppc-temple-search-clear {
	margin-left: 0.5rem;
	color: #0e7490;
	text-decoration: underline;
}
.wppc-temple-mark {
	background: #fef08a;
	color: inherit;
	padding: 0 0.1em;
	border-radius: 2px;
}
