.psc-portfolio {
	color: #141414;
	font-family: inherit;
}

.psc-portfolio *,
.psc-portfolio *::before,
.psc-portfolio *::after,
dialog.psc-detail,
dialog.psc-detail * {
	box-sizing: border-box;
}

.psc-portfolio__stage {
	position: relative;
	margin: 0 0 16px;
}

.psc-portfolio__filters {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	right: 56px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	pointer-events: none;
}

body .psc-portfolio button.psc-chip {
	width: auto;
	margin: 0;
	padding: 8px 14px;
	pointer-events: auto;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #202124;
	box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

body .psc-portfolio button.psc-chip.is-active {
	background: #202124;
	color: #fff;
}

.psc-portfolio__map {
	height: 560px;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #e8eaed;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 2px 6px rgba(60, 64, 67, 0.08);
	isolation: isolate;
	position: relative;
	z-index: 0;
}

.psc-portfolio__status {
	margin: 0 0 16px;
	color: #5e5e5e;
	font-size: 14px;
}

.psc-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.psc-card {
	position: relative;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #202124;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 1px 3px rgba(60, 64, 67, 0.08);
}

.psc-card__media {
	aspect-ratio: 3 / 2;
	background: #eceae6;
	overflow: hidden;
}

.psc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: none;
	object-fit: cover;
}

.psc-card__placeholder {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: #6b675f;
	font-size: 14px;
}

.psc-card__body {
	padding: 14px 16px 16px;
}

.psc-card h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

body .psc-portfolio .psc-card h3 button {
	position: static;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
	font: inherit;
	font-weight: 500;
	line-height: inherit;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

body .psc-portfolio .psc-card h3 button::after {
	content: "";
	position: absolute;
	inset: 0;
}

.psc-card__city,
.psc-card__types {
	margin: 0;
	color: #5f6368;
	font-size: 13px;
	line-height: 1.4;
}

.psc-card__types {
	margin-top: 4px;
	font-weight: 500;
}

.psc-card:has(button:focus-visible),
.psc-card:hover {
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.22), 0 4px 12px rgba(60, 64, 67, 0.12);
}

.psc-portfolio :focus-visible {
	outline: 2px solid #e2231a;
	outline-offset: 2px;
}

.psc-portfolio .leaflet-pane img,
.psc-portfolio img.leaflet-tile,
.psc-portfolio img.leaflet-marker-icon,
.psc-portfolio img.leaflet-marker-shadow {
	max-width: none !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.psc-pin-wrap.leaflet-div-icon {
	background: transparent !important;
	border: none !important;
}

.psc-portfolio .marker-cluster-small,
.psc-portfolio .marker-cluster-medium,
.psc-portfolio .marker-cluster-large {
	background-color: rgba(226, 35, 26, 0.28);
}

.psc-portfolio .marker-cluster div {
	background-color: #e2231a;
	color: #fff;
	font-weight: 700;
}

.psc-portfolio .leaflet-control-attribution {
	font-size: 11px;
	background: rgba(255, 255, 255, 0.85);
}

.psc-portfolio .leaflet-bar {
	border: 0;
	box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
}

.psc-portfolio .leaflet-bar a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	border: 0;
	color: #202124;
}

dialog.psc-detail {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #141414;
}

dialog.psc-detail[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

dialog.psc-detail::backdrop {
	background: rgba(12, 12, 12, 0.72);
}

.psc-detail__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	width: min(1040px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	overflow: auto;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body dialog.psc-detail button.psc-detail__close,
body dialog.psc-detail button.psc-lightbox__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #141414;
	color: #fff;
	box-shadow: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.psc-stage {
	position: relative;
	min-height: 240px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #111;
}

.psc-stage iframe,
.psc-stage video,
.psc-stage .psc-stage__zoom,
.psc-stage .psc-stage__zoom img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #111;
}

body dialog.psc-detail button.psc-stage__zoom {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #111;
	box-shadow: none;
	cursor: zoom-in;
}

.psc-stage__empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px;
	color: #fff;
	text-align: center;
}

body dialog.psc-detail button.psc-stage__nav {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.78);
	color: #fff;
	box-shadow: none;
	font-size: 28px;
	line-height: 1;
	transform: translateY(-50%);
	z-index: 2;
	cursor: pointer;
}

body dialog.psc-detail button.psc-stage__prev {
	left: 10px;
}

body dialog.psc-detail button.psc-stage__next {
	right: 10px;
}

.psc-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px;
	background: #1b1b1b;
}

.psc-thumbs[hidden] {
	display: none;
}

body dialog.psc-detail button.psc-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 54px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	background: #333;
	color: #fff;
	box-shadow: none;
	font-size: 11px;
	cursor: pointer;
}

body dialog.psc-detail button.psc-thumb.is-active {
	border-color: #e2231a;
}

.psc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psc-detail__body {
	padding: 28px 28px 24px;
}

.psc-detail__types {
	margin: 0 0 8px;
	color: #e2231a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.psc-detail__title {
	margin: 0 0 8px;
	padding-right: 36px;
	font-size: 28px;
	line-height: 1.2;
}

.psc-detail__address {
	margin: 0 0 16px;
	color: #5e5e5e;
}

.psc-detail__description {
	font-size: 16px;
	line-height: 1.6;
}

.psc-detail__description > :first-child {
	margin-top: 0;
}

.psc-detail__description > :last-child {
	margin-bottom: 0;
}

.psc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
}

.psc-lightbox[hidden] {
	display: none !important;
}

.psc-lightbox img {
	max-width: min(1100px, 92vw);
	max-height: 88vh;
	object-fit: contain;
}

dialog.psc-detail :focus-visible {
	outline: 2px solid #e2231a;
	outline-offset: 2px;
}

@media (max-width: 800px) {
	.psc-portfolio__filters {
		position: static;
		right: auto;
		margin: 0 0 10px;
	}

	.psc-portfolio__map {
		height: 420px;
	}

	.psc-detail__panel {
		grid-template-columns: 1fr;
		width: 100%;
		max-height: 100%;
	}

	.psc-detail__title {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psc-card {
		transition: none;
	}
}
