/*
 * Coastal Blu Villas: front-end styles.
 * All accent colours arrive as inline custom properties per collection, so
 * adding a new collection or resort never requires a CSS change.
 */

.cbv {
	--cbv-max: 1400px;
	--cbv-gap: 20px;
	--cbv-radius: 20px;
	--cbv-bg: #E4F3FE;
	--cbv-surface: #FFFFFF;
	--cbv-blue: #1575A2;
	--cbv-navy: #34435D;
	--cbv-teal: #23B1BE;
	--cbv-grey: #636363;
	--cbv-meta: #818DA2;
	--cbv-stat: #7391A1;
	--cbv-border: #DDDDDD;
	--cbv-hairline: #E3EBF0;
	--cbv-tile: #F5FBFB;
	--cbv-star: #FDC731;
	--cbv-star-empty: #DDDDDD;
	--cbv-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--cbv-font-ui: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cbv-font-meta: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cbv-accent: #23B1BE; /* fallback, always overridden inline */
	--cbv-accent-soft: #DFF4F6;
}

/* Let the section shrink inside Elementor's flex containers. Flex items
   default to min-width:auto, which propagates the intrinsic width of the
   scrolling tab bar and card carousel up to the document. */
.elementor-widget-shortcode:has(.cbv),
.elementor-shortcode:has(.cbv) {
	min-width: 0;
	max-width: 100%;
}

.cbv,
.cbv__tabs,
.cbv__tabs-inner,
.cbv__panel,
.cbv__inner,
.cbv-collection,
.cbv-collection__header,
.cbv-collection__title-row,
.cbv-collection__grid,
.cbv-card,
.cbv-card__body,
.cbv-card__content,
.cbv-card__footer {
	min-width: 0;
}

.cbv {
	max-width: 100%;
	overflow-x: clip;
}

.cbv,
.cbv *,
.cbv *::before,
.cbv *::after {
	box-sizing: border-box;
}

.cbv p {
	margin: 0;
}

.cbv ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cbv .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Tab bar ---------- */

.cbv__tabs {
	background: var(--cbv-bg);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cbv__tabs::-webkit-scrollbar {
	display: none;
}

.cbv__tabs-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 34px;
	max-width: var(--cbv-max);
	margin: 0 auto;
	padding: 0 20px;
	min-width: max-content;
}

.cbv-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	box-shadow: none;
	border-radius: 0;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 18px 2px;
	font-family: var(--cbv-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cbv-grey);
	white-space: nowrap;
	cursor: pointer;
}

/* Higher specificity via the .cbv ancestor beats the theme's Kit button
 * styles on hover/focus/active without resorting to !important. */
.cbv .cbv-tab,
.cbv .cbv-tab:hover,
.cbv .cbv-tab:focus,
.cbv .cbv-tab:focus-visible,
.cbv .cbv-tab:active {
	background-color: transparent;
	box-shadow: none;
	border-radius: 0;
	text-decoration: none;
}

.cbv-tab:hover,
.cbv-tab:focus-visible,
.cbv-tab.is-active {
	color: var(--cbv-accent);
	border-bottom-color: var(--cbv-accent);
}

.cbv-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--cbv-accent-soft);
	color: var(--cbv-accent);
	font-family: var(--cbv-font-meta);
	font-size: 11px;
	font-weight: 700;
}

.cbv-tab.is-active .cbv-tab__count {
	background: var(--cbv-accent);
	color: #FFFFFF;
}

/* ---------- Panel ---------- */

.cbv__panel {
	background: linear-gradient(180deg, #FFFFFF 0%, var(--cbv-bg) 55%);
	border-top: 1px solid var(--cbv-border);
	box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.06);
}

.cbv__inner {
	max-width: var(--cbv-max);
	margin: 0 auto;
	padding: 48px 20px 64px;
}

/* ---------- Collection ---------- */

.cbv-collection + .cbv-collection {
	margin-top: 64px;
	padding-top: 64px;
	border-top: 1px solid rgba(35, 177, 190, 0.45);
}

.cbv-collection[hidden] {
	display: none;
}

.cbv-collection__eyebrow {
	font-family: var(--cbv-font-ui);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	word-spacing: 3px;
	text-transform: uppercase;
	color: var(--cbv-accent);
	margin-bottom: 14px;
}

.cbv-collection__title-row {
	display: flex;
	align-items: baseline;
	gap: 28px;
}

.cbv-collection__title {
	font-family: var(--cbv-font-display);
	font-size: clamp(38px, 4vw, 53px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--cbv-blue);
	white-space: nowrap;
	margin: 0;
}

.cbv-collection__rule {
	flex: 1 1 auto;
	height: 2px;
	background: var(--cbv-teal);
	transform: translateY(-8px);
}

.cbv-collection__meta {
	flex: 0 0 auto;
	font-family: var(--cbv-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--cbv-meta);
}

.cbv-collection__description {
	margin-top: 18px;
	font-family: var(--cbv-font-ui);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cbv-navy);
}

/* ---------- Grid ---------- */

.cbv-collection__grid {
	display: grid;
	grid-template-columns: repeat(var(--cbv-cols, 3), minmax(0, 1fr));
	gap: var(--cbv-gap);
	margin-top: 36px;
	align-items: stretch;
}

.cbv-collection__dots {
	display: none;
}

/* ---------- Card ---------- */

.cbv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	background: var(--cbv-surface);
	border-radius: var(--cbv-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(19, 68, 97, 0.06);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cbv-card:hover,
.cbv-card:focus-within {
	transform: translateY(-10px);
	box-shadow: 0 14px 30px rgba(19, 68, 97, 0.18);
}

.cbv .cbv-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--cbv-hairline, #E3EBF0);
	overflow: hidden;
}

.cbv .cbv-card__media > img,
.cbv .cbv-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cbv .cbv-card__image--placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #DCEBF3, #C4DCE9);
}

.cbv-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 5px 12px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--cbv-accent);
	font-family: var(--cbv-font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(19, 68, 97, 0.15);
}

.cbv .cbv-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 28px 38px 22px;
}

.cbv-card__content {
	flex: 1 1 auto;
}

.cbv-card__title {
	font-family: var(--cbv-font-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--cbv-blue);
	margin: 0 0 12px;
}

.cbv-card__description {
	font-family: var(--cbv-font-ui);
	font-size: 15px;
	line-height: 1.65;
	color: var(--cbv-navy);
}

.cbv .cbv-card__footer {
	margin-top: auto;
	padding-top: 18px;
}

.cbv .cbv-card__stats {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 0;
	padding-top: 14px;
	border-top: 1px solid var(--cbv-teal);
	font-family: var(--cbv-font-meta);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--cbv-stat);
}

.cbv .cbv-card__features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-top: 18px;
	padding: 0 0 27px;
	border-bottom: 1px solid var(--cbv-teal);
	font-family: var(--cbv-font-meta);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--cbv-stat);
}

.cbv .cbv-card__features li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	line-height: 1;
}

.cbv .cbv-icon--check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.cbv .cbv-icon--check .cbv-icon__bg { fill: var(--cbv-accent-soft); }
.cbv .cbv-icon--check .cbv-icon__mark { stroke: var(--cbv-accent); fill: none; }

.cbv .cbv-card__link,
.cbv .cbv-card__link:hover,
.cbv .cbv-card__link:focus,
.cbv .cbv-card__link:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 17px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--cbv-font-ui);
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 2.5px;
	text-align: left;
	text-transform: uppercase;
	color: var(--cbv-accent);
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* Stretch the button's hit area over the whole card, so clicking anywhere
   on the card opens the pop-up while keeping a single real button. */
.cbv .cbv-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.cbv .cbv-card__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--cbv-accent-soft);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cbv .cbv-icon--arrow {
	width: 19px;
	height: 19px;
	transition: transform 0.2s ease;
}

.cbv-card:hover .cbv-card__link-icon,
.cbv-card__link:focus-visible .cbv-card__link-icon {
	background: #FFFFFF;
	border-color: var(--cbv-accent);
}

.cbv-card:hover .cbv-icon--arrow,
.cbv-card__link:focus-visible .cbv-icon--arrow {
	transform: rotate(-45deg);
}

.cbv-card__link:focus-visible {
	outline: 2px solid var(--cbv-accent);
	outline-offset: 4px;
}

/* ---------- Villa pop-up ---------- */

html.cbv-modal-open {
	overflow: hidden;
}

.cbv .cbv-modal {
	width: min(916px, calc(100% - 48px));
	max-width: none;
	height: auto;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--cbv-surface);
	color: var(--cbv-navy);
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(9, 38, 56, 0.35);
}

.cbv .cbv-modal[open] {
	display: flex;
	flex-direction: column;
	animation: cbv-modal-in 0.28s ease;
}

.cbv .cbv-modal::backdrop {
	background: rgba(28, 44, 56, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: cbv-backdrop-in 0.28s ease;
}

@keyframes cbv-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes cbv-backdrop-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.cbv .cbv-modal__body,
.cbv .cbv-modal__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.cbv .cbv-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Close button */

.cbv .cbv-modal__close,
.cbv .cbv-modal__close:hover,
.cbv .cbv-modal__close:focus,
.cbv .cbv-modal__close:active {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--cbv-surface);
	color: var(--cbv-teal);
	box-shadow: 0 4px 14px rgba(9, 38, 56, 0.18);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.cbv .cbv-modal__close:hover {
	background: var(--cbv-teal);
	color: #FFFFFF;
}

.cbv .cbv-modal__close:focus-visible {
	outline: 2px solid var(--cbv-teal);
	outline-offset: 3px;
}

.cbv .cbv-icon--close {
	width: 24px;
	height: 24px;
}

/* Gallery */

.cbv .cbv-modal__gallery {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--cbv-hairline);
	overflow: hidden;
}

.cbv .cbv-modal__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	outline: none;
}

.cbv .cbv-modal__track::-webkit-scrollbar {
	display: none;
}

.cbv .cbv-modal__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}

.cbv .cbv-modal__slide > img,
.cbv .cbv-modal__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0;
}

.cbv .cbv-modal__image--placeholder {
	background: linear-gradient(135deg, #DCEBF3, #C4DCE9);
}

.cbv .cbv-modal__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 22px;
}

.cbv .cbv-modal__dot,
.cbv .cbv-modal__dot:hover,
.cbv .cbv-modal__dot:focus {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--cbv-accent-soft);
	box-shadow: none;
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.cbv .cbv-modal__dot.is-active {
	width: 30px;
	background: var(--cbv-accent);
}

/* Main content */

.cbv .cbv-modal__main {
	padding: 20px 40px 36px;
}

.cbv .cbv-modal__badge {
	display: inline-block;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--cbv-accent-soft);
	color: var(--cbv-accent);
	font-family: var(--cbv-font-ui);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.cbv .cbv-modal__title {
	margin: 16px 0 0;
	padding: 0;
	font-family: var(--cbv-font-display);
	font-size: 48px;
	font-weight: 300;
	font-style: normal;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cbv-blue);
}

.cbv .cbv-modal__label {
	margin: 0;
	padding: 0;
	font-family: var(--cbv-font-ui);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cbv-stat);
}

.cbv .cbv-modal__privacy {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 16px;
}

.cbv .cbv-modal__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.cbv .cbv-modal__star {
	display: inline-flex;
	color: var(--cbv-star-empty);
}

.cbv .cbv-modal__star.is-filled {
	color: var(--cbv-star);
}

.cbv .cbv-icon--star {
	width: 15px;
	height: 15px;
}

.cbv .cbv-modal__description {
	margin-top: 18px;
	font-family: var(--cbv-font-ui);
	font-size: 16px;
	line-height: 1.875;
	color: var(--cbv-navy);
}

.cbv .cbv-modal__description p + p {
	margin-top: 1em;
}

/* Detail tiles */

.cbv .cbv-modal__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 36px 0 0;
	padding: 0;
}

.cbv .cbv-modal__stat {
	min-width: 0;
	padding: 20px 20px 16px;
	border-radius: 14px;
	background: var(--cbv-tile);
}

.cbv .cbv-modal__stat .cbv-modal__label {
	font-size: 13px;
	letter-spacing: 0.8px;
}

.cbv .cbv-modal__stat-value {
	margin: 4px 0 0;
	padding: 0;
	font-family: var(--cbv-font-display);
	font-size: 36px;
	font-weight: 300;
	line-height: 1.15;
	color: var(--cbv-blue);
	overflow-wrap: break-word;
}

/* Amenities */

.cbv .cbv-modal__amenities {
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--cbv-teal);
}

.cbv .cbv-modal__amenity-list {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 26px;
}

.cbv .cbv-modal__amenity-list li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--cbv-font-ui);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.5px;
	color: var(--cbv-stat);
}

.cbv .cbv-icon--tick {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	color: var(--cbv-teal);
}

/* Sticky footer */

.cbv .cbv-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex: 0 0 auto;
	padding: 16px 20px 16px 40px;
	border-top: 1px solid var(--cbv-teal);
	background: var(--cbv-surface);
}

.cbv .cbv-modal__footer-info {
	min-width: 0;
}

.cbv .cbv-modal__footer-title {
	font-family: var(--cbv-font-ui);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cbv-stat);
}

.cbv .cbv-modal__footer-summary {
	margin-top: 6px;
	font-family: var(--cbv-font-ui);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.3px;
	color: var(--cbv-stat);
}

.cbv .cbv-modal__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.cbv .cbv-modal__cta,
.cbv .cbv-modal__cta:hover,
.cbv .cbv-modal__cta:focus,
.cbv .cbv-modal__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 158px;
	height: 46px;
	padding: 0 26px;
	border: 1.5px solid var(--cbv-teal);
	border-radius: 12px;
	font-family: var(--cbv-font-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cbv .cbv-modal__cta--enquire,
.cbv .cbv-modal__cta--enquire:visited {
	background: var(--cbv-surface);
	color: var(--cbv-teal);
}

.cbv .cbv-modal__cta--book,
.cbv .cbv-modal__cta--book:visited {
	background: var(--cbv-teal);
	color: #FFFFFF;
}

.cbv .cbv-modal__cta--enquire:hover,
.cbv .cbv-modal__cta--enquire:focus-visible {
	background: var(--cbv-teal);
	color: #FFFFFF;
}

.cbv .cbv-modal__cta--book:hover,
.cbv .cbv-modal__cta--book:focus-visible {
	background: var(--cbv-blue);
	border-color: var(--cbv-blue);
	color: #FFFFFF;
}

.cbv .cbv-modal__cta:focus-visible {
	outline: 2px solid var(--cbv-teal);
	outline-offset: 3px;
}

/* Pop-up: tablet */

@media (max-width: 900px) {
	.cbv .cbv-modal__amenity-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Pop-up: mobile */

@media (max-width: 767px) {
	.cbv .cbv-modal {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 20px;
	}

	.cbv .cbv-modal__close,
	.cbv .cbv-modal__close:hover,
	.cbv .cbv-modal__close:focus,
	.cbv .cbv-modal__close:active {
		top: 12px;
		right: 12px;
		width: 42px;
		height: 42px;
	}

	.cbv .cbv-icon--close {
		width: 20px;
		height: 20px;
	}

	.cbv .cbv-modal__gallery {
		aspect-ratio: 4 / 3;
	}

	.cbv .cbv-modal__dots {
		margin-top: 16px;
	}

	.cbv .cbv-modal__main {
		padding: 16px 20px 28px;
	}

	.cbv .cbv-modal__title {
		font-size: 36px;
	}

	.cbv .cbv-modal__label {
		font-size: 13px;
	}

	.cbv .cbv-modal__description {
		font-size: 14px;
		line-height: 1.75;
	}

	.cbv .cbv-modal__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 26px;
	}

	.cbv .cbv-modal__stat {
		padding: 14px 14px 12px;
		border-radius: 12px;
	}

	.cbv .cbv-modal__stat .cbv-modal__label {
		font-size: 11px;
	}

	.cbv .cbv-modal__stat-value {
		font-size: 26px;
	}

	.cbv .cbv-modal__amenities {
		margin-top: 26px;
	}

	.cbv .cbv-modal__amenity-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 16px;
		margin-top: 18px;
	}

	.cbv .cbv-modal__footer {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 20px;
	}

	.cbv .cbv-modal__footer-info {
		flex: 1 1 100%;
	}

	.cbv .cbv-modal__actions {
		flex: 1 1 100%;
		gap: 10px;
	}

	.cbv .cbv-modal__cta,
	.cbv .cbv-modal__cta:hover,
	.cbv .cbv-modal__cta:focus,
	.cbv .cbv-modal__cta:visited {
		flex: 1 1 0;
		min-width: 0;
		height: 44px;
		padding: 0 12px;
		font-size: 14px;
		letter-spacing: 2px;
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.cbv-collection__grid {
		grid-template-columns: repeat(min(var(--cbv-cols, 3), 2), minmax(0, 1fr));
	}

	.cbv-collection__title-row {
		flex-wrap: wrap;
	}

	.cbv-collection__rule {
		display: none;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.cbv .cbv__tabs {
		max-width: 100%;
		overscroll-behavior-x: contain;
	}

	.cbv .cbv-collection__grid {
		max-width: 100%;
		overscroll-behavior-x: contain;
	}

	.cbv__tabs-inner {
		justify-content: flex-start;
		gap: 24px;
	}

	.cbv__inner {
		padding: 32px 0 44px;
	}

	.cbv-collection__header {
		padding: 0 20px;
	}

	.cbv-collection__grid {
		display: flex;
		grid-template-columns: none;
		gap: 14px;
		padding: 4px 20px 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 20px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.cbv-collection__grid::-webkit-scrollbar {
		display: none;
	}

	.cbv .cbv-card {
		flex: 0 0 84%;
		min-width: 0;
		scroll-snap-align: start;
	}

	.cbv .cbv-card__body {
		padding: 24px 22px 20px;
	}

	.cbv-card:hover {
		transform: none;
		box-shadow: 0 2px 10px rgba(19, 68, 97, 0.06);
	}

	.cbv-collection__title {
		font-size: 36px;
		white-space: normal;
	}

	.cbv-card__title {
		font-size: 28px;
	}

	.cbv-collection__description,
	.cbv-card__description {
		font-size: 14px;
	}

	.cbv .cbv-card__title,
	.cbv .cbv-card__description,
	.cbv .cbv-collection__title,
	.cbv .cbv-collection__description {
		overflow-wrap: break-word;
	}

	.cbv-collection__dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 7px;
		padding: 0 20px;
	}

	.cbv-dot {
		width: 7px;
		height: 7px;
		border-radius: 999px;
		background: var(--cbv-accent-soft);
		border: none;
		padding: 0;
		cursor: pointer;
		transition: width 0.2s ease, background 0.2s ease;
	}

	.cbv-dot.is-active {
		width: 20px;
		background: var(--cbv-accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbv-card,
	.cbv-card__link-icon,
	.cbv-icon--arrow,
	.cbv-dot,
	.cbv-modal__dot,
	.cbv-modal__cta {
		transition: none !important;
	}

	.cbv .cbv-modal[open],
	.cbv .cbv-modal::backdrop {
		animation: none;
	}

	.cbv-card:hover,
	.cbv-card:focus-within {
		transform: none;
	}
}
