:root {
	--lma-primary: #0f3d5c;
	--lma-accent: #12807f;
	--lma-radius: 10px;
	--lma-font: inherit;
	--lma-ink: #1d2b33;
	--lma-muted: #55666e;
	--lma-line: #e2e6e8;
	--lma-field: #7d9aae;
	--lma-heart: #f59e0b;
}

.lma, .lma * { box-sizing: border-box; }
.lma { font-family: var(--lma-font); color: var(--lma-ink); line-height: 1.5; max-width: 100%; margin-left: auto; margin-right: auto; }
.lma [hidden] { display: none !important; }

/* ---------- Shared type ---------- */
.lma-pill {
	display: inline-block;
	padding: 3px 14px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--lma-accent);
	border: 1px solid var(--lma-accent);
	border-radius: 999px;
}
.lma-h { margin: .5rem 0 .35rem; font-weight: 400; line-height: 1.15; color: var(--lma-primary); font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.lma-h--caps { text-transform: uppercase; letter-spacing: .01em; }
.lma-h--caps span { color: var(--lma-accent); }
.lma-sub { margin: 0; color: var(--lma-muted); max-width: 62ch; }
.lma-note { margin: 1.5rem 0 0; color: var(--lma-muted); max-width: 70ch; }
.lma-secthead { text-align: center; margin-bottom: 2rem; }
.lma-secthead .lma-sub { margin-left: auto; margin-right: auto; font-size: 20px; color: var(--lma-primary); }
.lma-boats .lma-secthead { text-align: left; }
.lma-boats .lma-secthead .lma-sub { margin-left: 0; color: var(--lma-muted); }

.lma-msg {
	margin: .75rem 0 0;
	padding: .65rem .85rem;
	color: #7a1d1d;
	background: #fbeaea;
	border-left: 4px solid #b42323;
	border-radius: 4px;
}
.lma-fgroup label.lma-check {
    margin-bottom: 15px;
}
label.lma-check span {
    color: #355B70;
    font-size: 14px;
}
/* ---------- Buttons ---------- */
aside.lma-filters button.lma-filters__toggle { 
    width: 100%;
    padding: 15px 10px;
    border: 0;
    display: none;
    background: #159b9b !important;
}
.lma-filters__head button.lma-clear:hover {
    background: none;
    color: #159b9b;
}
button:focus { outline: 0px solid transparent !important; }
.lma-view button[data-view="grid"] {
    border: 1px solid #159B9B;
    background: #E8F7F6;
	color: #159B9B !important;
}
.lma-view {
    display: flex;
    gap: 10px;
}
.lma-view button {
    border-radius: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    height: auto;
}
label.lma-sort select {
    height: 46px;
}
.lma-fgroup button {
    border: 0;
    color: #159B9B;
    padding: 0;
    background: none;
	    font-size: 24px;
}
h4.lma-fgroup__title {
    color: #063B59;
    font-size: 14px;
    padding-bottom: 15px;
    margin-bottom: 0;
}
button.lma-btn.lma-btn--solid.lma-btn--block {
    width: 100%;
    border: 0;
    padding: 15px 10px;
}
.lma-filters__head button.lma-clear {
    padding: 0;
    border: 0;
    background: none;
    color: #159b9b;
	    font-size: 12px;
    text-transform: capitalize;
}
.lma-card__media button.lma-heart {
    background: none !important;
    border: 0;
    padding: 0;
}
.lma-carousel button.lma-arrow:hover,.lma-carousel button.lma-arrow:focus {
    border-radius: 50%;
}
.lma-carousel button.lma-arrow {
    border-radius: 50%;
    height: 50px;
    min-height: 50px;
    padding: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
	    z-index: 1;
}
.lma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: 0 1.1rem;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--lma-accent);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.lma-btn--outline { color: var(--lma-accent); background: transparent; align-self: flex-start; }
.lma-btn--outline:hover, .lma-btn--outline:focus-visible,
.lma-card:hover .lma-btn--outline { color: #fff; background: var(--lma-accent); }
.lma-btn--solid { color: #fff; background: var(--lma-accent); }
.lma-btn--solid:hover { filter: brightness(1.08); color: #fff; }
.lma-btn--navy { color: #fff; background: var(--lma-primary); border-color: var(--lma-primary); }
.lma-btn--navy:hover { filter: brightness(1.15); color: #fff; }
.lma-btn--block { width: 100%; }
.lma-btn:focus-visible { outline: 3px solid var(--lma-accent); outline-offset: 2px; }
.lma-arrow-ico { flex: none; }

/* ---------- Cards ---------- */
.lma-carousel button.lma-arrow svg {
    width: 100%;
    height: 36px;
}
.lma-card__body a.lma-btn.lma-btn--outline {
    margin-top: 10px;
}
.lma-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #FAFAFA80;
    border: 1px solid #DDD0BE;
    border-radius: var(--lma-radius);
}
.lma-card__media { position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: #eef3f5; border-radius: calc(var(--lma-radius) - 2px); }
.lma-card__media img, .lma-card__link { display: block; width: 100%; height: 100%; }
body .lma-card__media img { object-fit: cover; height: 100%;}
.lma-card__body { display: flex; flex: 1; flex-direction: column; gap: 15px; padding-top: 1.1rem; }
.lma-card__title { margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.25; color: var(--lma-primary); }
.lma-card__desc { margin: 0; font-size: .92rem; color: var(--lma-muted); }
.lma-facts { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding: 0; margin: 0; list-style: none; font-size: 12.5px; text-transform: uppercase; color: var(--lma-muted); }
.lma-facts li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: #063B59;
    font-weight: 500;
    font-size: 14px;}
.lma-ico { flex: none; color: var(--lma-primary); }
.lma-card .lma-btn { margin-top: auto; }
.lma-card__desc + .lma-btn, .lma-price + .lma-btn { margin-top: .25rem; }
.lma-card__body > :last-child { margin-top: auto; }

.lma-price { line-height: 1.3; color: var(--lma-muted); font-size: .9rem; }
.lma-price strong { font-size: 1.3rem; font-weight: 600; color: var(--lma-primary); }
.lma-price small { display: block; font-size: .85rem; }

.lma-heart {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: #fff;
	background: rgba(0, 0, 0, .18);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.lma-heart svg { fill: rgba(255, 255, 255, .85); stroke: none; width: 100%; height: 35px;}
.lma-heart[aria-pressed="true"] svg { fill: var(--lma-heart); }
.lma-heart:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }

/* ---------- Featured carousel ---------- */
.lma-carousel { position: relative;}
.lma-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 2px;
}
.lma-track::-webkit-scrollbar { display: none; }
.lma-track:focus-visible { outline: 2px solid var(--lma-accent); outline-offset: 4px; }
.lma-track > .lma-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }

.lma-arrow {
	position: absolute;
	top: 42%;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--lma-accent);
	background: #fff;
	border: 1px solid var(--lma-accent);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.lma-arrow--prev { left: 0; }
.lma-arrow--next { right: 0; }
.lma-arrow:hover:not(:disabled) { color: #fff; background: var(--lma-accent); }
.lma-arrow:disabled { opacity: .35; cursor: default; }
.lma-arrow:focus-visible { outline: 3px solid var(--lma-accent); outline-offset: 2px; }
.lma-carousel.is-static .lma-arrow { display: none; }
.lma-carousel.is-static { padding: 0; }

/* ---------- Homepage search bar ---------- */
.lma-bar__dates label.lma-bar__field:first-child input {
    border-radius: 10px 0 0 10px;
}
.lma-bar__dates label.lma-bar__field:last-child input {
    border-radius: 0px 10px 10px 0px;
}
label.lma-bar__field input {
    border-color: #7d9aae !important;
}
button.lma-btn.lma-btn--navy {
    border: none !important;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}


.lma-bar {
	display: grid;	    
    grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: end;
	justify-content: space-between;
}
.lma-bar__dates { display: flex; min-width: 0; }
.lma-bar__dates .lma-bar__field { flex: 1; min-width: 0; }
.lma-bar__field { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.lma-bar__label { font-size: 15px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: var(--lma-primary); }

.lma-date, .lma-select {
	width: 100%;
	height: 60px;
	padding: 0 44px 0 20px;
	font: inherit;
	font-size: 15px;
	text-transform: uppercase;
	color: var(--lma-primary);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230f3d5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	border: 1px solid var(--lma-field);
	border-radius: 10px;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
}
.lma-date::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lma-date--first { border-radius: 4px 0 0 4px; }
.lma-date--last { margin-left: -1px; border-radius: 0 4px 4px 0; }
.lma-date:focus-visible, .lma-select:focus-visible { outline: 3px solid var(--lma-accent); outline-offset: 1px; }
.lma-bar .lma-btn { height: 60px; padding: 0 28px; font-size: 14px; }
.lma-bar__msg { grid-column: 1 / -1; margin: 0; }

/* ---------- Listing page ---------- */
.lma-list__head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 50px; }
.lma-list__intro { max-width: 640px; }
.lma-list__intro .lma-sub { font-size: .95rem; }
.lma-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.lma-sort { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; color: var(--lma-muted); }
.lma-sort select {
	height: 40px;
	min-width: 190px;
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: var(--lma-ink);
	background: #fff;
	border: 1px solid var(--lma-line);
	border-radius: 6px;
}
.lma-view { display: inline-flex; }
.lma-view button {
	height: 40px;
	padding: 0 16px;
	font: inherit;
	font-size: 13px;
	color: var(--lma-ink);
	background: #fff;
	border: 1px solid var(--lma-line);
	cursor: pointer;
}
.lma-view button:first-child { border-radius: 6px 0 0 6px; }
.lma-view button:last-child { margin-left: -1px; border-radius: 0 6px 6px 0; }
.lma-view button[aria-pressed="true"] { color: #fff; border-color: var(--lma-accent); position: relative; z-index: 1; }

.lma-status { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin-bottom: 1rem; padding: .7rem 1rem; background: #eef6f6; border-left: 4px solid var(--lma-accent); border-radius: 4px; }
.lma-status.is-error { color: #7a1d1d; background: #fbeaea; border-left-color: #b42323; }
.lma-status button { padding: 0; font: inherit; color: var(--lma-accent); text-decoration: underline; background: none; border: 0; cursor: pointer; }

.lma-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.lma-filters { position: sticky; top: 24px; }
.lma-filters__toggle { display: none; }
.lma-filters__form {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--lma-line);
	border-radius: var(--lma-radius);
	box-shadow: 0 6px 24px rgba(15, 61, 92, .08);
}
.lma-filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; }
.lma-filters__head h3 { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--lma-primary); }
.lma-clear { padding: 0; font: inherit; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--lma-accent); background: none; border: 0; cursor: pointer; }
.lma-fgroup { padding: 14px 0; border-top: 1px solid var(--lma-line); }
.lma-fgroup__title { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lma-primary); }

.lma-step { display: flex; align-items: center; border: 1px solid var(--lma-line); border-radius: 6px; }
body .lma-step button { width: 40px; height: 38px; cursor: pointer; 
padding: 0;
    background: none;
    border: 0;
    color: #159b9b;
    font-size: 24px;
}
.lma-step button:focus-visible { outline: 2px solid var(--lma-accent); outline-offset: -2px; }
body .lma-step input { flex: 1; min-width: 0; height: 38px; padding: 0; font: inherit; font-size: 13px; text-align: center; color: var(--lma-ink); background: none; border: 0; }

.lma-fdates { display: grid; gap: 15px; }
.lma-fdates label input {
    border: 1px solid #D7E2E7;
}
.lma-fdates label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--lma-muted); }
.lma-fdate { height: 38px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--lma-ink); background: #fff; border: 1px solid var(--lma-line); border-radius: 6px; }

.lma-check { display: flex; align-items: center; gap: .6rem; margin: 0 0 8px; font-size: 13.5px; cursor: pointer; }
.lma-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--lma-accent); }

/* Cards in the listing and boat pages */
.lma-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lma-cards--static { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lma-empty { grid-column: 1 / -1; margin: 0; padding: 2rem 1.5rem; text-align: center; background: #eef6f6; border-radius: var(--lma-radius); }
.lma-cards.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }

.lma-cards.is-list { grid-template-columns: 1fr; }
.lma-cards.is-list .lma-card { flex-direction: row; gap: 20px; }
.lma-cards.is-list .lma-card__media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.lma-cards.is-list .lma-card__body { padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.lma-bar { grid-template-columns: 1fr 1fr; padding: 24px; }
	.lma-bar__dates { grid-column: 1 / -1; }
	.lma-bar .lma-btn { grid-column: 1 / -1; width: 100%; }
	.lma-cards--static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
	.lma-track > .lma-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 900px) {
	.lma-layout { grid-template-columns: 1fr; }
	.lma-filters { position: static; }
	.lma-filters__toggle {
		display: flex;
		width: 100%;
		height: 46px;
		padding: 0 16px;
		align-items: center;
		justify-content: space-between;
		font: inherit;
		font-weight: 500;
		color: var(--lma-primary);
		background: #fff;
		border: 1px solid var(--lma-line);
		border-radius: var(--lma-radius);
		cursor: pointer;
	}
	.lma-filters__toggle::after { content: "+"; font-size: 20px; }
	.lma-filters__toggle[aria-expanded="true"]::after { content: "\2212"; }
	.lma-filters__form { display: none; margin-top: 10px; }
	.lma-filters.is-open .lma-filters__form { display: block; }

	.lma-carousel button.lma-arrow {
		height: 30px;
		min-height: 30px;
		width: 30px;
	}
	.lma-carousel button.lma-arrow svg {
		height: 20px;
	}
	aside.lma-filters button.lma-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
}

@media (max-width: 640px) {
	.lma-bar { grid-template-columns: 1fr; padding: 0px; }
	.lma-carousel { padding: 0; }
	.lma-track > .lma-card { flex-basis: 100%; }
	.lma-arrow { top: 110px; background: rgba(255, 255, 255, .95); }
	.lma-arrow--prev { left: 10px; }
	.lma-arrow--next { right: 10px; }
	.lma-cards, .lma-cards--static { grid-template-columns: 1fr; }
	.lma-cards.is-list .lma-card { flex-direction: column; }
	.lma-cards.is-list .lma-card__media { flex-basis: auto; }
	.lma-tools { width: 100%; }
	.lma-sort { flex: 1; }
	.lma-sort select { width: 100%; }
	
}

@media (prefers-reduced-motion: reduce) {
	.lma-btn, .lma-arrow, .lma-cards.is-loading { transition: none; }
}
