/* Apolafsi Core — header, footer, availability bar, forms, events. */

.apo-wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* ---------- Header ---------- */
.apo-header { position: relative; z-index: 50; }
.apo-topbar { background: var(--wp--preset--color--ink, #13324A); color: #D3E3EA; font-size: 0.8125rem; }
.apo-topbar .apo-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.apo-topbar__info { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.apo-topbar a { color: #fff; text-decoration: none; }
.apo-topbar a:hover { text-decoration: underline; }
.apo-lang { display: flex; gap: 0.25rem; font-weight: 700; letter-spacing: 0.04em; }
.apo-lang a { padding: 0.15rem 0.55rem; border-radius: 6px; color: #fff; text-decoration: none; }
.apo-lang a.is-current { background: #fff; color: var(--wp--preset--color--ink, #13324A); }

.apo-bar { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line, #DCE7EA); }
.apo-bar .apo-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 78px; }
.apo-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--wp--preset--color--ink, #13324A); }
.apo-brand__text { display: flex; flex-direction: column; gap: 0.2rem; }
.apo-brand__name { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.875rem; font-weight: 500; line-height: 1; }
.apo-brand__tag { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wp--preset--color--muted, #55707E); }
.apo-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; font-weight: 600; font-size: 0.9375rem; }
.apo-nav a { color: var(--wp--preset--color--ink, #13324A); text-decoration: none; padding: 0.6rem 0; border-bottom: 2px solid transparent; }
.apo-nav a:hover { color: var(--wp--preset--color--gulf, #1D5C87); }
.apo-nav a[aria-current="page"] { color: var(--wp--preset--color--gulf, #1D5C87); border-bottom-color: currentColor; }
.apo-cta.wp-element-button, .apo-cta { white-space: nowrap; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.apo-burger { display: none; position: relative; }
.apo-burger summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; color: var(--wp--preset--color--ink, #13324A); }
.apo-burger summary::-webkit-details-marker { display: none; }
.apo-burger summary:focus-visible { outline: 3px solid var(--wp--preset--color--gold, #F2C14E); }
.apo-burger .apo-burger__close { display: none; }
.apo-burger[open] .apo-burger__close { display: inline; }
.apo-burger[open] .apo-burger__open { display: none; }
.apo-drawer { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(86vw, 340px); background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(19, 50, 74, 0.2); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.apo-drawer nav { display: flex; flex-direction: column; }
.apo-drawer nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--wp--preset--color--line, #DCE7EA); color: var(--wp--preset--color--ink, #13324A); text-decoration: none; font-weight: 600; }
.apo-drawer nav a[aria-current="page"] { color: var(--wp--preset--color--gulf, #1D5C87); }
.apo-drawer .apo-cta { justify-content: center; }
.apo-lang--drawer { justify-content: center; }
.apo-lang--drawer a { color: var(--wp--preset--color--ink, #13324A); border: 1px solid var(--wp--preset--color--line, #DCE7EA); padding: 0.5rem 1rem; }
.apo-lang--drawer a.is-current { background: var(--wp--preset--color--ink, #13324A); color: #fff; }

@media (max-width: 1080px) {
	.apo-bar .apo-nav, .apo-bar > .apo-wrap > .apo-cta { display: none; }
	.apo-burger { display: block; }
	.apo-topbar__loc { display: none; }
}
@media (max-width: 600px) {
	.apo-topbar__info a[href^="mailto"] { display: none; }
	.apo-brand__name { font-size: 1.5rem; }
	.apo-brand .apo-mark { width: 36px; height: 36px; }
	.apo-bar .apo-wrap { min-height: 64px; }
}

/* ---------- Footer ---------- */
.apo-footer { background: var(--wp--preset--color--ink, #13324A); color: #D3E3EA; font-size: 0.9375rem; }
.apo-footer a { color: #fff; text-decoration: none; }
.apo-footer a:hover { text-decoration: underline; }
.apo-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; padding-block: 4.5rem 2rem; }
.apo-footer .apo-brand { color: #fff; }
.apo-footer .apo-brand__tag { color: #B7CCD6; }
.apo-footer__brand p { margin: 1rem 0 0; line-height: 1.7; }
.apo-footer__title { font-family: var(--wp--preset--font-family--sans, sans-serif); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--gold, #F2C14E); margin: 0 0 0.9rem; }
.apo-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.apo-footer__bottom { border-top: 1px solid #2B4D66; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.25rem 2rem; font-size: 0.8125rem; color: #B7CCD6; }

/* Mobile quick-action bar */
.apo-mobilebar { display: none; }
@media (max-width: 781px) {
	.apo-mobilebar {
		display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 0.5rem;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--wp--preset--color--line, #DCE7EA);
		box-shadow: 0 -8px 20px rgba(19, 50, 74, 0.1);
	}
	.apo-mobilebar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--wp--preset--color--ink, #13324A); border-radius: 12px; color: var(--wp--preset--color--ink, #13324A); text-decoration: none; font-weight: 700; font-size: 0.875rem; }
	.apo-mobilebar a.apo-mobilebar__main { background: var(--wp--preset--color--gulf, #1D5C87); border-color: var(--wp--preset--color--gulf, #1D5C87); color: #fff; }
	body { padding-bottom: 76px; }
}

/* ---------- Shared form fields ---------- */
.apo-field { display: flex; flex-direction: column; gap: 0.35rem; }
.apo-field label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted, #55707E); }
.apo-field input, .apo-field select, .apo-field textarea {
	font: inherit; font-size: 1rem; color: var(--wp--preset--color--ink, #13324A);
	background: var(--wp--preset--color--foam, #F5F9FA);
	border: 1px solid #C9D9DF; border-radius: 10px; padding: 0.7rem 0.85rem; min-height: 48px; width: 100%; box-sizing: border-box;
}
.apo-field textarea { min-height: 120px; resize: vertical; }
.apo-field input:focus, .apo-field select:focus, .apo-field textarea:focus { outline: 3px solid rgba(29, 92, 135, 0.35); border-color: var(--wp--preset--color--gulf, #1D5C87); }

/* ---------- Availability bar ---------- */
.apo-availability { position: relative; z-index: 3; max-width: 1280px; margin-inline: auto !important; padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }
.apo-hero + .apo-availability { margin-top: -3rem !important; }
.apo-avail {
	background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(19, 50, 74, 0.16);
	padding: 1.25rem; display: grid; gap: 0.875rem; align-items: end;
	grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 0.6fr)) minmax(0, 2.4fr);
}
.apo-avail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.apo-field, .apo-field input, .apo-field select { min-width: 0; }
.apo-avail__actions > * { min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; border-radius: 10px !important; text-decoration: none; padding: 0.5rem 0.9rem !important; font-size: 0.9375rem; line-height: 1.2; box-sizing: border-box; }
.apo-avail__enquiry { font: inherit; font-weight: 700; color: var(--wp--preset--color--ink, #13324A); background: #fff; border: 1.5px solid var(--wp--preset--color--ink, #13324A); cursor: pointer; }
.apo-avail__enquiry:hover { background: var(--wp--preset--color--ink, #13324A); color: #fff; }
.apo-avail__note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #55707E); }
@media (max-width: 1080px) {
	.apo-avail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.apo-avail__actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.apo-avail { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; }
	.apo-avail__actions { grid-template-columns: 1fr; }
	.apo-field input[type="date"] { font-size: 0.9375rem; padding-inline: 0.6rem; }
}

/* ---------- Enquiry form ---------- */
.apo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.apo-field--full { grid-column: 1 / -1; }
.apo-check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.apo-check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; }
.apo-check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.875rem; color: var(--wp--preset--color--body, #3F5866); }
.apo-submit { border: 0; cursor: pointer; min-height: 52px; width: 100%; font-size: 1rem; }
.apo-form__note { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #55707E); text-align: center; }
.apo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apo-notice { padding: 0.9rem 1rem; border-radius: 10px; background: var(--wp--preset--color--mist, #E8F1F2); }
.apo-notice--success { background: #E3F1F0; color: #0E4E4B; border-left: 4px solid var(--wp--preset--color--sea-green, #17625F); }
.apo-notice--error { background: #FBEAF1; color: #6E1E43; border-left: 4px solid var(--wp--preset--color--bougainvillea, #B5487A); }
@media (max-width: 600px) { .apo-form { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.apo-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.apo-event { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.apo-event__media { height: 190px; background: var(--wp--preset--color--deep, #0F4C6E) center / cover; position: relative; }
.apo-event__date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 12px; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.apo-event__month { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--bougainvillea, #B5487A); }
.apo-event__day { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.75rem; color: var(--wp--preset--color--ink, #13324A); margin-top: 0.15rem; }
.apo-event__body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.apo-event__type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--sea-green, #17625F); }
.apo-event__title { margin: 0; font-size: 1.4rem; }
.apo-event__title a { color: var(--wp--preset--color--ink, #13324A); text-decoration: none; }
.apo-event__title a:hover { text-decoration: underline; }
.apo-event__info { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--muted, #55707E); }
.apo-events-empty { background: #fff; border-radius: 14px; padding: 1.25rem 1.4rem; color: var(--wp--preset--color--body, #3F5866); }
.apo-event-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline; color: var(--wp--preset--color--body, #3F5866); }
.apo-events-heading { margin-top: var(--wp--preset--spacing--60, 3rem); }

/* ---------- Reviews, contact, misc ---------- */
.apo-reviews--links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.apo-review-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid var(--wp--preset--color--ink, #13324A); color: var(--wp--preset--color--ink, #13324A); text-decoration: none; font-weight: 700; }
.apo-review-link:hover { background: var(--wp--preset--color--ink, #13324A); color: #fff; }
.apo-admin-hint { font-size: 0.8125rem; border: 1px dashed var(--wp--preset--color--bougainvillea, #B5487A); padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--wp--preset--color--body, #3F5866); }

.apo-contact__addr { margin: 0 0 0.75rem; line-height: 1.7; }
.apo-contact__list { list-style: none; padding: 0; margin: 0 0 1rem; }
.apo-contact__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #DCE7EA); }
.apo-contact__list span { color: var(--wp--preset--color--muted, #55707E); }
.apo-contact .wp-element-button { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

.apo-btn-outline.wp-element-button, .apo-btn-outline {
	background: transparent !important; color: var(--wp--preset--color--ink, #13324A) !important;
	border: 1.5px solid currentColor; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center;
}
.apo-btn-outline:hover { background: var(--wp--preset--color--ink, #13324A) !important; color: #fff !important; }
.apo-booking-link { margin: 0.5rem 0 0; }

.apo-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #55707E); }
.apo-crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.apo-crumbs a { color: var(--wp--preset--color--muted, #55707E); }

.apo-404 { padding-block: 4rem; }
.apo-404 ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 0; list-style: none; font-weight: 600; }

/* Compact header / side buttons */
.apo-bar .apo-cta.wp-element-button, .apo-drawer .apo-cta.wp-element-button { padding: 0.7rem 1.3rem; font-size: 0.9375rem; }
.apo-btn-outline.wp-element-button { padding: 0.7rem 1.3rem; }
.apo-contact .wp-element-button { padding: 0.7rem 1.3rem; }
