/**
 * Theme Name:  Seasona Child
 * Description: This is a child theme for Seasona
 * Author:      Jonas Marketing
 * Author URI:  https://jonasmarketing.com/
 * Template:    seasona
 * Version:     1.2.5
 */

address {
	font-style: normal;

	&:last-child {
		margin-bottom: 0;
	}
}

:focus-visible {
	outline: 2px auto Highlight;
	outline: 2px auto -webkit-focus-ring-color;
	outline-offset: 0;
	/* outline: 3px solid orangered; */
	/* outline-offset: 6px; */
}

.debug {
	background-color: palegoldenrod;
	font-size: 14px;
	line-height: 1.5;
	padding: 4px 10px;

	& + & {
		margin-top: 1em;
	}

	&:where(textarea) {

		&:focus {
			height: 70dvh;
		}
	}
}

ul.page-numbers {
	display: flex;
	gap: 4px;
}

body.tax-event-category,
body.tax-place-category,
body.post-type-archive-event,
body.post-type-archive-place,
body.single-event,
body.single-place {
	padding-top: 30px;

	& :where(a) {
		color: #2986cb;
		/* text-decoration: underline; */
		text-decoration-thickness: 1px;
	}

	& .elementor-top-section {
		background-image: url(https://visitlouisa.com/wp-content/uploads/2025/08/Lake-Anna-Section-Heading.jpg);
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		position: static;
		margin-left: 15px;
		margin-right: 15px;

		@media (min-width: 768px) {
			margin-left: 30px;
			margin-right: 30px;
		}
	}

	& .site-content {
		margin-top: 15px;

		@media (min-width: 768px) {
			margin-top: 30px;
		}
	}

	& .content-area {
		width: 100%;
	}

	& table {
		width: 100%;

		&:last-child {
			margin-bottom: 0;
		}
	}

	& td,
	& th {
		border: 1px solid rgb(0 0 0 / 0.08);
		line-height: 1.5;
		padding: 4px 10px 2px;
	}

	& td {

		&:last-child {
			word-break: break-all;
		}

		& a {
			font-weight: inherit;
			text-decoration: underline;
		}
	}

	& th {

		&:first-child {
			background-color: rgb(0 0 0 / 0.08);
			white-space: nowrap;
		}
	}
}

& .breadcrumb {
	font-size: 14px;
	margin-bottom: 30px;

	& a,
	& span {
		white-space: nowrap;
	}

	& a {
		color: #2986cb;
		/* text-decoration: underline; */
		text-decoration-thickness: 1px;

		&:last-child {
			color: var(--text);
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}
}

.pagination {
	position: relative;
	user-select: none;

	&:not(:last-child) {
		margin-bottom: 45px;
	}

	& .nav-links {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		justify-content: center;

		@media (max-width: 768px) {
			padding-bottom: calc(50px + 1em);
		}

		/*
		& > span:not(.dots),
		& > a {
			display: flex;
			font-weight: 400;
			justify-content: center;
			padding: 3px 5px 1px;
		}

		& > .current,
		& > [class="page-numbers"]:not(ul) {
			width: 2em;
		}

		& > .current {
			background-color: #ddd;
			color: black;
		}
		*/
	}

	& .page-numbers {

		& i {
			pointer-events: none; /** For click event */
		}

		&:is(ul) {
			display: flex;
			flex-wrap: wrap;
			gap: 4px;
			justify-content: center;
		}

		&:is(a) {
			text-decoration: none;
			transition: all 0.2s;

			&.current:not(:hover) {
				background-color: black !important;
				color: white !important;
			}
		}
	}

	& .page-numbers--placeholder {
		opacity: 0.2;
		pointer-events: none;
	}

	& .dots {
		cursor: default;

		&:hover {
			background-color: transparent !important;
		}
	}

	& .prev,
	& .next {

		@media (max-width: 768px) {
			bottom: 0;
			left: 50%;
			position: absolute;
		}
	}

	& .prev {

		@media (max-width: 768px) {
			transform: translateX(calc(-1 * (100% + 2px)));
		}
	}

	& .next {

		@media (max-width: 768px) {
			transform: translateX(calc(2px));
		}
	}
}

.post-navigation {

	& .nav-previous,
	& .nav-next {

		& a {
			width: fit-content;
		}
	}

	& .nav-next {

		& a {
			margin-left: auto;
		}
	}
}

.column {
	flex-grow: 1;

	& h2 {
		color: inherit !important;
		font-size: inherit;
		font-weight: 700;
		margin-bottom: 0.2em;
	}

	& address {
		margin-bottom: 0.2em;
	}

	& p {
		margin-bottom: 0.2em;
	}
}

.columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.columns--three {}

.card-event,
.card-place {
	border: 1px solid rgb(0 0 0 / 0.08);
	box-shadow: 0 0 5px rgb(0 0 0 / 0);
	display: flex;
	flex-direction: column;
	font-size: 14px;
	position: relative;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	will-change: transform;

	&:hover {
		border-color: rgb(0 0 0 / 0.1);
		box-shadow: 0 0 6px rgb(0 0 0 / 0.06);
		transform: scale(1.05);
	}
}

.card-event__image,
.card-place__image {
	margin: 0;

	& img {
		aspect-ratio: 300 / 200;
		background-color: rgb(0 0 0 / 0.08);
		display: block;
		object-fit: cover;
		object-position: 50% 50%;
		width: 100%;
	}
}

.card-event__text,
.card-place__text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1em;

	/* & a {
		position: relative;
		z-index: 2;
	} */
}

.card-event__heading,
.card-place__heading {
	font-size: inherit;
	font-weight: 700;
	margin-bottom: 1em;
	min-height: 33.96px; /** Two lines */

	& a {
		color: inherit;

		&::before {
			content: '';
			height: 100%;
			left: 0;
			position: absolute;
			top: 0;
			width: 100%;
		}

		&:hover {
			text-decoration: none;
		}
	}
}

.card-event--placeholder .card-event__heading,
.card-event--placeholder .card-event__address,
.card-event--placeholder .card-event__when,
.card-place--placeholder .card-place__heading,
.card-place--placeholder .card-place__address {
	background-image: linear-gradient(90deg, rgb(0 0 0 / 0.08) 25%, transparent 100%);
}

.card-event__address,
.card-place__address {
	margin-top: auto;

	&:last-child {
		margin-bottom: 0;
	}

	& strong {
		font-weight: inherit;
	}
}

.card-event__edit,
.card-place__edit {
	opacity: 0;
	position: absolute;
	right: 5px;
	text-transform: uppercase;
	top: 5px;
	transition: opacity 0.2s, visibility 0.2s;
	transition-delay: 0.4s;
	visibility: hidden;

	& a {
		background-color: red;
		color: white;
		display: block;
		font-family: monospace;
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		padding: 7px 10px 5px;
		text-decoration: none;

		&:hover {
			background-color: red;
		}
	}

	.card-event:hover &,
	.card-place:hover & {
		opacity: 1;
		visibility: visible;
	}
}

.card-event__when {
	margin-top: auto;

	&:last-child {
		margin-bottom: 0;
	}

	& em {
		font-style: normal;
	}
}

.card-event-host {}

.card-event-host__header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	align-items: center;
}

.card-event-host__image {
	float: left;
	margin-bottom: 0;

	& a {
		border-radius: 50%;
	}

	& img {
		border-radius: 50%;
	}
}

.card-event-host__heading {
	font-size: inherit;
	margin-bottom: 0;
}

[type="date"] {
	background-color: #fff;
	border: 1px solid var(--border);
	border-radius: var(--border_radius);
	box-sizing: border-box;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.7142857143;
	padding: 0.63em 1.41575em;
}

.filter {}

.filter__label {
	display: block;
	padding-bottom: 4px;
	width: fit-content;
}

.filter__select {
	background-position: calc(100% - 1.41575em + 2px) center !important;
	padding: 0.63em 1.41575em !important;

	&:has(option:only-child),
	&[disabled] {
		background-color: #eeeeee !important;
		/* background-image: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3e%3cpath fill="none" stroke="%23343a40" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2 5l6 6 6-6"/%3e%3c/svg%3e'); */
		background-image: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3e%3cpath fill="none" stroke="%23343a40" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5,14l6-6L5,2"/%3e%3c/svg%3e') !important;
		opacity: 1;
		pointer-events: none;
	}
}

.filter-category {}

.filter-category__select {}

.filter-date {
	display: flex;
	flex-wrap: wrap;
	/* gap: 0 4px; */

	& > * {
		flex-grow: 1;
		max-width: 50%;
	}

	& :focus {
		position: relative;
		z-index: 1;
	}
}

.filter-date__select {
	position: relative;
	z-index: 1;
}

.filter-date__range {
	height: 36px;
	line-height: 1;
	margin-bottom: calc(-1 * (4px + 36px));
	margin-top: -1px;
	position: relative;
	/* transition: all 0.2s; */
	transition:
		background-color 0.2s,
		opacity 0.2s,
		transform 0.2s,
		visibility 0.2s;

	.filter-date:not(:focus-within):not(:hover) & {
		pointer-events: none;
		transform: translateY(-100%);
		visibility: hidden;
	}

	&:not(.active) {
		background-color: #eee;
		/* opacity: 0; */
		pointer-events: none;
		transform: translateY(-100%);
		visibility: hidden;
	}
}

.filter-date__range--start,
.filter-date__range--end {
	background-repeat: no-repeat;
	background-size: 16px 12px;
	background-image: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3e%3cpath fill="none" stroke="%23343a40" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.5,8h-7"/%3e%3c/svg%3e');

	&:focus {
		/* background: none; */
	}
}

.filter-date__range--start {
	background-position: right -6px top 50%;
	border-right: 0;
	padding-right: 12px;
	text-align: right;

	&::-webkit-calendar-picker-indicator {
		position: absolute;
		left: calc(1.41575em - 4px);
	}
}

.filter-date__range--end {
	background-position: left -6px top 50%;
	border-left: 0;
	padding-left: 12px;

	&::-webkit-calendar-picker-indicator {
		position: absolute;
		right: calc(1.41575em - 4px);
	}
}

.filter-search {}

.filter-search__inner {
	display: flex;
	gap: 4px;
}

.filter-search__input {
	border: 1px solid var(--border) !important;
	flex-grow: 1;
	padding: 0.63em 28px 0.63em !important;

	&::placeholder {
		transition: none !important;
	}
}

.filter-search__button {
	aspect-ratio: 1 / 1;
	line-height: 1;
	padding-left: 0;
	padding-right: 0;
	width: 43.63px;

	&::before {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		aspect-ratio: 1 / 1;
		color: white;
		content: "";
		display: inline-block;
		font-family: "seasona-icon";
		font-size: 20px;
		transform: translate(0.025em, 0.025em);
		width: 20px;
	}

	& span {}
}

.filter-reset {
	width: 100%;

	@media (min-width: 666px) and (max-width: 1022px) {
		grid-column: 1 / 3;
	}

	@media (min-width: 1381px) {
		grid-column-start: 4;
		justify-content: flex-end;
	}

	.overview--event & {
		@media (min-width: 1023px) and (max-width: 1380px) {
			grid-column: 1 / 4;
		}
	}
}

.filter-reset__button {
	align-items: center;
	background-color: transparent;
	color: inherit;
	display: flex;
	gap: 0.8em;
	margin-left: auto;
	padding-left: 1em;
	padding-right: 1em;

	&:hover {
		color: #ffffff;
	}

	& i {
		aspect-ratio: 1 / 1;
		display: inline-block;
		font-size: 16px;
		transform: translate(0.025em, 0.025em);
		width: 16px;
	}

	@media (max-width: 1021px) {
		margin-right: auto;
	}

	.overview--event & {
		@media (max-width: 1380px) {
			margin-right: auto;
		}
	}
}

.filters {
	padding-bottom: 2em;
}

.filters__inner {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(309px, 1fr));
	position: relative;

	&:where(fieldset) {
		border: 0;
		padding: 0;
	}
}

.filters__legend {
	font-weight: 400;
	margin-bottom: 1em;
	margin-left: 0;
	padding: 0;
}

.overview {
	margin-left: auto;
	margin-right: auto;
	max-width: 1290px;
}

.overview--loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.overview__cards {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(309px, 1fr));

	&:has(> p:only-child) {
		grid-template-columns: 1fr;
		text-align: center;

		& > p:only-child {
			margin-bottom: 0;
		}
	}

	.overview--loading & {
		position: relative;

		&::after {
			background-color: white;
			content: 'Loading\002026'; /** &hellip; */
			left: 50%;
			padding: 5px 15px;
			position: absolute;
			text-align: center;
			top: -2.7em;
			transform: translateX(-50%);
		}
	}
}

.overview__pagination {
	margin-top: 45px;
	min-height: 50px;

	/* &:empty {
		display: none;
	} */
}

.overview__summary {
	min-height: 22px;

	/* &:empty {
		display: none;
	} */
}

.has-icon {
	align-items: center;
	display: inline-flex;
	gap: 0.4em;

	& i,
	& img {
		aspect-ratio: 1 / 1;
		border-radius: 50%;
		display: inline-flex;
		margin-top: -0.15em;
		width: 26px;
	}
}

/* .icon--info {
	align-items: center;
	border: 1px solid;
	font-size: 14px;
	font-style: normal;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
} */

.rating {
	display: inline-block;
	width: fit-content;
	text-shadow: 0 0 1px currentColor;
	background-clip: text;
	background-color: currentColor;

	&[style*="--local--rating--width:"] {
		position: relative;

		&::after {
			background-clip: text;
			background-color: currentColor;
			color: #f67e5c;
			content: attr(data-stars);
			height: 100%;
			left: 0;
			overflow: hidden;
			position: absolute;
			top: 0;
			white-space: nowrap;
			width: var(--local--rating--width, 0px);
		}
	}
}

.rating--stars {
	letter-spacing: 0.25em;
}

.rating__count {
	font-size: 0.9em;
}

.single-event,
.single-place {

	&:where(article) {
		font-size: clamp(14px, calc(20 / 1140 * 100dvw), 20px);
	}

	& a {
		color: #2986cb;
		/* text-decoration: underline; */
		text-decoration-thickness: 1px;
	}

	& h1,
	& h2,
	& h3 {
		font-weight: 700;
		color: #0d4c6d;
	}

	& :where(section) {

		&:not(:first-child) {
			margin-top: 4rem;
		}
	}
}

.single-event__image,
.single-place__image {
	aspect-ratio: 1700 / 630;
	background-color: #eeeeee;
	margin-bottom: 4rem;
	position: relative;
	width: 100%;

	@media (min-width: 1320px) {
		margin-left: 50%;
		min-width: calc(100dvw - 2 * 30px);
		transform: translateX(-50%);
	}

	& img {
		display: block;
		height: 100%;
		min-height: 145px;
		object-fit: cover;
		position: absolute;
		width: 100%;
	}
}

.single-event__image {
	border: 1rem solid #eeeeee;

	@media (max-width: 767px) {
		aspect-ratio: unset;
		border: 0;
	}

	& img {
		object-fit: contain;
		height: auto;
		max-height: 100%;
		max-width: 100%;
		min-height: 20%;
		/* min-width: 20%; */
		width: auto;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);

		@media (max-width: 767px) {
			position: static;
			margin: 0 auto;
			max-height: 80dvh;
			transform: none;
		}
	}
}

.single-place__columns {
	/** See .columns */
}

.single-event__rating,
.single-place__rating {
	background-color: rgb(0 0 0 / 0.05);
	border-radius: 5px;
	color: #7f8180;
	display: inline-flex;
	gap: 0.5rem;
	line-height: 1.2;
	padding: 8px 12px;

	& .rating {
		margin-top: -0.03em;
		margin-right: -0.2em;
	}
}

.single-event__social,
.single-place__social {
	margin-bottom: 4rem;

	& ul {
		display: flex;
		gap: 1rem;
	}

	& li {}

	& a {}

	& button {
		background: transparent;
		border: 0;
		padding: 0;
		width: 60px;
		transition: opacity 0.3s;

		&:hover {
			background: transparent;
			opacity: 0.9;
		}
	}
}

.single-event__share,
.single-place__share {
	margin-top: 2rem !important;
	margin-bottom: 4rem;

	& ul {
		display: flex;
		gap: 1rem;
	}

	& li {}

	& a {
		aspect-ratio: 1 / 1;
		border-radius: 50%;
		display: block;
		overflow: hidden;
		width: 60px;
		transition: opacity 0.3s;

		& img {
			display: block;
			height: 100%;
			object-fit: cover;
			width: 100%;

			&[src$="fb.png"] {
				border: 0.1em solid #3c5a99;
			}

			&[src$="twitter.3.png"] {
				border: 0.7em solid #000000;
			}
		}

		&:hover {
			opacity: 0.9;
		}
	}

	& button {
		background: transparent;
		border: 0;
		padding: 0;
		width: 60px;
		transition: opacity 0.3s;

		&:hover {
			background: transparent;
			opacity: 0.9;
		}
	}
}

.single-event__description,
.single-place__description {

	& > h1,
	& > h2,
	& > h3,
	& > h4,
	& > h5,
	& > h6,
	& > p {
		max-width: 87ch;
		margin-left: 0;
	}
}

.single-event__reviews,
.single-place__reviews {

	& .review {
		border-radius: 20px;
		box-shadow: 0 0 3px 1px rgb(0 0 0 / 0.175);
		display: flex;
		flex-direction: column;
		height: 100%;
		font-size: clamp(14px, calc(16 / 1140 * 100dvw), 16px);
		padding: 1rem;
	}

	& .review__header {
		align-items: center;
		display: flex;
		gap: 1rem;
	}

	& .review__image {

		& a {
			border-radius: 50%;
			display: block;
		}

		& img {
			border-radius: 50%;
			display: block;
		}
	}

	& .review__name {}

	& .review__rating {
		margin-bottom: 0.4em;
		margin-top: auto;
	}

	& .review__date {
		font-style: italic;
		margin-bottom: 0;
	}

	& .reviews {
		display: flex;
		/* flex-direction: column; */
		flex-wrap: wrap;
		gap: 20px;

		& > * {
			width: calc((100% - 2 * 20px) / 3);
			min-width: 320px;
			flex-grow: 1;
		}
	}

	& .reviews > :nth-child(2n+1):last-child,
	& .reviews > :nth-child(2n+1):last-child {

		/** 2 * 15px + 2 * 320 + 1 * 20px */
		@media (min-width: 690px) and (max-width: 1059px) {
			max-width: calc((100% - 1 * 20px) / 2);
		}
	}

	& .reviews > :nth-child(3n+1):nth-last-child(2),
	& .reviews > :nth-child(3n+1):last-child,
	& .reviews > :nth-child(3n+2):last-child,
	& .reviews > :nth-child(3n+1):nth-last-child(2),
	& .reviews > :nth-child(3n+1):last-child,
	& .reviews > :nth-child(3n+2):last-child {

		/** 2 * 30px + 3 * 320 + 2 * 20px */
		@media (min-width: 1060px) {
			max-width: calc((100% - 2 * 20px) / 3);
		}
	}
}

.single-event__map,
.single-place__map {

	& address {
		display: inline;
	}
}

.single-event__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 30px;
	/* gap: 2rem clamp(30px, calc(120 / 1140 * 100dvw), 120px); */
}

.single-event__primary {
	flex-grow: 1;
	max-width: 100%;
	width: calc(1.5 * 320px);
	min-width: calc(100% - 30px - 320px);
	/* width: calc(100% - clamp(30px, calc(120 / 1140 * 100dvw), 120px) - 320px); */

	& h2.label {
		color: #9fa3ae;
		font-size: inherit;
		font-weight: 400;
	}
}

.single-event__datetime,
.single-event__location {

	& h2 {
		color: #9fa3ae;
		font-size: inherit;
		font-weight: 400;
	}
}

.single-event__datetime {

	& h3 {
		color: #6c7184;

		& {
			border: 0;
			padding: 0;
		}
	}
}

.single-event__categories {

	& a {
		background-color: #e5e6eb;
		border-radius: 5px;
		color: #38404d;
		line-height: 1.2;
		padding: 8px 12px;
		pointer-events: none;
	}

	& p {
		display: flex;
		gap: 1rem;
		flex-wrap: wrap;
	}
}

.single-event__events {}

.single-event__events-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	font-size: 14px;

	& li {
		background-color: #edf5f8;
		border-radius: 5px;
		padding: 8px 12px;
	}

	& strong {
		font-size: 16px;
	}
}

.single-event__hosts {

	& ol {
		list-style: none;
		margin: 0;
	}
}

.single-event__secondary {
	flex-grow: 1;
	flex-shrink: 0;
	max-width: 100%;
	width: 320px;

	/** 2 * 30px + 2.5 * 320px * 30px */
	@media (min-width: 890px) {
		text-align: center;
	}
}

.single-event__info {

	&:where(:first-child) {
		padding-top: 0.8rem;
	}
}

.single-event__qr-code {
	color: black;
	font-size: 20px;
	font-weight: 500;
	/* width: 100%; */
	text-align: center;

	&:where(:not(:first-child)) {
		border-top: 1px solid #eee;
		margin-top: 2rem;
		padding-top: 2rem;
	}

	& svg {
		max-width: 150px;
	}

	& > * {
		margin-left: auto;
		margin-right: auto;
		max-width: 200px;
	}
}
