/*Listings tabs*/

.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.tab-nav li {
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  opacity: 0.7;
}

.tab-nav li:hover {
  opacity: 1;
}

.tab-nav li.active {
  opacity: 1;
  font-weight: 600;
  border-bottom: 2px solid currentColor;
}

.listing-detail h1 {
  margin-bottom: 0.25em;
}

.listing-price {
  font-size: 1.4rem;
  font-weight: 600;
}

.listing-location {
  opacity: 0.8;
}

.listing-tabs {
  margin-top: 3rem;
}


#inner-wrap {
  background: #132A42;
}

/* Breadcrumb: same look as the live site (small Barlow, cream, underlined
   links), inside the content container. Vertical padding is roughly half of
   live's (~69px above / ~61px below). */
.listing-breadcrumb {
  font-family: 'Barlow', sans-serif;
  font-size: var(--global-kb-font-size-sm, 0.8rem);
  line-height: 1.6;
  color: #f8f4eb;
  margin: 0;
  /* the .site-container already adds ~32px above, so only a hair on top */
  padding: 0.2rem 0 1.9rem;
}

.listing-breadcrumb a {
  color: inherit;
  text-decoration: underline;
}

/* Space between the Printable Version button and the description
   (live has ~97px; this gives roughly half). */
.listing-header .wp-block-buttons {
  margin-bottom: 3rem; /* collapses with the paragraph's own 17px margin → 48px */
}

.listing-two-column {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.listing-main-column {
  flex: 2 1 0%;
  min-width: 0;
}

.listing-sidebar-column {
  flex: 1 1 0%;
  min-width: 260px;
}

@media (max-width: 800px) {
  .listing-two-column {
    flex-direction: column;
  }
}

.listing-quick-facts {
  margin: 1.5rem 0;
}

.listing-videos {
  margin: 2rem 0;
}

.broker-photo-square {
  max-width: 200px;
  border-radius: 4px;
}

.listing-additional-block {
  margin-bottom: 1.5rem;
}

.listing-disclaimer {
  margin-top: 2rem;
  opacity: 0.85;
  font-size: 0.9rem;
}
/* ---------- index pages: shorter hero ----------
 * The page's Kadence "Hero" row is 560px min-height with 100/80px padding,
 * which pushed the first listing ~1,300px down the page. The row is page
 * content, so it's trimmed here for all four index pages at once. */
body.bl-index .entry-content > .kb-row-layout-wrap:first-child > .kt-row-column-wrap {
    min-height: 300px;
    padding-top: 56px;
    padding-bottom: 48px;
}
@media (max-width: 767px) {
    body.bl-index .entry-content > .kb-row-layout-wrap:first-child > .kt-row-column-wrap {
        min-height: 200px;
        padding-top: 48px;
        padding-bottom: 32px;
    }
}

/* ---------- detail page: similar yachts ---------- */
.bl-related {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.bl-related h2 {
    margin: 0 0 1.25rem;
}
.bl-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1023px) {
    .bl-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 539px) {
    .bl-related-grid { grid-template-columns: 1fr; }
}
.bl-related .bl-related__all {
    margin: 1.25rem 0 0;
    text-align: right;
}

/* ---------- index pages: category tabs + filter bar ---------- */
.bl-filters { margin: 0 0 1.5rem; }

.bl-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.bl-tabs .bl-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border: 1px solid rgba(248, 244, 235, .35); border-radius: 999px;
    color: #f8f4eb; background: transparent; text-decoration: none;
    font-family: Barlow, sans-serif; font-size: .95rem; line-height: 1.2;
}
.bl-tabs .bl-tab:hover { border-color: #f8f4eb; }
.bl-tabs .bl-tab.is-active { background: #f8f4eb; border-color: #f8f4eb; color: #071c32; font-weight: 600; }
.bl-tab__n { font-size: .8em; opacity: .7; }

.bl-filters__fields { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.bl-filters .bl-field { display: flex; flex-direction: column; gap: .3rem; margin: 0; min-width: 9.5rem; flex: 1 1 9.5rem; max-width: 14rem; }
.bl-filters .bl-field > span {
    font-family: Barlow, sans-serif; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #c9a96e;
}
.bl-filters .bl-field select,
.bl-filters .bl-field input[type="search"] { width: 100%; margin: 0; }
.bl-filters .bl-field--search { flex: 2 1 14rem; max-width: 20rem; }
.bl-filters__go { margin: 0; }
.bl-filters__go.is-js { display: none; }

.bl-filters .bl-filters__status {
    margin: 1rem 0 0; font-family: Barlow, sans-serif; font-size: .95rem; color: #f8f4eb;
}
.bl-filters .bl-filters__reset { margin-left: .75rem; }

/* sold page pagination (WordPress paginate_links) */
.pagination .page-numbers {
    display: inline-block; margin: 0 .15rem; padding: .35rem .7rem; border-radius: 6px;
    border: 1px solid rgba(248, 244, 235, .3); text-decoration: none;
}
.pagination .page-numbers.current { background: #f8f4eb; color: #071c32; border-color: #f8f4eb; }
.pagination .page-numbers.dots { border: 0; }

/* filter bar controls: one look for dropdowns and the keyword box */
.bl-filters .bl-field select,
.bl-filters .bl-field input[type="search"] {
    box-sizing: border-box; height: 2.75rem; padding: 0 2.2rem 0 .85rem;
    background-color: #52607a; color: #f8f4eb; border: 0; border-radius: 8px;
    font-family: Barlow, sans-serif; font-size: 1rem;
}
.bl-filters .bl-field input[type="search"] { padding-right: .85rem; }
.bl-filters .bl-field input[type="search"]::placeholder { color: rgba(248, 244, 235, .65); }
.bl-filters .bl-field select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f8f4eb' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center;
}
.bl-filters .bl-field select option { background: #2b3752; color: #f8f4eb; }
.bl-filters .bl-field select:focus-visible,
.bl-filters .bl-field input[type="search"]:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }

/* grid dims while a filter request is in flight */
.apbGridPosts { transition: opacity .15s ease; }
body.bl-loading .apbGridPosts { opacity: .45; pointer-events: none; }

/* "Similar yachts" block: fonts/colors pinned here rather than inherited from the theme */
.bl-related h2 {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 2.5rem; font-weight: 500; line-height: 1.2; text-transform: uppercase; color: #f8f4eb;
}
.bl-related .bl-related__all a {
    font-family: "Libre Baskerville", Georgia, serif; font-size: 1.0625rem; line-height: 1.6; color: #caa560;
}

/* ---------- filter bar: phone layout ---------- */
/* Desktop: the panel/top wrappers vanish and the fields flow in one row. */
.bl-filters__panel,
.bl-filters__top { display: contents; }
.bl-filters__toggle { display: none; }

@media (max-width: 767px) {
    .bl-filters__fields { flex-direction: column; align-items: stretch; gap: .75rem; }

    /* Filters button + Sort side by side, always visible */
    .bl-filters__top { display: flex; align-items: flex-end; gap: .75rem; order: -1; }
    .bl-filters__top .bl-field--sort { flex: 1 1 auto; max-width: none; min-width: 0; }
    .bl-filters__toggle {
        display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; margin: 0; padding: 0 1.1rem;
        border: 1px solid rgba(248, 244, 235, .45); border-radius: 8px; background: transparent; color: #f8f4eb;
        font-family: Barlow, sans-serif; font-size: 1rem; cursor: pointer;
    }
    .bl-filters__toggle[aria-expanded="true"] { background: #f8f4eb; color: #071c32; }
    .bl-filters__badge {
        min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; box-sizing: border-box;
        background: #caa560; color: #071c32; font-size: .8rem; font-weight: 600; line-height: 1.4rem; text-align: center;
    }
    .bl-filters__badge[hidden] { display: none; }

    /* The six fields collapse until the button is tapped */
    .bl-filters__panel { display: none; }
    .bl-filters__panel.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
    .bl-filters__panel .bl-field { max-width: none; min-width: 0; }
    .bl-filters__panel .bl-field--search { grid-column: 1 / -1; }

    /* Category tabs: one swipeable row instead of two wrapped rows */
    .bl-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .bl-tabs::-webkit-scrollbar { display: none; }
    .bl-tabs .bl-tab { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- "Show more" + back to filters ---------- */
.bl-more { text-align: center; margin: 2rem 0 1rem; }
.bl-more[hidden] { display: none; }
.bl-more .bl-more__btn {
    padding: .85rem 2rem; border: 1px solid #f8f4eb; border-radius: 999px; background: transparent; color: #f8f4eb;
    font-family: Barlow, sans-serif; font-size: 1.05rem; cursor: pointer;
}
.bl-more .bl-more__btn:hover { background: #f8f4eb; color: #071c32; }
.bl-more .bl-more__btn span { opacity: .7; font-size: .9em; }

.bl-backtop {
    position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: .65rem 1.1rem; border: 0; border-radius: 999px;
    background: #f8f4eb; color: #071c32; font-family: Barlow, sans-serif; font-size: .95rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35); cursor: pointer;
}
.bl-backtop[hidden] { display: none; }

/* ---------- index pages: breadcrumb strip on top, intro band below the listings ---------- */
/* (see includes/helpers/page-intro.php) */
body.bl-index .bl-band-top > .kt-row-column-wrap { padding-top: 14px; padding-bottom: 14px; }
body.bl-index .bl-band-top .wp-block-kadence-advancedheading { margin: 0 !important; padding: 0 !important; } /* Kadence's per-block spacing is more specific than a plain selector */
body.bl-index .bl-band-bottom { margin-top: 2rem; }

@media (max-width: 767px) {
    body.bl-index .bl-band-bottom > .kt-row-column-wrap { padding-top: 28px; padding-bottom: 32px; }
    body.bl-index .bl-band-bottom h2 { font-size: 1.6rem; line-height: 1.15; margin-bottom: .6rem; }
    body.bl-index .bl-band-bottom p { font-size: .95rem; line-height: 1.5; margin-bottom: .6rem; }
}


/* ---------- broker pages ---------- */
.bl-broker-page {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--global-content-width, 1300px); /* same cap as the header and boat pages */
    margin-left: auto; margin-right: auto;
    padding: 0 var(--global-content-edge-padding, 1.5rem) 3rem;
}
.bl-broker-head {
    display: flex; gap: 2rem; align-items: flex-start;
    margin: 1.5rem 0 0; padding-bottom: 2rem;
}
.bl-broker-head__photo { width: 220px; max-width: 34%; height: auto; border-radius: 8px; flex: none; }
.bl-broker-head__text { min-width: 0; }
.bl-broker-head h1 {
    margin: 0 0 .25rem;
    font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500; text-transform: uppercase; color: #f8f4eb;
}
.bl-broker-head__role {
    margin: 0 0 1rem; color: #caa560;
    font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase;
}
.bl-broker-head__bio { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.0625rem; line-height: 1.7; color: #f8f4eb; }
.bl-broker-head__bio a { color: #caa560; }
.bl-broker-head__office { margin: 1.25rem 0 0; }
.bl-broker-head__office a { font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: #caa560; }
.bl-broker-listings { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 2rem; }
.bl-broker-listings h2 {
    margin: 0 0 1.25rem;
    font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 2.5rem; font-weight: 500; text-transform: uppercase; color: #f8f4eb;
}
.bl-broker-listings .bl-related__all { margin: 1.25rem 0 0; text-align: right; }
.bl-broker-listings .bl-related__all a { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.0625rem; color: #caa560; }
@media (max-width: 767px) {
    .bl-broker-head { flex-direction: column; gap: 1.25rem; }
    .bl-broker-head__photo { width: 180px; max-width: 60%; }
    .bl-broker-listings h2 { font-size: 2rem; }
}
/* boat page: photo + name are links to the broker's page */
.listing-broker-box .broker-photo-link { display: inline-block; line-height: 0; }
.listing-broker-box .broker-name a { color: inherit; text-decoration: none; }
.listing-broker-box .broker-name a:hover { text-decoration: underline; }
