/* =============================================================
   Power Yacht Boats – Public CSS
   Merged from boat-detail.css + category.css (design files)
   ============================================================= */

/* ── Base ──────────────────────────────────────────────────── */
.pyb-listing-page, .page-main, .breadcrumb-bar { box-sizing: border-box; }
.pyb-listing-page,
.page-main {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #111;
}
.pyb-listing-page a,
.page-main a { text-decoration: none; color: inherit; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity .2s ease;
}
.hero-section.hero-transitioning { opacity: 0; }
#pyb-hero-img { transition: opacity .3s ease; }
@media (min-width: 768px) { .hero-section { min-height: 75vh; padding: 46px; } }
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 8px;
  z-index: 1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.hero-bg-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #1a2a3a 0%, #2c4a6e 100%); border-radius: 4px; }
.hero-overlay {
  position: absolute; inset: 8px; border-radius: 4px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}
.hero-content { position: relative; z-index: 10; width: 100%; max-width: 1280px; color: #fff; }
.hero-eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 13px; font-weight: 500; margin-bottom: 16px; opacity: 0.9;
}
.hero-title { font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; max-width: 600px; }
@media (min-width: 768px) { .hero-title { font-size: 52px; } }
.hero-title em { font-family: serif; font-style: italic; font-weight: 400; }
.hero-subtext { font-size: 16px; font-weight: 300; max-width: 600px; margin-top: 24px; line-height: 1.6; opacity: 0.9; }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  position: sticky; top: 0; z-index: 500; /* Increased z-index */
  background: #fff; border-bottom: 1px solid #e6e6e6; width: 100%;
}
.filter-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .filter-inner { padding: 16px 46px; gap: 20px; } }

/* Tablet Specific Layout (2 Rows) */
@media (min-width: 768px) and (max-width: 1100px) {
  .filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .filter-left, .filter-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .filter-label-group { display: flex !important; }
  .desktop-filters { display: flex !important; flex-wrap: wrap; gap: 10px; }
  .mobile-filter-trigger { display: none !important; }
  .v-divider { display: block !important; margin: 0 8px; }
  .search-input-wrap { width: auto; min-width: 220px; }
}

/* Mobile Layout */
@media (max-width: 767px) {
  .filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .filter-left, .filter-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .filter-left { order: 1; }
  .filter-right { order: 2; }

  .mobile-filter-trigger {
    display: flex !important;
    align-self: flex-start;
    width: auto;
  }
  .desktop-filters { display: none !important; }
  .filter-label-group { display: none !important; }

  .search-input-wrap { width: 100%; order: 1; }
  .filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    order: 2;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  .sort-dropdown { flex: 1; }
  .sort-dropdown .dropdown-btn { width: auto; min-width: 160px; }
  .view-toggles { margin-left: auto; display: flex !important; }
  .v-divider { display: none !important; }
}

/* Desktop Layout */
@media (min-width: 1101px) {
  .filter-inner { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .filter-left, .filter-right { display: flex !important; align-items: center !important; gap: 12px; width: auto; flex-wrap: wrap; }
  .filter-label-group { display: flex !important; }
  .desktop-filters { display: flex !important; gap: 10px; flex-wrap: wrap; }
  .mobile-filter-trigger { display: none !important; }
}

.filter-label-group {
  display: none; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
}
.desktop-filters { display: none; } /* Default hidden, shown in media queries */

/* Dropdown */
.dropdown { position: relative; }
.dropdown-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #f8f8f8; border: 1px solid #e6e6e6;
  font-size: 13px; font-weight: 500; min-width: 130px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  border-radius: 4px;
}
.dropdown-btn:hover { border-color: #000; }
.dropdown.open .dropdown-btn { border-color: #000; background: #fff; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 4px; background: #fff; border: 1px solid #e6e6e6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 60; min-width: 160px;
}
.dropdown.open .dropdown-content { display: block; }
.dropdown-item { padding: 10px 16px; font-size: 13px; color: #666; cursor: pointer; white-space: nowrap; }
.dropdown-item:hover, .dropdown-item.selected { background: #f8f8f8; color: #000; }
.align-right { left: auto; right: 0; }

/* Search */
.search-input-wrap { position: relative; width: 100%; }
@media (min-width: 480px) { .search-input-wrap { width: 220px; } }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; }
.search-input-wrap input {
  width: 100%; padding: 12px 12px 12px 36px; font-size: 13px;
  background: #f8f8f8; border: 1px solid #e6e6e6; outline: none;
  transition: border-color 0.2s; font-family: inherit;
  border-radius: 4px;
}
.search-input-wrap input:focus { border-color: #000; background: #fff; }
.v-divider { width: 1px; height: 24px; background: #e6e6e6; display: none; }
@media (min-width: 768px) { .v-divider { display: block; } }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.view-toggles { display: none; align-items: center; background: #f8f8f8; border: 1px solid #e6e6e6; border-radius: 4px; overflow: hidden; }
@media (min-width: 480px) { .view-toggles { display: flex; } }
.view-btn { padding: 8px 12px; color: #aaa; display: flex; align-items: center; transition: all 0.2s; background: transparent; border: none; cursor: pointer; }
.view-btn.active { background: #000; color: #fff; }
.view-btn:not(.active):hover { color: #000; }
.mobile-filter-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 1px solid #e6e6e6; font-size: 13px;
  font-weight: 500; background: #fff; cursor: pointer; font-family: inherit;
  border-radius: 4px;
}
@media (min-width: 1100px) { .mobile-filter-trigger { display: none; } }



/* ── Listing Grid ──────────────────────────────────────────── */
.listing-section { padding: 40px 0 80px; background: #fff; }
.listing-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .listing-container { padding: 0 46px; } }
.results-header { margin-bottom: 24px; }
.results-header p { font-size: 13px; color: #888; }
.listing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px)  { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

/* Loading State */
.listing-grid { transition: opacity 0.3s ease; }
.listing-grid.pyb-loading { opacity: 0.5; pointer-events: none; }

/* Boat Card */
.boat-card {
  background: #f8f8f8; border: 1px solid transparent;
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s ease;
}
.boat-card:hover { border-color: #e6e6e6; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.card-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #ddd; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.boat-card:hover .card-img-wrap img { transform: scale(1.05); }
.price-badge {
  position: absolute; bottom: 0; left: 0;
  background: #fff; padding: 8px 16px; font-size: 14px; font-weight: 700; color: #000; z-index: 5;
}
.item-sold .card-img-wrap img { filter: grayscale(1); }
.sold-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.sold-overlay span {
  background: #000; color: #fff; padding: 8px 16px; font-size: 14px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
}
.card-content { display: flex; flex-direction: column; flex-grow: 1; gap: 12px; }
.card-name { font-size: 18px; font-weight: 500; line-height: 1.3; }
.boat-card:hover .card-name { text-decoration: underline; text-underline-offset: 4px; }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: #888; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px;
}
.meta-v-sep { color: #ddd; font-weight: 300; }
.card-desc {
  font-size: 14px; color: #464646; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-primary, .btn-secondary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; transition: all 0.2s; font-family: inherit; cursor: pointer; border: none;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #222; }
.btn-secondary { background: #fff; color: #000; border: 1px solid #d8d8d8; }
.btn-secondary:hover { border-color: #000; }
.btn-secondary.disabled { opacity: 0.5; cursor: default; pointer-events: none; }

/* List view mode */
.listing-grid.list-mode { grid-template-columns: 1fr; max-width: 1280px; margin: 0 auto; }
.list-mode .boat-card { flex-direction: row; align-items: stretch; gap: 24px; }
.list-mode .card-img-wrap { width: 320px; height: auto; flex-shrink: 0; aspect-ratio: unset; }
.list-mode .card-name { font-size: 22px; }
.list-mode .card-desc { -webkit-line-clamp: unset; line-clamp: unset; }
.list-mode .card-actions { justify-content: flex-start; }
.list-mode .btn-primary, .list-mode .btn-secondary { flex: 0 1 auto; min-width: 160px; }
@media (max-width: 767px) { .list-mode .boat-card { flex-direction: column; } .list-mode .card-img-wrap { width: 100%; } }

/* No results */
.pyb-no-results { grid-column: 1/-1; padding: 80px 0; text-align: center; color: #888; font-size: 16px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { margin-top: 80px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.pag-btn {
  padding: 12px 24px; border: 1px solid #e6e6e6; font-size: 13px;
  font-weight: 500; background: transparent; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.pag-btn:not(.disabled):hover { background: #000; color: #fff; }
.pag-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.pag-pages { display: flex; gap: 4px; }
.pag-num {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #e6e6e6; font-size: 13px; font-weight: 500;
  background: transparent; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.pag-num.active { background: #000; color: #fff; border-color: #000; }
.pag-num:not(.active):hover { background: #f8f8f8; }

/* ── Mobile Filter Drawer ──────────────────────────────────── */
.mobile-filters-drawer { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
.mobile-filters-drawer.open { visibility: visible; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.3s; }
.mobile-filters-drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute; bottom: 0; left: 0; right: 0; background: #fff;
  border-radius: 12px 12px 0 0; max-height: 90vh;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important; flex-direction: column !important;
}
.mobile-filters-drawer.open .drawer-panel { transform: translateY(0); }
.drawer-handle { width: 40px; height: 4px; background: #e5e5e5; border-radius: 2px; margin: 12px auto 4px; }
.drawer-header { padding: 12px 24px; display: flex !important; align-items: center; justify-content: space-between; border-bottom: 1px solid #f5f5f5; }
.drawer-header h3 { font-size: 15px; font-weight: 500; color: #111; margin: 0; }
.drawer-close-btn { color: #000 !important; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; padding: 8px; }
.drawer-content { 
  display: flex !important; flex-direction: column !important; gap: 32px !important;
  padding: 24px !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch;
  flex: 1; min-height: 300px;
}
.filter-group { display: block !important; margin-bottom: 8px; }
.filter-group label { display: block !important; font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; color: #888; margin-bottom: 16px; }
.pill-grid { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; }
.pill { padding: 12px 16px; background: #f5f6f7; border-radius: 2px; font-size: 12px; color: #444; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; font-family: inherit; }
.pill.active { background: #000; color: #fff; border-color: #000; }
.drawer-footer { padding: 16px 20px; border-top: 1px solid #f5f5f5; display: flex !important; gap: 12px; background: #fff; }
.btn-clear, .btn-apply { flex: 1; padding: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; border-radius: 2px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-clear { background: #fff; border: 1px solid #e5e5e5; color: #000; }
.btn-apply { background: #000; color: #fff; border: 1px solid #000; }
.btn-apply:hover { opacity: 0.9; }

/* ── Home Boats ─────────────────────────────────────────────── */
.pyb-home-boats { width: 100%; }
.home-boats-header { margin-bottom: 40px; }
.home-boats-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: #888; font-weight: 500; margin-bottom: 12px; }
.home-boats-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.home-boats-title { font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; max-width: 480px; }
@media (min-width: 768px) { .home-boats-title { font-size: 36px; } }
.home-boats-cta {
  display: inline-flex; align-items: center; padding: 14px 28px;
  background: #000; color: #fff; border-radius: 9999px; font-size: 15px;
  font-weight: 600; white-space: nowrap; transition: background 0.2s; text-decoration: none; flex-shrink: 0;
}
.home-boats-cta:hover { background: #222; color: #fff; }
.home-boats-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .home-boats-grid { grid-template-columns: repeat(3, 1fr); } }
.home-boat-card { display: flex; flex-direction: column; gap: 16px; }
.home-boat-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: #e5e5e5; border-radius: 2px; }
.home-boat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.home-boat-card:hover .home-boat-img-wrap img { transform: scale(1.04); }
.home-boat-content { display: flex; flex-direction: column; gap: 12px; }
.home-boat-title { font-size: 22px; font-weight: 500; }
.home-boat-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.home-boat-badge { padding: 4px 12px; background: #f0f0f0; border-radius: 9999px; font-size: 12px; color: #555; font-weight: 500; }
.home-boat-desc { font-size: 14px; color: #555; line-height: 1.6; }
.home-boat-cta {
  display: inline-flex; align-items: center; padding: 14px 28px;
  background: #000; color: #fff; border-radius: 9999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s; align-self: flex-start;
}
.home-boat-cta:hover { background: #222; color: #fff; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-bar { border-bottom: 1px solid #e6e6e6; background: #fff; position: sticky; top: 0; z-index: 30; }
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .breadcrumb-inner { padding: 0 46px; height: 60px; } }
.back-link { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #777; transition: color 0.2s; }
.back-link:hover { color: #000; }
.back-label-full { display: none; }
.back-label-short { display: inline; }
@media (min-width: 640px) { .back-label-full { display: inline; } .back-label-short { display: none; } }
.share-btn { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #000; background: transparent; border: none; cursor: pointer; font-family: inherit; }
.share-label { display: none; }
@media (min-width: 640px) { .share-label { display: inline; } }

/* ── Detail Page ────────────────────────────────────────────── */
.page-main { animation: pybFadeIn 0.5s ease; }
@keyframes pybFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.page-container { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
@media (min-width: 768px) { .page-container { padding: 32px 46px; } }
.listing-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .listing-header { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; } }
.listing-title-group { display: flex; flex-direction: column; gap: 8px; }
.listing-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: 0.06em; }
.meta-sep { color: #bbb; font-size: 14px; }
.meta-badge { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid #b0bec5; border-radius: 4px; font-size: 10px; font-weight: 600; color: #546e7a; letter-spacing: 0.1em; }
.listing-title { font-size: 28px; font-weight: 500; color: #000; line-height: 1.1; }
@media (min-width: 768px)  { .listing-title { font-size: 40px; } }
@media (min-width: 1024px) { .listing-title { font-size: 48px; } }
.listing-price-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; }
@media (min-width: 768px) { .listing-price-group { align-items: flex-end; } }
.listing-price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
@media (min-width: 768px) { .listing-price-row { align-items: flex-end; } }
.listing-price { font-size: 22px; font-weight: 700; color: #000; line-height: 1.1; }
@media (min-width: 768px)  { .listing-price { font-size: 26px; } }
@media (min-width: 1024px) { .listing-price { font-size: 30px; } }
.listing-price-label { font-size: 11px; color: #888; }
.listing-price-secondary { font-size: 17px; font-weight: 600; color: #444; }
.listing-price-month { margin-top: 4px; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
@media (min-width: 768px) { .gallery-section { gap: 16px; margin-bottom: 48px; } }
.gallery-main { width: 100%; height: 300px; position: relative; border-radius: 4px; overflow: hidden; background: #e5e5e5; }
@media (min-width: 640px)  { .gallery-main { height: 400px; } }
@media (min-width: 768px)  { .gallery-main { height: 500px; } }
@media (min-width: 1024px) { .gallery-main { height: 600px; } }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; display: block; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); color: #fff; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.main-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.88); border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  width: 44px; height: 44px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.25s, transform 0.2s;
}
.gallery-main:hover .main-nav { opacity: 1; }
.main-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.main-nav-left  { left: 14px; }
.main-nav-right { right: 14px; }
@media (max-width: 640px) { .main-nav { opacity: 1; width: 36px; height: 36px; } }
.gallery-thumbs-wrapper.carousel-active {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.gallery-thumbs-track {
  overflow: hidden;
  flex: 1;
}
.gallery-thumbs {
  display: flex !important;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 0;
  will-change: transform;
}
@media (min-width: 768px) { .gallery-thumbs { gap: 16px; } }

.thumb-nav {
  width: 32px; height: 32px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.thumb-nav:hover { background: #000; color: #fff; border-color: #000; }
.thumb-nav.disabled { opacity: 0; pointer-events: none; }

.thumb { flex-shrink: 0; width: 80px; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
@media (min-width: 640px)  { .thumb { width: 100px; } }
@media (min-width: 768px)  { .thumb { width: 140px; } }
@media (min-width: 1024px) { .thumb { width: 160px; } }
.thumb:hover { border-color: #ccc; }
.thumb.active { border-color: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Content Grid ───────────────────────────────────────────── */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .content-grid { grid-template-columns: 2fr 1fr; gap: 48px; } }
.content-left { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .content-left { gap: 48px; } }

/* Quick specs */
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding: 24px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
@media (min-width: 768px) { .quick-specs { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; } }
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 768px) { .spec-label { font-size: 12px; } }
.spec-value { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: #111; }
@media (min-width: 768px) { .spec-value { font-size: 18px; } }

/* Section heading */
.section-heading { font-size: 20px; font-weight: 500; color: #000; margin-bottom: 12px; }
@media (min-width: 768px) { .section-heading { font-size: 24px; margin-bottom: 16px; } }
.boat-subtitle { margin-bottom: 12px; }
.description-text { font-size: 14px; color: #464646; line-height: 1.75; }
@media (min-width: 768px) { .description-text { font-size: 16px; line-height: 1.8; } }
.description-text p + p { margin-top: 14px; }

/* Specs grid */
.specs-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .specs-grid { grid-template-columns: 1fr 1fr; gap: 0 48px; } }
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
@media (min-width: 768px) { .spec-row { font-size: 16px; padding: 12px 0; } }
.spec-row-label { color: #888; flex-shrink: 0; margin-right: 12px; }
.spec-row-value { font-weight: 500; text-align: right; }

/* Features */
.features-section { margin-top: 32px; }
.features-heading { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
.feature-item { display: flex; align-items: center; gap: 12px; color: #555; font-size: 14px; }
.feature-check { width: 20px; height: 20px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #000; flex-shrink: 0; }

/* Video */
.video-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid #f0f0f0; }
.video-wrapper { aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 4px; overflow: hidden; }
.video-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Reviews */
.reviews-interest-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 48px; border-top: 1px solid #f0f0f0; }
@media (min-width: 768px) { .reviews-interest-grid { grid-template-columns: 1fr 1fr; } }
.reviews-section { display: flex; flex-direction: column; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.reviews-list { max-height: 400px; overflow-y: auto; margin-bottom: 24px; display: flex; flex-direction: column; gap: 24px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #ccc #f5f5f5; }
.reviews-list::-webkit-scrollbar { width: 6px; }
.reviews-list::-webkit-scrollbar-track { background: #f5f5f5; }
.reviews-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.review-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid #f0f0f0; }
.review-item:last-child { border-bottom: none; }
.review-item.new-review { animation: pybFadeIn 0.4s ease; }
.review-meta { display: flex; align-items: center; justify-content: space-between; }
.review-user { font-weight: 500; font-size: 14px; }
.review-date  { font-size: 13px; color: #888; }
.review-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.review-comment { font-size: 13px; color: #555; line-height: 1.6; }
.review-form-section { padding-top: 24px; border-top: 1px solid #e5e5e5; }
.form-heading { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.review-form { display: flex; flex-direction: column; gap: 12px; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; background: #fff; font-family: inherit; font-size: 14px; color: #111; outline: none; transition: border-color 0.2s; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: #000; }
.rating-selector { display: flex; align-items: center; gap: 12px; }
.rating-label { font-size: 14px; font-weight: 500; color: #555; }
.star-selector { display: flex; gap: 4px; }
.star-btn { font-size: 22px; color: #d1d5db; cursor: pointer; transition: color 0.15s, transform 0.15s; line-height: 1; }
.star-btn.active { color: #f59e0b; }
.star-btn:hover { transform: scale(1.2); }
.btn-submit-review { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: #000; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: none; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.btn-submit-review:hover { background: #222; }

/* Interest */
.interest-section { display: flex; flex-direction: column; }
.interest-card { background: #f8f8f8; border: 1px solid #e6e6e6; border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.interest-total { display: flex; align-items: center; gap: 16px; }
.interest-icon { width: 48px; height: 48px; background: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.interest-number { display: block; font-size: 32px; font-weight: 700; color: #000; line-height: 1; }
.interest-sub { display: block; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.interest-divider { width: 100%; height: 1px; background: #e5e5e5; }
.interest-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.interest-stat { display: flex; flex-direction: column; gap: 4px; }
.interest-stat-value { font-size: 20px; font-weight: 600; color: #000; }
.interest-stat-value.green { color: #16a34a; }
.interest-stat-label { font-size: 12px; color: #888; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.content-right { min-width: 0; }
.sticky-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: #f8f8f8; border: 1px solid #e6e6e6; border-radius: 4px; padding: 32px; }
.contact-heading { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.contact-subtext { font-size: 14px; color: #888; margin-bottom: 24px; line-height: 1.6; }
.contact-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-call, .btn-enquiry { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; transition: background 0.2s, color 0.2s; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-call { background: #000; color: #fff; border: none; }
.btn-call:hover { background: #222; color: #fff; }
.btn-enquiry { background: #fff; color: #000; border: 1px solid #000; }
.btn-enquiry:hover { background: #f9f9f9; color: #000; }

.contact-info-list {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-info-label {
  font-size: 14px;
  color: #888;
}
.contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
.contact-info-value--green {
  color: #16a34a;
}
.contact-info-value a { color: inherit; text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

.contact-ref {
  margin-top: 12px;
  text-align: center;
}
.contact-ref p {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Charter Benefits Card ---- */
.charter-benefits-card {
  background: #e8f0fe;
  border-radius: 8px;
  padding: 24px 28px;
}
.charter-benefits-heading {
  font-size: 17px;
  font-weight: 700;
  color: #1a3c6e;
  margin-bottom: 16px;
}
.charter-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.charter-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1a3c6e;
}
.charter-benefits-list li svg {
  flex-shrink: 0;
  color: #2a5ccc;
  stroke-width: 2.5;
}
/* ── Related Boats ──────────────────────────────────────────── */
.related-section { margin-top: 80px; padding-top: 48px; border-top: 1px solid #e6e6e6; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { cursor: pointer; }
.related-img-wrap { aspect-ratio: 3/2; background: #e5e5e5; overflow: hidden; margin-bottom: 16px; border-radius: 2px; }
.related-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.related-card:hover .related-img-wrap img { transform: scale(1.05); }
.related-name { font-size: 18px; font-weight: 500; color: #000; }
.related-card:hover .related-name { text-decoration: underline; }
.related-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.related-year  { font-size: 14px; color: #888; }
.related-price { font-size: 16px; font-weight: 700; color: #000; }

/* ── Sticky Mobile CTA ──────────────────────────────────────── */
.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); transition: transform 0.3s ease, opacity 0.3s ease; }
@media (min-width: 1024px) { .sticky-mobile-cta { display: none; } }
.sticky-mobile-cta.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.sticky-cta-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.sticky-price-info { display: flex; flex-direction: column; flex-shrink: 0; }
.sticky-from { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; }
.sticky-price-value { font-size: 18px; font-weight: 700; color: #000; }
.sticky-cta-buttons { display: flex; gap: 8px; flex: 1; }
.sticky-btn-call, .sticky-btn-enquiry { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 4px; transition: all 0.2s; text-decoration: none; font-family: inherit; }
.sticky-btn-call { background: #000; color: #fff; border: none; }
.sticky-btn-call:hover { background: #222; color: #fff; }
.sticky-btn-enquiry { background: #fff; color: #000; border: 2px solid #000; }
.sticky-btn-enquiry:hover { background: #f9f9f9; color: #000; }
.sticky-label-full { display: none; }
.sticky-label-short { display: inline; }
@media (min-width: 640px) { .sticky-label-full { display: inline; } .sticky-label-short { display: none; } }
/* Support for theme icons (preventing massive SVGs) */
.page-main svg,
.pyb-listing-page svg {
  height: auto !important;
  max-width: 100% !important;
}

/* Specific fix for theme/Elementor icons known to blow up */
.elementor-icon svg,
.elementor-social-icon svg,
.elementor-widget-icon-list svg,
.footer-wrap svg,
.site-footer svg {
  width: 24px !important;
  max-width: 24px !important;
}

/* My specific boat page icons */
.hero-section svg,
.listing-header svg,
.gallery-section svg,
.breadcrumb-bar svg,
.filter-bar svg,
.contact-card svg {
  width: 16px !important;
}
.main-nav svg { width: 20px !important; }
.thumb-nav svg { width: 16px !important; }




.pyb-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pyb-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

