/* Boat page building blocks. Colours match the booking form. */
.kyy-bp { --kyy-navy: #0b3954; --kyy-ink: #1f2933; --kyy-muted: #5b6672; --kyy-line: #d9e0e7; --kyy-soft: #f3f6f9; color: var(--kyy-ink); font-size: 16px; line-height: 1.5; margin: 0 0 28px; }
.kyy-bp *, .kyy-bp-bar * { box-sizing: border-box; }
.kyy-bp-small { color: var(--kyy-muted, #5b6672); font-size: .875em; }
ul.kyy-bp-small { padding-left: 1.1em; }

.kyy-bp-btn { display: inline-block; padding: 11px 20px; border-radius: 8px; background: #0b3954; color: #fff !important; font-weight: 600; text-decoration: none !important; border: 2px solid #0b3954; line-height: 1.2; cursor: pointer; font-size: 1em; font-family: inherit; }
.kyy-bp-btn:hover { background: #134d70; border-color: #134d70; }
.kyy-bp-btn.is-ghost { background: #fff; color: #0b3954 !important; }
.kyy-bp-btn.is-ghost:hover { background: #e6f0f7; }
.kyy-bp-btn:focus-visible { outline: 3px solid #f2a33a; outline-offset: 2px; }
.kyy-bp-btn[disabled] { opacity: .6; cursor: wait; }

/* Facts strip */
.kyy-bp-facts-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.kyy-bp-facts-list li { background: var(--kyy-soft); border: 1px solid var(--kyy-line); border-radius: 999px; padding: 6px 14px; font-size: .95em; margin: 0; }
.kyy-bp-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }

/* Prices */
.kyy-bp-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95em; }
.kyy-bp-table th { text-align: left; color: var(--kyy-navy); border-bottom: 2px solid var(--kyy-navy); padding: 8px 10px 6px 0; }
.kyy-bp-table td { border-bottom: 1px solid var(--kyy-line); padding: 9px 10px 9px 0; vertical-align: top; }
.kyy-bp-table td:last-child, .kyy-bp-table th:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.kyy-bp-table small { color: var(--kyy-muted); }
@media (max-width: 520px) { .kyy-bp-table td:last-child { white-space: normal; } }

/* Menu */
.kyy-bp-menu h4 { margin: 18px 0 6px; color: var(--kyy-navy); font-size: .95em; text-transform: uppercase; letter-spacing: .04em; }
.kyy-bp-menu ul { list-style: none; padding: 0; margin: 0; }
.kyy-bp-menu li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--kyy-line); margin: 0; }
.kyy-bp-menu-name { font-weight: 600; }
.kyy-bp-menu-price { white-space: nowrap; }
.kyy-bp-menu li small { grid-column: 1 / -1; color: var(--kyy-muted); }

/* Sticky bar */
.kyy-bp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 1px solid #d9e0e7; box-shadow: 0 -4px 18px rgba(11, 57, 84, .12); transition: transform .25s ease; font-size: 16px; line-height: 1.4; color: #1f2933; }
.kyy-bp-bar.is-hidden { transform: translateY(110%); }
.kyy-bp-bar-in { max-width: 1140px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kyy-bp-bar-text { margin: 0; }
.kyy-bp-bar-text strong { color: #0b3954; }
.kyy-bp-bar-text span { color: #5b6672; font-size: .9em; }
.kyy-bp-bar-buttons { display: flex; gap: 8px; margin: 0; flex-shrink: 0; }
.kyy-bp-bar .kyy-bp-btn { padding: 9px 16px; }
body.kyy-bp-has-bar { padding-bottom: 76px; }
@media (max-width: 600px) {
	.kyy-bp-bar-in { padding: 8px 12px; }
	.kyy-bp-bar-text span { display: none; }
	.kyy-bp-bar .kyy-bp-btn { padding: 9px 12px; font-size: .9em; }
}
@media (max-width: 380px) { .kyy-bp-bar-text { display: none; } .kyy-bp-bar-buttons { width: 100%; } .kyy-bp-bar .kyy-bp-btn { flex: 1; text-align: center; } }

/* Other boats */
.kyy-bp-others h3 { color: var(--kyy-navy); }
.kyy-bp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.kyy-bp-card { margin: 0; }
.kyy-bp-card a { display: flex; flex-direction: column; gap: 3px; text-decoration: none !important; color: inherit; border: 1px solid var(--kyy-line); border-radius: 12px; overflow: hidden; background: #fff; height: 100%; padding-bottom: 12px; }
.kyy-bp-card a:hover { border-color: var(--kyy-navy); }
.kyy-bp-card img, .kyy-bp-card-noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--kyy-soft); margin-bottom: 8px; }
.kyy-bp-card strong, .kyy-bp-card span, .kyy-bp-card em { padding: 0 14px; }
.kyy-bp-card strong { color: var(--kyy-navy); font-size: 1.1em; }
.kyy-bp-card span { color: var(--kyy-muted); font-size: .9em; }
.kyy-bp-card em { font-style: normal; font-size: .8em; font-weight: 600; color: #1f6b3a; }

/* Quick enquiry */
.kyy-bp-enquiry { background: var(--kyy-soft); border: 1px solid var(--kyy-line); border-radius: 12px; padding: 22px; scroll-margin-top: 100px; }
.kyy-bp-enquiry h3 { margin-top: 0; color: var(--kyy-navy); }
.kyy-bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.kyy-bp-enquiry label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92em; margin: 0; }
.kyy-bp-enquiry label small { font-weight: 400; color: var(--kyy-muted); }
.kyy-bp-enquiry .kyy-bp-lbl b { color: #b42318; }
.kyy-bp-enquiry input, .kyy-bp-enquiry select, .kyy-bp-enquiry textarea { width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #b8c4d0; border-radius: 8px; background: #fff; color: var(--kyy-ink); min-height: 44px; }
.kyy-bp-enquiry input:focus, .kyy-bp-enquiry select:focus, .kyy-bp-enquiry textarea:focus { outline: 2px solid var(--kyy-navy); outline-offset: 1px; }
.kyy-bp-full { margin-bottom: 12px !important; }
.kyy-bp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kyy-bp-error { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.kyy-bp-done:focus { outline: none; }

/* Rate grid (days down, seasons across) */
.kyy-bp-scroll { overflow-x: auto; margin: 0 0 16px; }
.kyy-bp-scroll .kyy-bp-table { margin: 0; }
.kyy-bp-grid-table th:not(:first-child), .kyy-bp-grid-table td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 12px; }
.kyy-bp-grid-table th:not(:first-child) { font-weight: 600; font-size: .9em; }

/* Gallery */
.kyy-bp-gallery { position: relative; }
.kyy-bp-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; }
.kyy-bp-gallery li { margin: 0; min-height: 0; }
.kyy-bp-gallery li:first-child { grid-row: 1 / span 2; }
.kyy-bp-gallery li.is-extra { display: none; }
.kyy-bp-gallery a { display: block; height: 100%; }
.kyy-bp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.kyy-bp-gallery a:hover img { opacity: .9; }
.kyy-bp-gallery[data-count="1"] ul { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.kyy-bp-gallery[data-count="2"] ul, .kyy-bp-gallery[data-count="3"] ul, .kyy-bp-gallery[data-count="4"] ul { grid-template-columns: 2fr 1fr; }
.kyy-bp-gallery-all { position: absolute; right: 12px; bottom: 12px; background: #fff; color: #0b3954; border: 1px solid #0b3954; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9em; cursor: pointer; }
@media (max-width: 700px) {
	.kyy-bp-gallery ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; gap: 6px; border-radius: 10px; }
	.kyy-bp-gallery li, .kyy-bp-gallery li.is-extra { display: block; flex: 0 0 88%; scroll-snap-align: start; aspect-ratio: 3 / 2; }
}
.kyy-bp-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.kyy-bp-lightbox::backdrop { background: rgba(5, 20, 30, .92); }
.kyy-bp-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.kyy-bp-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.kyy-bp-lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.kyy-bp-lightbox button:hover, .kyy-bp-lightbox button:focus-visible { background: rgba(255,255,255,.3); }
.kyy-bp-lb-close { top: 16px; right: 16px; }
.kyy-bp-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.kyy-bp-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.kyy-bp-lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; font-size: .9em; }

/* Keep the theme's table borders and stripes off our price tables. */
.kyy-bp table.kyy-bp-table, .kyy-bp table.kyy-bp-table th, .kyy-bp table.kyy-bp-table td { border: 0; background: transparent; }
.kyy-bp table.kyy-bp-table th { border-bottom: 2px solid #0b3954; padding-left: 0; }
.kyy-bp table.kyy-bp-table td { border-bottom: 1px solid #d9e0e7; padding-left: 0; }
.kyy-bp table.kyy-bp-table tr:nth-child(odd) > td, .kyy-bp table.kyy-bp-table tr:nth-child(even) > td, .kyy-bp table.kyy-bp-table tr:hover > td { background: transparent; }
.kyy-bp table.kyy-bp-grid-table th:not(:first-child), .kyy-bp table.kyy-bp-grid-table td:not(:first-child) { padding-left: 12px; }
.kyy-bp table.kyy-bp-special td:last-child { white-space: normal; max-width: 55%; }

/* Price grid fits a phone without scrolling: wrapping season headings, short day names. */
.kyy-bp-short { display: none; }
.kyy-bp table.kyy-bp-grid-table th:not(:first-child) { white-space: normal; vertical-align: bottom; }
@media (max-width: 600px) {
	.kyy-bp-long { display: none; }
	.kyy-bp-short { display: inline; }
	.kyy-bp table.kyy-bp-grid-table { font-size: .88em; table-layout: fixed; }
	.kyy-bp table.kyy-bp-grid-table th, .kyy-bp table.kyy-bp-grid-table td { padding-top: 7px; padding-bottom: 7px; }
	.kyy-bp table.kyy-bp-grid-table th:not(:first-child), .kyy-bp table.kyy-bp-grid-table td:not(:first-child) { padding-left: 6px; }
	.kyy-bp table.kyy-bp-grid-table th:first-child { width: 28%; }
	.kyy-bp table.kyy-bp-grid-table th:not(:first-child) { font-size: .9em; line-height: 1.25; }
}

/* Packages */
.kyy-bp-pkgs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.kyy-bp-pkg { margin: 0; border: 1px solid var(--kyy-line); border-radius: 12px; background: #fff; padding: 20px; display: flex; flex-direction: column; }
.kyy-bp-pkg h3 { margin: 0 0 10px; color: var(--kyy-navy); font-size: 1.35em; line-height: 1.2; }
.kyy-bp-pkg h3 span { font-size: .65em; font-weight: 600; color: var(--kyy-muted); white-space: nowrap; }
.kyy-bp-pkg-for { margin: 0 0 4px; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #1f6b3a; }
.kyy-bp-pkg-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.kyy-bp-pkg-facts li { margin: 0; background: var(--kyy-soft); border: 1px solid var(--kyy-line); border-radius: 999px; padding: 3px 11px; font-size: .88em; font-weight: 600; }
.kyy-bp-pkg p { margin: 0 0 10px; }
.kyy-bp-pkg-h { font-weight: 700; color: var(--kyy-navy); font-size: .9em; margin: 4px 0 4px !important; }
.kyy-bp-pkg-list { margin: 0 0 10px; padding-left: 1.15em; font-size: .95em; }
.kyy-bp-pkg-list li { margin: 0 0 2px; }
.kyy-bp-pkg-buttons { margin-top: auto !important; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }

.kyy-bp-enquiry[hidden] { display: none !important; }
.kyy-bp-enquiry.is-footer { max-width: 760px; margin-left: auto; margin-right: auto; text-align: left; }
