/*--------------------------------------------------------------
  WP Boat Sync Frontend Styles
  BoatTrader.com exact match UI
--------------------------------------------------------------*/
:root {
  --wpbs-primary: #0066cc;
  --wpbs-primary-dark: #0052a3;
  --wpbs-primary-light: #e8f4fc;
  --wpbs-text: #333;
  --wpbs-text-light: #666;
  --wpbs-text-muted: #999;
  --wpbs-border: #ddd;
  --wpbs-border-light: #eee;
  --wpbs-bg: #f5f7f9;
  --wpbs-white: #fff;
  --wpbs-success: #28a745;
  --wpbs-orange: #f5a623;
  --wpbs-radius: 4px;
  --wpbs-radius-lg: 8px;
  --wpbs-shadow: 0 1px 3px rgba(0,0,0,.1);
  --wpbs-shadow-lg: 0 2px 8px rgba(0,0,0,.15);
  --wpbs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
.wpbs-wrap {
  font-family: var(--wpbs-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--wpbs-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  /* background: var(--wpbs-bg); */
}

/*--------------------------------------------------------------
  Archive / Grid Page
--------------------------------------------------------------*/
.wpbs-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--wpbs-white);
  border-radius: var(--wpbs-radius);
  border: 1px solid var(--wpbs-border-light);
}

.wpbs-archive-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--wpbs-text);
}

.wpbs-archive-count {
  color: var(--wpbs-text-light);
  font-size: 14px;
}

.wpbs-archive-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.wpbs-archive-sort select {
  padding: 6px 10px;
  border: 1px solid var(--wpbs-border);
  border-radius: var(--wpbs-radius);
  font-size: 13px;
}

/* Grid Layout */
.wpbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Boat Card - BoatTrader Style */
.wpbs-card {
  background: var(--wpbs-white);
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wpbs-border-light);
  transition: box-shadow .2s;
}

.wpbs-card:hover {
  box-shadow: var(--wpbs-shadow-lg);
}

.wpbs-card > a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.wpbs-card__media {
  position: relative;
  background: #e9ecef;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wpbs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wpbs-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.wpbs-card__badge--sold {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.wpbs-card--sold {
  opacity: 0.85;
}

.wpbs-card--sold .wpbs-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Single Boat Sold Banner */
.wpbs-sold-banner {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 16px;
  border-radius: var(--wpbs-radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.wpbs-sold-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wpbs-card__photo-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpbs-card__photo-count svg {
  width: 12px;
  height: 12px;
}

.wpbs-card__body {
  padding: 12px 14px 14px;
}

.wpbs-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--wpbs-text);
  margin-bottom: 4px;
}

.wpbs-card__monthly {
  font-size: 12px;
  color: var(--wpbs-primary);
  margin-bottom: 8px;
}

.wpbs-card__monthly a {
  color: var(--wpbs-primary);
  text-decoration: none;
}

.wpbs-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wpbs-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wpbs-card__location {
  font-size: 12px;
  color: var(--wpbs-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpbs-card__location svg {
  width: 12px;
  height: 12px;
  fill: var(--wpbs-text-muted);
}

.wpbs-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: none;
}

.wpbs-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--wpbs-radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s;
}

.wpbs-card__btn--primary {
  background: var(--wpbs-primary);
  color: #fff;
}

.wpbs-card__btn--primary:hover {
  background: var(--wpbs-primary-dark);
}

.wpbs-card__btn--secondary {
  background: var(--wpbs-bg);
  color: var(--wpbs-text);
  border: 1px solid var(--wpbs-border);
}

/* Badges */
.wpbs-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.wpbs-badge--new {
  background: var(--wpbs-primary);
  color: #fff;
}

.wpbs-badge--sold {
  background: #dc3545;
  color: #fff;
}

.wpbs-badge--featured {
  background: var(--wpbs-orange);
  color: #fff;
}

/*--------------------------------------------------------------
  Single Boat Detail Page - BoatTrader Style
--------------------------------------------------------------*/
.wpbs-single-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: flex-start;
  max-width: 100%;
  /* overflow: hidden; */
}

.wpbs-single-wrap > * {
  min-width: 0;
}

/* Gallery */
.wpbs-gallery {
  background: var(--wpbs-white);
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wpbs-border-light);
}

.wpbs-gallery__main {
  position: relative;
  background: #1a1a1a;
  aspect-ratio: 16 / 10;
}

.wpbs-gallery__main-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.wpbs-gallery__main-link {
  display: block;
  height: 100%;
}

.wpbs-gallery__view-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.7);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 45px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent !important;
  transition: background .15s;
}

.wpbs-gallery__view-btn:hover {
  background: rgba(0,0,0,.85) !important;
}

.wpbs-gallery__view-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.wpbs-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid var(--wpbs-border-light) !important;
  border-radius: 100% !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wpbs-shadow);
  z-index: 5;
}

.wpbs-gallery__nav:hover {
  background: #fff !important;
  border-color: var(--wpbs-border) !important;
}
.wpbs-gallery__nav:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--wpbs-primary) !important;
  background-color: var(--wpbs-bg) !important;
}

.wpbs-gallery__nav--prev { left: 12px; }
.wpbs-gallery__nav--next { right: 12px; }

.wpbs-gallery__nav svg {
  font: 20px sans-serif;
  width: 20px !important;
  height: 20px !important;
  fill: var(--wpbs-primary);
}

.wpbs-gallery__thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: var(--wpbs-white);
  border-top: 1px solid var(--wpbs-border-light);
}

.wpbs-gallery__thumb {
  flex-shrink: 0;
  width: 70px !important;
  height: 52px !important;
  border-radius: 4px !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  cursor: pointer;
  padding: 0 !important;
  background: none;
  opacity: .7 !important;
  transition: opacity .15s, border-color .15s;
}

.wpbs-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wpbs-gallery__thumb:hover {
  opacity: 1;
}

.wpbs-gallery__thumb.is-active {
  border-color: var(--wpbs-primary) !important;
  opacity: 1;
}

/* Quick Specs Row - Below Gallery */
.wpbs-quick-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 16px;
  overflow: hidden;
}

/* New BEM structure for Elementor widget */
.wpbs-quick-specs__list {
  display: contents;
}

.wpbs-quick-specs__item,
.wpbs-quick-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--wpbs-border-light);
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-quick-specs__item:nth-child(4n),
.wpbs-quick-spec:nth-child(4n) {
  border-right: none;
}

.wpbs-quick-specs__item:nth-last-child(-n+4),
.wpbs-quick-spec:nth-last-child(-n+4) {
  border-bottom: none;
}

.wpbs-quick-specs__icon,
.wpbs-quick-spec__icon {
  flex-shrink: 0;
}

.wpbs-quick-spec__text {
  flex: 1;
  min-width: 0;
}

.wpbs-quick-specs__label,
.wpbs-quick-spec__label {
  font-size: 11px;
  color: var(--wpbs-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 500;
  line-height: 1.2;
}

.wpbs-quick-specs__value,
.wpbs-quick-spec__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--wpbs-text);
  line-height: 1.3;
  word-break: break-word;
}

/* Boat Overview Section */
.wpbs-overview {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 16px;
  padding: 20px;
}

.wpbs-overview__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--wpbs-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpbs-overview__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wpbs-text-light);
}

/* Boat Details Tabs */
.wpbs-tabs {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 16px;
  overflow: hidden;
}

.wpbs-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--wpbs-border-light) !important;
  background: var(--wpbs-bg) !important;
}

.wpbs-tabs__btn {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wpbs-text-light) !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  position: relative;
}

.wpbs-tabs__btn.is-active {
  color: var(--wpbs-primary) !important;
  background: var(--wpbs-white) !important;
}

.wpbs-tabs__btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wpbs-primary) !important;
}

.wpbs-tabs__content {
  padding: 20px;
}

/* Specs Table */
.wpbs-specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 !important;
}

.wpbs-specs-table__section {
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--wpbs-border-light) !important;
}

.wpbs-specs-table__section:last-child {
  border-bottom: none !important;
}

.wpbs-specs-table__heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--wpbs-text);
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.wpbs-specs-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 20px !important;
  font-size: 13px;
}

.wpbs-specs-row__label {
  color: var(--wpbs-text-light) !important;
}

.wpbs-specs-row__value {
  color: var(--wpbs-text) !important;
  font-weight: 500;
  text-align: right;
}

/*--------------------------------------------------------------
  Accordion Details Section - BoatTrader Style
--------------------------------------------------------------*/
.wpbs-accordion-details {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 16px;
  overflow: hidden;
  max-width: 100%;
}

.wpbs-accordion-details__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wpbs-text);
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wpbs-border-light);
  background: var(--wpbs-bg);
}

.wpbs-accordion-item {
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-accordion-item:last-child {
  border-bottom: none;
}

.wpbs-accordion-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--wpbs-white);
  transition: background .15s;
  list-style: none;
}

.wpbs-accordion-item__header::-webkit-details-marker {
  display: none;
}

.wpbs-accordion-item__header::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--wpbs-text-muted);
  border-bottom: 2px solid var(--wpbs-text-muted);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
}

.wpbs-accordion-item[open] > .wpbs-accordion-item__header::after {
  transform: rotate(-135deg);
}

.wpbs-accordion-item__header:hover {
  background: var(--wpbs-bg);
}

.wpbs-accordion-item__header h3,
.wpbs-accordion-item__header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--wpbs-text);
}

.wpbs-accordion-item__content {
  padding: 16px 20px 20px;
  background: var(--wpbs-white);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Details Grid */
.wpbs-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 100%;
}

.wpbs-details-cell {
  background: var(--wpbs-bg);
  border-radius: var(--wpbs-radius);
  padding: 16px;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wpbs-details-cell h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wpbs-text);
  border-bottom: 1px solid var(--wpbs-border-light);
  padding-bottom: 8px;
}

.wpbs-details-cell__content p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-details-cell__content p:last-child {
  border-bottom: none;
}

.wpbs-details-label {
  color: var(--wpbs-text-light);
  flex-shrink: 0;
  margin-right: 12px;
}

.wpbs-details-value {
  color: var(--wpbs-text);
  font-weight: 500;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 60%;
}

/* Description with Show More */
.wpbs-description-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wpbs-text-light);
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}

.wpbs-description-text.is-expanded {
  max-height: none;
}

.wpbs-description-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--wpbs-white));
  pointer-events: none;
}

.wpbs-description-text.is-expanded::after {
  display: none;
}

.wpbs-show-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--wpbs-primary) !important;
  border-radius: var(--wpbs-radius) !important;
  color: var(--wpbs-primary) !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.wpbs-show-more-btn:hover {
  background: var(--wpbs-primary) !important;
  color: var(--wpbs-white) !important;
}

.wpbs-show-more-btn:focus {
  outline: none;
  color: var(--wpbs-primary) !important;
  background-color: var(--wpbs-primary-light) !important;
  box-shadow: 0 0 0 3px var(--wpbs-primary) !important;
}

/* Additional Details HTML */
.wpbs-additional-details {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wpbs-text-light);
}

.wpbs-additional-details ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.wpbs-additional-details li {
  margin-bottom: 4px;
}

/* Location Info */
.wpbs-location-info {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wpbs-text);
}

.wpbs-location-info p {
  margin: 0 0 8px;
}

/* Disclaimer */
.wpbs-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--wpbs-text-muted);
  font-style: italic;
  margin: 0;
}

/*--------------------------------------------------------------
  Sidebar - BoatTrader Style
--------------------------------------------------------------*/
.wpbs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}
body:has(#wpadminbar) .wpbs-sidebar {
  top: 54px;
}
/* Price Card */
.wpbs-price-card {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
}

.wpbs-price-card__header {
  padding: 16px;
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-price-card__title {
  font-size: 13px;
  color: var(--wpbs-text-light);
  margin-bottom: 4px;
}

.wpbs-price-card__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--wpbs-text);
}

.wpbs-price-card__monthly {
  font-size: 13px;
  color: var(--wpbs-primary);
  margin-top: 4px;
}

.wpbs-price-card__monthly a {
  color: var(--wpbs-primary);
}

.wpbs-price-card__body {
  padding: 16px;
}

/* Dealer Card */
.wpbs-dealer-card {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 16px;
  overflow: hidden;
}

.wpbs-dealer-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--wpbs-bg);
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-dealer-card__body {
  padding: 16px;
}

.wpbs-dealer-card__logo {
  width: 60px;
  height: 40px;
  background: var(--wpbs-bg);
  border-radius: var(--wpbs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--wpbs-text-muted);
}

.wpbs-dealer-card__info {
  flex: 1;
}

.wpbs-dealer-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wpbs-text);
  margin: 0 0 2px;
}

.wpbs-dealer-card__location {
  font-size: 12px;
  color: var(--wpbs-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpbs-dealer-card__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.wpbs-dealer-card__row:last-child {
  margin-bottom: 0;
}

.wpbs-dealer-card__row strong {
  color: var(--wpbs-text-light);
  min-width: 70px;
}

.wpbs-dealer-card__row a {
  color: var(--wpbs-primary);
  text-decoration: none;
}

.wpbs-dealer-card__row a:hover {
  text-decoration: underline;
}

.wpbs-dealer-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--wpbs-border-light);
}

/* Contact Form in Sidebar */
.wpbs-contact-form {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  padding: 16px;
}

.wpbs-contact-form__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.wpbs-contact-form__row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.wpbs-contact-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--wpbs-border);
  border-radius: var(--wpbs-radius);
  font-size: 13px;
}

.wpbs-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wpbs-border);
  border-radius: var(--wpbs-radius);
  font-size: 13px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 10px;
}

/* Buttons */
.wpbs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--wpbs-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s;
  width: 100%;
}

.wpbs-btn svg {
  width: 16px;
  height: 16px;
}

.wpbs-btn--primary {
  background: var(--wpbs-primary);
  color: #fff;
}

.wpbs-btn--primary:hover {
  background: var(--wpbs-primary-dark);
  color: #fff;
}

.wpbs-btn--outline {
  background: var(--wpbs-white);
  color: var(--wpbs-primary);
  border: 2px solid var(--wpbs-primary);
}

.wpbs-btn--outline:hover {
  background: var(--wpbs-primary-light);
}

.wpbs-btn--green {
  background: #34a853;
  color: #fff;
}

.wpbs-btn--green:hover {
  background: #2d9249;
  color: #fff;
}

/* More From Dealer Section */
.wpbs-more-boats {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  margin-top: 20px;
  padding: 20px;
}

.wpbs-more-boats__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wpbs-more-boats__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--wpbs-text);
  margin: 0;
}

.wpbs-more-boats__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--wpbs-primary);
  text-decoration: none;
}

.wpbs-more-boats__link:hover {
  text-decoration: underline;
}

.wpbs-more-boats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wpbs-more-boats__item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--wpbs-white);
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wpbs-border-light);
  transition: box-shadow .2s;
}

.wpbs-more-boats__item:hover {
  box-shadow: var(--wpbs-shadow-lg);
}

.wpbs-more-boats__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--wpbs-radius);
  overflow: hidden;
  background: var(--wpbs-bg);
}

.wpbs-more-boats__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpbs-more-boats__name {
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wpbs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpbs-more-boats__price {
  padding: 0 12px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wpbs-primary);
}

/* Legacy support */
.wpbs-header { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:8px 0 18px; }
.wpbs-header h1 { margin:0; font-size:28px; }
.wpbs-single { display:grid; grid-template-columns:1.1fr .9fr; gap:20px; }
.wpbs-single__title { margin:0 0 10px; font-size:28px; }
.wpbs-product-gallery { margin-bottom:12px; }
.wpbs-product-gallery__main { display:block; border-radius:8px; overflow:hidden; background:#f6f7f9; border:1px solid var(--wpbs-border-light); }
.wpbs-product-gallery__main-img, .wpbs-product-gallery__main img { width:100%; height:auto; display:block; aspect-ratio:4/3; object-fit:cover; }
.wpbs-product-gallery__thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.wpbs-thumb { appearance:none; border:2px solid transparent; background:#fff; padding:0; border-radius:6px; overflow:hidden; width:70px; height:52px; cursor:pointer; opacity:.7; }
.wpbs-thumb img { width:100%; height:100%; display:block; object-fit:cover; }
.wpbs-thumb:hover { opacity:1; }
.wpbs-thumb.is-active { border-color:var(--wpbs-primary); opacity:1; }
.wpbs-specs { border:1px solid var(--wpbs-border-light); border-radius:8px; padding:16px; background:#fff; }
.wpbs-specs__row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--wpbs-border-light); font-size:13px; }
.wpbs-specs__row:last-child { border-bottom:0; }
.wpbs-price { margin-top:8px; font-weight:700; color:#111; }

/*--------------------------------------------------------------
  Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .wpbs-single-wrap {
    grid-template-columns: 1fr;
  }
  .wpbs-sidebar {
    position: static;
  }
  .wpbs-quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .wpbs-quick-spec:nth-child(4n) {
    border-right: 1px solid var(--wpbs-border-light);
  }
  .wpbs-quick-spec:nth-child(2n) {
    border-right: none;
  }
  .wpbs-quick-spec:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--wpbs-border-light);
  }
  .wpbs-quick-spec:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .wpbs-more-boats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wpbs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wpbs-specs-table {
    grid-template-columns: 1fr;
  }
  .wpbs-gallery__thumb {
    width: 56px;
    height: 42px;
  }
  .wpbs-single { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .wpbs-grid {
    grid-template-columns: 1fr;
  }
  .wpbs-quick-specs {
    grid-template-columns: 1fr;
  }
  .wpbs-quick-spec {
    border-right: none;
    border-bottom: 1px solid var(--wpbs-border-light);
  }
  .wpbs-quick-spec:last-child {
    border-bottom: none;
  }
  .wpbs-card__price {
    font-size: 16px;
  }
  .wpbs-header { flex-direction:column; align-items:flex-start; }
}

.wrap .card { max-width: 100%; }

/*--------------------------------------------------------------
  Card Image Slider (Archive Page)
--------------------------------------------------------------*/
.wpbs-card-slider {
  position: relative;
}

.wpbs-card-slider__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.wpbs-card__body-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wpbs-card__body-link:hover {
  text-decoration: none;
}

.wpbs-card-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .3s ease;
}

.wpbs-card-slider__slide.is-active {
  position: relative;
  opacity: 1;
}

.wpbs-card-slider__slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.wpbs-card-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px !important;
  height: 28px !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid var(--wpbs-border-light) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
  z-index: 5;
  padding: 0 !important;
  opacity: 0 !important;
  transition: opacity .2s;
}

.wpbs-card:hover .wpbs-card-slider__nav {
  opacity: 1 !important;
}

.wpbs-card-slider__nav--prev { left: 8px; }
.wpbs-card-slider__nav--next { right: 8px; }

.wpbs-card-slider__nav svg {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
  color: var(--wpbs-primary) !important;
  fill: var(--wpbs-primary) !important;
}

.wpbs-card-slider__nav:hover {
  border: 1px solid var(--wpbs-primary) !important;
  color: var(--wpbs-primary) !important;
  background: #fff !important;
}

.wpbs-card-slider__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.wpbs-card-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s;
}

.wpbs-card-slider__dot.is-active {
  background: #fff;
}

/*--------------------------------------------------------------
  Video Thumbnail in Gallery
--------------------------------------------------------------*/
.wpbs-gallery__thumb--video {
  position: relative;
  background: #1a1a1a !important;
}

.wpbs-gallery__thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,.9) !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpbs-gallery__thumb-play svg {
  width: 12px !important;
  height: 12px !important;
  fill: #333 !important;
  margin-left: 2px;
}

/*--------------------------------------------------------------
  Lightbox Modal
--------------------------------------------------------------*/
.wpbs-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.wpbs-lightbox[style*="display:block"],
.wpbs-lightbox[style*="display: block"],
.wpbs-lightbox.is-visible {
  display: flex !important;
}

.wpbs-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.92) !important;
}

.wpbs-lightbox__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  box-sizing: border-box;
}

.wpbs-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
}

.wpbs-lightbox__close:hover {
  background: rgba(255,255,255,.2) !important;
  border-radius: 100% !important;
} 

.wpbs-lightbox__close svg {
  width: 28px !important;
  height: 28px !important;
  fill: #fff !important;
}

.wpbs-lightbox__close:hover svg {
  fill: #ccc !important;
}

.wpbs-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px !important;
  height: 50px !important;
  background: rgba(255,255,255,.2) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
  transition: background .2s;
}

.wpbs-lightbox__nav:hover {
  background: rgba(255,255,255,.3) !important;
}

.wpbs-lightbox__nav svg {
  width: 28px !important;
  height: 28px !important;
  fill: #fff !important;
}

.wpbs-lightbox__nav--prev { left: 16px; padding: 5px !important;}
.wpbs-lightbox__nav--next { right: 16px; padding: 5px !important;}

.wpbs-lightbox__content {
  max-width: 100%;
  max-height: calc(100% - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpbs-lightbox__img,
.wpbs-lightbox__main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.wpbs-lightbox__video {
  width: 80vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpbs-lightbox__video iframe,
.wpbs-lightbox__video video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.wpbs-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
}

.wpbs-lightbox__thumbs {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: 80%;
  overflow-x: auto;
  padding: 8px;
}

@media (max-width: 768px) {
  .wpbs-lightbox__container {
    padding: 50px 16px;
  }
  .wpbs-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .wpbs-lightbox__nav svg {
    width: 22px;
    height: 22px;
  }
  .wpbs-lightbox__nav--prev { left: 8px; }
  .wpbs-lightbox__nav--next { right: 8px; }
  .wpbs-card-slider__nav {
    opacity: 1;
  }
}

/*--------------------------------------------------------------
  Inline Price & Location
--------------------------------------------------------------*/
.wpbs-price-monthly {
  font-size: 12px;
  color: var(--wpbs-primary);
}

.wpbs-location {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--wpbs-text-light);
}

.wpbs-location svg {
  color: var(--wpbs-text-muted);
}

/*--------------------------------------------------------------
  Filter Bar
--------------------------------------------------------------*/
.wpbs-filter-bar {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wpbs-filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;  
  align-items: flex-end;
}

.wpbs-filter-layout--left .wpbs-filter-bar__row,
.wpbs-filter-layout--right .wpbs-filter-bar__row {
  align-items: normal;
}
.wpbs-filter-layout--left .wpbs-filter-bar__field.wpbs-filter-bar__field--slider label,
.wpbs-filter-layout--right .wpbs-filter-bar__field.wpbs-filter-bar__field--slider label {
  margin-top: 20px;
}
.wpbs-filter-bar__row--secondary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  justify-content: space-between;
  align-items: center;
}

.wpbs-filter-bar__row--sliders {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.wpbs-filter-bar__field--slider {
  flex: 1 1 200px;
  min-width: 180px;
}

.wpbs-filter-bar__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 130px;
}

.wpbs-filter-bar__field label {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpbs-filter-bar__field select,
.wpbs-filter-bar__field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s;
}

.wpbs-filter-bar__field select:focus,
.wpbs-filter-bar__field input:focus {
  outline: none;
  border-color: var(--wpbs-accent, #f5a623) !important;
}

.wpbs-filter-bar__field--range {
  min-width: 160px;
}

.wpbs-filter-bar__range {
  display: flex;
  gap: 6px;
}

.wpbs-filter-bar__range input {
  width: 50%;
  padding: 0 8px;
}

.wpbs-filter-bar__range input::placeholder {
  color: #999;
}

.wpbs-filter-bar__field--action {
  flex: 0 0 auto;
  min-width: auto;
}

.wpbs-filter-bar__search {
  height: 40px;
  padding: 0 28px;
  background: var(--wpbs-accent, #f5a623) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.wpbs-filter-bar__search:hover {
  background: #e09000 !important;
}

.wpbs-filter-bar__search:active {
  transform: scale(0.98);
}

.wpbs-filter-bar__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wpbs-filter-bar__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333 !important;
  cursor: pointer;
}

.wpbs-filter-bar__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--wpbs-accent, #f5a623) !important;
  cursor: pointer;
}

.wpbs-filter-bar__clear {
  background: none !important;
  border: none !important;
  color: #666 !important;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  transition: color 0.2s;
}

.wpbs-filter-bar__clear:hover {
  color: #333 !important;
}

/* Loading overlay */
.wpbs-filter-loading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 8px;
  margin-bottom: 16px;
}

.wpbs-filter-loading__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--wpbs-accent, #f5a623) !important;
  border-radius: 50%;
  animation: wpbs-spin 0.8s linear infinite;
}

@keyframes wpbs-spin {
  to { transform: rotate(360deg); }
}

/* AJAX Pagination */
.wpbs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.wpbs-pagination__btn {
  padding: 10px 20px !important;
  background: #fff !important;
  border: 1px solid #ddd  !important;
  color: #000 !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wpbs-pagination__btn:hover:not(:disabled) {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
}

.wpbs-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wpbs-pagination__info {
  font-size: 14px;
  color: #666 !important;
}

/* No results message */
.wpbs-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff !important;
  border-radius: 8px;
}

/*--------------------------------------------------------------
  Dual Range Slider
--------------------------------------------------------------*/
.wpbs-range {
  position: relative;
  width: 100%;
  padding: 8px 0;
}

.wpbs-range__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wpbs-range__values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.wpbs-range__value--min,
.wpbs-range__value--max {
  background: #f5f5f5 !important;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}

.wpbs-range__slider {
  position: relative;
  height: 6px;
  margin: 10px 0;
}

.wpbs-range__track-bg {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e5e5e5 !important;
  border-radius: 3px;
  top: 0;
}

.wpbs-range__track {
  position: absolute;
  height: 6px;
  background: var(--wpbs-accent, #f5a623) !important;
  border-radius: 3px;
  top: 0;
}

.wpbs-range__input {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 0;
  margin: 0;
  background: transparent !important;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.wpbs-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--wpbs-accent, #f5a623) !important;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.wpbs-range__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.wpbs-range__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--wpbs-accent, #f5a623) !important;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wpbs-range__input--min {
  z-index: 2;
}

.wpbs-range__input--max {
  z-index: 1;
}

/*--------------------------------------------------------------
  Filter Bar Layouts (Top/Left/Right)
--------------------------------------------------------------*/
/* Top layout (default) */
.wpbs-filter-layout--top {
  display: block;
}

.wpbs-filter-layout--top .wpbs-filter-bar {
  width: 100%;
  max-width: -webkit-fill-available;
}

.wpbs-filter-layout--top .wpbs-filter-content {
  width: 100%;
}

/* Left sidebar layout */
.wpbs-filter-layout--left {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.wpbs-filter-layout--left .wpbs-filter-bar {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.wpbs-filter-layout--left .wpbs-filter-bar__row {
  flex-direction: column;
}

.wpbs-filter-layout--left .wpbs-filter-bar__field {
  flex: 1 1 100%;
  min-width: unset;
}

.wpbs-filter-layout--left .wpbs-filter-bar__row--secondary {
  flex-direction: column;
  align-items: flex-start;
}

.wpbs-filter-layout--left .wpbs-filter-bar__search {
  width: 100%;
}

.wpbs-filter-layout--left .wpbs-filter-content {
  min-width: 0;
}

/* Right sidebar layout */
.wpbs-filter-layout--right {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.wpbs-filter-layout--right .wpbs-filter-bar {
  order: 2;
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.wpbs-filter-layout--right .wpbs-filter-bar__row {
  flex-direction: column;
}

.wpbs-filter-layout--right .wpbs-filter-bar__field {
  flex: 1 1 100%;
  min-width: unset;
}

.wpbs-filter-layout--right .wpbs-filter-bar__row--secondary {
  flex-direction: column;
  align-items: flex-start;
}

.wpbs-filter-layout--right .wpbs-filter-bar__search {
  width: 100%;
}

.wpbs-filter-layout--right .wpbs-filter-content {
  order: 1;
  min-width: 0;
}

/* Responsive for sidebar layouts */
@media (max-width: 900px) {
  .wpbs-filter-layout--left,
  .wpbs-filter-layout--right {
    display: block;
  }
  .wpbs-filter-layout--left .wpbs-filter-bar,
  .wpbs-filter-layout--right .wpbs-filter-bar {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  .wpbs-filter-layout--left .wpbs-filter-bar__row,
  .wpbs-filter-layout--right .wpbs-filter-bar__row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .wpbs-filter-layout--left .wpbs-filter-bar__field,
  .wpbs-filter-layout--right .wpbs-filter-bar__field {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
  }
}

/* Responsive filter bar */
@media (max-width: 1024px) {
  .wpbs-filter-bar__field {
    min-width: 140px;
    flex: 1 1 calc(33.333% - 12px);
  }
  .wpbs-filter-bar__field--range {
    flex: 1 1 calc(33.333% - 12px);
  }
}

@media (max-width: 768px) {
  .wpbs-filter-bar {
    padding: 12px 14px;
  }
  .wpbs-filter-bar__row {
    gap: 10px;
  }
  .wpbs-filter-bar__field {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
  }
  .wpbs-filter-bar__field--range {
    flex: 1 1 100%;
  }
  .wpbs-filter-bar__field--action {
    flex: 1 1 100%;
  }
  .wpbs-filter-bar__search {
    width: 100%;
  }
  .wpbs-filter-bar__row--secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .wpbs-filter-bar__checkboxes {
    width: 100%;
  }
  .wpbs-filter-bar__clear {
    align-self: flex-end;
  }
  .wpbs-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }
  .wpbs-pagination__btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .wpbs-filter-bar__field {
    flex: 1 1 100%;
  }
  .wpbs-filter-bar__checkboxes {
    flex-direction: column;
    gap: 10px;
  }
}

/*--------------------------------------------------------------
  Loan Payment Calculator
--------------------------------------------------------------*/
.wpbs-loan-calculator {
  background: var(--wpbs-white);
  border: 1px solid var(--wpbs-border-light);
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
  font-family: var(--wpbs-font);
  margin-top: 16px;
}

.wpbs-loan-calculator__header {
  background: var(--wpbs-bg);
  padding: 16px 20px;
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-loan-calculator__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--wpbs-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpbs-loan-calculator__title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066cc'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 14h-2v-4H6v-2h4V7h2v4h4v2h-4v4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.wpbs-loan-calculator__body {
  padding: 20px;
}

.wpbs-loan-calculator__field {
  margin-bottom: 16px;
}

.wpbs-loan-calculator__field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--wpbs-text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.wpbs-loan-calculator__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wpbs-loan-calculator__prefix,
.wpbs-loan-calculator__suffix {
  position: absolute;
  color: var(--wpbs-text-muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.wpbs-loan-calculator__prefix {
  left: 12px;
}

.wpbs-loan-calculator__suffix {
  right: 12px;
}

.wpbs-loan-calculator__input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 28px !important;
  border: 1px solid var(--wpbs-border);
  border-radius: var(--wpbs-radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--wpbs-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpbs-loan-calculator__input--rate {
  padding: 0 28px 0 12px !important;
}

.wpbs-loan-calculator__input:focus {
  outline: none;
  border-color: var(--wpbs-primary);
  box-shadow: 0 0 0 3px var(--wpbs-primary-light);
}

.wpbs-loan-calculator__select-wrap {
  position: relative;
}

.wpbs-loan-calculator__select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px !important;
  border: 1px solid var(--wpbs-border);
  border-radius: var(--wpbs-radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--wpbs-text);
  background: var(--wpbs-white);
  cursor: pointer;
  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='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpbs-loan-calculator__select:focus {
  outline: none;
  border-color: var(--wpbs-primary);
  box-shadow: 0 0 0 3px var(--wpbs-primary-light);
}

.wpbs-loan-calculator__percent-info {
  font-size: 12px;
  color: var(--wpbs-text-muted);
  margin-top: 4px;
}

.wpbs-loan-calculator__results {
  background: var(--wpbs-bg);
  border-radius: var(--wpbs-radius);
  padding: 16px;
  margin-top: 20px;
}

.wpbs-loan-calculator__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--wpbs-border-light);
}

.wpbs-loan-calculator__result-row:last-child {
  border-bottom: none;
}

.wpbs-loan-calculator__result-row--highlight {
  background: var(--wpbs-primary);
  margin: 8px -16px;
  padding: 16px;
  border-radius: var(--wpbs-radius);
  border-bottom: none;
}

.wpbs-loan-calculator__result-row--highlight .wpbs-loan-calculator__result-label,
.wpbs-loan-calculator__result-row--highlight .wpbs-loan-calculator__result-value {
  color: #fff;
}

.wpbs-loan-calculator__result-label {
  font-size: 13px;
  color: var(--wpbs-text-light);
  font-weight: 500;
}

.wpbs-loan-calculator__result-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--wpbs-text);
}

.wpbs-loan-calculator__result-value--large {
  font-size: 20px;
  font-weight: 700;
}

.wpbs-loan-calculator__disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--wpbs-text-muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
  .wpbs-loan-calculator__body {
    padding: 16px;
  }
  
  .wpbs-loan-calculator__result-value--large {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
  Grid Column Classes (for Elementor widget)
--------------------------------------------------------------*/
.wpbs-grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.wpbs-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.wpbs-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.wpbs-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.wpbs-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.wpbs-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
  .wpbs-grid--tablet-1 { grid-template-columns: repeat(1, 1fr) !important; }
  .wpbs-grid--tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .wpbs-grid--tablet-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .wpbs-grid--tablet-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 600px) {
  .wpbs-grid--mobile-1 { grid-template-columns: repeat(1, 1fr) !important; }
  .wpbs-grid--mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .wpbs-grid--mobile-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/*--------------------------------------------------------------
  No Results Styling
--------------------------------------------------------------*/
.wpbs-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--wpbs-white);
  border-radius: var(--wpbs-radius-lg);
}

.wpbs-no-results p {
  color: var(--wpbs-text-light);
  margin: 0;
}

/*--------------------------------------------------------------
  Filter Loading Overlay
--------------------------------------------------------------*/
.wpbs-filter-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wpbs-filter-loading[style*="display:flex"],
.wpbs-filter-loading[style*="display: flex"] {
  display: flex !important;
}

/*--------------------------------------------------------------
  Pagination
--------------------------------------------------------------*/
.wpbs-pagination {
  margin-top: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.wpbs-pagination__btn {
  padding: 8px 16px;
  background: var(--wpbs-primary);
  color: var(--wpbs-white);
  border: none;
  border-radius: var(--wpbs-radius);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.wpbs-pagination__btn:hover:not(:disabled) {
  background: var(--wpbs-primary-dark);
}

.wpbs-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wpbs-pagination__info {
  color: var(--wpbs-text-light);
  font-size: 14px;
}

/*--------------------------------------------------------------
  Card Slider Inline Styles
--------------------------------------------------------------*/
.wpbs-card-slider {
  position: relative;
  aspect-ratio: 4/3;
  background: #e9ecef;
  border-radius: var(--wpbs-radius-lg);
  overflow: hidden;
}

.wpbs-card-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*--------------------------------------------------------------
  Lightbox Hidden State
--------------------------------------------------------------*/
.wpbs-lightbox[style*="display:none"],
.wpbs-lightbox[style*="display: none"] {
  display: none !important;
}

/*--------------------------------------------------------------
  Description No Content
--------------------------------------------------------------*/
.wpbs-description-empty {
  color: var(--wpbs-text-light);
}

/*--------------------------------------------------------------
  Tab Panes Display
--------------------------------------------------------------*/
.wpbs-tab-pane {
  display: none;
}

.wpbs-tab-pane.is-active {
  display: block;
}

/*--------------------------------------------------------------
  Boat Overview Title & Meta
--------------------------------------------------------------*/
.wpbs-overview__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wpbs-overview__subtitle {
  font-size: 13px;
  color: var(--wpbs-text-light);
  margin-bottom: 8px;
}

.wpbs-overview__meta {
  font-size: 12px;
  color: var(--wpbs-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpbs-overview__brand {
  font-size: 12px;
  color: var(--wpbs-text-muted);
  margin-top: 6px;
}

.wpbs-overview__brand a {
  color: var(--wpbs-primary);
  text-decoration: none;
}

.wpbs-overview__brand a:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
  Price Card Monthly Payment
--------------------------------------------------------------*/
.wpbs-price-card__monthly {
  font-size: 14px;
  color: var(--wpbs-text-light);
  margin-top: 4px;
}

.wpbs-price-card__monthly strong {
  color: var(--wpbs-text);
}

.wpbs-price-card__monthly-terms {
  font-size: 11px;
  color: var(--wpbs-text-muted);
  display: block;
  margin-top: 2px;
}

/*--------------------------------------------------------------
  Sold Badge Inline
--------------------------------------------------------------*/
.wpbs-badge--sold-inline {
  margin-top: 8px;
  display: inline-block;
}

/*--------------------------------------------------------------
  Buttons Container
--------------------------------------------------------------*/
.wpbs-buttons-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*--------------------------------------------------------------
  Price Monthly Display
--------------------------------------------------------------*/
.wpbs-price-monthly {
  font-size: 12px;
  color: var(--wpbs-primary);
}

/*--------------------------------------------------------------
  Location Icon
--------------------------------------------------------------*/
.wpbs-location svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}
