/* Wine Hub – frontend. Override the variables in your theme to match the brand. */
.wmh {
	/* WCG brand: burgundy #401117, cream #FFF0DD, page #FFF9F2 */
	--wmh-accent: #401117;
	--wmh-accent-contrast: #fff0dd;
	--wmh-text: inherit;
	--wmh-muted: #6e5a55;
	--wmh-border: #e8d5c1;
	--wmh-field-border: #c9ae9b;
	--wmh-surface: #fff0dd;
	--wmh-card: #ffffff;
	--wmh-radius: 10px;
	--wmh-gap: 24px;
}
.wmh *, .wmh *::before, .wmh *::after { box-sizing: border-box; }

.wmh-section { margin: 40px 0; }
.wmh-section__title { margin: 0 0 16px; }

/* Buttons */
.wmh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 20px; border: 1px solid var(--wmh-accent); border-radius: var(--wmh-radius);
	background: var(--wmh-accent); color: var(--wmh-accent-contrast);
	font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: opacity .15s, background .15s, color .15s;
}
.wmh-btn:hover, .wmh-btn:focus-visible { opacity: .88; color: var(--wmh-accent-contrast); }
.wmh-btn--ghost { background: transparent; color: var(--wmh-accent); }
.wmh-btn--ghost:hover, .wmh-btn--ghost:focus-visible { background: var(--wmh-accent); color: var(--wmh-accent-contrast); opacity: 1; }
.wmh-btn[disabled] { opacity: .6; cursor: wait; }

/* Info box (winery) */
.wmh-info { display: flex; gap: var(--wmh-gap); align-items: flex-start; padding: var(--wmh-gap); background: var(--wmh-surface); border: 1px solid var(--wmh-border); border-radius: var(--wmh-radius); margin-bottom: 32px; }
.wmh-info__logo { flex: 0 0 160px; }
.wmh-info__logo img { width: 100%; height: auto; border-radius: var(--wmh-radius); display: block; }
.wmh-info__body { flex: 1; min-width: 0; }
.wmh-info__lead { font-size: 1.1em; margin: 0 0 16px; }
.wmh-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.wmh-meta dt { color: var(--wmh-muted); margin: 0; }
.wmh-meta dd { margin: 0; overflow-wrap: anywhere; }
.wmh-socials { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wmh-socials a { display: inline-block; padding: 4px 12px; border: 1px solid var(--wmh-border); border-radius: 999px; text-decoration: none; font-size: .9em; }
.wmh-socials a:hover { border-color: var(--wmh-accent); color: var(--wmh-accent); }

/* Key facts (tour / event) */
.wmh-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px var(--wmh-gap); background: var(--wmh-surface); border: 1px solid var(--wmh-border); border-radius: var(--wmh-radius); margin-bottom: 24px; }
.wmh-facts__item { display: flex; flex-direction: column; gap: 2px; }
.wmh-facts__label { font-size: .85em; color: var(--wmh-muted); }
.wmh-facts__value { font-weight: 600; }
.wmh-facts__value small { font-weight: 400; color: var(--wmh-muted); }
.wmh-facts__cta { margin-left: auto; }

/* Grid & cards */
.wmh-grid { display: grid; gap: var(--wmh-gap); grid-template-columns: repeat(var(--wmh-cols, 3), minmax(0, 1fr)); }
.wmh-grid--1 { --wmh-cols: 1; } .wmh-grid--2 { --wmh-cols: 2; } .wmh-grid--3 { --wmh-cols: 3; } .wmh-grid--4 { --wmh-cols: 4; }
@media (max-width: 960px) { .wmh-grid--3, .wmh-grid--4 { --wmh-cols: 2; } }
@media (max-width: 600px) { .wmh-grid { --wmh-cols: 1 !important; } }

.wmh-card { display: flex; flex-direction: column; border: 1px solid var(--wmh-border); border-radius: var(--wmh-radius); overflow: hidden; background: var(--wmh-card); box-shadow: 0 2px 12px rgba(64,17,23,.06); transition: box-shadow .2s, transform .2s; }
.wmh-card:hover { box-shadow: 0 8px 24px rgba(64,17,23,.10); transform: translateY(-2px); }
.wmh-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--wmh-surface); overflow: hidden; }
.wmh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmh-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--wmh-surface), var(--wmh-border)); }
.wmh-card__price { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--wmh-accent); color: var(--wmh-accent-contrast); font-weight: 600; font-size: .9em; }
.wmh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.wmh-card__body .wmh-btn { margin-top: auto; align-self: flex-start; }
.wmh-card__tag { align-self: flex-start; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--wmh-accent); font-weight: 600; }
.wmh-card__title { margin: 0; font-size: 1.15em; line-height: 1.3; }
.wmh-card__title a { text-decoration: none; color: inherit; }
.wmh-card__meta { margin: 0; color: var(--wmh-muted); font-size: .92em; }
.wmh-card__text { margin: 0 0 8px; }

/* Filters */
.wmh-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.wmh .wmh-filters input[type="search"], .wmh .wmh-filters select {
	flex: 0 1 260px; width: auto !important; min-width: 200px; max-width: 100%; height: 48px; margin: 0;
	padding: 0 16px; border: 1px solid var(--wmh-field-border) !important; border-radius: var(--wmh-radius);
	background-color: #fff; color: #1a1a1a; font: inherit; font-size: 15px; box-shadow: none;
}
.wmh .wmh-filters select {
	-webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23401117' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.wmh .wmh-filters input:focus, .wmh .wmh-filters select:focus { outline: none; border-color: var(--wmh-accent) !important; box-shadow: 0 0 0 3px rgba(64,17,23,.12); }
@media (max-width: 600px) { .wmh .wmh-filters input[type="search"], .wmh .wmh-filters select { flex: 1 1 100%; } }
.wmh-filters__reset { color: var(--wmh-muted); }
.wmh-empty { padding: 32px; text-align: center; background: var(--wmh-surface); border-radius: var(--wmh-radius); }

/* In-place loading */
.wmh-results { position: relative; }
.wmh-results > * { transition: opacity .2s; }
.wmh-results.is-loading { pointer-events: none; min-height: 120px; }
.wmh-results.is-loading > * { opacity: .4; }
.wmh-results.is-loading::after {
	content: ""; position: absolute; left: 50%; top: 60px; width: 36px; height: 36px; margin-left: -18px;
	border: 3px solid var(--wmh-border); border-top-color: var(--wmh-accent); border-radius: 50%;
	animation: wmh-spin .7s linear infinite;
}
@keyframes wmh-spin { to { transform: rotate(360deg); } }

/* Pagination */
.wmh-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.wmh-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--wmh-border); border-radius: var(--wmh-radius); text-decoration: none; padding: 0 10px; }
.wmh-pagination .current { background: var(--wmh-accent); border-color: var(--wmh-accent); color: var(--wmh-accent-contrast); }

/* Gallery + lightbox */
.wmh-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 32px 0; }
.wmh-gallery__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--wmh-radius); }
.wmh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.wmh-gallery__item:hover img { transform: scale(1.05); }
.wmh-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.wmh-lightbox[hidden] { display: none; }
.wmh-lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.wmh-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px; }
.wmh-lightbox__close { top: 8px; right: 12px; }
.wmh-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.wmh-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
html.wmh-noscroll { overflow: hidden; }

/* Map */
.wmh-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--wmh-radius); display: block; }

/* Responsive tweaks */
@media (max-width: 700px) {
	.wmh-info { flex-direction: column; }
	.wmh-info__logo { flex-basis: auto; max-width: 160px; }
	.wmh-facts__cta { margin-left: 0; width: 100%; }
}

/* WooCommerce product page */
.wmh-product-winery { margin: 0 0 12px; }

/* Calendar */
.wmh-calendar-wrap { --fc-border-color: #ead8c3; --fc-button-text-color: #fff0dd; --fc-button-bg-color: #401117; --fc-button-border-color: #401117; --fc-button-hover-bg-color: #5a1a22; --fc-button-hover-border-color: #5a1a22; --fc-button-active-bg-color: #2b0b0f; --fc-button-active-border-color: #2b0b0f; --fc-event-bg-color: #401117; --fc-event-border-color: #401117; --fc-event-text-color: #fff0dd; --fc-today-bg-color: rgba(64, 17, 23, .06); --fc-neutral-bg-color: #fff0dd; --fc-list-event-hover-bg-color: #fff0dd; --fc-page-bg-color: #fffaf4; }
.wmh-calendar .fc-toolbar-title { font-size: 1.35em; text-transform: capitalize; }
.wmh-calendar .fc-button { text-transform: capitalize; }
.wmh-calendar .fc-event { cursor: pointer; }
.wmh-calendar .fc-daygrid-block-event .fc-event-main-frame { flex-wrap: wrap; }
.wmh-calendar .fc-daygrid-block-event .fc-event-title { white-space: normal; }
.wmh-calendar .fc-daygrid-block-event .fc-event-time { font-weight: 600; }
.wmh-calendar a { text-decoration: none; }
@media (max-width: 640px) {
	.wmh-calendar .fc-toolbar { flex-wrap: wrap; gap: 8px; }
	.wmh-calendar .fc-toolbar-title { font-size: 1.1em; }
}
.wmh-cal-tip { position: fixed; z-index: 99999; max-width: 300px; padding: 12px 14px; background: #fffaf4; color: #1a1a1a; border: 1px solid #ead8c3; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); pointer-events: none; font-size: 14px; line-height: 1.45; }
.wmh-cal-tip[hidden] { display: none; }
.wmh-cal-tip strong { display: block; margin-bottom: 4px; }
.wmh-cal-tip span { display: block; color: #6e5a55; font-size: 13px; }
.wmh-cal-tip p { margin: 6px 0 0; }

/* Theme compatibility: hide blog author/date meta on winery, tour and event pages
   (Peony / Qode themes and common WordPress themes). */
:is(.single-wmh_winery, .single-wmh_tour, .single-wmh_event) :is(.qodef-e-info-author, .entry-date-big, .qodef-e-info-date, .byline, .posted-on, .entry-meta .author, .post-author, .wp-block-post-author, .wp-block-post-date) { display: none !important; }
:is(.single-wmh_winery, .single-wmh_tour, .single-wmh_event) .qodef-e-top-holder .qodef-e-info:not(:has(> :not(.qodef-info-separator-end, .qodef-e-info-author))) { display: none !important; }

/* ===================================================================
   v1.1 – page layouts
   =================================================================== */

/* Theme's own blog parts are replaced by the plugin on its pages */
.wmh-single :is(.qodef-e-media-holder, .qodef-e-title, .qodef-e-top-holder, .qodef-e-bottom-holder, .qodef-blog-single-navigation, .post-navigation, .entry-meta) { display: none !important; }
.wmh-single :is(.wp-block-post-featured-image, .wp-block-post-title, .wp-block-post-date, .wp-block-post-terms) { display: none !important; }
.wmh-single .qodef-e-content, .wmh-single .qodef-e-text { margin-top: 0 !important; padding-top: 0 !important; }
.wmh .wmh-icon { flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* Hero: photo | info */
.wmh-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 0 0 56px; }
.wmh-hero__media { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.wmh-hero__media--empty { aspect-ratio: 4 / 3; border-radius: var(--wmh-radius); background: linear-gradient(135deg, var(--wmh-surface), var(--wmh-border)); }
.wmh-hero__main { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--wmh-radius); background: var(--wmh-surface); }
.wmh-hero__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wmh-hero__main:hover img { transform: scale(1.02); }
/* Photo slider */
.wmh-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--wmh-radius); background: var(--wmh-surface); touch-action: pan-y; }
.wmh-slider__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; cursor: zoom-in; }
.wmh-slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.wmh-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmh .wmh-slider__arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 249, 242, .92); color: #401117; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .2s, color .2s, transform .2s; }
.wmh .wmh-slider__arrow:hover { background: #401117; color: #fff0dd; }
.wmh .wmh-slider__arrow .wmh-icon { width: 22px; height: 22px; stroke-width: 2; }
.wmh-slider__arrow--prev { left: 14px; }
.wmh-slider__arrow--next { right: 14px; }
.wmh-slider__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: rgba(26, 10, 12, .6); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.wmh-hero__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.wmh .wmh-hero__thumb { position: relative; flex: 0 0 calc((100% - 30px) / 4); aspect-ratio: 1; padding: 0; margin: 0; border: 0; overflow: hidden; border-radius: calc(var(--wmh-radius) * .7); cursor: pointer; background: none; opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.wmh .wmh-hero__thumb:hover { opacity: .9; }
.wmh .wmh-hero__thumb.is-active { opacity: 1; outline-color: #401117; }
.wmh-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wmh-hero__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(64,17,23,.62); color: #fff0dd; font-weight: 600; font-size: 1.2em; }
.wmh-hero__info { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.wmh-hero__eyebrow { font-size: .8em; letter-spacing: .08em; text-transform: uppercase; color: var(--wmh-accent); font-weight: 600; }
.wmh-hero__head { display: flex; align-items: center; gap: 16px; margin-top: -6px; }
.wmh-hero__logo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--wmh-accent); display: flex; align-items: center; justify-content: center; }
.wmh-hero__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wmh .wmh-hero__title { margin: 0; font-size: clamp(1.6em, 2.4vw, 2.2em); line-height: 1.2; }
.wmh-hero__lead { margin: 0; font-size: 1.08em; line-height: 1.6; color: #2b2422; }

/* Facts list with icons */
.wmh-factlist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--wmh-border); }
.wmh-factlist__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--wmh-border); margin: 0; }
.wmh-factlist__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--wmh-surface); color: var(--wmh-accent); display: flex; align-items: center; justify-content: center; }
.wmh-factlist__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wmh-factlist__label { font-size: .8em; color: var(--wmh-muted); }
.wmh-factlist__value { font-weight: 600; overflow-wrap: anywhere; }
.wmh-factlist__value a { color: inherit; text-decoration: underline; text-decoration-color: var(--wmh-border); text-underline-offset: 3px; }
.wmh-factlist__value a:hover { text-decoration-color: var(--wmh-accent); color: var(--wmh-accent); }

/* Price + actions */
.wmh-hero__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 6px; padding: 18px 20px; background: var(--wmh-surface); border-radius: var(--wmh-radius); }
.wmh-hero__bottom:not(:has(.wmh-hero__price)) { background: none; padding: 0; justify-content: flex-start; }
.wmh-hero__price { display: flex; flex-direction: column; }
.wmh-price__label { font-size: .8em; color: var(--wmh-muted); }
.wmh-price__value { font-size: 1.75em; font-weight: 700; color: var(--wmh-accent); line-height: 1.15; }
.wmh-price__value .woocommerce-Price-amount { color: inherit; }
.wmh-price__note { font-size: .85em; color: var(--wmh-muted); }
.wmh-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wmh-btn--lg { padding: 14px 28px; font-size: 1.02em; }
.wmh-btn--block { width: 100%; }
.wmh-btn .wmh-icon { width: 18px; height: 18px; }

/* Socials (winery) */
.wmh-hero__info .wmh-socials { margin: 0; gap: 10px; }
.wmh .wmh-socials li { margin: 0; }
.wmh-social { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0 !important; border-radius: 50%; border: 1px solid var(--wmh-border); color: var(--wmh-accent) !important; transition: background .2s, color .2s, border-color .2s; }
.wmh-social:hover { background: var(--wmh-accent); border-color: var(--wmh-accent); color: #fff0dd !important; }

/* Body sections */
.wmh .wmh-section__title { font-size: 1.5em; margin: 0 0 18px; }
.wmh-about .wmh-description > :first-child { margin-top: 0; }
.wmh-body { max-width: 860px; }
.wmh-program ul { padding-left: 0; list-style: none; margin: 0; }
.wmh-program li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--wmh-border); margin: 0; }
.wmh-program li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--wmh-accent); }

/* Sticky in-page navigation (winery) */
.wmh-subnav { position: sticky; top: var(--wmh-sticky-top, 90px); z-index: 20; margin: 0 0 40px; background: #fff9f2; border-bottom: 1px solid var(--wmh-border); }
.admin-bar .wmh-subnav { top: calc(var(--wmh-sticky-top, 90px) + 32px); }
.wmh-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.wmh-subnav ul::-webkit-scrollbar { display: none; }
.wmh-subnav li { margin: 0; flex: 0 0 auto; }
.wmh-subnav a { display: block; padding: 14px 0; text-decoration: none; color: var(--wmh-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.wmh-subnav a:hover, .wmh-subnav a.is-active { color: var(--wmh-accent); border-bottom-color: var(--wmh-accent); }
.wmh-winery .wmh-section { scroll-margin-top: 170px; }

/* Wines: give the theme's product cards room (labels sit above the image) */
.wmh-products { padding-top: 12px; }
.wmh-products .woocommerce, .wmh-products ul.products { margin-top: 0; }

/* Location */
.wmh-location__grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 24px; align-items: stretch; }
.wmh-location__card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--wmh-surface); border-radius: var(--wmh-radius); }
.wmh .wmh-location__name { margin: 0; font-size: 1.2em; }
.wmh-location__card .wmh-factlist { border-top: 0; }
.wmh-location__card .wmh-factlist__icon { background: #fff; }
.wmh-location__card .wmh-btn { margin-top: auto; align-self: flex-start; }
.wmh-location__map { min-height: 340px; border-radius: var(--wmh-radius); overflow: hidden; }
.wmh-location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Share */
.wmh-share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--wmh-border); }
.wmh-share__label { font-weight: 600; }
.wmh-share__list { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.wmh-share__list li { margin: 0; }
.wmh .wmh-share__btn { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--wmh-border); background: #fff; color: var(--wmh-accent); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.wmh .wmh-share__btn:hover { background: var(--wmh-accent); border-color: var(--wmh-accent); color: #fff0dd; transform: translateY(-2px); }
.wmh .wmh-share__btn.is-copied { background: #1b5e20; border-color: #1b5e20; color: #fff; }
.wmh-share__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #1a1a1a; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none; }

/* ===================================================================
   Booking form
   =================================================================== */
.wmh-booking { margin-top: 56px; padding: clamp(20px, 4vw, 40px); background: var(--wmh-surface); border-radius: calc(var(--wmh-radius) * 1.4); scroll-margin-top: 120px; }
.wmh-booking__head { margin-bottom: 24px; }
.wmh-booking__head .wmh-section__title { margin-bottom: 6px; }
.wmh-booking__intro { margin: 0; color: var(--wmh-muted); }
.wmh-form__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.wmh-form__grid > .wmh-field { grid-column: span 2; }
.wmh-form__grid > .wmh-field--date { grid-column: span 3; }
.wmh-form__grid > .wmh-field--guests { grid-column: span 3; }
.wmh-form__grid > .wmh-field--full { grid-column: 1 / -1; }
.wmh .wmh-field { margin: 0 !important; display: flex; flex-direction: column; gap: 7px; }
.wmh .wmh-field > label { font-weight: 600; font-size: .92em; margin: 0; color: #1a1a1a; }
.wmh-req { color: var(--wmh-accent); }
.wmh .wmh-form :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], textarea) {
	width: 100% !important; height: 50px; margin: 0 !important; padding: 0 16px !important;
	background: #fff !important; color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a;
	border: 1px solid var(--wmh-field-border) !important; border-radius: var(--wmh-radius) !important;
	font: inherit !important; font-size: 15px !important; line-height: 1.4 !important; box-shadow: none !important; outline: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.wmh .wmh-form textarea { height: auto; min-height: 110px; padding: 13px 16px !important; resize: vertical; }
.wmh .wmh-form :is(input, textarea)::placeholder { color: #9c8a82 !important; -webkit-text-fill-color: #9c8a82; opacity: 1; }
.wmh .wmh-form :is(input, textarea):focus { border-color: var(--wmh-accent) !important; box-shadow: 0 0 0 3px rgba(64,17,23,.12) !important; }
.wmh .wmh-form [aria-invalid="true"] { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198,40,40,.1) !important; }
.wmh-input-icon { position: relative; }
.wmh-input-icon > .wmh-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--wmh-accent); pointer-events: none; z-index: 1; }
.wmh .wmh-form .wmh-input-icon > input { padding-left: 46px !important; cursor: pointer; }
.wmh .wmh-sidefilters .wmh-input-icon > input { cursor: text; }

/* Guests stepper */
.wmh-stepper { display: flex; align-items: stretch; height: 50px; background: #fff; border: 1px solid var(--wmh-field-border); border-radius: var(--wmh-radius); overflow: hidden; }
.wmh-stepper:focus-within { border-color: var(--wmh-accent); box-shadow: 0 0 0 3px rgba(64,17,23,.12); }
.wmh .wmh-stepper__btn { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--wmh-surface); color: var(--wmh-accent); cursor: pointer; transition: background .15s, color .15s; }
.wmh .wmh-stepper__btn:hover:not(:disabled) { background: var(--wmh-accent); color: #fff0dd; }
.wmh .wmh-stepper__btn:disabled { opacity: .35; cursor: default; }
.wmh .wmh-stepper input[type="number"] { flex: 1; height: 100% !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 18px !important; font-weight: 600; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; padding: 0 !important; }
.wmh .wmh-stepper input::-webkit-outer-spin-button, .wmh .wmh-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Custom checkbox (form consent + catalog filters) */
.wmh .wmh-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.wmh .wmh-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wmh-check__box { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--wmh-field-border); border-radius: 6px; background: #fff; color: #fff0dd; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.wmh-check__box .wmh-icon { width: 15px; height: 15px; stroke-width: 2.4; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.wmh-check input:checked + .wmh-check__box { background: var(--wmh-accent); border-color: var(--wmh-accent); }
.wmh-check input:checked + .wmh-check__box .wmh-icon { opacity: 1; transform: none; }
.wmh-check input:focus-visible + .wmh-check__box { box-shadow: 0 0 0 3px rgba(64,17,23,.18); }
.wmh-check:hover .wmh-check__box { border-color: var(--wmh-accent); }
.wmh-check__text { line-height: 1.5; }
.wmh-check__text a { color: var(--wmh-accent); text-decoration: underline; }

.wmh-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.wmh-form__footer .wmh-field--check { flex: 1; }
.wmh-form__submit { flex: 0 0 auto; }
.wmh .wmh-field__error { color: #c62828; font-size: .85em; }
.wmh .wmh-field__error:empty { display: none; }
.wmh-notice { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--wmh-radius); margin-bottom: 20px; }
.wmh-notice[hidden] { display: none; }
.wmh-notice--success { background: #e8f5e9; color: #1b5e20; }
.wmh-notice--success .wmh-icon { flex: 0 0 auto; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #1b5e20; color: #fff; stroke-width: 2.4; }
.wmh-notice--error { background: #fdecea; color: #b71c1c; }
.wmh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Date picker (flatpickr) in brand colours */
.flatpickr-calendar.wmh-datepicker { border: 1px solid #e8d5c1; border-radius: 14px; box-shadow: 0 18px 40px rgba(64,17,23,.16); font-family: inherit; padding: 6px; width: 320px; }
.flatpickr-calendar.wmh-datepicker::before, .flatpickr-calendar.wmh-datepicker::after { display: none; }
.wmh-datepicker .flatpickr-months { padding: 4px 0 8px; }
.wmh-datepicker .flatpickr-current-month { font-size: 16px; font-weight: 600; color: #401117; padding-top: 6px; }
.wmh-datepicker .flatpickr-current-month input.cur-year { font-weight: 600; color: #401117; }
.wmh-datepicker .flatpickr-months .flatpickr-prev-month, .wmh-datepicker .flatpickr-months .flatpickr-next-month { top: 8px; padding: 8px; color: #401117; fill: #401117; border-radius: 8px; }
.wmh-datepicker .flatpickr-months .flatpickr-prev-month:hover svg, .wmh-datepicker .flatpickr-months .flatpickr-next-month:hover svg { fill: #401117; }
.wmh-datepicker .flatpickr-months .flatpickr-prev-month:hover, .wmh-datepicker .flatpickr-months .flatpickr-next-month:hover { background: #fff0dd; }
.wmh-datepicker span.flatpickr-weekday { color: #6e5a55; font-weight: 600; font-size: 12px; }
.wmh-datepicker .flatpickr-innerContainer, .wmh-datepicker .flatpickr-rContainer, .wmh-datepicker .flatpickr-days, .wmh-datepicker .dayContainer { width: 100%; min-width: 0; max-width: none; }
.wmh-datepicker .flatpickr-day { border-radius: 10px; color: #1a1a1a; max-width: none; height: 40px; line-height: 40px; }
.wmh-datepicker .flatpickr-day:hover { background: #fff0dd; border-color: #fff0dd; }
.wmh-datepicker .flatpickr-day.today { border-color: #401117; }
.wmh-datepicker .flatpickr-day.today:hover { background: #fff0dd; color: #401117; }
.wmh-datepicker .flatpickr-day.selected, .wmh-datepicker .flatpickr-day.selected:hover { background: #401117; border-color: #401117; color: #fff0dd; }
.wmh-datepicker .flatpickr-day.flatpickr-disabled, .wmh-datepicker .flatpickr-day.flatpickr-disabled:hover { color: #cdbfb8; background: none; border-color: transparent; }
.wmh-datepicker .flatpickr-day.prevMonthDay, .wmh-datepicker .flatpickr-day.nextMonthDay { color: #b9a9a2; }

/* ===================================================================
   Winery catalog: filters left, cards right
   =================================================================== */
.wmh-catalog__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.wmh-catalog--nofilters .wmh-catalog__layout { grid-template-columns: minmax(0, 1fr); }
.wmh-catalog__toggle { display: none; }
.wmh-catalog__aside { position: sticky; top: calc(var(--wmh-sticky-top, 90px) + 20px); }
.admin-bar .wmh-catalog__aside { top: calc(var(--wmh-sticky-top, 90px) + 52px); }
.wmh-catalog__panel { background: #fff; border: 1px solid var(--wmh-border); border-radius: calc(var(--wmh-radius) * 1.2); padding: 22px; }
.wmh-catalog__panel-head, .wmh-catalog__panel-foot, .wmh-catalog__backdrop { display: none; }
.wmh-sidefilters { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.wmh .wmh-sidefilters__group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wmh .wmh-sidefilters__title { display: block; padding: 0; margin: 0 0 2px; font-weight: 700; font-size: .95em; color: #1a1a1a; }
.wmh .wmh-sidefilters input[type="search"] { width: 100% !important; height: 46px; margin: 0; padding: 0 14px 0 44px !important; background: #fff !important; color: #1a1a1a; border: 1px solid var(--wmh-field-border) !important; border-radius: var(--wmh-radius) !important; font: inherit; font-size: 15px; box-shadow: none; }
.wmh .wmh-sidefilters input[type="search"]:focus { outline: none; border-color: var(--wmh-accent) !important; box-shadow: 0 0 0 3px rgba(64,17,23,.12); }
.wmh-check--row { align-items: center !important; }
.wmh-check--row .wmh-check__box { margin-top: 0; }
.wmh-check--row .wmh-check__text { flex: 1; }
.wmh-check__count { font-size: .8em; color: var(--wmh-muted); background: var(--wmh-surface); border-radius: 999px; padding: 1px 9px; min-width: 26px; text-align: center; }
.wmh-sidefilters__actions:empty { display: none; }
.wmh .wmh-sidefilters__actions .wmh-filters__reset { color: var(--wmh-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.wmh-catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wmh .wmh-catalog__count { margin: 0; color: var(--wmh-muted); }
.wmh-catalog__sort { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92em; color: var(--wmh-muted); }
.wmh .wmh-catalog__sort select { width: auto !important; height: 42px; margin: 0; padding: 0 40px 0 14px !important; border: 1px solid var(--wmh-field-border) !important; border-radius: var(--wmh-radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23401117' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; color: #1a1a1a; font: inherit; font-size: 15px; cursor: pointer; }
.wmh-catalog__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wmh-accent); color: #fff0dd; font-size: 12px; }
.wmh-catalog__badge[hidden] { display: none; }
.wmh-catalog .wmh-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wmh-catalog .wmh-empty p { margin: 0; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
	.wmh-hero { gap: 32px; }
	.wmh-form__grid > .wmh-field { grid-column: span 3; }
	.wmh-form__grid > .wmh-field--full { grid-column: 1 / -1; }
	.wmh-catalog__layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
	.wmh-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
	.wmh-location__grid { grid-template-columns: 1fr; }
	.wmh-location__map, .wmh-location__map iframe { min-height: 280px; }

	/* catalog: filters become a slide-in panel */
	.wmh-catalog__layout { grid-template-columns: 1fr; }
	.wmh-catalog__toggle { display: inline-flex; margin-bottom: 16px; }
	.wmh-catalog__aside { position: fixed; inset: 0; z-index: 100000; visibility: hidden; top: 0 !important; }
	.wmh-catalog__aside.is-open { visibility: visible; }
	.wmh-catalog__backdrop { display: block; position: absolute; inset: 0; background: rgba(26,10,12,.45); opacity: 0; transition: opacity .25s; }
	.wmh-catalog__aside.is-open .wmh-catalog__backdrop { opacity: 1; }
	.wmh-catalog__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); border-radius: 0; border: 0; padding: 0; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s ease; }
	.wmh-catalog__aside.is-open .wmh-catalog__panel { transform: none; }
	.wmh-catalog__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--wmh-border); font-size: 1.1em; }
	.wmh .wmh-catalog__close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--wmh-surface); color: var(--wmh-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.wmh-sidefilters { flex: 1; overflow-y: auto; padding: 20px; }
	.wmh-catalog__panel-foot { display: block; padding: 16px 20px; border-top: 1px solid var(--wmh-border); }
}
@media (max-width: 640px) {
	.wmh-form__grid { grid-template-columns: 1fr; }
	.wmh-form__grid > .wmh-field, .wmh-form__grid > .wmh-field--date, .wmh-form__grid > .wmh-field--guests { grid-column: 1 / -1; }
	.wmh-form__footer { flex-direction: column; align-items: stretch; }
	.wmh-form__submit { width: 100%; }
	.wmh-hero__bottom { flex-direction: column; align-items: stretch; }
	.wmh-hero__actions .wmh-btn { flex: 1; }
	.wmh-hero__thumbs { gap: 8px; }
	.wmh-share { justify-content: center; }
	.flatpickr-calendar.wmh-datepicker { width: calc(100vw - 32px); max-width: 360px; }
}

/* Layout follows the width of the content area, not the screen
   (themes with narrow content columns, sidebars, page builders). */
.wmh-tour, .wmh-winery, .wmh-event { container: wmh-page / inline-size; }
.wmh-booking { container: wmh-form / inline-size; }
@container wmh-page (max-width: 820px) {
	.wmh-hero { grid-template-columns: 1fr; gap: 24px; }
	.wmh-location__grid { grid-template-columns: 1fr; }
}
@container wmh-form (max-width: 760px) {
	.wmh-form__grid > .wmh-field, .wmh-form__grid > .wmh-field--date, .wmh-form__grid > .wmh-field--guests { grid-column: span 3; }
	.wmh-form__grid > .wmh-field--full { grid-column: 1 / -1; }
	.wmh-form__footer { flex-direction: column; align-items: stretch; }
	.wmh-form__submit { width: 100%; }
}
@container wmh-form (max-width: 480px) {
	.wmh-form__grid > .wmh-field, .wmh-form__grid > .wmh-field--date, .wmh-form__grid > .wmh-field--guests { grid-column: 1 / -1; }
}

/* YITH wishlist button inside the theme's product hover bar (shop + winery page):
   newer YITH markup is not styled by the theme, so match it to the cart icon. */
.qodef-woo-product-list .qodef-e-media-inner .yith-add-to-wishlist-button-block { display: flex; align-items: center; justify-content: center; }
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button {
	display: flex !important; align-items: center; justify-content: center; gap: 0 !important;
	width: 100%; height: 100%; margin: 0 !important; padding: 0 !important;
	background: none !important; border: 0 !important; box-shadow: none !important;
	color: #000 !important; font-size: 0 !important; line-height: 0 !important;
}
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button:hover { color: #401117 !important; }
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button--added { color: #401117 !important; }
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button__label,
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button .feedback { display: none !important; }
.qodef-woo-product-list .qodef-e-media-inner .yith-wcwl-add-to-wishlist-button svg { display: block !important; width: 19px !important; height: 19px !important; margin: 0 !important; }
