/* Map container heights */
.pin-body-location {
	height: 250px !important;
}
#event-OpenLayers-map,
#event-OpenLayers-map-popup {
	height: 400px !important;
}
#event-OpenLayers-map.pin-body-location,
#event-OpenLayers-map-popup.pin-body-location {
	height: 250px !important;
}

/* Google Maps InfoWindow popup styles */
.gm-style-iw .popupContentWrapper {
	background: #ffffff;
	width: 270px;
	border-radius: 3px;
	padding: 10px 0;
}

.gm-style-iw .popupContentWrapper .placeName {
	border-bottom: 1px solid #ebebeb;
	margin-bottom: 10px;
	padding: 0 10px 10px;
	font-size: 15px;
}

.gm-style-iw .popupContentWrapper p {
	color: #999999;
	line-height: 16px;
	padding: 0 10px;
	font-size: 12px;
}

.gm-style-iw .popupContentWrapper .heading {
	margin: 0;
	margin-top: 10px;
	padding: 0 10px;
	font-size: 14px;
}

.gm-style-iw .popupContentWrapper .sourceLinkWrapper {
	border-top: 1px solid #ebebeb;
	margin-top: 10px;
	padding: 10px 10px 0;
	text-align: center;
}

/* Pin ribbon location icons */
.ribbon-pinlocation {
	background-image: url(../images/marker.png);
	display: inline-block;
	height: 25px;
	width: 21px;
	line-height: 29px;
	background-position: 0 0;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 50px;
	right: 10px;
	z-index: 1;
	cursor: pointer;
	text-indent: -50000px;
	overflow: hidden;
}

.ribbon-pinlocation-2 {
	background-image: url(../images/marker-grey.png);
	display: inline-block;
	height: 25px;
	width: 21px;
	line-height: 29px;
	background-position: 0 0;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 50px;
	right: 10px;
	z-index: 1;
	cursor: pointer;
	text-indent: -50000px;
	overflow: hidden;
}

.ribbon-pinlocation-was-there {
	background-image: url(../images/marker-was.png);
	display: inline-block;
	height: 25px;
	width: 21px;
	line-height: 29px;
	background-position: 0 0;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 50px;
	right: 60px;
	z-index: 1;
	cursor: pointer;
	text-indent: -50000px;
	overflow: hidden;
}
.ribbon-pinlocation-was-there.active {
	background-image: url(../images/marker-was-grey.png);
}
.ribbon-pinlocation-want-there {
	background-image: url(../images/marker-want.png);
	display: inline-block;
	height: 25px;
	width: 21px;
	line-height: 29px;
	background-position: 0 0;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 50px;
	right: 35px;
	z-index: 1;
	cursor: pointer;
	text-indent: -50000px;
	overflow: hidden;
}
.ribbon-pinlocation-want-there.active {
	background-image: url(../images/marker-want-grey.png);
}

.box.box-location-shadow {
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	-webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   Add a Place – professional redesign
   ============================================================ */

/* Popup shell */
.lp-popup .body,
.lp-popup-body {
	padding: 0 !important;
	position: relative;
	min-height: 420px;
}

/* Header */
.lp-popup-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px !important;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
}
.lp-head-icon {
	color: #e5302a;
	font-size: 14px;
	line-height: 1;
}
.lp-popup-title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #222 !important;
}


/* ---- Step bar ---- */
.lp-steps {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	background: #fafafa;
	border-bottom: 1px solid #f0f0f0;
	gap: 0;
}
.lp-step {
	display: flex;
	align-items: center;
	gap: 6px;
}
.lp-step-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ddd;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.25s;
}
.lp-step-label {
	font-size: 12px;
	color: #bbb;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.25s;
}
.lp-step-line {
	flex: 1;
	height: 2px;
	background: #e8e8e8;
	margin: 0 8px;
	min-width: 20px;
}
/* active step */
.lp-step.lp-step-active .lp-step-dot  { background: #e5302a; }
.lp-step.lp-step-active .lp-step-label { color: #e5302a; }
/* done step */
.lp-step.lp-step-done .lp-step-dot  { background: #43a047; }
.lp-step.lp-step-done .lp-step-label { color: #43a047; }

/* ---- Search box ---- */
.lp-search-box {
	padding: 18px 20px 16px;
}
.lp-field {
	margin-bottom: 14px;
}
.lp-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 6px;
}
.lp-input-row {
	display: flex;
	align-items: center;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-input-row:focus-within {
	border-color: #e5302a;
	box-shadow: 0 0 0 3px rgba(229,48,42,0.1);
}
.lp-input-prefix {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 38px;
	font-size: 11px;
	color: #aaa;
	background: #f7f7f7;
	border-right: 1px solid #eee;
	flex-shrink: 0;
	font-weight: 700;
	letter-spacing: 0;
	user-select: none;
}
.lp-input-prefix.lp-prefix-search {
	font-size: 15px;
	color: #ccc;
}
/* override the text prefix with proper icons using pseudo-elements */
.lp-input-row:first-of-type .lp-input-prefix::before {
	content: '\25CF';   /* filled circle = location dot */
	color: #e5302a;
	font-size: 10px;
}
.lp-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0 12px;
	height: 38px;
	font-size: 13px;
	color: #333;
	background: transparent;
	min-width: 0;
}
.lp-input::placeholder {
	color: #bbb;
}
.lp-hint {
	margin: 5px 0 0;
	font-size: 11px;
	color: #aaa;
	line-height: 1.5;
}
.lp-search-btn {
	display: block;
	width: 100%;
	padding: 11px 0;
	background: #e5302a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.3px;
	margin-top: 2px;
	transition: background 0.15s, transform 0.1s;
}
.lp-search-btn:hover { background: #c9281f; }
.lp-search-btn:active { transform: scale(0.99); }

/* ---- Results panel ---- */
.lp-results-panel {
	border-top: 2px solid #f5f5f5;
}
.lp-results-bar {
	display: flex;
	align-items: center;
	padding: 10px 20px 8px;
	gap: 6px;
}
.lp-results-label {
	font-size: 11px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
#lp-count {
	font-size: 11px;
	color: #bbb;
	flex: 1;
}
.lp-results-clear {
	border: none;
	background: none;
	font-size: 12px;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
}
.lp-results-clear:hover { background: #f5f5f5; color: #555; }

/* Scroll area */
.lp-scroll-area {
	height: 250px;
	overflow: hidden;
	position: relative;
}
.lp-scroll-area .jspContainer { overflow: hidden; position: relative; }
.lp-scroll-area .jspPane     { position: absolute; }
.lp-scroll-area .jspVerticalBar {
	position: absolute; top: 0; right: 0; width: 4px; height: 100%;
}
.lp-scroll-area .jspTrack { background: #f0f0f0; height: 100%; }
.lp-scroll-area .jspDrag  { background: #ccc; border-radius: 2px; position: relative; top: 0; left: 0; cursor: pointer; }
.lp-scroll-area .jspCap   { display: none; }

/* ---- Venue list ---- */
.lp-venue-list {
	list-style: none;
	margin: 0;
	padding: 4px 14px 10px;
}
.lp-venue-item {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid #efefef;
	border-radius: 8px;
	margin-bottom: 7px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.lp-venue-item:hover {
	border-color: #e5302a;
	box-shadow: 0 2px 10px rgba(229,48,42,0.10);
	background: #fffafa;
}
.lp-vi-body { flex: 1; min-width: 0; }
.lp-vi-top  { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.lp-vi-name {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lp-vi-cat {
	font-size: 10px;
	font-weight: 600;
	color: #e5302a;
	background: #fff0ef;
	border-radius: 3px;
	padding: 1px 6px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.lp-vi-addr {
	font-size: 11px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lp-vi-addr::before {
	content: '\25B6 \0020';   /* small triangle = pin hint */
	font-size: 8px;
	color: #ccc;
}
.lp-vi-arrow {
	font-size: 20px;
	color: #ddd;
	margin-left: 10px;
	flex-shrink: 0;
	transition: color 0.15s;
}
.lp-venue-item:hover .lp-vi-arrow { color: #e5302a; }

/* ---- State rows (loading / empty) ---- */
.lp-state-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 28px 20px;
	list-style: none;
}
.lp-empty {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	color: #bbb;
}
.lp-empty-icon {
	font-size: 34px;
	line-height: 1;
	margin-bottom: 8px;
}
.lp-state-msg {
	font-size: 13px;
	color: #bbb;
	line-height: 1.5;
}
.lp-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #eee;
	border-top-color: #e5302a;
	border-radius: 50%;
	animation: lp-spin 0.75s linear infinite;
	flex-shrink: 0;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---- Photo wrap ---- */
.lp-photo-wrap { padding: 4px 14px 10px; }
.lp-photo-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.lp-photo-thumb {
	width: 88px;
	height: 88px;
	border-radius: 7px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f5f5f5;
}
.lp-photo-a {
	display: block;
	width: 100%;
	height: 100%;
}
.lp-photo-thumb img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s, transform 0.2s;
}
.lp-photo-thumb:hover img { opacity: 0.85; transform: scale(1.04); }

/* legacy compat */
.foursquare-items { list-style: none; }
.foursquare-items li.full-width { width: 100%; text-align: center; }
.foursquare-items li.full-width a { cursor: pointer; }

/* ---- Powered by Google ---- */
.lp-form { padding-bottom: 0; }
.location-form { padding-bottom: 0; }
.lp-powered {
	text-align: center;
	font-size: 11px;
	color: #ccc;
	padding: 8px 0 6px;
	border-top: 1px solid #f5f5f5;
}
.lp-powered a { color: #4285f4; text-decoration: none; }
.poweredByGoogle {
	background: #fff;
	border-top: 1px solid #f0f0f0;
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 0;
	text-align: center;
	padding: 6px 0;
	font-size: 11px;
	color: #bbb;
}
.poweredByGoogle a { color: #4285f4; }

/* ---- Map popup ---- */
.location-popup-thumb { float: left; width: 50px; }
.location-popup-info  { float: left; width: 205px; }
.location-popup-thumb img { width: 50px; height: 50px; }

/* ---- Shared / legacy styles ---- */
.icon-addplacepin {
	background-repeat: no-repeat;
	width: 24px;
	text-indent: -50000px;
	background-image: url(../images/icon-add.png);
	background-position: center 18px;
}
.icon-addplacepin:hover { background-position: center -158px; }
.pin-location-list { list-style-type: none; }
.pin-location-list li { margin-bottom: 5px; }
.pin-location-list li span { font-size: 12px; }
.boardicons li span.icon-location { background-image: url(../images/marker-grey.png); background-size: 14px 16px; }
.sbOptions li a span.icon-location { background-image: url(../images/marker-grey.png); }
.pinicons li a.icon-pinpage-pinlocation { background-image: url(../images/marker.png); background-position: center 19px; text-indent: -50000px; }
.dropdown .dropdown-wrapper > ul.addpin > li > a.icon-location_create { background-image: url(../images/icon-places.png); }

/* Google Places Autocomplete dropdown — scrollable, above fancybox */
.pac-container {
	z-index: 99999 !important;
	max-height: 155px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}
