/* ==========================================================================
   AMPA boat availability calendar (12 months, from the owner's shared calendar)
   Same tokens as the trip calculator (DESIGN.md). Scoped under .ampa-avail.
   ========================================================================== */
.ampa-avail {
	--midnight: #0a0e14; --ivory: #f5f0e8; --parchment: #faf8f4; --white: #ffffff;
	--caribbean: #6ec1e4; --deep-water: #4da8cc; --ink: #1a1a1a; --stone: #5a5a5a;
	--driftwood: #6b6b6b; --border: #e8e3db; --gold: #d4a853; --wa: #188845; --wa-hover: #14753b;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Libre Franklin', -apple-system, 'Helvetica Neue', sans-serif;
	--ease: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
	font-family: var(--sans); color: var(--ink); background: var(--ivory);
	padding: 96px 24px; -webkit-font-smoothing: antialiased;
}
.ampa-avail *, .ampa-avail *::before, .ampa-avail *::after { box-sizing: border-box; }
.ampa-avail [hidden] { display: none !important; }
.av-wrap { max-width: 1100px; margin: 0 auto; }

.av-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: end; margin-bottom: 44px; }
.av-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--driftwood); margin: 0 0 16px; }
.av-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; margin: 0; color: var(--midnight); text-wrap: balance; }
.av-title em { font-style: italic; }
.av-lede { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.75; color: var(--stone); }
.av-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--driftwood); }
.av-updated::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(24,136,69,.15); }

/* -- Year strip (signature): each month a row of day ticks, like a tide table */
.av-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 36px; }
.av-ym { appearance: none; border: 1px solid transparent; background: transparent; padding: 10px 6px 9px; border-radius: 4px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: background var(--ease), border-color var(--ease); min-width: 0; }
.av-ym:hover { background: rgba(255,255,255,.6); }
.av-ym[aria-current="true"] { background: var(--white); border-color: var(--border); box-shadow: 0 1px 4px rgba(10,14,20,.04); }
.av-ym:focus-visible { outline: 2px solid var(--deep-water); outline-offset: 2px; }
.av-ym-name { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1; color: var(--midnight); }
.av-ym-yr { font-family: var(--sans); font-size: 9.5px; letter-spacing: 1px; color: var(--driftwood); margin-left: 3px; }
.av-ticks { display: flex; gap: 1px; height: 22px; align-items: flex-end; margin: 9px 0 7px; }
.av-ticks i { flex: 1; height: 7px; border-radius: 1px; background: rgba(110,193,228,.55); }
.av-ticks i.b { height: 22px; background: var(--midnight); }
.av-ticks i.p { height: 4px; background: var(--border); }
.av-ym-free { display: block; font-size: 10.5px; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* -- Month grids ---------------------------------------------------------- */
.av-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.av-months-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 26px 26px 22px; }
.av-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.av-nav button { appearance: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--parchment); cursor: pointer; font-size: 16px; color: var(--midnight); transition: border-color var(--ease); }
.av-nav button:hover:not(:disabled) { border-color: var(--midnight); }
.av-nav button:disabled { opacity: .3; cursor: default; }
.av-nav button:focus-visible { outline: 2px solid var(--deep-water); outline-offset: 2px; }
.av-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.av-month-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin: 0 0 12px; color: var(--midnight); text-align: center; }
.av-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 0; }
.av-dow { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--driftwood); text-align: center; padding-bottom: 6px; }
.av-day { appearance: none; position: relative; border: 0; background: transparent; font: inherit; font-size: 13.5px; height: 40px; padding: 0; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.av-day span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background var(--ease), color var(--ease); }
.av-day:hover:not(:disabled) span { background: var(--ivory); }
.av-day:focus-visible span { outline: 2px solid var(--deep-water); outline-offset: 1px; }
.av-day.is-past { color: #c9c3b8; cursor: default; }
.av-day.is-booked { cursor: not-allowed; color: #a39d92; }
.av-day.is-booked::before { content: ''; position: absolute; inset: 4px 2px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(10,14,20,.07) 0 3px, transparent 3px 7px); }
.av-day.is-booked span { text-decoration: line-through; text-decoration-color: rgba(10,14,20,.35); }
.av-day.in-range::after { content: ''; position: absolute; inset: 2px 0; background: rgba(110,193,228,.18); }
.av-day.is-start::after { left: 50%; }
.av-day.is-end::after { right: 50%; }
.av-day.is-start span, .av-day.is-end span { background: var(--midnight) !important; color: var(--white); }
.av-day.is-today span { box-shadow: inset 0 0 0 1px var(--gold); }
.av-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--stone); }
.av-legend span { display: inline-flex; align-items: center; gap: 8px; }
.av-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.av-lg-free { background: rgba(110,193,228,.55); }
.av-lg-booked { background: repeating-linear-gradient(135deg, rgba(10,14,20,.28) 0 2px, transparent 2px 5px); border: 1px solid rgba(10,14,20,.15); }
.av-lg-sel { background: var(--midnight); border-radius: 50% !important; }

/* -- Selection panel ------------------------------------------------------- */
.av-panel { position: sticky; top: 96px; background: var(--midnight); color: var(--white); border-radius: 8px; padding: 30px 28px 26px; }
.av-panel-k { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 16px; }
.av-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.av-dates div { background: var(--midnight); padding: 12px 14px; }
.av-dates small { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.av-dates strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.av-dates strong.is-empty { color: rgba(255,255,255,.4); font-style: italic; }
.av-nights { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; line-height: 1; margin: 0; }
.av-nights small { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-left: 8px; }
.av-msg { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.av-msg.is-warn { color: #e9cf95; }
.av-cta { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 16px 18px; border-radius: 2px; background: var(--wa); color: var(--white); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; transition: background var(--ease), opacity var(--ease); }
.av-cta:hover { background: var(--wa-hover); color: var(--white); }
.av-cta:focus-visible { outline: 2px solid var(--caribbean); outline-offset: 3px; }
.av-cta svg { width: 18px; height: 18px; }
.av-cta[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.av-clear { display: block; margin: 12px auto 0; background: none; border: 0; color: rgba(255,255,255,.6); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.av-fine { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,.5); }
.av-empty { padding: 40px; text-align: center; color: var(--stone); font-size: 14px; }

@media (max-width: 960px) {
	.av-body { grid-template-columns: 1fr; }
	.av-panel { position: relative; top: 0; }
}
@media (max-width: 760px) {
	.ampa-avail { padding: 64px 16px; }
	.av-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
	.av-year { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
	.av-months { grid-template-columns: 1fr; }
	.av-months > :nth-child(2) { display: none; }
	.av-months-wrap { padding: 18px 12px 16px; }
	.av-day span { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.ampa-avail *, .ampa-avail *::before, .ampa-avail *::after { transition: none !important; }
}

/* -- Shield ------------------------------------------------------------------
   The Elementor kit (post-4.css, loaded only for logged-in users) styles every button,
   link and h2 on the page at up to (0,2,1), and the base theme reset gives buttons a pink
   hover and focus. These restate ours at (0,2,1) or higher, after them in the cascade,
   so the calendar looks the same for every viewer in every state. */
.ampa-avail { font-size: 16px; line-height: 1.5; }
.ampa-avail h2.av-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: normal; word-spacing: normal; }
.ampa-avail button.av-ym,
.ampa-avail button.av-day,
.ampa-avail .av-nav button,
.ampa-avail button.av-clear { font-family: var(--sans); font-weight: 400; text-transform: none; letter-spacing: normal; word-spacing: normal; text-shadow: none; box-shadow: none; }
.ampa-avail button.av-ym { background-color: transparent; border: 1px solid transparent; border-radius: 4px; padding: 10px 6px 9px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.ampa-avail button.av-ym:hover { background-color: rgba(255,255,255,.6); }
.ampa-avail button.av-ym[aria-current="true"] { background-color: var(--white); border-color: var(--border); box-shadow: 0 1px 4px rgba(10,14,20,.04); }
.ampa-avail button.av-day { background-color: transparent; border: 0; border-radius: 0; padding: 0; width: auto; height: 40px; color: var(--ink); font-size: 13.5px; line-height: 1; }
.ampa-avail button.av-day.is-past { color: #c9c3b8; }
.ampa-avail button.av-day.is-booked { color: #a39d92; }
.ampa-avail .av-nav button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background-color: var(--parchment); color: var(--midnight); font-size: 16px; line-height: 1; }
.ampa-avail .av-nav button:hover:not(:disabled) { border-color: var(--midnight); }
.ampa-avail button.av-clear { background-color: transparent; border: 0; border-radius: 0; padding: 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.4; }
.ampa-avail a.av-cta { font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: 1.4px; word-spacing: normal; }
