/* ==========================================================================
   WedInGreece — base tokens + shared components
   Values mirror the homepage (Elementor Site Settings → Global Colors / Fonts).
   ========================================================================== */

body.wig {
	--wig-primary:   var(--e-global-color-primary, #3A87A4);
	--wig-primary-d: #2E6E86;
	--wig-secondary: var(--e-global-color-secondary, #54595F);
	--wig-text:      var(--e-global-color-text, #2B2B2B);
	--wig-muted:     #474747;
	--wig-green:     var(--e-global-color-accent, #446E4A);
	--wig-stone:     var(--e-global-color-4bd7181, #F5F4F1);
	--wig-sand:      var(--e-global-color-9b002f3, #E7DED2);
	--wig-ivory:     var(--e-global-color-289a178, #FAF8F4);
	--wig-gold:      var(--e-global-color-275076a, #C5A46D);
	--wig-ink:       #241B1B;
	--wig-line:      #E3DED6;

	--wig-serif: "Antic Didone", Georgia, serif;
	--wig-sans:  "Lato", "Helvetica Neue", Arial, sans-serif;
	--wig-radius: 3px;

	--wig-max:    1200px; /* 3 × 360px cards + gaps + gutters, same as the homepage carousel */
	--wig-gutter: clamp(16px, 4vw, 40px);
	--wig-ease:   cubic-bezier(.2, .7, .2, 1);
}

/* ListingPro breadcrumbs are disabled in PHP; hide any static ones too. */
.wig .page-heading .breadcrumbs,
.wig .page-heading-inner-container .breadcrumbs { display: none !important; }

.wig .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Headings — same as homepage section titles */
.wig .wig-h1,
.wig .wig-h2 {
	margin: 0 0 12px;
	font: 100 clamp(32px, 3.6vw, 42px)/1.2 var(--wig-serif);
	letter-spacing: 1px; text-transform: none; color: var(--wig-ink);
}
.wig .wig-h3 {
	margin: 0 0 16px;
	font: 400 clamp(22px, 2vw, 26px)/1.3 var(--wig-serif);
	letter-spacing: .5px; text-transform: none; color: var(--wig-ink);
}
.wig .wig-sub {
	margin: 0 0 8px;
	font: italic 400 16px/1.6 var(--wig-sans); color: var(--wig-muted);
}
.wig .wig-center { text-align: center; }

/* Buttons — same as homepage (LOG IN / READ MORE) */
.wig .wig-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 26px;
	font: 400 13px/1.2 var(--wig-sans); letter-spacing: .06em; text-transform: uppercase;
	border: 1px solid var(--wig-primary); border-radius: var(--wig-radius);
	background: var(--wig-primary); color: #fff; text-decoration: none; cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.wig .wig-btn:hover,
.wig .wig-btn:focus-visible { background: var(--wig-primary-d); border-color: var(--wig-primary-d); color: #fff; }
.wig .wig-btn--outline { background: #fff; border-color: var(--wig-line); color: var(--wig-ink); }
.wig .wig-btn--outline:hover,
.wig .wig-btn--outline:focus-visible { background: #fff; border-color: var(--wig-primary); color: var(--wig-primary); }
.wig .wig-btn--block { width: 100%; }

.wig :focus-visible { outline: 2px solid var(--wig-primary); outline-offset: 2px; }

/* Icons */
.wig .wig-icon { display: inline-block; flex: none; vertical-align: -3px; }

/* "Saved" toast */
.wig-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100000; transform: translate(-50%, 20px);
	display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: var(--wig-radius);
	background: var(--wig-ink); color: #fff; font: 400 14px/1.4 var(--wig-sans);
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.wig-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.wig-toast a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .wig-venue-page .wig-toast { bottom: 84px; } }

/* Header menus above page content.
   ListingPro gives every <header> element z-index 9999, which pushed our page
   headings above the Elementor mega menu. Keep the Elementor header on top. */
body.wig .mm-page > .elementor:first-child,
body.wig.ehf-header #masthead { position: relative; z-index: 10000; }
body.wig :is(.wig-browse__head, .wig-blog__head, .wig-article__head, .wig-vhead) { z-index: auto; }

/* Homepage search banner: button a little darker on hover (the colour sits on the wrapper). */
.lp-search-bar-right { transition: background-color .2s ease; }
.lp-search-bar-right:hover,
.lp-search-bar-right:focus-within { background-color: #2E6E86 !important; }
.lp-search-bar-right .lp-search-btn:hover { background: transparent !important; }


/* Share menu (venue page, saved venues) */
.wig-share { position: relative; }
.wig-share__menu {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 180px; padding: 6px;
	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-share__menu a,
.wig-share__menu button {
	display: block; width: 100%; margin: 0; padding: 9px 12px; border: 0; border-radius: 2px; background: none; text-align: left;
	font: 400 14px/1.3 var(--wig-sans); color: var(--wig-text); text-decoration: none; cursor: pointer;
}
.wig-share__menu a:hover,
.wig-share__menu button:hover { background: var(--wig-stone); color: var(--wig-ink); }
