/* ==========================================================================
   Clinics page – templates/page-clinics.php (key page-clinics, see inc/enqueue.php)
   Page hero (main.css) + shared sections (sections.css); here the clinic detail cards,
   the services cards, the photo gallery + lightbox and the section grounds.
   ========================================================================== */


/* Ιατρείο Αθήνας / Βόλου: two cards side by side */
.be_clinic-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	background: var(--be-cream);
}

.be_clinic-detail {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 50px;
	background: var(--be-paper);
	font: var(--be-body);
	color: var(--be-ink);
}

.be_clinic-detail-title {
	margin: 0;
	font: var(--be-h2);
	color: var(--be-ink);
}

/* Υπηρεσίες: four cards with a mauve top rule */
.be_clinic-services {
	background: var(--be-paper);
}

.be_clinic-services-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_clinic-service {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border-top: 2px solid var(--be-mauve);
	background: var(--be-cream);
	font: var(--be-body);
	color: var(--be-muted);
}

.be_clinic-service-title {
	margin: 0;
	font: var(--be-h3);
	color: var(--be-ink);
}

.be_clinic-services-note {
	margin-top: 40px;
	font: var(--be-body);
	color: var(--be-ink);
}

/* Gallery: 4 columns of 3:2 tiles, grey until hovered (as the clinic photos) */
.be_gallery {
	background: var(--be-cream);
}

.be_gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_gallery-link {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	cursor: zoom-in;
}

.be_gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter var(--be-t-slow) var(--be-ease), transform var(--be-t-slow) var(--be-ease);
}

.be_gallery-link:hover img,
.be_gallery-link:focus-visible img {
	filter: grayscale(0);
	transform: scale(1.03);
}

/* Lightbox (<dialog>, assets/js/pages/page-clinics.js) */
.be_lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.be_lightbox::backdrop {
	background: rgba(30, 22, 24, 0.92);
}

.be_lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: be-lightbox-in var(--be-t-fast) var(--be-ease);
}

@keyframes be-lightbox-in {
	from {
		opacity: 0;
	}
}

.be_lightbox-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 72px 96px;
}

.be_lightbox-img {
	max-width: 100%;
	max-height: calc(100vh - 200px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.be_lightbox-caption {
	font: var(--be-body);
	color: var(--be-paper);
	text-align: center;
}

.be_lightbox-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--be-paper);
	color: var(--be-ink);
	transition: background-color var(--be-t-fast) var(--be-ease);
}

.be_lightbox-btn:hover,
.be_lightbox-btn:focus-visible {
	background: var(--be-white);
}

.be_lightbox-close {
	top: 20px;
	right: 20px;
}

.be_lightbox-prev,
.be_lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.be_lightbox-prev {
	left: 20px;
}

.be_lightbox-next {
	right: 20px;
}

.be_lightbox-btn::before {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}

.be_lightbox-prev::before {
	transform: translateX(2px) rotate(135deg);
}

.be_lightbox-next::before {
	transform: translateX(-2px) rotate(-45deg);
}

.be_lightbox-close::before,
.be_lightbox-close::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 1.5px;
	border: 0;
	background: currentColor;
	transform: rotate(45deg);
}

.be_lightbox-close::after {
	transform: rotate(-45deg);
}

/* Section grounds: clinics paper, details cream, services paper, gallery cream,
   FAQ paper, form cream */
.be_clinics-hero + .be_clinics {
	background: var(--be-paper);
}

.be_gallery + .be_faq-section {
	background: var(--be-paper);
}

.be_faq-section + .be_contact {
	background: var(--be-cream);
}

@media (max-width: 1440px) {
	.be_clinic-services-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.be_gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.be_clinic-details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.be_clinic-details,
	.be_clinic-services-list {
		gap: 20px;
	}

	.be_clinic-detail {
		gap: 16px;
		padding: 20px;
	}

	.be_clinic-detail-title {
		font: 400 24px/30px var(--be-font);
	}

	.be_clinic-services-list {
		grid-template-columns: 1fr;
	}

	.be_clinic-service {
		padding: 20px;
	}

	.be_clinic-services-note {
		margin-top: 20px;
	}

	.be_gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.be_lightbox-figure {
		padding: 72px 12px;
	}

	.be_lightbox-prev,
	.be_lightbox-next {
		top: auto;
		bottom: 20px;
		transform: none;
	}
}
