/* ==========================================================================
   WedInGreece — venue cards + venue browser (All Venues, destinations,
   venue types, features). Card = homepage "Trending Wedding Venues" style.
   ========================================================================== */

/* ---------- Card (identical to the homepage WG Carousel card) ---------- */
.wig-card { position: relative; font-family: var(--wig-sans); }
/* Another stylesheet gives article cards a 10px radius — keep the carousel's 2px. */
.wig .wig-card { border-radius: 2px !important; overflow: visible; box-shadow: none; background: none; padding: 0; margin: 0; }
.wig-card :where(span, a) { font-family: inherit; color: inherit; }
.wig-card__link,
.wig-card__link:hover,
.wig-card__link:focus,
.wig-card__link:visited { display: block; position: relative; color: #fff; text-decoration: none; border-radius: 2px; }
.wig-card__media {
	position: relative; display: block; overflow: hidden; border-radius: 2px;
	aspect-ratio: 360 / 460; background: #ece8e2;
}
.wig-card .wig-card__img {
	display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0;
	transition: transform 1.2s cubic-bezier(.22, .61, .36, 1);
}
.wig-card__link:hover .wig-card__img { transform: scale(1.06); }
.wig-card__img--empty { background: var(--wig-sand); }
.wig-card__shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, 0) 70%);
}
.wig-card__text {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 28px; color: #fff; text-align: left;
}
.wig-card .wig-card__title { display: block; margin: 0 0 5.4px; font: 400 18px/1.2 var(--wig-serif); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.wig-card .wig-card__loc { display: block; font: 400 13px/1.5 var(--wig-sans); text-transform: uppercase; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.wig-card__badge {
	position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 9px; border-radius: 2px;
	background: rgba(255, 255, 255, .92); color: var(--wig-ink);
	font: 700 10px/1 var(--wig-sans); letter-spacing: .1em; text-transform: uppercase;
}

/* Save (ListingPro favourites; JS swaps add-to-fav-v2 ⇄ remove-fav-v2) */
.wig-card .wig-card__save {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--wig-ink); text-decoration: none;
	transition: transform .2s var(--wig-ease), color .2s;
}
.wig-card .wig-card__save:hover { transform: scale(1.06); color: var(--wig-primary); }
.wig-card .wig-card__save .wig-icon { width: 18px; height: 18px; }
.wig-card .wig-card__save.remove-fav-v2 { color: var(--wig-primary); }
.wig-card .wig-card__save.remove-fav-v2 .wig-icon { fill: currentColor; }
.wig-card .wig-card__save i.fa { display: none; }
.wig-card .wig-card__save i.fa-spinner { display: block; position: absolute; font-size: 13px; }
.wig-card .wig-card__save:has(i.fa-spinner) .wig-icon { opacity: .3; }

/* ---------- Grid ---------- */
.wig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; gap: 20px; }

/* ---------- Browser layout ---------- */
.wig-browse { max-width: var(--wig-max); margin: 0 auto; padding: 0 var(--wig-gutter) clamp(64px, 8vw, 110px); font-family: var(--wig-sans); color: var(--wig-text); }
.wig-browse.is-map { max-width: none; }
.wig-browse.is-map .wig-browse__head,
.wig-browse.is-map .wig-toolbar { max-width: calc(var(--wig-max) - 2 * var(--wig-gutter)); margin-left: auto; margin-right: auto; }
.wig-browse :where(p, span, a, label, select, option) { font-family: inherit; }
.wig-browse__head { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.wig-browse__intro { max-width: 680px; margin: 18px auto 0; font: 400 16px/1.7 var(--wig-sans); color: var(--wig-muted); }
.wig-browse__intro p { margin: 0 0 12px; font: inherit; color: inherit; }
.wig-browse__intro a { color: var(--wig-primary); }

/* Header built in Elementor (All Venues page) */
.wig-browse__spacer { height: 32px; }

/* Toolbar */
.wig-toolbar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px;
	margin: 0 0 28px; padding: 14px 0; border-top: 1px solid var(--wig-line); border-bottom: 1px solid var(--wig-line);
}
.wig-toolbar.is-loading { opacity: .6; pointer-events: none; }
.wig-toolbar__filters, .wig-toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wig-select, .wig-check-pill, .wig-sort { position: relative; display: inline-flex; align-items: center; margin: 0; }
.wig-select select, .wig-sort select {
	appearance: none; -webkit-appearance: none; height: 38px; margin: 0; padding: 0 32px 0 12px;
	border: 1px solid var(--wig-line); border-radius: var(--wig-radius); background: #fff; box-shadow: none;
	font: 400 14px/1 var(--wig-sans); color: var(--wig-text); cursor: pointer;
}
.wig-select select:hover, .wig-sort select:hover { border-color: #c9c2b8; }
.wig-select.is-active select { border-color: var(--wig-primary); color: var(--wig-primary); }
.wig-select .wig-icon, .wig-sort .wig-icon { position: absolute; right: 10px; pointer-events: none; color: var(--wig-secondary); }
.wig-check-pill { gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--wig-line); border-radius: var(--wig-radius); background: #fff; cursor: pointer; font: 400 14px/1 var(--wig-sans); color: var(--wig-text); }
.wig-check-pill input { margin: 0; accent-color: var(--wig-primary); }
.wig-check-pill.is-active { border-color: var(--wig-primary); color: var(--wig-primary); }
.wig-check-pill span { color: inherit; }
.wig-toolbar__count { margin: 0; font: 400 14px/1.4 var(--wig-sans); color: var(--wig-muted); }
.wig-toolbar__count a { color: var(--wig-primary); }
.wig-sort select { border-color: transparent; padding-left: 4px; }
.wig-views { display: inline-flex; border: 1px solid var(--wig-line); border-radius: var(--wig-radius); overflow: hidden; }
.wig-views a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font: 400 14px/1 var(--wig-sans); color: var(--wig-text); text-decoration: none; background: #fff; }
.wig-views a + a { border-left: 1px solid var(--wig-line); }
.wig-views a:hover { color: var(--wig-primary); }
.wig-views a.is-active { background: var(--wig-primary); color: #fff; }
.wig-views a span { color: inherit; }

/* Themed dropdowns (JS-enhanced; native select stays for no-JS + form submit) */
.wig-dd { position: relative; }
.wig-dd .wig-dd__native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.wig-dd__btn {
	display: inline-flex; align-items: center; height: 38px; margin: 0; padding: 0 34px 0 14px;
	border: 1px solid var(--wig-line); border-radius: var(--wig-radius); background: #fff; box-shadow: none;
	font: 400 14px/1 var(--wig-sans); color: var(--wig-text); white-space: nowrap; cursor: pointer;
	transition: border-color .15s, color .15s;
}
.wig-dd__btn:hover, .wig-dd.is-open .wig-dd__btn { border-color: var(--wig-primary); }
.wig-select.is-active .wig-dd__btn { border-color: var(--wig-primary); color: var(--wig-primary); }
.wig-sort .wig-dd__btn { border-color: transparent; padding-left: 6px; font-weight: 700; }
.wig-dd .wig-icon { z-index: 1; transition: transform .15s; }
.wig-dd.is-open .wig-icon { transform: rotate(180deg); }
.wig-dd__list {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; min-width: 100%; max-height: 300px; overflow-y: auto;
	margin: 0; padding: 6px; list-style: none; background: #fff;
	border: 1px solid var(--wig-line); border-radius: var(--wig-radius); box-shadow: 0 14px 34px -12px rgba(36, 27, 27, .28);
}
.wig-sort .wig-dd__list { left: auto; right: 0; }
.wig-dd__list:focus { outline: none; }
.wig-dd__list li {
	margin: 0; padding: 9px 12px; border-radius: 2px; cursor: pointer; white-space: nowrap;
	font: 400 14px/1.3 var(--wig-sans); color: var(--wig-text);
}
.wig-dd__list li::before { display: none; }
.wig-dd__list li.is-focus { background: var(--wig-stone); color: var(--wig-ink); }
.wig-dd__list li[aria-selected="true"] { color: var(--wig-primary); font-weight: 700; }

/* Map view */
.wig-bigmap { position: relative; z-index: 1; height: calc(100vh - 160px); min-height: 520px; max-height: 900px; border-radius: var(--wig-radius); overflow: hidden; background: #e8e6e1; }
.wig-bigmap__fallback { display: grid; place-items: center; height: 100%; margin: 0; color: var(--wig-muted); }
.wig-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--wig-primary); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s; }
.wig-pin:hover span { transform: scale(1.2); }
.wig-cluster span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--wig-primary); color: var(--wig-primary); font: 700 13px/1 var(--wig-sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.wig-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--wig-radius); overflow: hidden; }
.wig-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.wig-pop, .wig-pop:hover { display: block; color: var(--wig-text); text-decoration: none; font-family: var(--wig-sans); }
.wig-pop__img { display: block; height: 140px; background: #ece8e2 center / cover no-repeat; }
.wig-pop__body { display: block; padding: 12px 14px 14px; }
.wig-pop__title { display: block; font: 400 18px/1.25 var(--wig-serif); color: var(--wig-ink); }
.wig-pop__loc { display: block; margin-top: 3px; font: 400 11.5px/1.4 var(--wig-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--wig-secondary); }
.wig-pop__facts { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--wig-sans); color: var(--wig-muted); }

/* Pagination */
.wig-pagination { margin-top: clamp(48px, 6vw, 72px); }
.wig-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.wig-pagination li { margin: 0; padding: 0; list-style: none; }
.wig-pagination li::before { display: none; }
.wig-pagination li > .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--wig-line); border-radius: var(--wig-radius); font: 400 14px/1 var(--wig-sans); color: var(--wig-text); text-decoration: none; background: #fff; }
.wig-pagination li > a.page-numbers:hover { border-color: var(--wig-primary); color: var(--wig-primary); }
.wig-pagination li > .page-numbers.current { background: var(--wig-primary); border-color: var(--wig-primary); color: #fff; }
.wig-pagination li > .page-numbers.dots { border: 0; background: none; }

/* Empty state */
.wig-empty { max-width: 460px; margin: 56px auto 80px; text-align: center; font: 400 15px/1.7 var(--wig-sans); color: var(--wig-muted); }
.wig-empty__title { margin: 0 0 8px; font: 100 32px/1.2 var(--wig-serif); letter-spacing: 1px; color: var(--wig-ink); }
.wig-empty p { margin: 0 0 24px; color: inherit; }

/* Responsive */
@media (max-width: 900px) {
	.wig-grid { grid-template-columns: repeat(2, minmax(0, 360px)); }
}
@media (max-width: 640px) {
	.wig-grid { grid-template-columns: minmax(0, 360px); gap: 16px; }
	.wig-toolbar { flex-direction: column; align-items: stretch; }
	.wig-toolbar > * { min-width: 0; max-width: 100%; }
	.wig-toolbar__right { flex-wrap: wrap; }
	.wig-toolbar__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
	.wig-toolbar__filters::-webkit-scrollbar { display: none; }
	.wig-toolbar__filters > * { flex: none; }
	.wig-toolbar__right { justify-content: space-between; }
	.wig-bigmap { height: 70vh; min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	.wig-card .wig-card__img { transition: none; }
	.wig-card__link:hover .wig-card__img { transform: none; }
}

/* ListingPro grids that still use its own loop (Saved page, AJAX results) */
.wig .wig-card-col.lp-grid-box-contianer { margin-bottom: 20px; padding-left: 10px; padding-right: 10px; background: none; box-shadow: none; border: 0; }

/* ---------- Saved Venues page ---------- */
.wig-saved__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.wig-saved__actions .wig-icon { width: 16px; height: 16px; }
.wig-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: clamp(36px, 5vw, 52px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 40px); border: 0; border-radius: 3px; background: #fff; color: var(--wig-text); box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; overflow: auto; }
.wig-modal::backdrop { background: rgba(20, 16, 16, .55); }
.wig-modal[open] { animation: wig-modal-in .25s ease-out; }
@keyframes wig-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wig-modal__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wig-ink); cursor: pointer; }
.wig-modal__close:hover { background: var(--wig-stone); }
.wig-modal__close svg { width: 18px; height: 18px; }
.wig-modal .wig-h2 { font-size: clamp(26px, 3vw, 32px); }
.wig-saved__email .wig-sub { margin-bottom: 24px; }
.wig-saved__row { display: flex; gap: 8px; }
.wig .wig-saved__row input[type="email"] { flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--wig-line); border-radius: var(--wig-radius); background: #fff; font: 400 15px/1 var(--wig-sans); color: var(--wig-text); box-shadow: none; }
.wig .wig-saved__row input[type="email"]:focus { border-color: var(--wig-primary); outline: none; }
.wig-saved__row .wig-btn { flex: none; min-height: 46px; }
.wig-saved__optin { display: flex; gap: 10px; justify-content: center; align-items: flex-start; margin: 14px 0 0; font: 400 13px/1.5 var(--wig-sans); color: var(--wig-muted); text-align: left; cursor: pointer; }
.wig-saved__optin input { margin: 3px 0 0; accent-color: var(--wig-primary); }
.wig-saved .wig-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wig-saved__msg { min-height: 1.5em; margin: 14px 0 0; font: 400 14px/1.5 var(--wig-sans); }
.wig-saved__msg.is-ok { color: var(--wig-green); }
.wig-saved__msg.is-error { color: #a2453a; }
.wig-saved__form.is-sent .wig-saved__row,
.wig-saved__form.is-sent .wig-saved__optin { display: none; }
@media (max-width: 520px) {
	.wig-saved__row { flex-direction: column; }
	.wig-saved__actions .wig-btn { flex: 1 1 100%; }
}
.wig-saved__msg:empty { display: none; }
