/* Harbour Visuals Core — gallery and enquiry form */

/* Filters */
.hv-gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--wp--preset--spacing--40); }
.hv-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hv-filters button {
	font: 500 0.78rem/1 var(--wp--preset--font-family--sans); color: var(--hv-fg, var(--wp--preset--color--sand));
	background: transparent; border: 1px solid var(--hv-line, transparent); padding: 0.75rem 1.1rem; min-height: 44px; border-radius: 999px; cursor: pointer;
	transition: border-color .2s, color .2s;
}
.hv-filters button:hover { border-color: var(--hv-head, var(--wp--preset--color--paper)); }
.hv-filters button.is-active { background: var(--hv-head, var(--wp--preset--color--paper)); border-color: var(--hv-head, var(--wp--preset--color--paper)); color: var(--hv-bg, var(--wp--preset--color--charcoal)); }
.hv-filters sup { font-size: 0.6rem; margin-left: 0.25rem; }
.hv-gallery__label { margin: 0; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hv-muted, var(--wp--preset--color--quiet)); }

/* Archive grid (masonry via columns) */
.hv-grid { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 1.25rem; }
.hv-grid__item { break-inside: avoid; margin: 0 0 1.75rem; }
.hv-grid__item[hidden] { display: none; }
.hv-grid__open { display: block; width: 100%; padding: 0; border: 0; background: var(--hv-panel, var(--wp--preset--color--umber)); cursor: zoom-in; overflow: hidden; }
.hv-grid__open img { display: block; width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.hv-grid__open:hover img { transform: scale(1.03); }
.hv-grid__cap { margin: 0.7rem 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--hv-muted, var(--wp--preset--color--quiet)); }
.hv-grid__cap span { display: block; font: 600 0.6rem/1.6 var(--wp--preset--font-family--sans); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hv-accent, var(--wp--preset--color--terracotta)); }

/* Lightbox */
.hv-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 31, 36, 0.97); color: var(--wp--preset--color--sand); }
.hv-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.hv-lightbox::backdrop { background: rgba(11, 31, 36, 0.92); }
.hv-lightbox figure { margin: 0; max-width: min(1200px, 86vw); text-align: center; }
.hv-lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.hv-lightbox figcaption { margin-top: 1rem; }
.hv-lightbox figcaption span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--terracotta); }
.hv-lightbox figcaption p { margin: 0.35rem auto 0; max-width: 46rem; font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; }
.hv-lightbox button { position: absolute; background: none; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--paper); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.hv-lightbox button:hover { border-color: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--terracotta); }
.hv-lightbox__close { top: 1.25rem; right: 1.25rem; }
.hv-lightbox__prev { left: 1.25rem; top: 50%; }
.hv-lightbox__next { right: 1.25rem; top: 50%; }

/* Booking form (inherits the colours of the card or section it sits in) */
.hv-form { display: grid; gap: 1.5rem; }
.hv-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.hv-form label > span, .hv-form legend { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hv-muted); margin-bottom: 0.6rem; }
.hv-form label > span i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .8; }
.hv-form input[type="text"], .hv-form input[type="email"], .hv-form textarea {
	width: 100%; box-sizing: border-box; background: transparent; color: var(--hv-head);
	border: 0; border-bottom: 1px solid var(--hv-line); padding: 0.65rem 0; font: 400 1.05rem/1.5 var(--wp--preset--font-family--sans); border-radius: 0;
	transition: border-color .2s;
}
.hv-form ::placeholder { color: var(--hv-muted); opacity: .7; }
.hv-form input:focus-visible, .hv-form textarea:focus-visible { outline: none; border-bottom-color: var(--hv-accent); box-shadow: 0 1px 0 0 var(--hv-accent); }
.hv-form__chapters { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hv-form__chapters legend { width: 100%; }
.hv-chip { position: relative; }
.hv-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hv-chip span { display: inline-flex; align-items: center; min-height: 40px; margin: 0 !important; padding: 0.55rem 1rem !important; border: 1px solid var(--hv-line); border-radius: 999px; font-size: 0.85rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--hv-fg) !important; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.hv-chip:hover span { border-color: var(--hv-head); }
.hv-chip input:checked + span { background: var(--hv-head); border-color: var(--hv-head); color: var(--hv-bg, var(--wp--preset--color--charcoal)) !important; }
.hv-book-card .hv-chip input:checked + span { color: var(--wp--preset--color--charcoal) !important; }
.hv-chip input:focus-visible + span { outline: 2px solid var(--hv-accent); outline-offset: 2px; }
.hv-form__consent { display: flex; gap: 0.75rem; align-items: flex-start; }
.hv-form__consent span { display: inline !important; font-size: 0.88rem !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--hv-muted) !important; }
.hv-form__consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--hv-accent); flex: none; }
.hv-form__hp { position: absolute !important; left: -9999px; }
.hv-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hv-form__submit p { margin: 0; font-size: 0.85rem; color: var(--hv-muted); max-width: 30ch; }
.hv-form__submit .hv-book-btn { font-size: 1.05rem; }
.hv-form__submit .hv-book-btn[disabled] { opacity: .6; cursor: progress; }
.hv-form__notice { border: 1px solid var(--hv-accent); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; color: var(--hv-fg); }
.hv-form__notice:focus { outline: none; }
.hv-form__notice-title { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1.15; color: var(--hv-head); margin: 0 0 0.5rem; }
.hv-form__notice--error { border-color: #e2725b; }


/* ===== Chat bubble ===== */
.hv-chat { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90; font-family: var(--wp--preset--font-family--sans); }
.hv-chat__launcher {
	display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1.2rem 0.55rem 0.55rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 999px; cursor: pointer;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 88%, transparent); color: var(--wp--preset--color--paper);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
	font: 600 0.82rem/1 var(--wp--preset--font-family--sans);
	opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.hv-chat.is-ready .hv-chat__launcher { opacity: 1; transform: none; }
.hv-chat__launcher:hover { border-color: var(--wp--preset--color--terracotta); }
.hv-chat__mark svg, .hv-chat__avatar svg { width: 1rem; height: 1rem; fill: currentColor; }
.hv-chat__mark, .hv-chat__avatar {
	display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: none;
	background: transparent; border: 1px solid var(--wp--preset--color--paper); color: var(--wp--preset--color--paper);
	font: 500 1.35rem/1 var(--wp--preset--font-family--display);
}
.hv-chat__mark { position: relative; }

.hv-chat.is-open .hv-chat__launcher { opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9); }

.hv-chat__panel {
	position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 2rem)); max-height: min(620px, calc(100vh - 2rem));
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--wp--preset--color--umber); color: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
	transform-origin: bottom right; animation: hv-chat-in .5s cubic-bezier(.2,.7,.2,1);
}
.hv-chat__panel[hidden] { display: none; }
@keyframes hv-chat-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.hv-chat__head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1rem 0.9rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.hv-chat__head > div { flex: 1; }
.hv-chat__title { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; color: var(--wp--preset--color--paper); line-height: 1.1; }
.hv-chat__status { margin: 0.15rem 0 0; font-size: 0.72rem; color: var(--wp--preset--color--quiet); }
.hv-chat__close { background: none; border: 0; color: var(--wp--preset--color--quiet); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.4rem; }
.hv-chat__close:hover { color: var(--wp--preset--color--terracotta); }
.hv-chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 180px; }
.hv-chat__msg { margin: 0; max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; animation: hv-chat-msg .35s cubic-bezier(.2,.7,.2,1); }
@keyframes hv-chat-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hv-chat__msg--bot { background: var(--wp--preset--color--charcoal); border-bottom-left-radius: 4px; align-self: flex-start; }
.hv-chat__msg--me { background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.hv-chat__msg--note { align-self: center; background: none; padding: 0.2rem; font-size: 0.75rem; color: var(--wp--preset--color--terracotta); letter-spacing: 0.04em; }
.hv-chat__msg.is-typing { display: flex; gap: 4px; }
.hv-chat__msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--quiet); animation: hv-chat-dot 1s infinite ease-in-out; }
.hv-chat__msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.hv-chat__msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hv-chat-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.hv-chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.hv-chat__chips[hidden] { display: none; }
.hv-chat__chips button { background: none; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--sand); border-radius: 999px; padding: 0.45rem 0.8rem; font: 500 0.76rem/1 var(--wp--preset--font-family--sans); cursor: pointer; }
.hv-chat__chips button:hover { border-color: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--paper); }
.hv-chat__input { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--wp--preset--color--line); }
.hv-chat__input[hidden], .hv-chat__form[hidden] { display: none; }
.hv-chat__input textarea, .hv-chat__form input, .hv-chat__form textarea {
	flex: 1; width: 100%; box-sizing: border-box; resize: none; background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 0.7rem 0.85rem; font: 400 0.9rem/1.4 var(--wp--preset--font-family--sans);
}
.hv-chat__input textarea:focus, .hv-chat__form input:focus, .hv-chat__form textarea:focus { outline: none; border-color: var(--wp--preset--color--terracotta); }
.hv-chat__input button { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--charcoal); font-size: 1.05rem; cursor: pointer; transition: background .2s, color .2s; }
.hv-chat__input button:hover { background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--paper); }
.hv-chat__form { display: grid; gap: 0.7rem; padding: 0.9rem 1rem; border-top: 1px solid var(--wp--preset--color--line); overflow-y: auto; }
.hv-chat__form label span { display: block; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--quiet); margin-bottom: 0.3rem; }
.hv-chat__form button { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--charcoal); border: 0; border-radius: 999px; padding: 0.8rem 1rem; font: 600 0.85rem/1 var(--wp--preset--font-family--sans); cursor: pointer; }
.hv-chat__form button:hover { background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--paper); }
.hv-chat__foot { margin: 0; padding: 0.55rem 1rem 0.8rem; font-size: 0.68rem; color: var(--wp--preset--color--quiet); line-height: 1.5; }
.hv-chat__foot a, .hv-chat__switch { color: var(--wp--preset--color--sand); text-decoration: underline; text-underline-offset: 2px; }
.hv-chat__switch { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
	.hv-chat__label { display: none; }
	.hv-chat__launcher { padding: 0.45rem; }
	.hv-chat__panel { position: fixed; inset: auto 0.75rem 0.75rem 0.75rem; width: auto; max-height: calc(100dvh - 1.5rem); }
}

@media (max-width: 781px) { .hv-chat { display: none; } }

/* ---------- Showreel: website transformations ---------- */
.hv-showreel { margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.hv-showreel__eyebrow { margin: 0 0 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hv-muted); }
.hv-showreel__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hv-radius, 4px); overflow: hidden; background: #0f262c; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.hv-showreel__video, .hv-showreel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-showreel__poster { pointer-events: none; }
.hv-showreel:not(.is-ready) .hv-showreel__poster, .hv-showreel.is-playing .hv-showreel__poster { display: none; }
.hv-showreel__play {
	position: absolute; left: 50%; bottom: clamp(1rem, 4vw, 2.5rem); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.9rem;
	padding: 0.7rem 1.4rem 0.7rem 0.7rem; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
	background: #e36b49; color: #0b1f24; font: 700 1rem/1.2 var(--wp--preset--font-family--sans); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s var(--hv-ease, ease), box-shadow 0.3s var(--hv-ease, ease);
}
.hv-showreel__play small { display: block; font-weight: 600; font-size: 0.78rem; }
.hv-showreel__play:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); }
.hv-showreel__play:focus-visible { outline: 3px solid #f4f1ea; outline-offset: 3px; }
.hv-showreel__icon { width: 44px; height: 44px; border-radius: 50%; background: #0b1f24; position: relative; flex: none; }
.hv-showreel__icon::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #f4f1ea; }
.hv-showreel.is-playing .hv-showreel__play { display: none; }
.hv-showreel figcaption { margin-top: 1rem; font-size: 0.95rem; color: var(--hv-muted); max-width: 70ch; }
.hv-showreel figcaption p { margin: 0; }
.hv-showreel__text { margin-top: 0.75rem; }
.hv-showreel__text summary { cursor: pointer; color: var(--hv-fg); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hv-showreel__text ol { margin: 0.5rem 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.6rem; color: var(--hv-fg); }
.hv-showreel__text a { color: var(--hv-accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .hv-showreel__play { transition: none; } }
