/**
 * Hytrol IP Map - Public Styles
 * Styles for the public-facing map shortcode
 */

/* Container and Layout */
.hyipmap-container {
	position: relative;
	width: 100%;
	height: 75vh;
	min-height: 800px;
	display: flex;
	flex-direction: column;
}

@media (min-width: 992px) {
	.hyipmap-container {
		flex-direction: row;
	}
}

/* Map */
#hyipmap-map {
	width: 100%;
	height: 100%;
	flex: 1;
}

/* Panel (Search/Form Container) */
.hyipmap-panel {
	background-color: rgba(37, 36, 36, 0.9);
	color: #fff;
	z-index: 2;
	padding: 7px 0;
	position: relative;
	width: 100%;
	height: auto;
}

@media (min-width: 992px) {
	.hyipmap-panel {
		position: absolute;
		right: 20px;
		margin-top: 15px;
		width: 570px;
		max-width: calc(100% - 40px);
	}
}

/* Toggle Row (IP Locator / Match Me tabs) */
.hyipmap-toggle-row {
	display: flex;
	margin-bottom: 0;
}

.hyipmap-toggle {
	flex: 1;
	text-align: center;
	cursor: pointer;
	padding: 7px;
	background-color: grey;
	letter-spacing: 1px;
	font-size: 1.4em;
	margin-top: -7px;
	padding-top: 7px;
}

.hyipmap-toggle h2 {
	margin-bottom: 0;
	font-size: 1.2rem;
	font-family: Erbaum, Arial, sans-serif;
	text-transform: uppercase;
	color: #fff;
}

@media (max-width: 992px) {
	.hyipmap-toggle h2 {
		font-size: 1.7rem;
	}
}

.hyipmap-toggle-active,
.hyipmap-toggle.hyipmap-toggle-active h2{
	background-color: inherit;
	color: #fd0;
}

.hyipmap-toggle:first-child {
	left: 0;
}

.hyipmap-toggle:last-child {
	right: 0;
}

/* Panel Content */
.hyipmap-panel-content {
	padding: 10px 15px;
}

.hyipmap-tab-content {
	display: none;
}

.hyipmap-tab-content.hyipmap-tab-active,
.hyipmap-tab-content.toggled-content {
	display: block !important;
}

.hyipmap-panel-content h2 {
	font-family: Erbaum, Arial, sans-serif;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0;
	color: #fd0;
	margin-bottom: 0;
	padding-top: 25px;
	margin-left: auto;
	margin-right: auto;
}

.hyipmap-panel-content p {
	font-family: Montserrat, sans-serif;
	letter-spacing: 0.03rem;
	margin-bottom: 20px;
	line-height: 1.1;
}

/* Toggle content styles (from old #mapForm) */
.hyipmap-panel .toggle-content {
	padding-top: 10px;
}

/* Search Inputs */
.hyipmap-search-options-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

#hyipmap-ip-search {
	width: 100%;
	padding: 24px 12px;
    margin-bottom: 0;
	background: #fff;
	color: #58595b;
	font-size: 14px;
	font-family: Montserrat, sans-serif;
	outline: none;
}

#hyipmap-panel input#hyipmap-ip-search{
    margin-bottom: 0;
}

#hyipmap-ip-search:focus {
	border-color: #58595b;
}

#hyipmap-ip-search::placeholder {
	color: #58595b;
}

/* PlaceAutocompleteElement Container */
.hyipmap-place-autocomplete-container {
	width: 250px;
}

/* Style the PlaceAutocompleteElement (gmp-place-autocomplete) */
.hyipmap-place-autocomplete-container gmp-place-autocomplete {
	width: 100%;
	display: block;
}

/* Style the input inside PlaceAutocompleteElement using ::part */
.hyipmap-place-autocomplete-container gmp-place-autocomplete::part(input) {
	width: 100%;
	border-style: hidden;
	background: transparent;
	color: #58595b;
	font-size: 14px;
	font-family: Montserrat, sans-serif;
	outline: none;
	box-sizing: border-box;
}


.hyipmap-place-autocomplete-container gmp-place-autocomplete::part(input)::placeholder {
	color: #58595b;
}

/* Panel input, textarea, and button styles (from old #mapForm) */
#hyipmap-panel input,
#hyipmap-panel textarea {
	margin-bottom: 20px;
	border-style: hidden;
	font-size: 14px;
}

#hyipmap-panel input:focus,
#hyipmap-panel textarea:focus {
    outline: none;
    background-color: #fff;
}

#hyipmap-panel textarea{
    height: 70px;
}

#hyipmap-panel button {
	margin-bottom: 10px;
	border-style: solid;
	border-radius: 4px;
	background-color: #FFDD00;
	color: #232729;
	font-family: Erbaum, Arial;
	font-weight: 700;
	font-size: clamp(0.75rem, 0.4824rem + 1.098vw, 1.8rem);
	text-transform: uppercase;
	line-height: 1em;
}

#hyipmap-panel button:hover {
	background-color: #E5C71F;
}

/* Autocomplete Dropdown */
.hyipmap-autocomplete {
	position: relative;
	display: inline-block;
    flex:1;
}

.autocomplete-items {
	position: absolute;
	border: 1px solid #d4d4d4;
	border-bottom: none;
	border-top: none;
	z-index: 99;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 50vh;
	overflow-y: scroll;
	background-color: #fff;
}

.autocomplete-items div {
	padding: 2px;
	cursor: pointer;
	background-color: #fff;
	color: #000;
	border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
	background-color: #e9e9e9;
}

.autocomplete-active {
	background-color: #fd0 !important;
	color: #fff;
}

/* InfoWindow Styles */
#ipLocatorDetail {
	font-family: Montserrat, sans-serif;
}

#ipLocatorDetail p {
	margin-bottom: 2px;
	font-size: 13px;
}

p#ipLocatorDetailHeader {
	font-size: 1.4rem;;
	border-bottom: 2px solid #fd0;
	margin-bottom: 5px;
	padding-bottom: 5px;
	font-weight: bold;
}

.ipwebsite {
	color: #0066cc;
	text-decoration: underline;
}

.ipwebsite:hover {
	color: #004499;
}

gmp-place-autocomplete {
    /* Change the overall color scheme */
    color-scheme: light; /* or dark */
    border-radius: 5px;
    width: 100%;
  }


/* HubSpot Form Styles */
.hs-form-html {
	width: 100%;
}

[data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
	padding: 0px !important;
}

[data-hsfc-id=Renderer] .hsfc-Row {
	margin: 0px !important;
	gap: 20px;
}

[data-hsfc-id=Renderer] .hsfc-FieldLabel {
	margin: 0px !important;
}

[data-hsfc-id=Renderer] .hsfc-PhoneInput__FlagAndCaret {
	padding-bottom: 0px !important;
	padding-top: 0px !important;
	max-height: 40px !important;
    border: 0 !important;
}

[data-hsfc-id=Renderer] .hsfc-Heading {
	font-family: Erbaum, Arial, sans-serif !important;
	margin-bottom: 0;
	font-size: 1.2rem;
	line-height: 1.5em;
}

[data-hsfc-id=Renderer] .hsfc-RichText p{
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (max-width: 430px) {
	[data-hsfc-id=Renderer] .hsfc-Row {
		gap: 10px !important;
	}
}

/* Responsive Adjustments */
@media (max-width: 992px) {
	.hyipmap-panel {
		position: relative;
		width: 100%;
		height: auto;
		z-index: 2;
		background-color: rgba(37, 36, 36, 0.9);
		color: #fff;
		padding-top: 7px;
	}
	
	.hyipmap-panel .hyipmap-toggle {
		font-size: 1.4em;
	}
	
	.hyipmap-panel input {
		width: 100%;
	}
	
	.hyipmap-panel input.wide {
		width: 100%;
	}
	
	.hyipmap-panel input[type="checkbox"] {
		width: initial;
	}
	
	.hyipmap-panel-content h2 {
		margin-bottom: 0;
	}
	
	.hyipmap-panel-content p {
		letter-spacing: 0.03rem;
	}
	
	.hyipmap-container {
		min-height: 800px;
	}
	
	#hyipmap-map {
		height: 800px;
		min-height: 800px;
	}
}

@media (min-width: 768px) and (max-width: 992px) {
	.hyipmap-panel {
		z-index: 2;
		background-color: rgba(37, 36, 36, 0.9);
		color: #fff;
		position: absolute;
		right: 20px;
		padding-top: 7px;
		margin-left: 20px;
		margin-top: 15px;
		width: 570px;
		height: auto;
	}
	
	.hyipmap-panel .hyipmap-toggle {
		font-size: 1.4em;
	}
	
	.hyipmap-panel-content h2 {
		margin-bottom: 0;
		font-size: 1.2rem;
	}
	
	.hyipmap-panel-content p {
		letter-spacing: 0.03rem;
        margin-bottom: 1rem;
	}

}

@media (max-width: 768px) {
    .hyipmap-place-autocomplete-container{
        width: 100%;
    }
	.hyipmap-panel-content h2 {
		font-size: 1.5rem;
	}
	
	.hyipmap-toggle h2 {
		font-size: 1.4rem;
	}
}
