/* ============================================================
   Boat description: show full text, hide "Ver más" button
   ============================================================ */

#listing_description .panel-body {
	max-height: none !important;
	overflow: visible !important;
}

#view_more_desc {
	display: none !important;
}

/* ============================================================
   Boat card grid: 3 columns + custom card layout
   ============================================================ */

/* Force 3 columns regardless of theme col-md-6 default */
#listing_ajax_container .listing_wrapper.col-md-6 {
	width: 33.3333% !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
}

/* ── Card container ──────────────────────────────────── */
.csmc-boat-card {
	border-radius: 16px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	border: 1px solid #eaeef3 !important;
	transition: box-shadow 0.2s ease, transform 0.2s ease !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
}

.listing_wrapper:hover .csmc-boat-card {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13) !important;
	transform: translateY(-3px);
}

/* ── Image ───────────────────────────────────────────── */
.csmc-boat-card__image {
	position: relative;
}

.csmc-boat-card__image .listing-unit-img-wrapper {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 0 !important;
	height: auto !important;
}

.csmc-boat-card__image .listing-unit-img-wrapper .carousel-inner {
	height: 100% !important;
}

.csmc-boat-card__image .listing-unit-img-wrapper .carousel-inner .item,
.csmc-boat-card__image .listing-unit-img-wrapper .carousel-inner .item a {
	height: 100%;
}

.csmc-boat-card__image .listing-unit-img-wrapper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Hide theme price overlay inside image */
.csmc-boat-card__image .price_unit_wrapper,
.csmc-boat-card__image .price_unit {
	display: none !important;
}

/* ── Card body ───────────────────────────────────────── */
.csmc-boat-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	flex: 1;
}

/* Top row: location + rating */
.csmc-boat-card__top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.csmc-boat-card__location {
	font-size: 13px;
	color: #6b7a8d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.csmc-boat-card__location .fas {
	color: #17324d;
	margin-right: 3px;
	font-size: 11px;
}

.csmc-boat-card__rating {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a2e;
	white-space: nowrap;
	flex-shrink: 0;
}

.csmc-boat-card__rating .fas {
	color: #f5a623;
	font-size: 12px;
}

.csmc-boat-card__review-count {
	font-weight: 400;
	color: #8896a6;
}

/* Title */
.csmc-boat-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a2e;
	text-decoration: none;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.csmc-boat-card__title:hover,
.csmc-boat-card__title:focus {
	color: #17324d;
	text-decoration: none;
}

/* Tags */
.csmc-boat-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.csmc-boat-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #475569;
	background: #f1f5f9;
	border-radius: 6px;
	padding: 4px 10px;
	white-space: nowrap;
}

.csmc-boat-card__tag .fas {
	font-size: 11px;
	color: #17324d;
}

/* Price row */
.csmc-boat-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
}

.csmc-boat-card__price-label {
	font-size: 12px;
	color: #8896a6;
}

.csmc-boat-card__price {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
}

.csmc-boat-card__price .price_label {
	display: none;
}

.csmc-boat-card__price-period {
	font-size: 13px;
	color: #8896a6;
	font-weight: 400;
}

/* Hide old theme elements that leak into the card */
.csmc-boat-card .featured_div,
.csmc-boat-card .rating_placeholder,
.csmc-boat-card .title-container,
.csmc-boat-card .property_unit_action {
	display: none !important;
}

/* ── Tablet: 2 columns ───────────────────────────────── */
@media (max-width: 991px) {
	#listing_ajax_container .listing_wrapper.col-md-6 {
		width: 50% !important;
	}
}

/* ── Mobile: 1 column ────────────────────────────────── */
@media (max-width: 767px) {
	#listing_ajax_container .listing_wrapper.col-md-6 {
		width: 100% !important;
	}
}

/* ============================================================
   Advanced search results pills filter (kept for /resultados/)
   ============================================================ */

.csmc-advanced-results-filters {
	margin: 0 0 14px;
	padding: 0;
	background: transparent;
	border: 0;
}

.csmc-locality-boat-filter--advanced {
	margin: 0;
}

.csmc-locality-boat-filter--advanced .csmc-locality-boat-filter__title {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
}

.csmc-locality-boat-filter--advanced .csmc-locality-boat-filter__items {
	gap: 9px;
}

.csmc-locality-boat-filter--advanced .csmc-locality-boat-filter__item {
	padding: 7px 12px;
	font-size: 13px;
}

/* ============================================================
   Persons badge (legacy JS-injected – hidden, now in card PHP)
   ============================================================ */

.csmc-persons-badge {
	display: none !important;
}

/* ============================================================
   Sticky filter bar (city archive pages)
   ============================================================ */

.csmc-sticky-filter-bar {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 48px);
	max-width: 880px;
	z-index: 9999;
}

.csmc-sticky-filter-bar__inner {
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16), 0 1px 6px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	height: 76px;
	padding: 0 6px;
}

.csmc-sticky-filter-bar__group {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 22px;
	min-width: 0;
	height: 100%;
	border-radius: 999px;
	transition: background-color 0.15s ease;
	cursor: pointer;
}

.csmc-sticky-filter-bar__group:hover {
	background: #f5f7fa;
}

.csmc-sticky-filter-bar__label {
	font-size: 12px;
	font-weight: 700;
	color: #17324d;
	line-height: 1.3;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.csmc-sticky-filter-bar__select {
	border: none;
	background: transparent;
	font-size: 14px;
	color: #6b7a8d;
	cursor: pointer;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317324d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	padding-right: 18px;
	box-sizing: border-box;
	font-family: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.csmc-sticky-filter-bar__select:focus {
	outline: none;
}

/* ── Custom dropdown (replaces native <select>) ────────── */

.csmc-dropdown {
	position: relative;
	width: 100%;
}

.csmc-dropdown__trigger {
	all: unset;
	display: block;
	width: 100%;
	font-size: 14px;
	color: #6b7a8d;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	padding-right: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317324d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
}

.csmc-dropdown__menu {
	display: none;
	position: absolute;
	bottom: calc(100% + 12px);
	left: -16px;
	min-width: 220px;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.06);
	padding: 8px 0;
	z-index: 10000;
}

.csmc-dropdown.is-open .csmc-dropdown__menu {
	display: block;
}

.csmc-dropdown__item {
	padding: 11px 20px;
	font-size: 15px;
	color: #1a1a2e;
	cursor: pointer;
	transition: background 0.12s ease;
	white-space: nowrap;
}

.csmc-dropdown__item:hover {
	background: #f1f5f9;
}

.csmc-dropdown__item.is-selected {
	font-weight: 600;
	color: #17324d;
	background: #eef4fb;
}

.csmc-sticky-filter-bar__sep {
	width: 1px;
	height: 42px;
	background: #e2e8f0;
	flex-shrink: 0;
}

/* Spacer that prevents grid content from hiding behind the fixed bar.
   The div itself is hidden — clearance lives as padding inside the grid
   container so it never creates white space after the SEO block. */
.csmc-sticky-bar-spacer {
	display: none !important;
}

#listing_ajax_container.row {
	padding-bottom: 20px !important;
	box-sizing: border-box !important;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 767px) {
	.csmc-sticky-filter-bar {
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		transform: none;
	}

	.csmc-sticky-filter-bar__inner {
		border-radius: 16px 16px 0 0;
		height: auto;
		padding: 10px 4px;
		flex-direction: row;
		flex-wrap: nowrap;
	}

	.csmc-sticky-filter-bar__group {
		padding: 6px 10px;
		height: auto;
		border-radius: 8px;
	}

	.csmc-sticky-filter-bar__label {
		font-size: 10px;
	}

	.csmc-sticky-filter-bar__select {
		font-size: 12px;
	}

	.csmc-dropdown__trigger {
		font-size: 12px;
	}

	.csmc-dropdown__menu {
		min-width: 180px;
		max-height: 260px;
	}

	.csmc-dropdown__item {
		padding: 9px 16px;
		font-size: 14px;
	}

	.csmc-sticky-filter-bar__sep {
		height: 30px;
	}

	#listing_ajax_container.row {
		padding-bottom: 16px !important;
	}
}

/* ============================================================
   Infinite scroll – hide native pagination on city archives
   ============================================================ */

/* Oculta la paginación nativa cuando el scroll infinito está activo */
#listing_ajax_container[data-csmc-infinite] ~ .csmc-pagination-native {
	display: none !important;
}

/* Sentinel – sin altura visual */
#csmc-infinite-scroll-sentinel {
	height: 1px;
	margin-top: -1px;
	clear: both;
	float: none;
}

/* Loader */
#csmc-infinite-scroll-loader {
	display: none;
	justify-content: center;
	align-items: center;
	padding: 48px 16px;
	width: 100%;
	clear: both;
	float: none;
	box-sizing: border-box;
}

/* ── Pulse loader ─────────────────────────────────────── */

.csmc-pulse-container {
	position: relative;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.csmc-pulse-ring {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 2px solid #0DA39C;
	border-radius: 50%;
	opacity: 0;
	animation: csmc-pulse-animation 3s linear infinite;
}

.csmc-pulse-ring:nth-child(2) {
	animation-delay: 1s;
}

.csmc-pulse-ring:nth-child(3) {
	animation-delay: 2s;
}

.csmc-pulse-dot {
	width: 16px;
	height: 16px;
	background-color: #0DA39C;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(13, 163, 156, 0.6);
	z-index: 10;
	flex-shrink: 0;
}

@keyframes csmc-pulse-animation {
	0%   { transform: scale(0.2); opacity: 0.6; }
	100% { transform: scale(1.2); opacity: 0; }
}

/* ============================================================
   Custom site footer (replaces the WPRentals #colophon)
   ============================================================ */

body.csmc-has-custom-footer footer#colophon {
	display: none !important;
}

.csmc-footer {
	background: var(--csmc-footer-bg, #17324d);
	color: var(--csmc-footer-heading, #fff);
	padding: 56px 32px 0;
	font-size: 14px;
	line-height: 1.6;
}

.csmc-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.csmc-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 1.5fr 1.1fr 0.8fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--csmc-footer-divider, rgba(255, 255, 255, 0.12));
}

.csmc-footer__heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--csmc-footer-heading, #fff);
	margin: 0 0 20px;
}

.csmc-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csmc-footer__links li {
	margin-bottom: 10px;
}

.csmc-footer__links a {
	color: var(--csmc-footer-link, rgba(255, 255, 255, 0.65));
	text-decoration: none;
	font-size: 14px;
	transition: color 0.15s ease;
}

.csmc-footer__links a:hover,
.csmc-footer__links a:focus {
	color: var(--csmc-footer-link-hover, #fff);
	text-decoration: none;
}

.csmc-footer__links--gap {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--csmc-footer-divider, rgba(255, 255, 255, 0.1));
}

/* Listado de destinos con miniatura: visible igual en pc, tablet y móvil. */
.csmc-footer__destinations {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.csmc-footer__destination {
	padding: 0;
	margin: 0;
}

.csmc-footer__destination-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--csmc-footer-link, rgba(255, 255, 255, 0.65));
	text-decoration: none;
	line-height: 1.2;
}

.csmc-footer__destination-link:hover,
.csmc-footer__destination-link:focus {
	color: var(--csmc-footer-link-hover, #fff);
}

.csmc-footer__destination-thumb {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.csmc-footer__destination-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csmc-footer__destination-name {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
}

.csmc-footer__desc {
	color: var(--csmc-footer-text, rgba(255, 255, 255, 0.65));
	font-size: 14px;
	margin: 0 0 14px;
	line-height: 1.7;
}

.csmc-footer__desc strong {
	color: var(--csmc-footer-heading, #fff);
	font-weight: 600;
}

.csmc-footer__social {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
}

.csmc-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid var(--csmc-footer-social-border, rgba(255, 255, 255, 0.3));
	color: var(--csmc-footer-social-color, #fff);
	font-size: 17px;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.csmc-footer__social-link:hover,
.csmc-footer__social-link:focus {
	border-color: var(--csmc-footer-social-hover-border, #fff);
	background: var(--csmc-footer-social-hover-bg, rgba(255, 255, 255, 0.1));
	color: var(--csmc-footer-social-hover-color, #fff);
	text-decoration: none;
}

.csmc-footer__tagline {
	font-size: 15px;
	font-weight: 700;
	color: var(--csmc-footer-tagline, #fff);
	margin: 0 0 10px;
}

.csmc-footer__bottom {
	padding: 18px 0;
	text-align: center;
}

.csmc-footer__copyright {
	color: var(--csmc-footer-copyright, rgba(255, 255, 255, 0.45));
	font-size: 12px;
	margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.csmc-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 52px;
	}
}

@media (max-width: 640px) {
	.csmc-footer {
		padding: 40px 18px 0;
	}

	.csmc-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ============================================================
   Single boat listing: hide theme booking form & availability
   ============================================================ */

/* "Comprobar Disponibilidad" link (class con typo del tema: "avalability") */
a.check_avalability,
.check_avalability {
	display: none !important;
}

/* Heading "Comprobar Disponibilidad" dentro del formulario del tema */
#contact_for_reservation {
	display: none !important;
}

/* Widget de texto "Comprobar Disponibilidad" en el sidebar (p#listing_calendar) */
p#listing_calendar,
#listing_calendar {
	display: none !important;
}

/* Formulario de reserva original del tema — se reemplaza por el plugin formulario-reservar-barco */
#booking_form_request,
.booking_form_request {
	display: none !important;
}

/* ============================================================
   Elementor manual boat grid
   ============================================================ */

.csmc-manual-boat-grid {
	width: 100%;
}

.csmc-manual-boat-grid__title {
	margin: 0 0 20px;
	font-size: 28px;
	line-height: 1.2;
	color: #1a1a2e;
}

.csmc-manual-boat-grid__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.csmc-manual-boat-grid__item {
	min-width: 0;
}

.csmc-manual-boat-grid__item .csmc-boat-card {
	height: 100%;
}

.csmc-manual-boat-grid__item:hover .csmc-boat-card {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13) !important;
	transform: translateY(-3px);
}

.csmc-manual-boat-grid__notice {
	padding: 16px 18px;
	border: 1px solid #dbe4ee;
	border-radius: 14px;
	background: #f8fbff;
	color: #17324d;
	font-size: 14px;
}

@media (max-width: 991px) {
	.csmc-manual-boat-grid__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.csmc-manual-boat-grid__title {
		margin-bottom: 16px;
		font-size: 24px;
	}

	.csmc-manual-boat-grid__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}
