/**
 * Vessel Shop & Single Vessel Styles
 *
 * @package Vessel_Charter
 * @since   1.1.0
 */

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.vc-breadcrumbs {
	margin-bottom: 1rem;
}

.vc-breadcrumbs-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
}

.vc-breadcrumbs-item {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.7);
}

.vc-breadcrumbs-item:not(:last-child)::after {
	content: '/';
	margin-left: 0.5rem;
	opacity: 0.5;
}

.vc-breadcrumbs-item a {
	color: rgba(255, 255, 255, 0.85);
}

.vc-breadcrumbs-item a:hover {
	color: var(--vc-gold);
}

.single-vessel-header .vc-breadcrumbs-item,
.single-vessel-header .vc-breadcrumbs-item a {
	color: var(--vc-gray);
}

.single-vessel-header .vc-breadcrumbs-item a:hover {
	color: var(--vc-ocean);
}

/* ==========================================================================
   Fleet Hero
   ========================================================================== */

.fleet-hero {
	position: relative;
	padding: 140px 0 80px;
	overflow: hidden;
}

.fleet-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.fleet-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(8, 44, 84, 0.9), rgba(11, 111, 191, 0.75));
}

.fleet-hero .container {
	position: relative;
	z-index: 2;
}

.fleet-hero-title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--vc-white);
	margin-bottom: 0.75rem;
}

.fleet-hero-subtitle {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 640px;
	margin: 0;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

.vessel-search-bar {
	background: var(--vc-white);
	border-bottom: 1px solid var(--vc-border);
	padding: 1.5rem 0;
	box-shadow: var(--shadow-sm);
	position: relative;
	z-index: 10;
}

.vessel-search-bar .form-label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vc-primary);
	margin-bottom: 0.375rem;
}

.vessel-search-bar .input-group-text {
	background: var(--vc-light);
	border-color: var(--vc-border);
	color: var(--vc-ocean);
}

/* ==========================================================================
   Filter Sidebar
   ========================================================================== */

.vessel-filter-sidebar {
	background: var(--vc-white);
	border: 1px solid var(--vc-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	position: sticky;
	top: calc(var(--header-height) + var(--top-bar-height) + 1rem);
}

.filter-sidebar-title {
	font-family: var(--font-heading);
	color: var(--vc-primary);
}

.filter-group {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--vc-border);
}

.filter-group:last-of-type {
	border-bottom: none;
}

.filter-label {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--vc-primary);
	margin-bottom: 0.5rem;
}

.filter-checklist .form-check {
	margin-bottom: 0.375rem;
}

.filter-checklist .form-check-label {
	font-size: 0.875rem;
	color: var(--vc-dark);
}

.fleet-results-count {
	font-size: 0.9375rem;
	color: var(--vc-gray);
}

.fleet-results-count strong {
	color: var(--vc-primary);
}

/* Loading state */
.vessel-shop-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
	min-height: 200px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.vessel-empty-state {
	background: var(--vc-white);
	border: 1px dashed var(--vc-border);
	border-radius: var(--radius-xl);
	padding: 3rem 2rem;
}

.empty-state-icon i {
	font-size: 4rem;
	color: var(--vc-ocean);
	opacity: 0.5;
}

.empty-state-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.empty-state-text {
	color: var(--vc-gray);
	max-width: 420px;
	margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.vessel-pagination .pagination {
	gap: 0.25rem;
}

.vessel-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	border-radius: var(--radius-sm);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--vc-dark);
	background: var(--vc-white);
	border: 1px solid var(--vc-border);
	transition: all var(--transition);
	text-decoration: none;
}

.vessel-pagination .page-numbers.current,
.vessel-pagination .page-numbers:hover {
	background: var(--vc-ocean);
	border-color: var(--vc-ocean);
	color: var(--vc-white);
}

.vessel-pagination ul.page-numbers {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0.25rem;
}

/* ==========================================================================
   Single Vessel Page
   ========================================================================== */

.single-vessel-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 0.75rem;
}

.single-vessel-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9375rem;
	color: var(--vc-gray);
}

.single-vessel-meta-row i {
	color: var(--vc-ocean);
	margin-right: 0.25rem;
}

.vessel-status-inline {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	padding: 0.2rem 0.625rem;
	border-radius: 50px;
}

.vessel-status-inline.status-available {
	background: rgba(34, 197, 94, 0.12);
	color: #16a34a;
}

.vessel-status-inline.status-chartered {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

.single-vessel-rate-header .rate-label {
	display: block;
	font-size: 0.75rem;
	color: var(--vc-gray);
	text-transform: uppercase;
}

.single-vessel-rate-header .rate-value {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.75rem;
	color: var(--vc-ocean);
}

.single-vessel-rate-header .rate-period {
	font-size: 0.875rem;
	color: var(--vc-gray);
	font-weight: 400;
}

.single-vessel-block {
	background: var(--vc-white);
	border: 1px solid var(--vc-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	margin-bottom: 1.5rem;
}

.block-title {
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--vc-light);
}

/* Gallery */
.vessel-gallery {
	margin-bottom: 1.5rem;
}

.vessel-gallery-main {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--vc-primary);
}

.gallery-main-image {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.gallery-lightbox-trigger {
	position: relative;
	display: block;
}

.gallery-zoom-icon {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vc-primary);
	opacity: 0;
	transition: opacity var(--transition);
}

.gallery-lightbox-trigger:hover .gallery-zoom-icon {
	opacity: 1;
}

.vessel-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.gallery-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	opacity: 0.6;
	transition: all var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
	border-color: var(--vc-ocean);
	opacity: 1;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox */
.vessel-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(8, 44, 84, 0.95);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.vessel-lightbox[hidden] {
	display: none;
}

.lightbox-image {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: var(--radius-md);
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--vc-white);
	font-size: 1.25rem;
	cursor: pointer;
}

/* Rate boxes */
.rate-box {
	background: var(--vc-light);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	text-align: center;
}

.rate-box-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--vc-gray);
	margin-bottom: 0.375rem;
}

.rate-box-value {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--vc-ocean);
}

/* Features */
.vessel-features-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vessel-features-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
}

.vessel-features-list i {
	color: var(--vc-ocean);
	flex-shrink: 0;
}

/* Specs table */
.vessel-specs-table {
	margin: 0;
}

.vessel-specs-table th {
	width: 40%;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--vc-primary);
	background: var(--vc-light);
	vertical-align: middle;
}

.vessel-specs-table td {
	font-size: 0.9375rem;
	color: var(--vc-dark);
}

/* Share buttons */
.vessel-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.share-btn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--vc-border);
	background: var(--vc-light);
	color: var(--vc-primary);
	font-size: 1.125rem;
	transition: all var(--transition);
	cursor: pointer;
	text-decoration: none;
}

.share-btn:hover {
	background: var(--vc-ocean);
	border-color: var(--vc-ocean);
	color: var(--vc-white);
}

.share-whatsapp:hover {
	background: #25D366;
	border-color: #25D366;
}

/* Enquiry panel */
.enquiry-panel-inner {
	background: var(--vc-white);
	border: 1px solid var(--vc-border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	box-shadow: var(--shadow-md);
}

.enquiry-panel-title {
	font-size: 1.125rem;
	margin-bottom: 1.25rem;
}

.enquiry-quick-overview {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--vc-border);
}

.overview-title {
	font-size: 0.875rem;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--vc-primary);
	margin-bottom: 0.75rem;
}

.overview-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--vc-border);
	font-size: 0.875rem;
}

.overview-list li:last-child {
	border-bottom: none;
}

.overview-label {
	color: var(--vc-gray);
}

.overview-value {
	font-weight: 600;
	color: var(--vc-primary);
}

/* Enquiry form */
.charter-enquiry-form .required {
	color: #dc2626;
}

.charter-enquiry-form .form-label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--vc-primary);
}

.btn-success.vc-btn {
	background: #25D366;
	border-color: #25D366;
	color: var(--vc-white);
}

.btn-success.vc-btn:hover {
	background: #1da851;
	border-color: #1da851;
	color: var(--vc-white);
}

/* Related vessels */
.related-vessels .vessel-shop-card .vessel-card-title {
	font-size: 1rem;
}

/* ==========================================================================
   Shop inline quote modal
   ========================================================================== */

.vessel-quote-modal .modal-content {
	border: none;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
}

.vessel-quote-modal .modal-header {
	border-bottom: 1px solid var(--vc-border);
	padding: 1.25rem 1.5rem;
}

.vessel-quote-modal .modal-body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.vessel-shop-quote-form .required {
	color: #dc2626;
}

.vessel-shop-quote-form .form-label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--vc-primary);
}

.vessel-quote-cart-bar {
	position: sticky;
	bottom: 0;
	z-index: 1020;
	background: linear-gradient(135deg, var(--vc-primary), var(--vc-ocean));
	color: var(--vc-white);
	padding: 0.875rem 0;
	box-shadow: 0 -4px 24px rgba(8, 44, 84, 0.2);
}

.vessel-quote-cart-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.vessel-quote-cart-summary {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9375rem;
}

.vessel-quote-cart-summary i {
	color: var(--vc-gold);
	font-size: 1.25rem;
}

.vessel-quote-cart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vessel-quote-notice {
	margin-bottom: 1.25rem;
}

/* Single vessel CTA inherits .cta-section from main.css */

@media (max-width: 991.98px) {
	.fleet-hero {
		padding: 120px 0 60px;
	}

	.vessel-filter-sidebar {
		position: static;
	}

	.filter-panel {
		display: none;
	}

	.filter-panel.is-open {
		display: block;
	}

	.gallery-main-image {
		height: 280px;
	}

	.vessel-features-list {
		grid-template-columns: 1fr;
	}

	.enquiry-panel {
		position: static !important;
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 575.98px) {
	.single-vessel-block {
		padding: 1.25rem;
	}

	.fleet-hero {
		padding: 100px 0 50px;
	}
}
