/*
Theme Name: Koralya
Theme URI: https://residencekoralya.com
Description: Thème sur mesure de Résidence Koralya (Mont Choisy, île Maurice). Léger, sans constructeur, compatible avec Polylang gratuit. À utiliser avec l’extension Koralya Core.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Author: Résidence Koralya
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koralya
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--k-paper: #F8F6F0;
	--k-sand: #E8DCCB;
	--k-beige: #D2BDA3;
	--k-green: #1D6B70;
	--k-green-deep: #155358;
	--k-ink: #292B28;
	--k-ink-soft: #55574F;     /* 6.6:1 on paper */
	--k-field: #857560;        /* form borders, 4:1 on paper */
	--k-todo: #FFE68C;
	--k-wide: var(--wp--style--global--wide-size, 1240px);
	--k-gutter: clamp(1.25rem, 4vw, 3rem);
	--k-band: clamp(3.5rem, 8vw, 7rem);
	--k-serif: var(--wp--preset--font-family--display, Georgia, serif);
	--k-sans: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--k-measure: 66ch;
	color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--k-paper);
	color: var(--k-ink);
	font-family: var(--k-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--k-green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--k-green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--k-green); outline-offset: 3px; }
.k-band--green :focus-visible, .k-footer :focus-visible, .k-path--long :focus-visible { outline-color: var(--k-sand); }

h1, h2, h3, h4 {
	font-family: var(--k-serif);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0 0 0.6em;
	text-wrap: balance;
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 100;
}
.k-brand__name, .k-footer__name, .k-pricebox__amount, .k-cal__month caption, .wp-block-details summary, .k-faq summary, .k-steps li::before { font-variation-settings: "SOFT" 100; }
h1 { font-size: clamp(2.3rem, 3.4vw + 1rem, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 1.8vw + 1rem, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
.k-lead { font-size: clamp(1.15rem, 0.5vw + 1rem, 1.3rem); line-height: 1.55; color: var(--k-ink); }
.k-small { font-size: 0.9375rem; color: var(--k-ink-soft); }
mark.k-todo { background: var(--k-todo); color: var(--k-ink); padding: 0.05em 0.25em; font-size: 0.95em; }

.k-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--k-ink); color: var(--k-paper); padding: 0.75rem 1rem; }
.k-skip:focus { top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.k-wrap { width: 100%; max-width: calc(var(--k-wide) + 2 * var(--k-gutter)); margin-inline: auto; padding-inline: var(--k-gutter); }
.k-main:focus { outline: none; }

/* ==========================================================================
   Buttons (theme buttons and block buttons share one look)
   ========================================================================== */
.k-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.8em 1.45em;
	border: 1.5px solid var(--k-green);
	border-radius: 2px;
	font-family: var(--k-sans);
	font-size: 0.975rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.k-btn--solid, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--k-green); color: var(--k-paper); }
.k-btn--solid:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--k-green-deep); border-color: var(--k-green-deep); color: var(--k-paper); }
.k-btn--line, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--k-green); }
.k-btn--line:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--k-green); color: var(--k-paper); }
.k-btn--small { min-height: 40px; padding: 0.55em 1em; font-size: 0.9rem; }
.k-btn--block { width: 100%; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.k-link { font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */
.k-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 240, 0.94); border-bottom: 1px solid var(--k-sand); backdrop-filter: saturate(1.2) blur(8px); }
.admin-bar .k-header { top: 32px; }
.k-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.k-brand { display: inline-flex; flex-direction: column; line-height: 1; color: var(--k-ink); text-decoration: none; }
.k-brand:hover { color: var(--k-green); }
.k-brand__small { font-family: var(--k-sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--k-ink-soft); margin-bottom: 0.2rem; }
.k-brand__name { font-family: var(--k-serif); font-size: 1.85rem; font-weight: 450; letter-spacing: -0.01em; }
.k-brand__logo { max-height: 3.25rem; width: auto; }

.k-nav { display: flex; align-items: center; gap: 1.75rem; }
.k-nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.k-nav__list a { color: var(--k-ink); text-decoration: none; font-weight: 500; font-size: 0.975rem; padding-block: 0.4rem; border-bottom: 1.5px solid transparent; }
.k-nav__list a:hover, .k-nav__list a[aria-current="page"] { color: var(--k-green); border-bottom-color: currentColor; }
.k-lang { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; font-weight: 600; }
.k-lang a, .k-lang span { display: inline-block; padding: 0.35rem 0.45rem; text-decoration: none; color: var(--k-ink-soft); }
.k-lang span[aria-current] { color: var(--k-ink); border-bottom: 1.5px solid var(--k-ink); }
.k-menu-btn { display: none; }

@media (max-width: 1020px) {
	.k-menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--k-ink); background: transparent; color: var(--k-ink); font: 600 0.95rem var(--k-sans); border-radius: 2px; cursor: pointer; }
	.k-nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 1.5rem var(--k-gutter) 2rem; background: var(--k-paper); border-bottom: 1px solid var(--k-beige); max-height: calc(100vh - 5rem); overflow-y: auto; }
	.k-nav.is-open { display: flex; }
	.k-nav__list { flex-direction: column; gap: 0; }
	.k-nav__list a { display: block; padding: 0.85rem 0; font-family: var(--k-serif); font-size: 1.45rem; font-weight: 400; border-bottom: 1px solid var(--k-sand); }
	.k-nav__cta { align-self: flex-start; }
}
@media (max-width: 782px) { .admin-bar .k-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .k-header { top: 0; } }

/* ==========================================================================
   Page structure, flow and bands
   ========================================================================== */
.k-page__head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 1rem; }
.k-page__title { max-width: 22ch; }
.k-content { padding-bottom: var(--k-band); }

/*
 * Text blocks align on the WIDE grid's left edge (like columns and catalogues) but keep a readable measure.
 * The right padding shrinks the line length without moving the left edge.
 */
.k-flow > :is(p, h2, h3, h4, ul, ol, .wp-block-buttons, .wp-block-details, .wp-block-shortcode, .k-contact),
.k-band > :is(p, h2, h3, h4, ul, ol, .wp-block-buttons, .wp-block-details) {
	max-width: var(--k-wide);
	padding-right: max(0px, calc(min(100%, var(--k-wide)) - var(--k-measure)));
}
.k-flow > :is(.k-catalog, .k-form, .k-form-done, .k-map, .k-empty, .wp-block-columns, .k-ph),
.k-band > :is(.k-catalog, .k-form, .k-form-done, .k-empty, .k-search, .wp-block-columns, .k-ph) {
	max-width: var(--k-wide);
}

.k-sections > .alignfull { margin-top: 0; margin-bottom: 0; }
.k-band { padding-block: var(--k-band); }
.k-band--tight { padding-block: calc(var(--k-band) * 0.6); }
.k-band + .k-band:not([class*="k-band--"]) { padding-top: 0; }
.k-band--sand { background: var(--k-sand); }
.k-band--green { background: var(--k-green); color: var(--k-paper); }
.k-band--green a { color: var(--k-paper); }
.k-band--green .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--k-paper); color: var(--k-green); border-color: var(--k-paper); }
.k-band--green .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--k-sand); border-color: var(--k-sand); }
.k-band--green .k-btn--line { color: var(--k-paper); border-color: var(--k-paper); }
.k-band--green .k-btn--line:hover { background: var(--k-paper); color: var(--k-green); }
.k-cta { text-align: left; }
.k-cta > .k-btn { margin-top: 0.75rem; }
.k-band--faq h2 { margin-bottom: 1.25rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.k-hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.k-hero .wp-block-columns { align-items: flex-end !important; gap: clamp(2rem, 5vw, 5rem); }
.k-hero .k-display, .k-hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.k-hero .k-lead { max-width: 40ch; }
.k-hero--simple { background: var(--k-sand); }
.k-hero--simple > * { max-width: var(--k-wide); }
.k-hero--simple .k-display { max-width: 18ch; }
.k-hero .k-ph, .k-hero img { animation: k-reveal 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes k-reveal { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   The two paths: the one bold moment of the site
   ========================================================================== */
.k-band--paths { padding-block: 0; }
.k-paths { gap: 0 !important; margin: 0 !important; max-width: none !important; }
.k-path {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(22rem, 38vw, 30rem);
	padding: clamp(2rem, 5vw, 4.5rem);
}
.k-path h2 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.4rem); font-weight: 400; max-width: 12ch; }
.k-path p { max-width: 36ch; }
.k-path--holiday { background: var(--k-sand); }
.k-path--long { background: var(--k-green); color: var(--k-paper); }
.k-path--long .wp-block-button__link { background: var(--k-paper) !important; color: var(--k-green) !important; border-color: var(--k-paper) !important; }
.k-path--long .wp-block-button__link:hover { background: var(--k-sand) !important; border-color: var(--k-sand) !important; }

/* ==========================================================================
   Columns, trio, photos, steps, lists
   ========================================================================== */
.wp-block-columns { gap: clamp(1.5rem, 3vw, 3rem); margin-block: 1.5rem 0; }
.k-trio h3 { margin-bottom: 0.5rem; }
.k-trio p { color: var(--k-ink); }
.k-trio .wp-block-column { border-top: 1px solid var(--k-ink); padding-top: 1.25rem; }
.k-photos { gap: 0.75rem !important; }

.k-steps { list-style: none; counter-reset: k-step; padding-left: 0; margin: 1.5rem 0; }
.k-steps li { counter-increment: k-step; position: relative; padding: 1rem 0 1rem 3.25rem; border-top: 1px solid var(--k-beige); }
.k-steps li:last-child { border-bottom: 1px solid var(--k-beige); }
.k-steps li::before { content: counter(k-step); position: absolute; left: 0; top: 0.8rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 1.5px solid var(--k-green); border-radius: 50%; color: var(--k-green); font-family: var(--k-serif); font-size: 1.1rem; }
.k-ticks { padding-left: 1.2em; }
.k-ticks li { margin-bottom: 0.5em; }
.k-ticks li::marker { color: var(--k-green); }

.wp-block-details, .k-faq { border-top: 1px solid var(--k-beige); padding: 0; }
.wp-block-details:last-of-type, .k-faq:last-of-type { border-bottom: 1px solid var(--k-beige); }
.wp-block-details summary, .k-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--k-serif); font-size: 1.2rem; font-weight: 500; }
.wp-block-details summary::-webkit-details-marker, .k-faq summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after, .k-faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.wp-block-details[open] summary::after, .k-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details > :not(summary), .k-faq > p { padding-bottom: 1rem; margin: 0; }

/* ==========================================================================
   Photo placeholders (visible on purpose until real photos are added)
   ========================================================================== */
.k-ph {
	position: relative;
	margin: 0;
	width: 100%;
	background-color: var(--k-sand);
	background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(210, 189, 163, 0.55) 14px 15px);
	display: flex;
	align-items: flex-end;
}
.k-ph figcaption { padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; font-size: 0.875rem; color: var(--k-ink-soft); }
.k-ph__tag { background: var(--k-paper); color: var(--k-ink); padding: 0.2rem 0.55rem; font-weight: 600; font-size: 0.8rem; }

/* ==========================================================================
   Search bar and filters
   ========================================================================== */
.k-band--search { background: var(--k-ink); color: var(--k-paper); padding-block: 1.75rem; }
.k-search, .k-filters__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem 1rem; align-items: end; }
.k-search { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.k-f { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.k-f label { font-size: 0.875rem; font-weight: 600; }
.k-f input, .k-f select { min-height: 48px; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--k-field); border-radius: 2px; background: #fff; color: var(--k-ink); font: inherit; font-size: 1rem; }
.k-band--search .k-f input, .k-band--search .k-f select { border-color: #fff; }
.k-band--search .k-btn--solid { background: var(--k-sand); color: var(--k-ink); border-color: var(--k-sand); }
.k-band--search .k-btn--solid:hover { background: var(--k-paper); border-color: var(--k-paper); color: var(--k-ink); }
.k-band--search :focus-visible { outline-color: var(--k-sand); }
.k-search__note { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; color: var(--k-sand); }
@media (max-width: 900px) { .k-search { grid-template-columns: 1fr 1fr; } .k-f--btn { grid-column: 1 / -1; } .k-f--btn .k-btn { width: 100%; } }

.k-filters { border-top: 1px solid var(--k-ink); border-bottom: 1px solid var(--k-beige); padding: 1.25rem 0; margin-bottom: 1.5rem; }
.k-filters__note { margin: 0.85rem 0 0; font-size: 0.875rem; color: var(--k-ink-soft); }
.k-catalog__count { font-weight: 600; margin-bottom: 1.25rem; }

/* ==========================================================================
   Unit cards
   ========================================================================== */
.k-grid-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); margin-top: 1.5rem; }
.k-card { display: flex; flex-direction: column; }
.k-card[hidden] { display: none; }
.k-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--k-sand); }
.k-card__media img, .k-card__media .k-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.k-card__body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }
.k-card__title { font-size: 1.55rem; font-weight: 450; margin-bottom: 0.3rem; }
.k-card__title a { color: var(--k-ink); text-decoration: none; }
.k-card__title a::after { content: ""; position: absolute; inset: 0; }
.k-card { position: relative; }
.k-card__title a:hover { color: var(--k-green); }
.k-card__facts { font-size: 0.9375rem; color: var(--k-ink-soft); margin-bottom: 0.6rem; }
.k-card__tagline { margin-bottom: 0.6rem; }
.k-card__amen { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 0.9rem; }
.k-card__amen li { font-size: 0.8125rem; padding: 0.2rem 0.55rem; border: 1px solid var(--k-beige); }
.k-card__price { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--k-beige); font-weight: 600; color: var(--k-green); }
.k-card__avail { margin: 0.4rem 0 0; font-size: 0.875rem; }
.k-card__avail.is-busy { color: #8A3B12; }
.k-empty { padding: 2rem; background: var(--k-sand); }

/* ==========================================================================
   Unit page
   ========================================================================== */
.k-owner-note { background: var(--k-todo); padding: 0.75rem var(--k-gutter); font-size: 0.9375rem; }
.k-unit__head { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: 1.5rem; }
.k-back { margin-bottom: 1.25rem; font-size: 0.9375rem; }
.k-back a::before { content: "‹ "; }
.k-unit__title { margin-bottom: 0.4rem; }
.k-unit__tagline { font-size: 1.2rem; color: var(--k-ink-soft); max-width: 50ch; }
.k-unit__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 1rem 0 0; font-weight: 500; }
.k-unit__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--k-beige); margin-right: 1.5rem; vertical-align: middle; transform: translateY(-2px); }

.k-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.5rem; aspect-ratio: 2.1 / 1; }
.k-gallery__item { display: block; overflow: hidden; background: var(--k-sand); }
.k-gallery__item.is-main { grid-row: 1 / 3; }
.k-gallery__item img, .k-gallery__item .k-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; }
.k-gallery__item:only-child, .k-gallery > .k-gallery__item.is-main:last-of-type { grid-column: 1 / -1; }
.k-gallery__more { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; margin: 0 0.75rem 0.75rem 0; position: relative; z-index: 1; }
.k-gallery__more .k-btn { background: var(--k-paper); }
@media (max-width: 760px) {
	.k-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
	.k-gallery__item.is-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
	.k-gallery__item { aspect-ratio: 1; }
	.k-gallery__more { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin: 0.5rem 0 0; }
}

.k-unit__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: var(--k-band); align-items: start; }
.k-unit__main { max-width: 70ch; }
.k-prose > * { margin-top: 0; }
.k-block { border-top: 1px solid var(--k-beige); padding-top: 1.5rem; margin-top: 2.25rem; }
.k-block h2 { font-size: 1.75rem; }
.k-amen { columns: 2 14rem; padding-left: 1.1em; margin: 0; }
.k-amen li { margin-bottom: 0.4em; break-inside: avoid; }
.k-amen li::marker { color: var(--k-green); }
.k-terms { margin: 0; }
.k-terms > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--k-sand); }
.k-terms dt { font-weight: 600; }
.k-terms dd { margin: 0; }
@media (max-width: 560px) { .k-terms > div { grid-template-columns: 1fr; gap: 0.15rem; } }

.k-unit__aside { position: sticky; top: 6.5rem; }
.k-pricebox { background: var(--k-sand); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.k-pricebox p { margin: 0; }
.k-pricebox__label { font-size: 0.875rem; font-weight: 600; color: var(--k-ink-soft); }
.k-pricebox__amount { font-family: var(--k-serif); font-size: 1.6rem; line-height: 1.2; }
.k-pricebox__note, .k-pricebox__stays, .k-pricebox__nb { font-size: 0.9rem; color: var(--k-ink-soft); }
.k-pricebox .k-btn { width: 100%; }
@media (max-width: 960px) {
	.k-unit__layout { grid-template-columns: 1fr; }
	.k-unit__aside { position: static; order: -1; }
}

.k-request { background: var(--k-sand); padding-block: var(--k-band); }
.k-request__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.k-request h2 { font-size: clamp(1.75rem, 1.5vw + 1rem, 2.4rem); }
@media (max-width: 900px) { .k-request__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Availability calendar
   ========================================================================== */
.k-cal { position: relative; }
.k-cal__bar { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.5rem; }
.k-cal__nav { width: 44px; height: 44px; border: 1px solid var(--k-field); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--k-ink); border-radius: 2px; }
.k-cal__nav:disabled { opacity: 0.35; cursor: default; }
.k-cal__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem 2rem; }
.k-cal__month { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9rem; }
.k-cal__month caption { text-align: left; font-family: var(--k-serif); font-size: 1.15rem; font-weight: 500; padding-bottom: 0.5rem; text-transform: capitalize; }
.k-cal__month th { font-weight: 600; font-size: 0.8rem; color: var(--k-ink-soft); padding-bottom: 0.3rem; }
.k-cal__month td { text-align: center; padding: 2px; }
.k-cal__month td span { display: block; padding: 0.4rem 0; }
.k-cal__month .is-free span { background: #fff; }
.k-cal__month .is-busy span { background: var(--k-beige); color: var(--k-ink-soft); text-decoration: line-through; }
.k-cal__month .is-past span { color: #9a9a92; }
.k-cal__legend { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0.25rem; font-size: 0.875rem; }
.k-cal__key { display: inline-block; width: 1rem; height: 1rem; border: 1px solid var(--k-beige); }
.k-cal__key.is-free { background: #fff; }
.k-cal__key.is-busy { background: var(--k-beige); margin-left: 1rem; }
.k-cal__note { font-size: 0.875rem; color: var(--k-ink-soft); }

/* ==========================================================================
   Forms
   ========================================================================== */
.k-form { max-width: 46rem; }
.k-form__req { font-size: 0.875rem; color: var(--k-ink-soft); }
.k-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
@media (max-width: 600px) { .k-form__grid { grid-template-columns: 1fr; } }
.k-field { display: flex; flex-direction: column; gap: 0.3rem; }
.k-field--wide { grid-column: 1 / -1; }
.k-field label { font-weight: 600; font-size: 0.95rem; }
.k-field input, .k-field select, .k-field textarea { width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; border: 1px solid var(--k-field); border-radius: 2px; background: #fff; color: var(--k-ink); font: inherit; font-size: 1rem; }
.k-field textarea { min-height: 8rem; resize: vertical; }
.k-field__help { font-size: 0.85rem; color: var(--k-ink-soft); }
.k-field.has-error input, .k-field.has-error select, .k-field.has-error textarea { border: 2px solid #A3261B; }
.k-field__err { color: #A3261B; font-size: 0.9rem; font-weight: 600; }
.k-req { color: #A3261B; }
.k-opt { font-weight: 400; color: var(--k-ink-soft); font-size: 0.875rem; }
.k-field--check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.k-field--check input { width: 1.35rem; height: 1.35rem; min-height: 0; margin-top: 0.15rem; flex: none; accent-color: var(--k-green); }
.k-field--check label { font-weight: 400; }
.k-field--check .k-field__err { flex-basis: 100%; }
.k-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.k-form__nb { margin: 1.5rem 0 1rem; padding: 0.85rem 1rem; border-left: 3px solid var(--k-green); background: rgba(255, 255, 255, 0.55); font-size: 0.9375rem; }
.k-form__errors { border: 2px solid #A3261B; background: #fff; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.k-form__errors p { font-weight: 600; margin-bottom: 0.5rem; }
.k-form__errors ul { margin: 0; padding-left: 1.2em; }
.k-form__errors a { color: #A3261B; }
.k-form-done { background: #fff; border-left: 4px solid var(--k-green); padding: 1.5rem 1.75rem; max-width: 46rem; }
.k-form-done h3 { font-size: 1.6rem; }
.k-band--form .k-form { margin-top: 1rem; }

/* ==========================================================================
   Contact, map
   ========================================================================== */
.k-contact { margin: 1.5rem 0; }
.k-contact > div { padding: 0.75rem 0; border-top: 1px solid var(--k-beige); }
.k-contact dt { font-size: 0.85rem; font-weight: 600; color: var(--k-ink-soft); }
.k-contact dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.k-contact-col .k-btn { margin-bottom: 1.5rem; }
.k-map { margin-top: 1.5rem; }
.k-map__gate { aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1.5rem; background-color: var(--k-sand); background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(210, 189, 163, 0.5) 18px 19px); font-size: 0.9375rem; }
.k-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.k-map__links { display: flex; gap: 1.25rem; font-size: 0.9rem; margin-top: 0.6rem; }

/* ==========================================================================
   Footer and WhatsApp
   ========================================================================== */
.k-footer { background: var(--k-green); color: var(--k-paper); padding-top: clamp(3rem, 6vw, 5rem); }
.k-footer a { color: var(--k-paper); }
.k-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.k-footer__name { font-family: var(--k-serif); font-size: 2rem; line-height: 1.1; margin-bottom: 0.75rem; }
.k-footer__brand p:not(.k-footer__name) { max-width: 34ch; color: var(--k-sand); }
.k-footer__title { font-family: var(--k-sans); font-size: 0.95rem; font-weight: 600; color: var(--k-sand); margin-bottom: 1rem; letter-spacing: 0; }
.k-footer .k-nav__list { flex-direction: column; gap: 0.5rem; }
.k-footer .k-nav__list a { color: var(--k-paper); border: 0; padding: 0; font-weight: 400; }
.k-footer .k-nav__list a:hover { text-decoration: underline; }
.k-footer .k-contact { margin: 0; }
.k-footer .k-contact > div { border-top-color: rgba(232, 220, 203, 0.3); }
.k-footer .k-contact dt { color: var(--k-sand); }
.k-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(232, 220, 203, 0.3); font-size: 0.875rem; }
.k-footer__legal p { margin: 0; }
.k-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .k-footer__grid { grid-template-columns: 1fr; } }

.k-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1rem; border-radius: 999px; background: var(--k-ink); color: var(--k-paper); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.k-wa:hover { background: var(--k-green); color: var(--k-paper); }
@media (min-width: 900px) { .k-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .k-wa { width: 52px; height: 52px; padding: 0; justify-content: center; } }

/* ==========================================================================
   Lightbox, blog list, misc
   ========================================================================== */
.k-lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: var(--k-ink); color: var(--k-paper); }
.k-lightbox::backdrop { background: rgba(41, 43, 40, 0.9); }
.k-lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.k-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem; }
.k-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid var(--k-paper); background: transparent; color: var(--k-paper); font: 600 1rem var(--k-sans); cursor: pointer; }
.k-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2.5rem; padding-bottom: var(--k-band); }
.k-post__title { font-size: 1.5rem; margin-top: 1rem; }
.k-post__date { color: var(--k-ink-soft); font-size: 0.9rem; }
.k-404 { padding-block: var(--k-band); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.k-header, .k-footer, .k-wa, .k-form, .k-filters { display: none !important; }
}

/* Real photos inserted with [koralya_photo key="…"] */
.k-photo { margin: 0; width: 100%; overflow: hidden; background: var(--k-sand); }
.k-photo img { width: 100%; height: 100%; object-fit: cover; }
.k-hero .k-photo img { animation: k-reveal 1.1s cubic-bezier(.2, .7, .2, 1) both; }
