/* ── GMP Vessels Browse ── */

.gmp-vessels-browse {
  padding: 40px 0 80px;
}

/* Header */
.gmp-vessels__header {
  margin-bottom: 8px;
}
.gmp-vessels__header .gmp-section-title {
  font-size: 36px;
  margin-bottom: 4px;
}
.gmp-vessels__count {
  font-size: 14px;
  color: var(--gmp-muted);
}

/* Toolbar */
.gmp-vessels__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gmp-border);
}
.gmp-vessels__sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gmp-vessels__sort-label {
  font-size: 13px;
  color: var(--gmp-muted);
  white-space: nowrap;
}
.gmp-vessels__sort-select {
  width: auto;
  min-width: 180px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Grid */
.gmp-vessels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Vessel card */
.gmp-vessel-card {
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.gmp-vessel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gmp-shadow-elevated);
}

.gmp-vessel-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gmp-bg-off);
}
.gmp-vessel-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gmp-vessel-card:hover .gmp-vessel-card__img {
  transform: scale(1.03);
}
.gmp-vessel-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gmp-bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmp-vessel-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.gmp-vessel-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gmp-vessel-card__title {
  font-family: var(--gmp-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--gmp-ink);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gmp-vessel-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.gmp-vessel-card__spec {
  font-size: 12px;
  color: var(--gmp-muted);
  background: var(--gmp-bg-off);
  padding: 3px 8px;
  border-radius: var(--gmp-radius-chip);
}

.gmp-vessel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gmp-border);
}
.gmp-vessel-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gmp-ink);
}
.gmp-vessel-card__flag {
  font-size: 12px;
  color: var(--gmp-muted);
}

/* Empty state */
.gmp-vessels__empty {
  text-align: center;
  padding: 64px 20px;
}
.gmp-vessels__empty h3 {
  font-family: var(--gmp-font-heading);
  font-size: 24px;
  color: var(--gmp-ink);
  margin-bottom: 8px;
}
.gmp-vessels__empty p {
  font-size: 14px;
  color: var(--gmp-muted);
}

/* Pagination */
.gmp-vessels__pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.gmp-vessels__pagination ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.gmp-vessels__pagination li {
  display: inline;
}
.gmp-vessels__pagination a,
.gmp-vessels__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--gmp-radius-btn);
  text-decoration: none;
  transition: all .15s;
}
.gmp-vessels__pagination a {
  color: var(--gmp-ink2);
  border: 1px solid var(--gmp-border2);
}
.gmp-vessels__pagination a:hover {
  border-color: var(--gmp-blue);
  color: var(--gmp-blue);
}
.gmp-vessels__pagination .current {
  background: var(--gmp-blue);
  color: #fff;
  border: 1px solid var(--gmp-blue);
}

/* Responsive */
@media (max-width: 768px) {
  .gmp-vessels__grid {
    grid-template-columns: 1fr;
  }
  .gmp-vessels__toolbar {
    justify-content: flex-start;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gmp-vessels__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════
   VESSEL LANDING PAGE (/vessel/)
   ══════════════════════════════════════════ */

/* Astra header hiding + nav fixes handled globally in navigation.css via body.gmp-redesign */

/* General fonts and smoothing */
body.gmp-vessel-landing {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: #0d1f3c;
}

/* Headings — font only, color set in Elementor */
body.gmp-vessel-landing h1,
body.gmp-vessel-landing h2,
body.gmp-vessel-landing h3 {
  font-family: 'DM Serif Display', Georgia, serif !important;
}

/* Paragraphs and body text */
body.gmp-vessel-landing p,
body.gmp-vessel-landing span {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Primary buttons — match GMP blue */
body.gmp-vessel-landing .elementor-button {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background-color: #1460dc !important;
  transition: opacity .2s !important;
}
body.gmp-vessel-landing .elementor-button:hover {
  opacity: 0.88 !important;
}

/* ── Dark sections (hero + bottom CTA) ──
   Add class "gmp-dark-hero" or "gmp-vessel-cta" in Elementor → Advanced → CSS Classes */

/* White text inside dark sections */
.gmp-dark-hero h1,
.gmp-dark-hero h2,
.gmp-dark-hero p,
.gmp-dark-hero .elementor-heading-title,
.gmp-dark-hero .elementor-widget-text-editor,
.gmp-vessel-cta h1,
.gmp-vessel-cta h2,
.gmp-vessel-cta p,
.gmp-vessel-cta .elementor-heading-title,
.gmp-vessel-cta .elementor-widget-text-editor {
  color: #fff !important;
}

/* Blue italic accent on "Vessels" in hero heading */
.gmp-dark-hero .elementor-heading-title em {
  font-style: italic;
  color: #7DB4FF !important;
}

/* Bottom CTA — dark navy background to match hero */
.gmp-vessel-cta {
  background: #0d1f3c !important;
}

/* ══════════════════════════════════════════
   VESSEL CATEGORY PAGE (WooCommerce archive)
   ══════════════════════════════════════════ */

/* Astra header hiding + nav fixes handled globally in navigation.css via body.gmp-redesign */

/* Page title — restyle "Category: Vessels" */
/* Hide old page title — replaced by hero */
body.gmp-vessel-category .woocommerce-products-header,
body.gmp-vessel-category .ast-archive-description {
  display: none !important;
}

/* Legacy title selector — kept for child categories */
body.gmp-vessel-category .woocommerce-products-header__title,
body.gmp-vessel-category .page-title,
body.gmp-vessel-category .ast-archive-description .ast-archive-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #0d1f3c;
  text-align: center;
  margin: 32px 0 8px;
  /* Hide "Category:" prefix via text-indent trick — overridden by JS below */
}

/* Hide the "Product categories: vessels" filter chip bar */
body.gmp-vessel-category .berocket_aapf_selected_area,
body.gmp-vessel-category .bapf_sfilter .bapf_head,
body.gmp-vessel-category .berocket_aapf_widget_selected_area,
body.gmp-vessel-category .bapf_selectedfilter {
  display: none !important;
}

/* Result count & sorting bar */
body.gmp-vessel-category .woocommerce-result-count {
  font-size: 13px;
  color: #5a7090;
}
body.gmp-vessel-category .woocommerce-ordering select {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(13,31,60,.12);
  border-radius: 8px;
  background: #fff;
  color: #0d1f3c;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7090' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Product cards on category page */
body.gmp-vessel-category ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.gmp-vessel-category ul.products li.product {
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(13,31,60,.04);
  overflow: hidden !important;
  transition: transform .2s, box-shadow .2s;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
body.gmp-vessel-category ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,31,60,.1);
}
/* Make entire card clickable area */
body.gmp-vessel-category ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Product image */
body.gmp-vessel-category ul.products li.product a img,
body.gmp-vessel-category ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Product title */
body.gmp-vessel-category ul.products li.product .woocommerce-loop-product__title,
body.gmp-vessel-category ul.products li.product h2 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0d1f3c !important;
  padding: 14px 16px 4px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Category label above title */
body.gmp-vessel-category ul.products li.product .ast-woo-product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1460dc;
  padding: 12px 16px 0;
  margin: 0;
}

/* Price */
body.gmp-vessel-category ul.products li.product .price {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0d1f3c !important;
  padding: 4px 16px 12px !important;
  margin: 0 !important;
}

/* Hide add to cart / wishlist on category page */
body.gmp-vessel-category ul.products li.product .button,
body.gmp-vessel-category ul.products li.product .add_to_cart_button,
body.gmp-vessel-category ul.products li.product .tinvwl_add_to_wishlist_button,
body.gmp-vessel-category ul.products li.product .tinv-wishlist,
body.gmp-vessel-category ul.products li.product .yith-wcwl-add-to-wishlist {
  display: none !important;
}

/* Filter sidebar styling */
body.gmp-vessel-category .widget,
body.gmp-vessel-category .wc-block-components-filter-panel {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
body.gmp-vessel-category .widget-title,
body.gmp-vessel-category .wc-block-components-filter-panel__label {
  font-size: 13px;
  font-weight: 600;
  color: #0d1f3c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.gmp-vessel-category .widget ul li,
body.gmp-vessel-category .wc-block-components-checkbox__label {
  font-size: 13px;
  color: #3a5070;
}

/* Sidebar container */
body.gmp-vessel-category #secondary,
body.gmp-vessel-category .ast-woo-sidebar,
body.gmp-vessel-category aside.widget-area {
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(13,31,60,.04);
  padding: 20px;
}

/* Active filter chips */
body.gmp-vessel-category .berocket_aapf_selected_area a {
  font-size: 12px;
  background: #edf2ff;
  color: #1460dc;
  border: 1px solid rgba(20,96,220,.15);
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
}

/* General page font */
body.gmp-vessel-category {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hide elements that don't belong */
body.gmp-vessel-category .ast-woo-shop-archive-btn,
body.gmp-vessel-category .elementor-section:not(:first-child) {
  /* Don't hide — might break things. Only hide specific known elements */
}

/* Responsive */
@media (max-width: 768px) {
  body.gmp-vessel-category ul.products {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body.gmp-vessel-category ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ══════════════════════════════════════════
   SUBCATEGORY CARDS + BREADCRUMB (vessels)
   Shared class names with equipment — styles
   only needed here if vessels.css loads alone.
   ══════════════════════════════════════════ */

/* Breadcrumb — light context */
.gmp-breadcrumb {
  margin-bottom: 16px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  color: #5a7090;
}
.gmp-breadcrumb a {
  color: #1460dc;
  text-decoration: none;
  transition: color .15s;
}
.gmp-breadcrumb a:hover {
  color: #0d1f3c;
}
.gmp-breadcrumb__sep {
  margin: 0 6px;
  color: #8aa8c8;
}
.gmp-breadcrumb__current {
  color: #0d1f3c;
  font-weight: 500;
}

/* Breadcrumb inside dark hero */
.gmp-archive-hero .gmp-breadcrumb {
  margin-top: 16px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.5);
}
.gmp-archive-hero .gmp-breadcrumb a {
  color: rgba(255,255,255,0.7);
}
.gmp-archive-hero .gmp-breadcrumb a:hover {
  color: #fff;
}
.gmp-archive-hero .gmp-breadcrumb__sep {
  color: rgba(255,255,255,0.35);
}
.gmp-archive-hero .gmp-breadcrumb__current {
  color: rgba(255,255,255,0.9);
}

/* Subcategory cards wrapper */
.gmp-subcategory-cards {
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 0 40px;
}

/* Grid */
.gmp-subcategory-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Individual card */
.gmp-subcategory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(13,31,60,.03);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gmp-subcategory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13,31,60,.08);
  border-color: rgba(20,96,220,.2);
}

/* Thumbnail */
.gmp-subcategory-card__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Fallback icon */
.gmp-subcategory-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #edf2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5a7090;
}

/* Info */
.gmp-subcategory-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.gmp-subcategory-card__name {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0d1f3c;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gmp-subcategory-card__count {
  font-size: 12px;
  color: #5a7090;
  margin-top: 1px;
}

/* Arrow */
.gmp-subcategory-card__arrow {
  flex-shrink: 0;
  color: #8aa8c8;
  transition: transform .15s, color .15s;
}
.gmp-subcategory-card:hover .gmp-subcategory-card__arrow {
  transform: translateX(2px);
  color: #1460dc;
}

/* Responsive subcategory cards */
@media (max-width: 768px) {
  .gmp-subcategory-cards {
    padding: 0 20px;
  }
  .gmp-subcategory-cards__grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gmp-subcategory-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
