* {
    box-sizing: border-box;
}
.site-header {
    display: none;
}
#footer-nav > div:last-child {
    display: none;
}
/* Landing Page - Full Block */
.pharmacy-finder-landing {
	top: 0;
	left: 0;
	width: 100%;
	background: white;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 100;
	padding: 60px 20px;
	min-height: 100vh;
	overflow-y: auto;
}
.boxstep2 {
    display: block;
}
.pharmacy-finder-landing.hidden {
	display: none;
	pointer-events: none;
}

.landing-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0px;

	width: 100%;
	background: white;
	border-radius: 0;
	box-shadow: none;
	max-height: none;
	overflow-y: visible;
}

.landing-header {
	text-align: center;
	margin-bottom: 0px;
	padding-bottom: 0px;
}

.landing-header h1 {
    font-size: 28px;
    color: #041958;
    margin: 0 0 0px 0;
    line-height: 1.4;
    letter-spacing: -1px;
    font-weight: normal;
}

.landing-header h1 strong {

	font-weight: bold;
}

.landing-header p {
    font-size: 15px;
    color: #041958;
    margin: 5px 0 0 0;
    line-height: 1.5;
}
.landing-header p span{
    color: #3F98DB;
    font-weight: bold;
}
.landing-header p span.conlink{
    cursor: pointer;
    text-decoration: underline;
}

.landing-content {
	background: white;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.landing-section {
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    background: white;
    box-shadow: 0 0 20px #dcdcdc;
}
button#btn-landing-search {
    margin-bottom: 50px;
}
button#btn-landing-nearby {
    margin-bottom: 40px;
}
.btn-standard {
    padding: 12px 20px;
    background: #3F98DB;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.3s;
    width: fit-content;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-family: 'Apis', sans-serif;
    box-shadow: 5px 5px 20px #cfcfcf;
    width: 100%;
}

.landing-section:last-child {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 25px;
}

.landing-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0px;
}

.landing-section-header span {
	font-size: 24px;
	color: #3F98DB;
}

.landing-section-header h3 {
    margin: 0;
    font-size: 17px;
    color: #3F98DB;
    font-weight: bold;
}

.landing-section p {
	margin: 0;
	font-size: 14px;
	color: #041958 ;
	line-height: 1.6;
}

.landing-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 10px;
}

.btn-landing {
	padding: 14px 25px;
	background: #3F98DB;
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.3s;
	width: 100%;
	text-align: center;
	margin-top: 10px;
}

.btn-landing:hover {
	background: #2E7BB8;
}

.btn-landing:active {
	background: #1E5A94;
}

.landing-checkbox {
	align-self: flex-start;
}

/* Landing Form Styles */
.landing-form .form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.landing-form .form-group label {
	font-size: 13px;
	font-weight: 600;
	color: #041958;
}

.landing-form .form-control {
    padding: 10px 12px;
    border: 1px solid #E0D9D9;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: white;
    color: #041958;
}
:focus-visible {
    outline: none !important	;
}
.landing-form .form-control:focus {
	outline: none;
	border-color: #3F98DB;
	box-shadow: 0 0 0 2px rgba(63, 152, 219, 0.1);
}

.landing-ftcheq {
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	margin-top: 30px;
	margin-bottom: 40px;
}

.ftcheq-logo {
	font-size: 32px;
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 10px;
}

.landing-ftcheq p {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}

.ftcheq-logo {
	font-size: 28px;
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 10px;
	letter-spacing: 2px;
}

.landing-ftcheq p {
	margin: 0;
	font-size: 13px;
	color: #333;
	line-height: 1.6;
}

.landing-ftcheq strong {
	color: #3F98DB;
}

/* Pharmacy Finder Container */
.pharmacy-finder-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	background: #f5f5f5;
	display: flex;
	flex-direction: column;
	position: relative;
}

.pharmacy-finder-container.hidden {
	display: none;
}

/* Header */
.pharmacy-finder-header {
	background: white;
	padding: 20px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.pharmacy-finder-header h1 {
	font-size: 24px;
	font-weight: bold;
	color: #3F98DB;
	margin: 0;
	flex: 1;
}

.current-location-display {
	padding: 8px 12px;
	background: #e3f2fd;
	border: 1px solid #90caf9;
	border-radius: 4px;
	font-size: 12px;
	color: #3F98DB;
}

.pharmacy-finder-actions {
	display: flex;
	gap: 15px;
}

.pharmacy-finder-actions button {
	padding: 10px 20px;
	border: none;
	border-radius: 25px;
	background: #3F98DB;
	color: white;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	transition: background 0.3s;
}

.pharmacy-finder-actions button:hover {
	background: #3F98DB;
}

/* Modal de búsqueda */
.search-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    background: #23356de6;
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.search-modal.open {
	display: flex !important;
}

.search-modal-content {
	background: white;
	border-radius: 10px;
	padding: 50px;
	max-width: 670px;
	width: 90%;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
}

.search-modal-content h2 {
	color: #3f98db;
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
}

.search-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	color: #041958;
	font-weight: bold;
	font-size: 14px;
}

.form-control {
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
}

.form-control:focus {
	outline: none;
	border-color: #0050CC;
	box-shadow: 0 0 0 3px rgba(0, 80, 204, 0.1);
}

.btn-search {
padding: 12px;
    background: #3F98DB;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: background 0.3s;
    margin-top: 10px;
    position: relative;
}
button.pharmacy-item-toggle:hover {
    background: transparent !important;
}
.btn-search:hover, button:hover {
	background: #001859 !important;
}

/* Contenido principal */
.pharmacy-finder-content {
    display: flex;
    gap: 0;
background: white;
    min-height: 900px;
}

/* Sidebar izquierda */
.pharmacy-finder-sidebar {
	width: 470px;
	background: white;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
    max-height: 680px;
    padding-right: 10px;
}
.pharmacy-finder-map h3.h3-title {
    margin-bottom: 10px;
}
.filters-section {
	padding: 10px 0 20px;
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.filters-header h3 {
	margin: 0;
	font-size: 16px;
	color: #041958;
	font-weight: bold;
}

.btn-clear-filters {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	font-size: 18px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-clear-filters:hover {
	color: #333;
}

.filters-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.filter-checkbox input[type="checkbox"] {
	display: none;
}

.checkbox-icon {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ddd;
	flex-shrink: 0;
	transition: border-color 0.2s, background-color 0.2s;
	background: white;
	position: relative;
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-icon {
	border-color: #3F98DB;
	background: white;
	background-image: url('../pharmacy-assets/check.svg');
	background-size: 10px 10px;
	background-position: center;
	background-repeat: no-repeat;
}

.checkbox-label {
	font-size: 14px;
	color: #333;
}

/* Sección de listado */
.pharmacies-list-section {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
}

/* Scrollbar personalizado */
.bgscrollbar::-webkit-scrollbar {
	width: 12px;
}

.bgscrollbar::-webkit-scrollbar-track {
	box-shadow: none;
	border-radius: 10px;
background: #FFF;
background: linear-gradient(90deg,rgba(255, 255, 255, 1) 36%, rgba(216, 219, 224, 1) 36%, rgba(216, 219, 224, 1) 64%, rgba(255, 255, 255, 1) 64%);
}

.bgscrollbar::-webkit-scrollbar-thumb {
	background: #3F98DB;
	border-radius: 10px;
}

.bgscrollbar::-webkit-scrollbar-thumb:hover {
	background: #3F98DB;
}

.bgscrollbar::-webkit-scrollbar-button {
	background: white;
	height: 18px;
	width: 12px;
	border-radius: 5px;
}

.bgscrollbar::-webkit-scrollbar-button:vertical:increment {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text x="12" y="18" font-size="20" fill="%233F98DB" text-anchor="middle" font-weight="bold">▼</text></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}

.bgscrollbar::-webkit-scrollbar-button:vertical:decrement {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text x="12" y="18" font-size="20" fill="%233F98DB" text-anchor="middle" font-weight="bold">▲</text></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}
.phar-str{

}
h3.h3-title {
	margin: 0;
	font-size: 16px;
	color: #041958;
	font-weight: bold;
}

.pharmacies-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.pharmacy-item {
	background: #fff;
	border: 1px solid #D8DBE0;
	border-radius: 15px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s;
    box-shadow: 0px 0px 12px #eaeaea;
}

.pharmacy-item:hover {
	border-color: #4f9fdd;
	box-shadow: 0 2px 8px rgba(0, 80, 204, 0.15);
}

.pharmacy-item-header {
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;

}

.pharmacy-item-title {
	font-weight: bold;
	color: #3F98DB;
	font-size: 16px;
	margin: 0;
}

.pharmacy-item-distance {
    font-size: 12px;
    color: #041958;
    margin: 0;
    margin: 0px 0 5px ;
}
.addicon {
    margin-top: 20px;
}
.pharmacy-item-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 17px;
	height: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.pharmacy-item-toggle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.pharmacy-item-toggle.open {
	transform: rotate(180deg);
}

.pharmacy-item-content {
	display: none;
	padding: 0 15px 15px 15px;
	font-size: 13px;
	color: #333;
}

.pharmacy-item-content.open {
	display: block;
}

.pharmacy-item-info {
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;

}
strong.phar-str {
    max-width: 230px;
}
.fieldcss img {
width: 16px;height: 11px;vertical-align: middle;margin-right: 5px;margin-top: 0%;}
.phaddress {
    display: flex;
    flex-direction: row;
}
.pharmacy-item-info strong {
	color: #041958;
	display: block;
	margin-bottom: 0px;
}
.pharmacy-item-info.howcss img {
    height: 26px !important;
    width: 25px !important;
    margin-left: -4px;
}
.pharmacy-item-info.addcss img {
    height: 19px !important;
    width: 19px !important;
    margin-left: -2px;
}
.pharmacy-item-info.telcss img {
    height: 12px !important;
    width: 13px !important;
    margin-left: 0px;
}
.addcss {
    margin-top: 30px;
}
.pharmacy-item-info a {
	color: #3F98DB;
	text-decoration: none;
    font-weight: bold;
}

.pharmacy-item-info a:hover {
	text-decoration: underline;
}
.pharmacy-finder-logo {
    position: absolute;
    z-index: 100000;
    top: 20px;
    left: 20px;
}
.boxstep2{
    display: none;
}

.pharmacy-finder-logo.logo_white {
    filter: brightness(200);
}
.landing-ftcheq.frontlogo {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    max-width: 484px;
    margin: 0 auto;
}
.pharmacy-finder-header h1 {
    font-size: 23px;
    font-weight: bold;
    color: #041958;
    margin: 0 0 0 130px;
    flex: 1;
    border-left: 1px solid #D8DBE0;
    height: 60px;
    display: flex;
    align-content: center;
    align-items: center;
    padding-left: 40px;
}

/* Mapa */
.pharmacy-finder-map {
    flex: 1;
    background: white;
    position: relative;
    padding: 20px;
    height: 890px;
}
.container-map {
    max-height: 650px;
}
.map-legend {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    border: 1px solid #D8DBE0;
    margin-top: 20px;
    border-radius: 15px;
    margin-bottom: 50px;
}
p.legend-text {
    font-size: 15px;
    font-family: 'Apis';
    padding: 0;
    margin: 10px;
    color: #041958;
}
.gm-style-iw-ch {
    display: none;
}
button.gm-ui-hover-effect {
    position: absolute !important;
    right: 0;
    top: 0;
        opacity: 0.4;
}
button.gm-ui-hover-effect:hover {
    background: transparent !important;

}
.infowindowcss h3 {
color: #3F98DB;
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px !important;
}
.comollegar{
    width: 21px;height: 20px;vertical-align: middle;margin-right: 5px;
}
.infowindowcss {
    padding: 0 10px;
}
p.infowindow-address {
    margin: 0;
    font-size: 12px;
    color: #041958;
    min-height: 50px;
}
a.infowindow-link {
    font-size: 13px;
    font-weight: bold;
    color: #3F98DB;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: underline;
}


div#map {
    border-radius: 15px;
}


/* Responsive */
@media (max-width: 1024px) {
	.pharmacy-finder-content {
		flex-direction: column;
	}

	.pharmacy-finder-sidebar {
		width: 100%;
		max-height: 400px;
	}

	.pharmacy-finder-map {
		height: 400px;
	}
}

@media (max-width: 768px) {
	.pharmacy-finder-header {
		padding: 15px;
	}
.infowindowcss {
    padding: 0 0px;
    width: auto !important;
}
.infowindowcss h3 {
    color: #3F98DB;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0 10px !important;
}
a.infowindow-link {
    font-size: 12px;
}
p.infowindow-address {
    margin-bottom: 5px;
}
.search-modal {

    left: -5px;
}
	.pharmacy-finder-header h1 {
		font-size: 18px;
	}

	.pharmacy-finder-actions {
		width: 100%;
		gap: 10px;
	}

	.pharmacy-finder-actions button {
		flex: 1;
		justify-content: center;
		padding: 8px 12px;
		font-size: 12px;
	}

    .pharmacy-finder-content {
        max-height: none;
        height: 1200px;
        flex-direction: column;
    }

	.pharmacy-finder-sidebar {
		width: 100%;
		max-height: 300px;
	}

	.pharmacy-finder-map {
		height: 300px;
	}

	.current-location-display {
		font-size: 11px;
		padding: 6px 10px;
	}
    .landing-section {
        padding: 20px;
    }
.pharmacy-finder-landing {
    padding: 60px 0px;
}
.landing-container {
    padding: 30px;
}
.landing-header h1 {
    font-size: 23px;
    margin: 10px 0 30px;
}
.pharmacy-finder-logo img {
    width: 80%;
}
.pharmacy-finder-actions button img {
    display: none;
}
#footer {
    padding-bottom: 48px;
    padding-top: 208px
}
}

@media (max-width: 480px) {
	.pharmacy-finder-header {
		padding: 10px;
		gap: 10px;
	}

	.pharmacy-finder-header h1 {
		font-size: 16px;

	}
.pharmacy-finder-logo {
    position: absolute;
    z-index: 100000;
    top: 20px;
    left: 20px;
}
button#btn-search {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #3F98DB;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
    text-align: center;
    justify-content: center;
}

	.pharmacy-finder-actions button {
		padding: 6px 5px;
		font-size: 12px;
		width: 100%;
		padding: 10px;
	}

	.pharmacy-finder-sidebar {
		max-height: 540px;
	}

	.pharmacy-finder-map {
		height: 540px;
	}

    .search-modal-content {
        max-width: 90%;
        padding: 40px;
    }

	.pharmacy-item-header {
		padding: 12px;
	}

	.pharmacy-item-content {
		padding: 0 12px 12px 12px;
	}

	.filters-section {
		padding: 15px 0;
	}

	.pharmacies-list-section {
		padding: 15px;
	}
}