/* Harbor House Multi-Location — sensible defaults; Elementor style controls override all of these. */

:root {
	--hhml-accent: #0b3954;
	--hhml-accent-text: #fff;
	--hhml-border: rgba(0, 0, 0, 0.12);
}

.hhml-hidden,
.hhml-field.hhml-is-empty,
.hhml-card[hidden],
.hhml-finder__empty[hidden] {
	display: none !important;
}

html.hhml-modal-open {
	overflow: hidden;
}

/* Icons (Elementor font icons, Elementor inline SVG icons, and our built-in SVGs) */
.hhml-finder__icon,
.hhml-contact__icon,
.hhml-location-button__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	line-height: 1;
	font-size: var(--hhml-icon-size, 1.15em);
}

.hhml-finder__icon svg,
.hhml-contact__icon svg,
.hhml-location-button__icon svg,
.hhml-social__link svg {
	width: 1em;
	height: 1em;
}

.hhml-finder__icon svg:not(.hhml-svg),
.hhml-contact__icon svg,
.hhml-location-button__icon svg,
.hhml-social__link svg {
	fill: currentColor;
}

/* ------------------------------------------------------------------ fields */

.hhml-hours {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.hhml-hours__row {
	display: block;
}

.hhml-hours__days {
	font-weight: 600;
}

.hhml-hours--daily .hhml-hours__row {
	margin: 0 -0.35em;
	padding: 0.1em 0.35em;
	border-radius: 3px;
}

.hhml-hours__row.is-today {
	font-weight: 700;
}

.hhml-hours--spread-yes .hhml-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 1em;
}

.hhml-map {
	display: block;
	width: 100%;
	height: 350px;
	border: 0;
}

.hhml-text {
	margin: 0;
}

/* ------------------------------------------------------------------ buttons */

.hhml-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.6em 1.1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.hhml-button--primary {
	border-color: var(--hhml-accent);
	background: var(--hhml-accent);
	color: var(--hhml-accent-text);
}

.hhml-button-wrap {
	display: flex;
}

.hhml-location-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.5em;
	border-radius: 4px;
	background: var(--hhml-accent);
	color: var(--hhml-accent-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.hhml-location-button:hover,
.hhml-location-button:focus-visible {
	color: var(--hhml-accent-text);
	opacity: 0.9;
}

.hhml-button--full-yes .hhml-location-button {
	flex: 1;
}

/* ------------------------------------------------------------------ contact list */

.hhml-contact {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hhml-contact--inline .hhml-contact {
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 1.5em;
}

.hhml-contact__item {
	display: flex;
	align-items: flex-start;
	justify-content: inherit;
	gap: 0.6em;
}

.hhml-contact__item:has(.hhml-is-empty) {
	display: none;
}

.hhml-contact__icon {
	margin-top: 0.15em;
}

.hhml-contact a {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6em;
	color: inherit;
	text-decoration: none;
}

.hhml-contact a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ social icons */

.hhml-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--hhml-icon-size, 18px);
}

.hhml-social__link {
	--hhml-social-bg: var(--hhml-accent);
	--hhml-social-fg: var(--hhml-accent-text);
	display: inline-flex;
	box-sizing: content-box;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	padding: 0.5em;
	background: var(--hhml-social-bg);
	color: var(--hhml-social-fg);
	text-decoration: none;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.hhml-social__link i {
	font-size: 1em;
	line-height: 1;
}

.hhml-social__link:hover,
.hhml-social__link:focus-visible {
	opacity: 0.85;
}

.hhml-social--shape-rounded .hhml-social__link {
	border-radius: 0.3em;
}

.hhml-social--shape-circle .hhml-social__link {
	border-radius: 50%;
}

.hhml-social--shape-none .hhml-social__link {
	padding: 0;
	background: none;
	color: var(--hhml-social-bg);
}

.hhml-social__link--facebook { --hhml-brand: #1877f2; }
.hhml-social__link--instagram { --hhml-brand: #e4405f; }
.hhml-social__link--tiktok { --hhml-brand: #000; }
.hhml-social__link--youtube { --hhml-brand: #f00; }
.hhml-social__link--x { --hhml-brand: #000; }
.hhml-social__link--linkedin { --hhml-brand: #0a66c2; }
.hhml-social__link--google { --hhml-brand: #4285f4; }
.hhml-social__link--yelp { --hhml-brand: #d32323; }
.hhml-social__link--nextdoor { --hhml-brand: #8ed500; }

.hhml-social--colors-official .hhml-social__link {
	--hhml-social-bg: var(--hhml-brand);
	--hhml-social-fg: #fff;
}

/* ------------------------------------------------------------------ switcher */

.hhml-switcher {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.hhml-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hhml-switcher--list .hhml-switcher__list {
	flex-direction: column;
}

.hhml-switcher__option.is-current {
	font-weight: 700;
}

.hhml-switcher__geo {
	cursor: pointer;
}

.hhml-switcher__status:empty,
.hhml-finder__status:empty {
	display: none;
}

/* ------------------------------------------------------------------ cards / directory */

.hhml-directory {
	display: grid;
	grid-template-columns: repeat(var(--hhml-columns, 3), minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 1024px) {
	.hhml-directory {
		grid-template-columns: repeat(min(var(--hhml-columns, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hhml-directory {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hhml-card {
	display: flex;
	flex-direction: column;
}

.hhml-card__image {
	display: block;
	flex: none;
}

.hhml-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hhml-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: var(--hhml-card-padding, 1rem 0);
}

.hhml-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.hhml-card__title,
.hhml-card p {
	margin: 0;
}

.hhml-card__title a {
	color: inherit;
	text-decoration: none;
}

.hhml-card__choose {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.8em;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-transform: uppercase;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hhml-card__choose.is-current {
	font-weight: 700;
	text-decoration: none;
}

.hhml-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.25rem;
}

.hhml-card__services {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hhml-cards--row .hhml-card {
	flex-direction: row;
}

.hhml-cards--row .hhml-card__image {
	flex-basis: 40%;
}

.hhml-cards--row .hhml-card__body {
	--hhml-card-padding: 0 0 0 1.25rem;
}

.hhml-archive {
	padding: 2rem 1rem;
}

/* ------------------------------------------------------------------ finder (header trigger + popup) */

.hhml-finder__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
}

.hhml-finder__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.25em 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.hhml-finder__current {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
}

.hhml-finder__current a {
	color: inherit;
	font-weight: 600;
}

.hhml-finder__current .hhml-field--hours_today {
	font-size: 0.85em;
	opacity: 0.85;
}

.hhml-finder__dialog {
	box-sizing: border-box;
	width: min(760px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
	color: #1a1a1a;
	text-align: left;
}

.hhml-finder__dialog::backdrop {
	background: rgba(8, 20, 32, 0.6);
}

/* Inline preview in the Elementor editor (opened without showModal). */
.hhml-finder__dialog[open]:not(:modal) {
	position: relative;
	margin: 1rem 0;
}

.hhml-finder__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 2rem;
}

.hhml-finder__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.35rem;
	border: 0;
	background: none;
	color: inherit;
	line-height: 0;
	cursor: pointer;
}

.hhml-finder__title {
	margin: 0;
	padding-right: 2.5rem;
}

.hhml-finder__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.hhml-finder__geo {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.7em 1.2em;
	border: 1px solid var(--hhml-accent);
	border-radius: 999px;
	background: var(--hhml-accent);
	color: var(--hhml-accent-text);
	font: inherit;
	cursor: pointer;
}

.hhml-finder__geo:disabled {
	opacity: 0.6;
	cursor: progress;
}

.hhml-finder__or {
	font-size: 0.8em;
	letter-spacing: 0.06em;
	opacity: 0.7;
	text-transform: uppercase;
}

.hhml-finder__search {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.7em 1em;
	border: 1px solid #c9ced4;
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.hhml-finder__status {
	flex-basis: 100%;
	font-size: 0.9em;
}

.hhml-finder__list {
	--hhml-card-padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hhml-finder__list .hhml-card {
	flex-direction: row;
	overflow: hidden;
	border: 1px solid var(--hhml-border);
	border-radius: 10px;
}

.hhml-finder__list .hhml-card__image {
	flex-basis: 34%;
}

.hhml-finder__list .hhml-card__image img {
	aspect-ratio: auto;
	min-height: 100%;
}

.hhml-finder__empty {
	margin: 0;
}

.hhml-finder__all {
	align-self: center;
}

@media (max-width: 600px) {
	.hhml-finder__panel {
		padding: 1.5rem 1.25rem;
	}

	.hhml-finder__list .hhml-card,
	.hhml-cards--row .hhml-card {
		flex-direction: column;
	}

	.hhml-finder__list .hhml-card__image img {
		aspect-ratio: 16 / 9;
	}

	.hhml-cards--row .hhml-card__body {
		--hhml-card-padding: 1rem 0;
	}
}
