/* ==========================================================================
   Plans - the floor plan / parking plan viewer.
   A tab strip over a framed viewer: pick a plan, it opens in place instead of
   a new browser tab. Navy #0f2453 / gold #d49809, Oswald / Federo / Lato.
   ========================================================================== */

.bcpl-plans {
	margin: 30px 0 6px;
}

/* a page can host the viewer in its own card; the card collapses if the
   script never fills it (no JS) */
.bcpl-plans-mount:empty {
	display: none;
}

.bcpl-plans-mount .bcpl-plans {
	margin: 0;
}

.bcpl-plans-title {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: #0f2453;
	margin: 0 0 4px;
	text-align: left;			/* bootstrap.css centres every h3 */
}

/* --- tab strip ------------------------------------------------------------- */

.bcpl-plans-tabs {
	border-bottom: 1px solid #e1e5ee;
	margin-bottom: 20px;
}

.bcpl-plan-tab {
	position: relative;
	display: inline-block;
	padding: 12px 2px;
	margin-right: 30px;
	background: none;
	border: 0;
	outline: none;
	cursor: pointer;
	font-family: 'Federo', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6b7386;
	-webkit-transition: color .25s ease;
	transition: color .25s ease;
}

.bcpl-plan-tab:last-child {
	margin-right: 0;
}

/* the small square marker ahead of each label */
.bcpl-plan-tab::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 9px;
	vertical-align: 1px;
	background: #c3c9d6;
	-webkit-transition: background .25s ease;
	transition: background .25s ease;
}

/* the underline that marks the open plan */
.bcpl-plan-tab::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: #d49809;
	opacity: 0;
	-webkit-transition: opacity .25s ease;
	transition: opacity .25s ease;
}

.bcpl-plan-tab:hover {
	color: #0f2453;
}

.bcpl-plan-tab.is-active {
	color: #0f2453;
}

.bcpl-plan-tab.is-active::before {
	background: #d49809;
}

.bcpl-plan-tab.is-active::after {
	opacity: 1;
}

/* --- framed viewer --------------------------------------------------------- */

.bcpl-plan-frame {
	background: #fff;
	border: 1px solid #e3e6ee;
	border-radius: 3px;
	padding: 16px;
}

.bcpl-plan-bar {
	overflow: hidden;
	padding: 0 2px 13px;
}

.bcpl-plan-label {
	float: left;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #0f2453;
	line-height: 1.6;
}

.bcpl-plan-open {
	float: right;
	padding: 0;
	background: none;
	border: 0;
	outline: none;
	cursor: pointer;
	font-family: 'Federo', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: #a97806;
	line-height: 2.2;
	text-decoration: none;
	-webkit-transition: color .25s ease;
	transition: color .25s ease;
}

.bcpl-plan-open:hover,
.bcpl-plan-open:focus {
	color: #0f2453;
	text-decoration: none;
}

.bcpl-plan-open i {
	margin-right: 7px;
}

.bcpl-plan-view {
	position: relative;
	height: 860px;
	border: 1px solid rgba(212, 152, 9, .32);
	background: #f7f8fb;
}

.bcpl-plan-view iframe {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* the iframe eats its own clicks, so an invisible button sits over it */
.bcpl-plan-hit {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: block;
	width: 100%;
	padding: 0;
	background: rgba(15, 36, 83, 0);
	border: 0;
	outline: none;
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
	-webkit-transition: background .25s ease;
	transition: background .25s ease;
}

.bcpl-plan-hit:hover,
.bcpl-plan-hit:focus {
	background: rgba(15, 36, 83, .06);
}

.bcpl-plan-hit__cue {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 9px 16px;
	background: rgba(15, 36, 83, .9);
	color: #fff;
	border-radius: 3px;
	font-family: 'Federo', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	opacity: 0;
	-webkit-transform: translateY(6px);
	-ms-transform: translateY(6px);
	transform: translateY(6px);
	-webkit-transition: opacity .25s ease, transform .25s ease;
	transition: opacity .25s ease, transform .25s ease;
}

.bcpl-plan-hit__cue i {
	margin-right: 8px;
}

.bcpl-plan-hit:hover .bcpl-plan-hit__cue,
.bcpl-plan-hit:focus .bcpl-plan-hit__cue {
	opacity: 1;
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
}

.bcpl-plan-note {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin-top: -22px;
	padding: 0 20px;
	color: #8a91a0;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

/* --- phones: browsers there cannot render a PDF in a frame ----------------- */

.bcpl-plan-view--link {
	height: auto;
	padding: 32px 20px;
	text-align: center;
}

/* inside the fallback the note is part of the flow, not centred on top of it */
.bcpl-plan-note--flow {
	position: static;
	margin: 0 0 16px;
	padding: 0;
}

/* --- phone preview: the plan itself, drawn by pdf.js ----------------------- */

.bcpl-plan-view--doc {
	height: auto;
	min-height: 180px;
	padding: 0;
	text-align: center;
}

.bcpl-plan-tap {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	background: #fff;
	border: 0;
	outline: none;
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
	-webkit-tap-highlight-color: rgba(15, 36, 83, .15);
}

.bcpl-plan-thumb {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.bcpl-plan-tap__cue {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 8px 14px;
	background: rgba(15, 36, 83, .9);
	color: #fff;
	border-radius: 3px;
	font-family: 'Federo', sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	pointer-events: none;
}

.bcpl-plan-tap__cue i {
	margin-right: 7px;
}

.bcpl-plan-btn {
	display: inline-block;
	border: 0;
	outline: none;
	cursor: pointer;
	padding: 13px 30px;
	background: #d49809;
	color: #fff;
	border-radius: 3px;
	font-family: 'Federo', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	text-decoration: none;
	-webkit-transition: background .25s ease;
	transition: background .25s ease;
}

.bcpl-plan-btn:hover,
.bcpl-plan-btn:focus {
	background: #0f2453;
	color: #fff;
	text-decoration: none;
}

.bcpl-plan-btn i {
	margin-right: 8px;
}

/* --- smaller screens ------------------------------------------------------- */

@media (max-width: 991px) {
	.bcpl-plan-view {
		height: 640px;
	}
}

@media (max-width: 767px) {
	.bcpl-plans {
		margin-top: 22px;
	}

	.bcpl-plans-title {
		font-size: 19px;
	}

	.bcpl-plan-tab {
		margin-right: 18px;
		padding: 11px 2px;
		font-size: 10.5px;
		letter-spacing: 1.1px;
	}

	.bcpl-plan-tab::before {
		width: 6px;
		height: 6px;
		margin-right: 7px;
	}

	.bcpl-plan-frame {
		padding: 12px;
	}

	.bcpl-plan-label {
		float: none;
		display: block;
		font-size: 14px;
	}

	.bcpl-plan-open {
		float: none;
		display: block;
		margin-top: 2px;
	}

	.bcpl-plan-view {
		height: 430px;
	}

	.bcpl-plan-view--link {
		height: auto;
		padding: 26px 16px;
	}

	.bcpl-plan-view--doc {
		height: auto;
	}
}

/* ==========================================================================
   Plan lightbox - full-screen viewer with zoom, drawn by pdf.js.
   Same controls on desktop and phone: +, -, Fit, open PDF, close.
   ========================================================================== */

html.bcpl-pm-open,
html.bcpl-pm-open body {
	overflow: hidden;
}

.bcpl-pm {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000001;			/* above the page loader and the image lightbox */
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	background: rgba(9, 18, 40, .975);
}

.bcpl-pm[hidden] {
	display: none !important;
}

/* --- toolbar --------------------------------------------------------------- */

.bcpl-pm__bar {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 10px 14px;
	background: #0f2453;
	border-bottom: 1px solid rgba(212, 152, 9, .35);
}

.bcpl-pm__title {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: 'Oswald', sans-serif;
	font-size: 15px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #fff;
}

.bcpl-pm__tools {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.bcpl-pm__btn {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	width: 40px;
	height: 40px;
	margin-left: 4px;
	padding: 0;
	background: rgba(255, 255, 255, .08);
	border: 0;
	border-radius: 3px;
	outline: none;
	cursor: pointer;
	color: #fff;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	-webkit-transition: background .2s ease, color .2s ease;
	transition: background .2s ease, color .2s ease;
}

.bcpl-pm__btn:hover,
.bcpl-pm__btn:focus {
	background: #d49809;
	color: #fff;
	text-decoration: none;
}

.bcpl-pm__btn--txt {
	width: auto;
	padding: 0 14px;
	font-family: 'Federo', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.bcpl-pm__btn--close {
	margin-left: 12px;
	background: rgba(255, 255, 255, .16);
	font-size: 18px;
}

.bcpl-pm__btn--close:hover,
.bcpl-pm__btn--close:focus {
	background: #c0392b;
}

.bcpl-pm__pct {
	min-width: 62px;
	margin: 0 2px;
	text-align: center;
	font-family: 'Federo', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #ffce14;
}

/* --- the scrolling stage --------------------------------------------------- */

.bcpl-pm__stage {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	position: relative;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	/* one finger pans, two fingers reach our pinch handler instead of the
	   browser's own page zoom */
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	cursor: -webkit-grab;
	cursor: grab;
}

.bcpl-pm__stage.is-grabbing {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

.bcpl-pm__doc {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	min-width: 100%;
	min-height: 100%;
	padding: 24px;
}

.bcpl-pm__page {
	display: block;
	max-width: none;			/* the responsive layer caps images at 100% */
	background: #fff;
	-webkit-box-shadow: 0 6px 26px rgba(0, 0, 0, .45);
	box-shadow: 0 6px 26px rgba(0, 0, 0, .45);
}

.bcpl-pm__page + .bcpl-pm__page {
	margin-top: 20px;
}

.bcpl-pm__note {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin-top: -14px;
	padding: 0 24px;
	text-align: center;
	font-size: 14px;
	color: #cbd2e0;
}

.bcpl-pm__note[hidden] {
	display: none !important;
}

.bcpl-pm__note a {
	color: #ffce14;
	text-decoration: underline;
}

/* --- phones ---------------------------------------------------------------- */

@media (max-width: 767px) {
	.bcpl-pm__bar {
		padding: 8px 10px;
	}

	.bcpl-pm__title {
		font-size: 12.5px;
		letter-spacing: 1.1px;
	}

	.bcpl-pm__btn {
		width: 38px;
		height: 38px;
		margin-left: 3px;
		font-size: 14px;
	}

	.bcpl-pm__btn--txt {
		padding: 0 10px;
		font-size: 10px;
		letter-spacing: 1px;
	}

	.bcpl-pm__btn--close {
		margin-left: 7px;
	}

	.bcpl-pm__pct {
		min-width: 46px;
		font-size: 11px;
	}

	.bcpl-pm__doc {
		padding: 12px;
	}
}

/* the title only gets in the way once the toolbar is tight */
@media (max-width: 479px) {
	.bcpl-pm__title {
		display: none;
	}

	.bcpl-pm__tools {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 auto;
		flex: 1 1 auto;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}
}
