/**
 * webtrees: online genealogy
 * Copyright (C) 2016 webtrees development team
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#place_hierarchy {
	margin-top: 10px;
}

.gm-pedigree-map {
	margin: 20px;
}

/* Google adds "android" styling to info-windows - reset this */
.gm-style,
.gm-style .gm-style-iw {
	font: inherit;
}

/* Contains a map and a list of events */
.gm-wrapper {
	height: 400px;
	border: 1px solid #888;
	margin: 2px;
	display: flex;
}

/* The actual map. */
.gm-map {
	width: 70%;
	height: 100%;
}

/* Links to administrator functions */
.gm-options {
	margin: 2px;
	text-align: center;
}

#googlemap_content .gm-options {
	width: 70%;
}

/* Pop-up window in a map */
.gm-info-window {
	font-size: 12px;
	min-height: 60px;
	max-height: 240px;
	overflow-x: hidden;
}

.gm-pedigree-map .gm-info-window {
	display: flex;
}

.gm-info-window-header {
	font-weight: bold;
	padding-bottom: .5em;
	text-align: center;
	white-space: normal;
	width: 300px;
}

.gm-streetview {
	width: 297px;
	border-top: 1px solid #aaa;
	height: 200px;
	margin-left: 0;
	margin-top: 0;
}

.gm-event {
	width: 100%;
	min-height: 50px;
	padding: 5px 3px;
	border-bottom: 1px dotted #aaa;
}

/* The map has flags, which have popup windows, which have tabs */
.gm-tabs {
	margin: 0;
	padding: 0;
	height: 19px;
	display: flex;
}

.gm-tab {
	list-style-type: none;
	margin: 0 2px;
	background-color: #eee;
	border-radius: 4px 4px 0 0;
	border: 1px solid #666;
	color: #777;
	height: 18px;
	display: block;
	padding: 0 10px;
}

.gm-tab-active,
.gm-tab:hover {
	background-color: #fff;
}

.gm-pane {
	background-color: #eee;
	border: 1px solid #666;
}

.gm-ancestor {
	min-height: 50px;
	margin: 5px;
	padding: 0!important;
	border: 1px dotted #aaa;
	display: flex;
}

.gm-ancestor-visited {
	background-color: #ffc;
	border: 1px solid #ffdd00;
}

.gm-ancestors,
.gm-events {
	width: 30%;
	overflow-x: hidden;
	overflow-y: auto;
}

/* We have a link inside something that behaves like a link, and therefore must look like a link. */
.gm-ancestor-link {
	cursor: pointer;
	width: 100%;
}

.gm-wrapper .gallery {
	width: 50px;
}

.gm-ancestors .gallery img,
.gm-style-iw .gallery img {
	height: auto;
	max-height: 50px;
	max-width: 36px;
	width: auto;
}

.gm-ancestors .icon-silhouette-M,
.gm-ancestors .icon-silhouette-F,
.gm-ancestors .icon-silhouette-U,
.gm-style-iw .icon-silhouette-M,
.gm-style-iw .icon-silhouette-F,
.gm-style-iw .icon-silhouette-U {
	max-height: 50px;
	width: 50px;
}

.gm-streetview-frame {
	overflow: hidden;
	width: 530px;
	padding: 0;
	border: 0;
	display: block;
}

.gm-streetview-parameters {
	margin-left: 4px;
	border: solid 1px black;
	width: 520px;
	margin-top: -7px;
	background: #cccccc;
}

.gm-streetview-parameters form {
	text-align: left;
	margin-left: 5px;
	font: 10px verdana;
	color: blue;
}

.gm-streetview-parameters input {
	padding: 0;
	margin: 0;
}

.gm-streetview-parameters input[type=text] {
	font-size: inherit;
	text-overflow: ellipsis;
	background: none;
	border: none;
}
