/* ABTN GeoDirectory Card Enhancer --------------------------------------- */
.abtn-gd-enhancer,
.abtn-gd-native-skin {
	--abtn-gd-primary: #205748;
	--abtn-gd-primary-dark: #163f35;
	--abtn-gd-muted: #6b7280;
	--abtn-gd-tag-bg: #e6f0ec;
	--abtn-gd-border: #dce7e2;
	--abtn-gd-surface: #ffffff;
	--abtn-gd-accent: #a84f32;
	--abtn-gd-radius: 1rem;
	--abtn-gd-shadow: 0 5px 20px rgba(22, 63, 53, 0.06);
	color: #222222;
}

.abtn-gd-enhancer *,
.abtn-gd-enhancer *::before,
.abtn-gd-enhancer *::after {
	box-sizing: border-box;
}

/* Authoritative GeoDirectory search-results page ----------------------- */
.abtn-gd-search-page {
	min-height: 60vh;
	background: #fbfcfb;
	color: #222222;
}

.abtn-gd-search-page__container {
	width: min(calc(100% - 2rem), 1200px);
	margin-inline: auto;
}

.abtn-gd-search-page__hero {
	padding-block: clamp(5rem, 9vw, 8rem);
	background:
		radial-gradient(circle at 82% 24%, rgba(213, 163, 63, 0.22), transparent 15rem),
		linear-gradient(120deg, #163f35, #205748);
	color: #ffffff;
}

body.abtn-directory-route .abtn-gd-search-page__hero {
	padding-top: clamp(10rem, 15vw, 13rem);
}

.abtn-gd-search-page__eyebrow {
	margin: 0 0 0.8rem;
	color: #f0c56d;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.abtn-gd-search-page__hero h1 {
	max-width: 14ch;
	margin: 0 0 1rem;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.8rem, 7vw, 5.5rem);
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.abtn-gd-search-page__hero p:last-child {
	max-width: 45rem;
	margin: 0;
	color: #e1ede8;
	font-size: clamp(1rem, 2vw, 1.18rem);
	line-height: 1.7;
}

.abtn-gd-search-page__content {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.abtn-gd-search-page__notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid #a84f32;
	border-radius: 0 0.75rem 0.75rem 0;
	background: #fff8e8;
	line-height: 1.65;
}

.abtn-gd-grid {
	display: grid;
	grid-template-columns: repeat(var(--abtn-gd-columns, 3), minmax(0, 1fr));
	align-items: start;
	gap: clamp(1.25rem, 2.4vw, 2rem);
}

.abtn-gd-card {
	display: flex;
	min-width: 0;
	height: auto;
	overflow: hidden;
	flex-direction: column;
	align-self: start;
	border: 1px solid var(--abtn-gd-border);
	border-radius: var(--abtn-gd-radius);
	background: var(--abtn-gd-surface);
	box-shadow: var(--abtn-gd-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.abtn-gd-card:hover,
.abtn-gd-card:focus-within {
	transform: translateY(-4px);
	border-color: rgba(32, 87, 72, 0.28);
	box-shadow: 0 16px 38px rgba(22, 63, 53, 0.13);
}

.abtn-gd-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eaf3ef, #d5e5de);
}

.abtn-gd-card__media > a {
	display: block;
	width: 100%;
	height: 100%;
}

.abtn-gd-card__image {
	display: block;
	width: 100%;
	height: 100% !important;
	max-height: none !important;
	object-fit: contain !important;
	object-position: center center;
}

.abtn-gd-card:hover .abtn-gd-card__image {
	transform: none;
}

.abtn-gd-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		radial-gradient(circle at 78% 24%, rgba(213, 163, 63, 0.4), transparent 6rem),
		linear-gradient(145deg, var(--abtn-gd-primary), var(--abtn-gd-primary-dark));
	color: #ffffff;
	font-family: Georgia, serif;
	font-size: clamp(3rem, 7vw, 5rem);
}

.abtn-gd-card__favorite {
	position: absolute;
	z-index: 3;
	top: 0.85rem;
	right: 0.85rem;
	display: grid;
	overflow: hidden;
	width: 2.65rem;
	height: 2.65rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--abtn-gd-primary);
	box-shadow: 0 4px 16px rgba(22, 63, 53, 0.16);
	backdrop-filter: blur(8px);
}

.abtn-gd-card__favorite-icon {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.abtn-gd-card__favorite-icon svg {
	display: block !important;
	width: 1.35rem;
	height: 1.35rem;
	fill: transparent;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.abtn-gd-card__favorite.is-saved .abtn-gd-card__favorite-icon svg {
	fill: currentColor;
}

.abtn-gd-card__favorite > :not(.abtn-gd-card__favorite-icon),
.abtn-gd-card__favorite :where(.geodir_post_meta, .gd-fav-info-wrap, .gd-list-favorite, .geodir-addtofav, .geodir-removetofav) {
	position: absolute !important;
	z-index: 2;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.abtn-gd-card__favorite :where(a, button) {
	position: absolute !important;
	z-index: 3;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	text-decoration: none !important;
	cursor: pointer;
}

.abtn-gd-card__favorite :where(a, button)::before,
.abtn-gd-card__favorite :where(a, button)::after,
.abtn-gd-card__favorite :where(i, svg, img, .fa, .fas, .far) {
	display: none !important;
}

.abtn-gd-card__favorite:focus-within {
	outline: 3px solid rgba(32, 87, 72, 0.28);
	outline-offset: 3px;
}

.abtn-gd-card__body {
	display: flex;
	min-height: 20rem;
	padding: clamp(1.25rem, 2vw, 1.6rem);
	flex-direction: column;
	align-items: flex-start;
}

.abtn-gd-card__credentials {
	margin: -0.3rem 0 0.75rem;
	color: var(--abtn-gd-muted);
	font-size: 0.84rem;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.45;
}

.abtn-gd-card__title {
	margin: 0 0 0.65rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.abtn-gd-card__title a {
	color: var(--abtn-gd-primary);
	text-decoration: none;
}

.abtn-gd-card__title a:hover {
	color: var(--abtn-gd-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.abtn-gd-card__location {
	display: flex;
	align-items: center;
	margin: 0 0 1rem;
	color: var(--abtn-gd-muted);
	font-size: 0.86rem;
	gap: 0.45rem;
}

.abtn-gd-card__location span {
	color: var(--abtn-gd-accent);
	font-size: 0.55rem;
}

.abtn-gd-card__tags {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 1.1rem;
	padding: 0;
	gap: 0.45rem;
	list-style: none;
}

.abtn-gd-card__tags li {
	max-width: 100%;
	padding: 0.38rem 0.7rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--abtn-gd-tag-bg);
	color: var(--abtn-gd-primary);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.abtn-gd-card__tags .abtn-gd-card__more {
	background: #f3eee4;
	color: #6f5137;
}

.abtn-gd-card__excerpt {
	display: -webkit-box;
	margin: 0 0 1.35rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--abtn-gd-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.abtn-gd-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	margin-top: auto;
	padding: 0.65rem 1.05rem;
	border: 2px solid var(--abtn-gd-primary);
	border-radius: 999px;
	background: var(--abtn-gd-primary);
	color: #ffffff;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	gap: 0.55rem;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.abtn-gd-card__cta:hover {
	background: transparent;
	color: var(--abtn-gd-primary);
	transform: translateX(2px);
}

/* Unified GeoDirectory search bar --------------------------------------- */
.abtn-gd-search {
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
	padding: clamp(1rem, 2vw, 1.35rem);
	border: 1px solid var(--abtn-gd-border);
	border-radius: 1.35rem;
	background: #ffffff;
	box-shadow: 0 10px 32px rgba(22, 63, 53, 0.08);
}

.abtn-gd-search:is(.geodir-search, .geodir-search-form),
.abtn-gd-search :where(.geodir-search, .geodir-search-form) {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 0.75rem;
}

.abtn-gd-search :where(.gd-search-field, .geodir-search-input-label, .geodir-search-input) {
	position: relative;
	min-width: 12rem;
	flex: 1 1 14rem;
}

.abtn-gd-search :where(label, .geodir-search-input-label) {
	display: block;
	margin: 0 0 0.35rem;
	color: var(--abtn-gd-primary-dark);
	font-size: 0.78rem;
	font-weight: 800;
}

.abtn-gd-search :where(input:not([type="submit"]), select, .form-control, .select2-selection) {
	width: 100%;
	min-height: 3.3rem !important;
	padding-inline: 1rem !important;
	border: 1px solid var(--abtn-gd-border) !important;
	border-radius: 999px !important;
	background: #f9fbfa !important;
	color: #222222 !important;
	box-shadow: none !important;
}

.abtn-gd-search :where(input:not([type="submit"]), select, .form-control, .select2-selection):focus {
	border-color: var(--abtn-gd-primary) !important;
	outline: 3px solid rgba(32, 87, 72, 0.14) !important;
	outline-offset: 1px;
}

.abtn-gd-search :where(button, input[type="submit"], .btn-primary) {
	min-height: 3.3rem !important;
	padding-inline: 1.35rem !important;
	border: 2px solid var(--abtn-gd-primary) !important;
	border-radius: 999px !important;
	background: var(--abtn-gd-primary) !important;
	color: #ffffff !important;
	font-weight: 800 !important;
	box-shadow: none !important;
}

.abtn-gd-search :where(button, input[type="submit"], .btn-primary):hover {
	background: var(--abtn-gd-primary-dark) !important;
}

.abtn-gd-search .geodir-filter-container:not([hidden]) {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	margin-top: 0.9rem;
	padding: clamp(1rem, 2vw, 1.35rem);
	border-radius: 1rem;
	background: #f7f8f7;
	gap: 1rem 1.2rem;
}

.abtn-gd-search .geodir-filter-container:not([hidden]) > * {
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.abtn-gd-search .geodir-filter-container :where(input, select, .form-control, .select2-container) {
	width: 100% !important;
	max-width: 100%;
}

.abtn-gd-search .abtn-gd-filter-actions {
	grid-column: 1 / -1;
}

.abtn-gd-search .abtn-gd-filter-actions :where(button, input[type="submit"]) {
	width: 100%;
}

.abtn-gd-field--keyword::before,
.abtn-gd-field--location::before,
.abtn-gd-field--keyword :where(i, svg, .input-group-prepend, .input-group-text, .geodir-search-input-icon),
.abtn-gd-field--location :where(i, svg, .input-group-prepend, .input-group-text, .geodir-search-input-icon) {
	display: none !important;
}

.abtn-gd-field--keyword input:not([type="hidden"]),
.abtn-gd-field--location input:not([type="hidden"]) {
	padding-left: 2.85rem !important;
	background-position: 1rem center !important;
	background-repeat: no-repeat !important;
	background-size: 1.15rem 1.15rem !important;
}

.abtn-gd-field--keyword input:not([type="hidden"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") !important;
}

.abtn-gd-field--location input:not([type="hidden"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") !important;
}

.abtn-gd-empty,
.abtn-gd-notice {
	padding: 2rem;
	border-radius: var(--abtn-gd-radius);
	background: #f4f8f6;
	text-align: center;
}

.abtn-gd-empty h3 {
	margin: 0 0 0.5rem;
	color: var(--abtn-gd-primary);
}

.abtn-gd-empty p,
.abtn-gd-notice {
	margin: 0;
	color: var(--abtn-gd-muted);
}

.abtn-gd-pagination {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.abtn-gd-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	gap: 0.5rem;
	list-style: none;
}

.abtn-gd-pagination a,
.abtn-gd-pagination span.page-numbers {
	display: grid;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.7rem;
	place-items: center;
	border: 1px solid var(--abtn-gd-border);
	border-radius: 50%;
	background: #ffffff;
	color: var(--abtn-gd-primary);
	font-weight: 750;
	text-decoration: none;
}

.abtn-gd-pagination span.current,
.abtn-gd-pagination a:hover {
	border-color: var(--abtn-gd-primary);
	background: var(--abtn-gd-primary);
	color: #ffffff;
}

/* Progressive skin for native [gd_loop]/[gd_archive] output ------------ */
.abtn-gd-native-skin :where(.geodir-category-list-view, .geodir-loop-container > ul) {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 1.5rem;
}

.abtn-gd-native-skin :where(.geodir-category-list-view > li, .geodir-post, article.gd_place) {
	position: relative;
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid var(--abtn-gd-border) !important;
	border-radius: var(--abtn-gd-radius) !important;
	background: #ffffff;
	box-shadow: var(--abtn-gd-shadow);
}

.abtn-gd-native-skin :where(.geodir-post-img, .geodir-image-container, .geodir-post-slider) {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e6f0ec;
}

.abtn-gd-native-skin :where(.geodir-post-img img, .geodir-image-container img, .geodir-post-slider img) {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: contain !important;
	object-position: center center;
}

.abtn-gd-native-skin :where(.geodir-post-content-container, .geodir-post-info-container, .geodir-content) {
	padding: 1.5rem !important;
}

.abtn-gd-native-skin :where(.geodir-post-title, .geodir-entry-title) {
	color: var(--abtn-gd-primary);
	font-size: 1.35rem;
	line-height: 1.2;
}

.abtn-gd-native-skin :where(.geodir-field-post_content, .geodir-post-content, .geodir-post-content-container > p) {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--abtn-gd-muted);
}

.abtn-gd-native-skin :where(.geodir-tags a, .geodir-post-tags a, .badge) {
	display: inline-flex;
	margin: 0.2rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: var(--abtn-gd-tag-bg);
	color: var(--abtn-gd-primary);
	font-size: 0.74rem;
	font-weight: 700;
	text-decoration: none;
}

.abtn-gd-native-skin :where(.geodir-category-list-view > li, .geodir-loop-container > ul > li, article.gd_place) :where(.geodir-post-fav, .geodir-fav, .gd-fav-info-wrap) {
	position: absolute;
	z-index: 4;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	overflow: hidden;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.94);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1.25rem 1.25rem;
	box-shadow: 0 4px 15px rgba(22, 63, 53, 0.14);
}

.abtn-gd-native-skin :where(.geodir-category-list-view > li, .geodir-loop-container > ul > li, article.gd_place) :where(.geodir-post-fav, .geodir-fav, .gd-fav-info-wrap) :where(a, button) {
	display: grid !important;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	place-items: center;
	border: 0 !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	text-decoration: none !important;
}

.abtn-gd-native-skin :where(.geodir-category-list-view > li, .geodir-loop-container > ul > li, article.gd_place) :where(.geodir-post-fav, .geodir-fav, .gd-fav-info-wrap) :where(a, button)::before {
	display: none !important;
	content: none !important;
}

@media (max-width: 1024px) {
	.abtn-gd-grid,
	.abtn-gd-native-skin :where(.geodir-category-list-view, .geodir-loop-container > ul) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abtn-gd-search .geodir-filter-container:not([hidden]) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.abtn-gd-grid,
	.abtn-gd-native-skin :where(.geodir-category-list-view, .geodir-loop-container > ul) {
		grid-template-columns: 1fr;
	}

	.abtn-gd-search :where(.geodir-search, .geodir-search-form) {
		align-items: stretch;
		flex-direction: column;
	}

	.abtn-gd-search :where(.gd-search-field, .geodir-search-input-label, .geodir-search-input) {
		width: 100%;
		min-width: 0;
	}

	.abtn-gd-search :where(button, input[type="submit"], .btn-primary) {
		width: 100%;
	}

	.abtn-gd-search .geodir-filter-container:not([hidden]) {
		grid-template-columns: 1fr;
	}

	.abtn-gd-card__body {
		padding: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.abtn-gd-card,
	.abtn-gd-card__image,
	.abtn-gd-card__cta {
		transition: none;
	}
}
