
:root {
	--navy: #16294f;
	--navy_2: #223a6b;
	--red: #e31e24;
	--paper: #f5f6f8;
	--card_bg: #ffffff;
	--line: #e3e6ec;
	--ink: #16294f;
	--ink_soft: #5c6472;
	--open_green: #1f9d5c;
	--closed_slate: #9aa1ac;
	--radius: 14px;
	}

* {
	box-sizing: border-box;
	}

html, body {
	background: #f5f6f8 !important;
	}

#site {
	background: #f5f6f8 !important;
	}

body {
	margin: 0;
	background: var(--paper);
	font-family: 'Inter', sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	}

a {
	color: inherit;
	}

/* ---------- Hero снимка ---------- */

.detail_hero {
	max-width: 1600px;
	margin: 0 auto;
	padding: 24px 24px 0;
	}

.back_link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink_soft);
	margin-bottom: 16px;
	transition: color 0.2s ease;
	}

.back_link:hover {
	color: var(--red);
	}

.detail_hero_photo {
	position: relative;
	height: 480px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
	}

@media (max-width: 900px) {
	.detail_hero_photo {
		height: 340px;
		}
	}

@media (max-width: 599px) {
	.detail_hero_photo {
		height: 240px;
		border-radius: 10px;
		}
	}

.detail_hero_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	}

.detail_hero_overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(15,25,50,0.78) 0%, rgba(15,25,50,0.15) 45%, rgba(15,25,50,0) 65%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 28px 32px;
	}

.detail_hero_overlay h1 {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	color: #fff;
	margin: 10px 0 0;
	letter-spacing: -0.01em;
	}

/* Status pill - преизползван от листинг страницата */

.status_pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,0.94);
	backdrop-filter: blur(4px);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ink);
	width: fit-content;
	}

.status_dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	}

.status_pill.is_open .status_dot {
	background: var(--open_green);
	box-shadow: 0 0 0 0 rgba(31,157,92,0.55);
	animation: pulse 2s infinite;
	}

.status_pill.is_closed .status_dot {
	background: var(--red);
	}

@keyframes pulse {
	0%	{ box-shadow: 0 0 0 0 rgba(31,157,92,0.45); }
	70%	{ box-shadow: 0 0 0 7px rgba(31,157,92,0); }
	100%	{ box-shadow: 0 0 0 0 rgba(31,157,92,0); }
	}

/* ---------- Основно съдържание ---------- */

.detail_wrap {
	max-width: 1600px;
	margin: 0 auto;
	padding: 40px 24px 90px;
	}

.detail_grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	}

@media (max-width: 900px) {
	.detail_grid {
		grid-template-columns: 1fr;
		gap: 28px;
		}

	.detail_aside {
		order: 1;
		}
	}

.section_title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 14px;
	}

.office_description {
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--ink_soft);
	margin: 0 0 40px;
	}

.office_description p {
	margin: 0 0 14px;
	}

/* ---------- Галерия ---------- */

.gallery_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	}

@media (max-width: 559px) {
	.gallery_grid {
		grid-template-columns: repeat(2, 1fr);
		}
	}

.gallery_thumb {
	position: relative;
	height: 160px;
	border-radius: 10px;
	overflow: hidden;
	border: none;
	padding: 0;
	cursor: pointer;
	background: var(--line);
	}

.gallery_thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	}

.gallery_thumb:hover img {
	transform: scale(1.06);
	}

.gallery_thumb:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
	}

/* ---------- Контактна карта ---------- */

.contact_card {
	background: var(--card_bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 24px;
	}

.contact_card h3 {
	font-family: 'Manrope', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 16px;
	}

.contact_row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	color: var(--ink);
	text-decoration: none;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	}

.contact_row:last-of-type {
	border-bottom: none;
	}

.contact_row svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--red);
	}

.contact_row span.contact_label {
	display: block;
	font-size: 0.74rem;
	color: var(--ink_soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
	}

a.contact_row:hover {
	color: var(--red);
	}

.map_box {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	height: 300px;
	border: 1px solid var(--line);
	}

.map_section {
	padding: 0 24px 60px;
	box-sizing: border-box;
	}

.map_section > .map_card {
	max-width: 1600px;
	margin: 0 auto;
	}

.map_card {
	background: var(--card_bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	}

.map_box_large {
	height: 520px;
	}

@media (max-width: 599px) {
	.map_box_large {
		height: 340px;
		}
	}

.map_iframe {
	width: 100%;
	height: 100%;
	border: none;
	pointer-events: none;
	}

.map_empty {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--paper);
	color: var(--ink_soft);
	font-size: 0.85rem;
	text-align: center;
	padding: 0 20px;
	}

.map_empty svg {
	opacity: 0.6;
	}

.map_link_overlay {
	position: absolute;
	inset: 0;
	display: block;
	}

.map_cta {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: var(--navy);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 999px;
	pointer-events: none;
	}

/* ---------- Lightbox ---------- */

.lightbox_overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10,16,32,0.92);
	z-index: 100;
	align-items: center;
	justify-content: center;
	}

.lightbox_overlay.is_visible {
	display: flex;
	}

.lightbox_img {
	max-width: 88vw;
	max-height: 82vh;
	border-radius: 8px;
	object-fit: contain;
	}

.lightbox_close, .lightbox_prev, .lightbox_next {
	position: absolute;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	}

.lightbox_close:hover, .lightbox_prev:hover, .lightbox_next:hover {
	background: rgba(255,255,255,0.24);
	}

.lightbox_close {
	top: 24px;
	right: 24px;
	}

.lightbox_prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	}

.lightbox_next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	}

.lightbox_counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.7);
	font-size: 0.85rem;
	}

@media (prefers-reduced-motion: reduce) {
	.gallery_thumb img, .status_pill.is_open .status_dot {
		transition: none !important;
		animation: none !important;
		}
	}
