/**
 * Single parking location page sections (Figma Lokacija Desktop).
 */

.site-main--location {
	padding: 0;
}

/* Reservation section sits on navy — Figma white title. */
.site-main--location .pbl-reservation__title,
.site-main--location .pbl-reservation__subtitle {
	color: #fff;
}

.site-main--location .pbl-location {
	margin: 0;
}

.site-main--location .entry-header,
.site-main--location .entry-content.pbl-container {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* Hero (legacy HTML widget — other locations until migrated) */
.pbl-loc-hero {
	position: relative;
	min-height: 36.9375rem;
	display: flex;
	align-items: flex-end;
	padding: 6rem 4rem 4rem;
	color: #fff;
	background-color: #002042;
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

/* Elementor-native location hero (Stara autobuska first) */
.pbl-loc-hero-el .elementor-button {
	width: auto;
	display: inline-flex;
	align-items: center;
}

.pbl-loc-hero-el .elementor-widget-text-editor p {
	margin: 0;
}

.pbl-loc-hero-el .elementor-widget-heading .elementor-heading-title {
	margin: 0;
}

/* Elementor-native info + pricing (Stara autobuska) — no width !important overrides */
.elementor-element-pblinfo68 .elementor-widget-text-editor p,
.elementor-element-pblprc68 .elementor-widget-heading .elementor-heading-title {
	margin: 0;
}

/*
 * Location section titles (Cjenovnik / Galerija / Utisci / How):
 * Figma — 80px from previous section edge (section padding-top).
 * Title→content rhythm lives in widget CSS / inner flex gap (40px).
 */
.site-main--location .pbl-gallery__title,
.site-main--location .pbl-reviews__title,
.site-main--location .pbl-how__title {
	margin-top: 0;
}

.elementor-element-pblinfo68 .elementor-button,
.elementor-element-pblinfo68 .pbl-cta-btn {
	width: auto;
	display: inline-flex;
	align-items: center;
}

.elementor-element-pblinfo68 .pbl-cta-btn-wrap {
	display: inline-block;
	width: auto;
}

.pbl-loc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	/* Urban Navy #002042 @ 80% → transparent (Figma hero overlay, not black). */
	background: linear-gradient(90deg, rgba(0, 32, 66, 0.8) 0%, rgba(0, 32, 66, 0) 100%);
}

.pbl-loc-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 40.375rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.pbl-loc-hero__title {
	margin: 0;
	font-family: 'Stack Sans Text', sans-serif;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 600;
	line-height: 1.125;
	letter-spacing: -0.02em;
	color: #fff;
}

.pbl-loc-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	width: fit-content;
	padding: 0.5rem 1rem;
	border-radius: 64px;
	background: #002042;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.pbl-loc-hero__badge img {
	width: 20px;
	height: 20px;
	display: block;
}

.pbl-loc-hero__stats {
	display: flex;
	align-items: stretch;
	gap: 1.5rem;
}

.pbl-loc-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pbl-loc-hero__stat-label {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5rem;
	letter-spacing: -0.02em;
	color: #e6f2ff;
}

.pbl-loc-hero__stat-value {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: -0.02em;
	color: #fff;
}

.pbl-loc-hero__stat-divider {
	width: 1px;
	align-self: stretch;
	background: rgba(230, 242, 255, 0.45);
}

/*
 * Elementor only emits --width:1px from tablet up (min-width:768px).
 * On mobile the empty stats divider expands to 100% × 64px → white bar.
 */
.pbl-loc-hero-el .pbl-loc-hero__stat-divider.e-con,
.pbl-loc-hero-el .pbl-loc-hero__stat-divider {
	--width: 1px !important;
	width: 1px !important;
	min-width: 1px !important;
	max-width: 1px !important;
	flex: 0 0 1px !important;
	align-self: stretch !important;
	padding: 0 !important;
	background-color: rgba(230, 242, 255, 0.45) !important;
}

@media (max-width: 767px) {
	/* Stats stack; hide the vertical rule so it cannot become a bar. */
	.pbl-loc-hero-el .pbl-loc-hero__stat-divider.e-con,
	.pbl-loc-hero-el .pbl-loc-hero__stat-divider {
		display: none !important;
	}
}

.pbl-loc-hero__rule {
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(230, 242, 255, 0.35);
}

.pbl-loc-hero__text {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.625rem;
	letter-spacing: -0.02em;
	color: #fff;
}

.pbl-loc-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pbl-loc-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 32px;
	background: #0a57cd;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

.pbl-loc-hero__tag img {
	width: 16px;
	height: 16px;
	display: block;
}

/* Location + hours */
.pbl-loc-info-row.e-con,
.pbl-loc-info-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	width: 100%;
}

.pbl-loc-info-row > .e-con,
.pbl-loc-info-row > .elementor-element {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.pbl-loc-info__block {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.pbl-loc-info__label {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.5rem;
	color: #002042;
}

.pbl-loc-info__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.625rem;
	color: #002042;
}

.pbl-loc-info__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.pbl-loc-info__nav-label {
	margin: 0;
	color: #0a57cd;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.125rem;
}

.pbl-loc-info__nav-apps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pbl-loc-info__nav-app {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0.375rem 0.875rem 0.375rem 0.5rem;
	border: 1px solid #d2e6fe;
	border-radius: 32px;
	background: #e6f2ff;
	color: #0a57cd;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pbl-loc-info__nav-app:hover,
.pbl-loc-info__nav-app:focus-visible {
	background: #fff;
	border-color: #0a57cd;
	color: #002042;
	outline: none;
}

.pbl-loc-info__nav-app-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
}

.pbl-loc-info__nav-app-icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

.pbl-loc-info__nav-app-name {
	white-space: nowrap;
}

.pbl-loc-info__map {
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
}

.pbl-loc-info__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.375rem 0.75rem;
	border-radius: 32px;
	background: #e6f2ff;
	color: #0a57cd;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
}

/* Pricing cards */
.pbl-loc-pricing {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.pbl-loc-pricing__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 9.25rem;
	padding: 1.25rem 1rem;
	border: 1px solid #d2e6fe;
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

.pbl-loc-pricing__term {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.625rem;
	color: #002042;
}

.pbl-loc-pricing__price {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.5rem;
	color: #0a57cd;
}

.pbl-loc-pricing__note {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.625rem;
	color: #5a6b82;
}

@media (max-width: 1100px) {
	.pbl-loc-pricing {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.pbl-loc-hero {
		padding: 4rem 2rem 3rem;
		min-height: 28rem;
	}

	.pbl-loc-info-row.e-con,
	.pbl-loc-info-row {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 781px) {
	.pbl-loc-hero {
		padding: 3.5rem 1.25rem 2.5rem;
		min-height: 24rem;
	}

	.pbl-loc-hero__title {
		font-size: 2.25rem;
		line-height: 1.15;
	}

	.pbl-loc-hero__stats {
		gap: 1rem;
	}

	.pbl-loc-hero__stat-value {
		font-size: 1.125rem;
	}

	.pbl-loc-pricing {
		grid-template-columns: 1fr;
	}
}
