/*
 * Popups (0.9.0). Three templates (modal, slidein, bar) in three colours
 * (light, dark, accent). Text on the accent colour is always dark.
 * z-index: the centre popup sits under the enquiry modal (100000).
 */
.hon-pop {
	--hon-pop-ink: #1D1D1F;
	--hon-pop-text: #424245;
	--hon-pop-surface: #FFFFFF;
	--hon-pop-accent: #F7921E;
	--hon-pop-radius: 18px;
	--hon-pop-bottom: 0px;
	font-family: inherit;
	color: var(--hon-pop-text);
	box-sizing: border-box;
}
.hon-pop *, .hon-pop *::before, .hon-pop *::after { box-sizing: inherit; }

/* Colours */
.hon-pop--light .hon-pop__card, .hon-pop--light.hon-pop--bar { background: var(--hon-pop-surface); color: var(--hon-pop-text); }
.hon-pop--light .hon-pop__heading, .hon-pop--light .hon-pop__close { color: var(--hon-pop-ink); }
.hon-pop--light .hon-pop__btn { background: var(--hon-pop-ink); color: #FFFFFF; }
.hon-pop--dark .hon-pop__card, .hon-pop--dark.hon-pop--bar { background: #1D1D1F; color: #F5F5F7; }
.hon-pop--dark .hon-pop__heading, .hon-pop--dark .hon-pop__close { color: #FFFFFF; }
.hon-pop--dark .hon-pop__btn { background: var(--hon-pop-accent); color: #1D1D1F; }
.hon-pop--accent .hon-pop__card, .hon-pop--accent.hon-pop--bar { background: var(--hon-pop-accent); color: #1D1D1F; }
.hon-pop--accent .hon-pop__heading, .hon-pop--accent .hon-pop__close { color: #1D1D1F; }
.hon-pop--accent .hon-pop__btn { background: #1D1D1F; color: #FFFFFF; }

/* Parts */
.hon-pop__card { position: relative; overflow: hidden; border-radius: var(--hon-pop-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.hon-pop__body { padding: 24px; }
/* The theme's own heading styles (capitals, light weight, wide spacing) must not leak in. */
.hon-pop .hon-pop__heading { margin: 0 0 8px; font-family: inherit; font-size: 1.375rem; font-style: normal; font-weight: 700; line-height: 1.25; letter-spacing: normal; text-transform: none; }
.hon-pop__text { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; white-space: pre-line; }
.hon-pop__img { display: block; width: 100%; height: auto; object-fit: cover; }
.hon-pop__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.hon-pop__btn:hover { filter: brightness(1.08); }
.hon-pop__close { position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.hon-pop__btn:focus-visible, .hon-pop__close:focus-visible { outline: 3px solid var(--hon-pop-accent); outline-offset: 2px; }
.hon-pop--accent .hon-pop__btn:focus-visible, .hon-pop--accent .hon-pop__close:focus-visible { outline-color: #1D1D1F; }

/* Centre popup */
.hon-pop--modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; }
.hon-pop__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hon-pop--modal .hon-pop__card { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.hon-pop--modal .hon-pop__img { aspect-ratio: 16 / 9; }
.hon-pop--modal .hon-pop__body { padding-right: 48px; }
@media (min-width: 768px) { html.hon-pop-lock { overflow: hidden; } }

/* Corner slide-in */
/* --hon-pop-bar: height of a bottom bar on screen (set by popups.js), so a slide-in or sheet sits above it. */
.hon-pop--slidein { position: fixed; right: 16px; bottom: calc(16px + var(--hon-pop-bottom) + var(--hon-pop-bar, 0px)); z-index: 9000; width: min(380px, calc(100vw - 32px)); }
.hon-pop--slidein .hon-pop__card { display: flex; align-items: stretch; }
.hon-pop--slidein .hon-pop__img { flex: 0 0 104px; width: 104px; aspect-ratio: 1; }
.hon-pop--slidein .hon-pop__body { padding: 16px 48px 16px 16px; }
.hon-pop.hon-pop--slidein .hon-pop__heading { font-size: 1.125rem; }
.hon-pop--slidein .hon-pop__text { margin-bottom: 12px; font-size: .9375rem; }

/* Bottom bar */
.hon-pop--bar { position: fixed; left: 0; right: 0; bottom: var(--hon-pop-bottom); z-index: 9000; box-shadow: 0 -4px 20px rgba(0, 0, 0, .12); }
.hon-pop__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 10px 56px 10px 16px; }
.hon-pop--bar .hon-pop__text { margin: 0; }
.hon-pop--bar .hon-pop__btn { flex: 0 0 auto; }
.hon-pop--bar .hon-pop__close { top: 50%; transform: translateY(-50%); }

/* Tour pages keep a fixed "Enquire" bar at the bottom below 1025px: sit above it. */
@media (max-width: 1024px) {
	body.single-tour .hon-pop { --hon-pop-bottom: 72px; }
}

/* Phones: the centre popup becomes a bottom sheet (at most about a third of the screen), no photos. */
@media (max-width: 767px) {
	.hon-pop--modal { place-items: end stretch; padding: 0; pointer-events: none; }
	.hon-pop--modal .hon-pop__backdrop { display: none; }
	.hon-pop--modal .hon-pop__card { width: 100%; max-height: 34vh; margin-bottom: calc(var(--hon-pop-bottom) + var(--hon-pop-bar, 0px)); border-radius: var(--hon-pop-radius) var(--hon-pop-radius) 0 0; pointer-events: auto; }
	.hon-pop--modal .hon-pop__img, .hon-pop--slidein .hon-pop__img { display: none; }
	.hon-pop__body { padding: 20px 48px calc(20px + env(safe-area-inset-bottom)) 20px; }
	.hon-pop .hon-pop__heading { font-size: 1.125rem; }
	.hon-pop__text { font-size: .9375rem; margin-bottom: 12px; }
	.hon-pop--slidein { left: 8px; right: 8px; bottom: calc(8px + var(--hon-pop-bottom) + var(--hon-pop-bar, 0px)); width: auto; }
	.hon-pop--bar .hon-pop__inner { flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; padding: 10px 52px calc(10px + env(safe-area-inset-bottom)) 16px; }
}

@media (prefers-reduced-motion: no-preference) {
	.hon-pop--modal .hon-pop__card { animation: hon-pop-in .25s ease-out; }
	.hon-pop--slidein, .hon-pop--bar { animation: hon-pop-up .3s ease-out; }
}
@keyframes hon-pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes hon-pop-up { from { opacity: 0; transform: translateY(16px); } }

/* Staff editor preview: in the flow of the page, never fixed. */
.hon-pop--preview, .hon-pop--preview.hon-pop--modal, .hon-pop--preview.hon-pop--slidein, .hon-pop--preview.hon-pop--bar {
	position: relative; inset: auto; right: auto; bottom: auto; left: auto; z-index: auto; width: 100%; animation: none; pointer-events: none;
}
.hon-pop--preview.hon-pop--modal { display: grid; place-items: center; min-height: 320px; padding: 24px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.hon-pop--preview .hon-pop__card { animation: none; max-height: none; margin: 0; border-radius: var(--hon-pop-radius); }
.hon-pop--preview.hon-pop--slidein { display: flex; justify-content: flex-end; }
.hon-pop--preview.hon-pop--slidein .hon-pop__card { width: min(380px, 100%); }
.hon-pop--preview .hon-pop__img { display: block; }
