﻿.wpf-activity-finder {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 40px); /* Fill browser window */
	max-height:1000px;
	overflow: hidden;
	margin-top:20px;
	font-size:0.9em;
	line-height:1.3em;
}

b { font-weight:500;}

	.wpf-activity-finder .top {
		flex: 0 0 auto;
		z-index: 1;
	}

	.wpf-activity-finder .bottom {
		flex: 1 1 auto;
		display: flex;
		overflow: hidden;
	}

	.wpf-activity-finder h2 {
		font-size: 1.2em;
		margin-bottom: 0px;
		padding: 10px 20px;
		background: #eee;
		display: inline-block;
		border: solid 1px #ccc;
		border-bottom: none;
		border-top-left-radius: 5px;
		border-top-right-radius: 5px;
	}

	.wpf-activity-finder .list {
		width: 480px;
		overflow-y: auto;
		background: #fff;
		padding: 10px;
		padding-left:0px;
		box-sizing: border-box;
	}

		.wpf-activity-finder .list h2 {
			background: #FFF493;
		}

		.wpf-activity-finder .map {
			flex: 1;
			background: #fafafa;
			position: relative;
			min-height: 100%;
			margin-top: 10px;
		}

	.wpf-activity-finder .google-map {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.wpf-activity-finder .event-item {
		padding: 10px;
		background: #f8f8f8;
		margin-bottom: 10px;
		border-radius: 5px;
		position: relative;
		transition: 0.25s;
		height: 160px;
	}

		.wpf-activity-finder .event-item:hover {
			cursor: pointer;
			background: #eee;
		}

	.wpf-activity-finder .event-photo {
		width: 160px;
		overflow: hidden;
		margin-right: 15px;
		display: inline-block;
		vertical-align: top;
		margin-left: -10px;
		margin-top: -10px;
	}

		.wpf-activity-finder .event-photo img {
			height:180px;
			min-width:180px;
			border-top-left-radius: 5px;
			border-bottom-left-radius: 5px;
		}

	.wpf-activity-finder .event-details {
		display: inline-block;
		vertical-align: top;
		width: calc(100% - 165px);
	}

		.wpf-activity-finder .event-details h3 {
			color: #222;
			margin-bottom: 6px;
		}

	.wpf-activity-finder .event-date {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/date.png);
		background-size: 18px auto;
		background-position: 0px 4px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
	}

	.wpf-activity-finder .event-location {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/location.png);
		background-size: 18px auto;
		background-position: 0px 4px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
	}

	.wpf-activity-finder .event-price {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/cost.png);
		background-size: 18px auto;
		background-position: 0px 6px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
	}

	.wpf-activity-finder .event-book {
		position: absolute;
		bottom: 0px;
		right: 0px;
		border-bottom-right-radius: 5px;
		border-top-left-radius: 5px;
		background: #444;
		color: #fff;
		padding: 5px 12px 6px 12px;
		transition: 0.25s;
	}

		.wpf-activity-finder .event-book.join { 
			background: green;
		}

		.wpf-activity-finder .event-book.joined {
			background: #145CAB;
		}

		.wpf-activity-finder .event-book.full {
			background: #ffa500;
		}

		.wpf-activity-finder .event-book.external {
			background: #aa0000;
		}

	.wpf-activity-finder .event-funding {
		position: absolute;
		bottom: 0px;
		left: 0px;
		border-bottom-left-radius: 5px;
		background: #3AA5F2;
		color: #fff;
		padding: 5px 10px;
		width: 140px;
		transition: 0.25s;
		text-align: center;
	}

	.wpf-activity-finder .event-book:hover {
		cursor: pointer;
		background: #222;
	}

	/* Venue panels (styled same as event-item) */
	.wpf-activity-finder .venue-item {
		padding: 10px;
		background: #FFFDD6;
		margin-bottom: 10px;
		border-radius: 5px;
		position: relative;
		transition: 0.25s;
		height: 150px;
	}

		.wpf-activity-finder .venue-item:hover {
			cursor: pointer;
			background: #F7F5CF;
		}

	.wpf-activity-finder .venue-photo {
		width: 150px;
		overflow: hidden;
		margin-right: 20px;
		display: inline-block;
		vertical-align: top;
		margin-left: -10px;
		margin-top: -10px;
	}

		.wpf-activity-finder .venue-photo img {
			height: 170px;
			border-top-left-radius: 5px;
			border-bottom-left-radius: 5px;
		}

	.wpf-activity-finder .venue-details {
		display: inline-block;
		vertical-align: top;
		width: calc(100% - 170px);
	}

		.wpf-activity-finder .venue-details h3 {
			color: #222;
			margin-bottom: 6px;
		}

	/* Venue-specific detail rows */
	.wpf-activity-finder .venue-address {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/location.png);
		background-size: 18px auto;
		background-position: 0px 4px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
	}

	.wpf-activity-finder .venue-description {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/info.png); /* make sure you have this icon */
		background-size: 18px auto;
		background-position: 0px 4px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
		font-size: 0.95em;
		color: #555;
	}


	.wpf-activity-finder .venue-distance {
		padding: 5px 0px 5px 25px;
		background-image: url(/images/base/distance.png); /* you can create/use a distance icon */
		background-size: 18px auto;
		background-position: 0px 4px;
		background-repeat: no-repeat;
		margin-bottom: 0px;
	}

	.wpf-activity-finder .venue-moreinfo {
		position: absolute;
		bottom: 0px;
		right: 0px;
		border-bottom-right-radius: 5px;
		border-top-left-radius: 5px;
		background: #800000; /* dark red */
		color: #fff;
		padding: 5px 12px;
		transition: 0.25s;
	}

		.wpf-activity-finder .venue-moreinfo:hover {
			cursor: pointer;
			background: #550000; /* darker on hover */
		}

	.wpf-activity-finder .filters .box { 
		margin-bottom:10px;
	}

	.wpf-activity-finder .filters .clear {
		height: 0px;
	}

	.wpf-activity-finder .box h4 {
		font-size: 0.9em;
		margin-top: 0px;
		margin-bottom: 5px;
		color: #666;
		font-weight:500;
	}

	.wpf-activity-finder .tag { 
		display:inline-block;
		vertical-align:middle;
		margin-right:10px;
		margin-top:10px;
		padding:5px 12px;
		border: solid 1px #ccc;
		border-radius:5px;
		transition: 0.25s;
	}

		.wpf-activity-finder .tag:hover {
			background: #eee;
			cursor: pointer;
		}

	.wpf-activity-finder .tag.selected { 
		background: #444;
		border: solid 1px #444;
		color: #fff;
	}


/* Full screen dark overlay */
.popup-window-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65); /* darken background */
	z-index: 10000;
	display: flex;
	align-items: center; /* vertical centre */
	justify-content: center; /* horizontal centre */
	padding: 20px; /* prevents edge touching on small screens */
	box-sizing: border-box;
}

/* Popup container */
.popup-window {
	background: #ffffff;
	padding: 30px;
	border-radius: 8px;
	width: 400px;
	max-width: 100%;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
	animation: popupFade 0.2s ease-out;
	position:relative;
}

.popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	cursor: pointer;
	color: #666;
	padding: 0;
	line-height: 1;
}

.popup-window .clear { 
	clear:both;
	height:10px;
}

	.popup-close:hover {
		color: #000;
	}

/* Optional animation */
@keyframes popupFade {
	from {
		transform: translateY(-15px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Optional spacing */
.popup-window-item {
	margin-bottom: 15px;
}

.popup-window h3 {
	margin-top: 0;
	margin-bottom: 20px;
}

@media (max-width: 800px) {

	.wpf-activity-finder {
		max-height: none;
		height: auto;
	}

		.wpf-activity-finder .list {
			width: 100%;
			height: auto;
			padding: 0px;
			padding-top:10px;
		}

		.wpf-activity-finder .map {
			visibility: hidden;
		}
}


