* {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	font-family: Roboto, Arial, sans-serif;
	font-weight: normal;
	font-style: normal;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
	height: 100%;
	background-color: #ccc;
	font-size: calc(0.2vw + 14px);
}
body {
	height: 100%;
}
table {
	width: 100%;
	table-layout: fixed;
	border-spacing: 0;
}
strong {
	font-weight: bold;
}
input::-webkit-input-placeholder {
    color: #aaa;
}

#busquedas {
	display: none;
}
body.busquedas #busquedas {
	display: block;
	position: absolute;
	top: 48px;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: #ccc;
}
#busquedas * {
	font-size: 1rem;
	line-height: 1.25rem;
}
#busquedas form {
	position: relative;
	padding: 24px 82px 24px 30px;
}
#busquedas form input {
	background-color: #555;
	color: white;
	width: 100%;
	padding: 6px 10px;
	border-radius: 8px;
	box-shadow: inset 0 0 8px #000;
	box-sizing: border-box;
}
#busquedas form input.buscando {
	background-color: #888;
}
#busquedas form img {
	display: block;
	position: absolute;
	width: 36px;
	top: 22px;
	right: 30px;
	opacity: 0.7;
	cursor: pointer;
}
#busquedas p {
	padding: 15px;
	color: #222;
	background-color: #fff;
}
#busquedas address {
	position: relative;
	padding: 15px;
	background-color: #fff;
}
#busquedas address img {
	position: absolute;
	width: 32px;
	left: 15px;
	top: 15px;
}
#busquedas address h1,
#busquedas address h2,
#busquedas address h3,
#busquedas address h4 {
	padding-left: 40px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#busquedas address h1 {
	font-weight: bold;
}
#busquedas address h4 {
	margin-top: 15px;
}
#busquedas > div:first-of-type {
	box-shadow: 0 1px 4px #666;
	position: absolute;
	top: 80px;
	left: 30px;
	right: 700px;
	margin-bottom: 30px;
	background-color: #ddd;
}
#busquedas > div:first-of-type section {
	box-shadow: none;
	margin-bottom: 0;
}
#busquedas > div:first-of-type address {
	left: 0;
	top: 0;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.3s;
}
#busquedas > div:first-of-type > address:nth-child(n+2) {
	margin-top: 1px;	
}
#busquedas > div:first-of-type > address:hover {
	background-color: #f5f5f5;
}
#busquedas > div:first-of-type address.eliminar {
	z-index: 1;
	left: 100%;
	opacity: 0.2;
	transition: opacity 0.7s linear, left 0.7s linear;
}
#busquedas section.oculto {
	display: none;
}
#busquedas section {
	position: relative;
	line-height: 0;
	box-shadow: 0 1px 4px #666;
	background-color: #fff;
	margin-bottom: 30px;
}
#busquedas section > h1 {
	position: relative;
	background-color: #8c4;
	color: #fff;
	text-shadow: 0 1px 2px #000;
	font-weight: bold;
	padding: 12px 60px 12px 15px;
	box-sizing: border-box;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#busquedas section > h1 img {
	position: absolute;
	width: 32px;
	padding: 5px;
	top: 50%;
	transform: translateY(-50%);
	right: 9px;
	cursor: pointer;
}
#busquedas section > img {
	width: 640px;
	height: 360px;
	cursor: pointer;
}
#busquedas div div {
	position: relative;
	padding-right: 60px;
}
#busquedas section nav {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 60px;
	background-color: #8c4;
}
#busquedas section nav img {
	width: 32px;
	height: 32px;
	padding: 14px 14px 7px 14px;
	cursor: pointer;
}
#busquedas section nav img + img {
	padding: 7px 14px 14px 14px;
}
#busquedas figure {
	padding-top: 9px;
	padding-left: 14px;
	box-sizing: border-box;
	line-height: 0;
}
#busquedas figure img {
	width: 56px;
	margin: 6px 6px 0 0;
	opacity: 0.7;
}
#busquedas > div:last-of-type {
	position: absolute;
	top: 80px;
	right: 30px;
	width: 640px;
}
@media screen and (min-width: 901px) {
	#busquedas > div:first-of-type section {
		display: none;
	}
}
@media screen and (max-width: 1152px) {
	#busquedas > div:first-of-type {
		right: calc(100vw - 452px);
	}
	#busquedas > div:last-of-type {
		width: calc(100vw - 512px);
	}
	#busquedas section > img {
		width: calc(100vw - 512px);
		height: calc(56.25vw - 288px);
	}
	#busquedas figure img {
		width: calc(10vw - 60px);
		min-width: 32px;
	}
}
@media screen and (max-width: 900px) {
	#busquedas form {
		padding: 24px 72px 24px 20px;
	}
	#busquedas form img {
		right: 20px;
	}
	#busquedas > div:first-of-type {
		left: 0;
		right: 0;
	}
	#busquedas > div:last-of-type {
		display: none;
	}
	#busquedas section > img {
		width: 100vw;
		height: 56.25vw;
	}
}

#dialogo {
	display: none;
}
#dialogo.mostrar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 4;
}
#dialogo * {
	font-size: 1rem;
	line-height: 1.25rem;
}
#dialogo section {
	position: relative;
	width: 85%;
	max-width: 550px;
	margin: 0 auto;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.8);
	background-color: #fff;
}
#dialogo h1 {
	font-weight: bold;
	padding: 12px 26px;
	background-color: #8c4;
	color: #fff;
	text-shadow: 0 1px 2px #000;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#dialogo article {
	padding: 26px;
}
#dialogo article,
#dialogo article p,
#dialogo article li {
	font-weight: 300;
	color: #333;	
}
#dialogo article p:nth-child(n+2),
#dialogo article ul:nth-child(n+2) {
	padding-top: 15px;
}
#dialogo ul {
	list-style: none;
}
#dialogo li {
	position: relative;
	line-height: 40px;
	padding-left: 45px;
}
#dialogo img {
	position: absolute;
	top: 4px;
	left: 5px;
	width: 32px;
	opacity: 0.7;
}
#dialogo ul:nth-of-type(2) img {
	width: 18px;
	left: 17px;
	opacity: 1;
}
#dialogo a {
	text-decoration: none;
	color: #333;
	font-weight: normal;
	font-style: italic;
}
#dialogo a:hover {
	text-decoration: underline;
}

#direccion {
	display: none;
}
body.direccion #direccion {
	display: block;
	position: absolute;
	top: 58px;
	height: 34px;
	left: 10px;
	right: 10px;
	max-width: 550px;
	box-sizing: border-box;
}
#direccion input {
	padding: 8px 54px 8px 10px;
	box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
	background-color: white;
	font-size: 1rem;
	line-height: 1.25rem;
	color: #555;
	width: 100%;
	box-sizing: border-box;
}
div.pac-container {
	box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
	margin-top: 7px;
	border-top: none;
	border-radius: 0;
}
div.pac-container div:first-child {
	border-top: none;
}
div.pac-container div.pac-item {
	line-height: 36px;
}
div.pac-container div.pac-item span {
	font-size: 1rem;
	line-height: 1.25rem;
}

#mapa div.farmacia {
	position: relative;
	background-color: white;
	width: 300px;
	z-index: 1;
	line-height: 0;
}
#mapa div.farmacia > img {
	width: 256px;
	height: 144px;
	cursor: pointer;
}
#mapa div.farmacia nav {
	position: absolute;
	background-color: #8c4;
	top: 0;
	right: 0;
	bottom: 0;
	width: 44px;
	padding-top: 2px;
}
#mapa div.farmacia nav img {
	width: 28px;
	height: 28px;
	padding: 9px 8px;
	cursor: pointer;
}
#mapa div.farmacia figure {
	width: 256px;
	padding-top: 7px;
	padding-left: 9px;
	box-sizing: border-box;
}
#mapa div.farmacia figure img {
	width: 28px;
	margin: 2px 2px 0 0;
	opacity: 0.7;
}
#mapa div.farmacia address {
	width: 236px;
	padding: 10px;
}
#mapa div.farmacia h1,
#mapa div.farmacia h2,
#mapa div.farmacia h3,
#mapa div.farmacia h4 {
	font-size: 13px;
	line-height: 15px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#mapa div.farmacia h1 {
	font-weight: bold;
}
#mapa div.farmacia h4 {
	margin-top: 15px;
}
div.gm-style-iw-tc {
	display: none;
}

#gps {
	display: none;
}
body.mapa #gps,
body.direccion #gps {
	display: block;
	position: absolute;
	bottom: 26px;
	right: 10px;
	padding: 9px;
	box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	border-radius: 8px;
	line-height: 0;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	background-color: rgba(255, 255, 255, 0.8);
}
body.mapa #gps.activado,
body.direccion #gps.activado {
	background-color: rgba(34, 204, 255, 0.8);
}
#gps img {
	width: 32px;
	opacity: 0.7;
}

#mapa {
	display: none;
}
body.mapa #mapa,
body.direccion #mapa,
body.busquedas #mapa {
	display: block;
	position: absolute;
	top: 48px;
	right: 0;
	bottom: 0;
	left: 0;
}


/* Flecha */
#mapa div.propio:after {
	position: absolute;
	content: "";
	top: -20px;
	left: 0;
	width: 15px;
	height: 15px;
	background-color: #fff;
	box-shadow: -2px 2px 2px 0 #888;
	transform: translate(-50%,-50%) rotate(-45deg);
}
#mapa div.propio div.gm-style-iw-chr {
	display: none;
}


/* Reposicionamiento del infowindow */
#mapa div.propio div.gm-style-iw {
	top: -20px;
	max-width: none !important;
	max-height: none !important;
	box-shadow: 0px 2px 4px #888;
	padding: 0 !important;
	border-radius: 0;
}
#mapa div.propio div.gm-style-iw > div {
	max-width: none !important;
	max-height: none !important;
	overflow: hidden !important;
}

#menu {
	display: none;
}
body.mapa #menu,
body.direccion #menu,
body.busquedas #menu,
body.ajustes #menu {
	display: block;
	position: relative;
	z-index: 2;
	box-shadow: 0px 0px 7px rgba(50, 50, 50, 1);
}
#menu ul {
	display: table;
	width: 100%;
	height: 48px;
	color: #fff;
	background: linear-gradient(180deg, #888, #555);
	cursor: pointer;
}
#menu li {
	display: table-cell;
	vertical-align: middle;
	position: relative;
}
#menu li:first-child img {
	margin-left: 8px;
	width: 160px;
	max-width: calc(100% - 16px)
}
#menu li:nth-child(n+2) {
	border-left: solid 1px #999;
	width: 17%;
}
#menu li img {
	display: block;
	margin: 0 auto;
	width: 32px;
}
#menu li:nth-child(n+2) img:first-child {
	opacity: 0.7;
}
body.mapa #menu li:nth-child(2) img:last-child,
body.mapa #menu li:nth-child(3) img:last-child,
body.direccion #menu li:nth-child(2) img:first-child,
body.direccion #menu li:nth-child(3) img:last-child,
body.busquedas #menu li:nth-child(2) img:last-child,
body.busquedas #menu li:nth-child(3) img:first-child {
	display: none;
}

#notificacion {
	display: none;
}
#notificacion.notificar {
	display: block;
	position: fixed;
	bottom: 28px;
	left: 50%;
	white-space: nowrap;
	transform: translateX(-50%);
	z-index: 4;
	background-color: #fff;
	color: #333;
	padding: 0.6rem 1rem;
	box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

#mapa div.ruta {
	position: relative;
	background-color: white;
	padding: 5px;
	z-index: 1;
	cursor: pointer;
}
#mapa div.ruta > img {
	position: absolute;
	top: 5px;
	left: 10px;
	width: 24px;
	height: 24px;
	opacity: 0.8;
}
#mapa div.ruta h1 {
	padding: 4px 45px 0 34px;
	font-weight: bold;
	font-size: 14px;
	line-height: 16px;
	white-space: nowrap;
}
#mapa div.ruta h2 {
	padding: 8px 0 0 5px;
	font-size: 12px;
	line-height: 14px;
}
#mapa div.ruta nav {
	position: absolute;
	background-color: #8c4;
	top: 0;
	right: 0;
	bottom: 0;
	width: 40px;
}
#mapa div.ruta nav img {
	width: 28px;
	padding: 10px 6px;
}


