/* ============================================================
   YSI BRICKS FRONTEND STYLES
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --ysi-primary:     #0a2342;
    --ysi-accent:      #ff7a36;
    --ysi-text:        #1a1a2e;
    --ysi-muted:       #64748b;
    --ysi-border:      #e2e8f0;
    --ysi-bg-light:    #f8fafc;
    --ysi-white:       #ffffff;
    --ysi-radius:      6px;
    --ysi-shadow:      0 2px 8px rgba(0,0,0,0.08);
    --ysi-shadow-hover:0 8px 24px rgba(0,0,0,0.14);
    --ysi-transition:  0.2s ease;
    --ysi-green:       #1a7f4e;
    --ysi-amber:       #d97706;
    --ysi-red:         #dc2626;
    --ysi-orange:      #ff7a36;  /* YSI brand orange — use this, NOT #ff7a36 which ACSS overrides */
}

/* ── Search Bar ────────────────────────────────────────────── */
.ysi-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#ysi-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid var(--ysi-border);
    border-radius: var(--ysi-radius);
    font-size: 15px;
    outline: none;
    transition: border-color var(--ysi-transition);
}

#ysi-search-input:focus {
    border-color: var(--ysi-accent);
}

/* ── Toolbar ───────────────────────────────────────────────── */
.ysi-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#ysi-result-count {
    color: var(--ysi-muted);
    font-size: 14px;
}

.ysi-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── View Toggle ───────────────────────────────────────────── */
.ysi-view-toggle {
    display: flex;
    border: 1px solid var(--ysi-border);
    border-radius: var(--ysi-radius);
    overflow: hidden;
}

.ysi-view-btn {
    background: var(--ysi-white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--ysi-muted);
    font-size: 16px;
    transition: all var(--ysi-transition);
}

.ysi-view-btn.active,
.ysi-view-btn:hover {
    background: var(--ysi-primary);
    color: var(--ysi-white);
}

/* ── Sort ──────────────────────────────────────────────────── */
#ysi-sort-select {
    padding: 8px 12px;
    border: 1px solid var(--ysi-border);
    border-radius: var(--ysi-radius);
    font-size: 14px;
    background: var(--ysi-white);
    cursor: pointer;
}

/* ── Filter Toggle Button ──────────────────────────────────── */
#ysi-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--ysi-primary);
    color: var(--ysi-white);
    border: none;
    border-radius: var(--ysi-radius);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--ysi-transition);
}

#ysi-filter-toggle:hover {
    background: #0d2f5c;
}

/* ── Filter Drawer ─────────────────────────────────────────── */
.ysi-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.ysi-drawer-open .ysi-filter-overlay {
    display: block;
}

#ysi-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--ysi-white);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

#ysi-filter-drawer.open {
    transform: translateX(0);
}

.ysi-filter-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ysi-border);
}

.ysi-filter-drawer__header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ysi-primary);
    margin: 0;
}

#ysi-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ysi-muted);
    line-height: 1;
    padding: 0;
}

.ysi-filter-group {
    margin-bottom: 20px;
}

.ysi-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ysi-muted);
    margin-bottom: 6px;
}

.ysi-filter-select,
.ysi-filter-range {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--ysi-border);
    border-radius: var(--ysi-radius);
    font-size: 14px;
    background: var(--ysi-white);
}

.ysi-filter-range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ysi-filter-group--exclusive {
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--ysi-border, #e2e8f0);
    margin-bottom: 4px;
}
.ysi-filter-exclusive-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--base-dark, #0a2342);
}
.ysi-filter-exclusive-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff7a36;
    cursor: pointer;
    flex-shrink: 0;
}
.ysi-filter-checklist {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--ysi-border, #e2e8f0);
    border-radius: 4px;
    padding: 4px 0;
    background: #fff;
}
.ysi-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ysi-text, #1a1a2e);
    transition: background 0.15s;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.ysi-checklist-item:hover { background: #f8fafc; }
.ysi-checklist-item input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #ff7a36;
    cursor: pointer; flex-shrink: 0;
}
.ysi-filter-checklist__empty { padding: 8px 12px; font-size: 13px; color: var(--ysi-muted, #64748b); }
.ysi-filter-hint { font-size: 11px; color: var(--ysi-muted, #64748b); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ysi-filter-drawer__footer {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ysi-border);
}

#ysi-filter-apply {
    flex: 1;
    padding: 10px;
    background: var(--ysi-primary);
    color: var(--ysi-white);
    border: none;
    border-radius: var(--ysi-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#ysi-reset-btn {
    padding: 10px 16px;
    background: none;
    border: 1px solid var(--ysi-border);
    border-radius: var(--ysi-radius);
    font-size: 14px;
    cursor: pointer;
    color: var(--ysi-muted);
}

/* ── Loading ───────────────────────────────────────────────── */
#ysi-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--ysi-muted);
}

.ysi-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--ysi-border);
    border-top-color: var(--ysi-primary);
    border-radius: 50%;
    animation: ysi-spin 0.7s linear infinite;
    margin-bottom: 12px;
}

@keyframes ysi-spin {
    to { transform: rotate(360deg); }
}

#ysi-results.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Results Grid ──────────────────────────────────────────── */
#ysi-results[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

#ysi-results[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Grid Card ─────────────────────────────────────────────── */
.ysi-card {
    display: block;
    background: var(--ysi-white);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: var(--ysi-shadow);
    text-decoration: none;
    color: var(--ysi-text);
    transition: box-shadow var(--ysi-transition), transform var(--ysi-transition);
}

.ysi-card:hover {
    box-shadow: var(--ysi-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--ysi-text);
}

.ysi-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--ysi-bg-light);
    border-radius: 0 !important;
}

.ysi-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0 !important;
}

.ysi-card:hover .ysi-card__image img {
    transform: scale(1.03);
}

.ysi-card__no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Exclusive ribbon — diagonal corner ── */
.ysi-card { position:relative; overflow:hidden; }
.ysi-card__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 86px;
    height: 86px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.ysi-card__ribbon span {
    position: absolute;
    display: block;
    width: 122px;
    padding: 6px 0;
    background: #ff7a36;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    top: 18px;
    left: -26px;
    transform: rotate(-45deg);
}

/* ── Price Reduced badge — bottom right of image ── */
.ysi-card__badges-br {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ysi-card__body {
    padding: 14px 16px 16px;
}

/* Title line 1: Make | Length Year */
.ysi-card__title-line1 {
    font-size: 13px;
    font-weight: 700;
    color: var(--base-dark, #0a2342);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 3px;
    transition: color 0.2s;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}
.ysi-card__title-left {
    flex: 1;
    min-width: 0;
}
.ysi-card__title-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral, #414042);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    font-style: italic;
    flex-shrink: 0;
}
.ysi-card:hover .ysi-card__title-line1 {
    color: #ff7a36;
}
.ysi-card__sep {
    color: #ff7a36;
    margin: 0 3px;
}

/* Title line 2: vessel name or model */
.ysi-card__title-line2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--base-dark, #0a2342);
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.ysi-card:hover .ysi-card__title-line2 {
    color: #ff7a36;
}

/* Footer: location left, price right */
.ysi-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--ysi-border, #e2e8f0);
    padding-top: 10px;
    margin-top: 4px;
}
.ysi-card__location {
    font-size: 12px;
    color: var(--ysi-muted, #64748b);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ysi-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #ff7a36;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── List Card ─────────────────────────────────────────────── */
.ysi-list-item {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 0;
    background: var(--ysi-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--ysi-shadow);
    text-decoration: none;
    color: var(--ysi-text);
    transition: box-shadow var(--ysi-transition);
}

.ysi-list-item:hover {
    box-shadow: var(--ysi-shadow-hover);
    text-decoration: none;
    color: var(--ysi-text);
}

.ysi-list-item__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--ysi-bg-light);
}

.ysi-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysi-list-item__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ysi-list-item__title-l1 {
    font-size: 12px;
    font-weight: 700;
    color: var(--base-dark, #0a2342);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.ysi-list-item__title-l2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--base-dark, #0a2342);
    margin: 0 0 8px;
    transition: color 0.2s;
}
.ysi-list-item:hover .ysi-list-item__title-l1,
.ysi-list-item:hover .ysi-list-item__title-l2 {
    color: #ff7a36;
}

.ysi-list-item__specs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ysi-muted);
}

.ysi-list-item__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.ysi-list-item__price {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    border-left: 1px solid var(--ysi-border);
    min-width: 140px;
}

.ysi-list-item__price-value {
    font-size: 22px;
    font-weight: 800;
    color: #ff7a36;
    margin-bottom: 8px;
}

.ysi-list-item__cta {
    font-size: 13px;
    color: var(--base-dark, #0a2342);
    font-weight: 600;
}

/* ── Badges ────────────────────────────────────────────────── */
.ysi-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ysi-white);
}

.ysi-badge--contract  { background: var(--base-dark, #0a2342); }
.ysi-badge--reduced   { background: transparent; color: #ff7a36; border: 2px solid #ff7a36; font-weight: 800; }
.ysi-badge--exclusive { background: #ff7a36; }
.ysi-badge--sold      { background: var(--ysi-red); }

/* ── No Results ────────────────────────────────────────────── */
.ysi-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ysi-muted);
}

.ysi-no-results a {
    color: var(--ysi-accent);
    font-weight: 600;
}

/* ── Load More ─────────────────────────────────────────────── */
#ysi-load-more {
    display: block;
    margin: 32px auto 0;
    padding: 12px 32px;
    background: var(--ysi-primary);
    color: var(--ysi-white);
    border: none;
    border-radius: var(--ysi-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ysi-transition);
}

#ysi-load-more:hover { background: #0d2f5c; }

/* ── Vessel Detail — Gallery ───────────────────────────────── */
.ysi-gallery {
    margin-bottom: 32px;
}

.ysi-gallery__main {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ysi-bg-light);
    margin-bottom: 10px;
}

.ysi-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysi-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--ysi-transition);
}

.ysi-gallery__nav:hover { background: rgba(0,0,0,0.75); }
.ysi-gallery__prev { left: 12px; }
.ysi-gallery__next { right: 12px; }

.ysi-gallery__strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.ysi-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--ysi-transition);
    border: 2px solid transparent;
}

.ysi-gallery__thumb.active,
.ysi-gallery__thumb:hover {
    opacity: 1;
    border-color: var(--ysi-accent);
}

/* ── Vessel Detail — Specs Table ───────────────────────────── */
.ysi-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ysi-specs-table th,
.ysi-specs-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--ysi-border);
    text-align: left;
}

.ysi-specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--ysi-muted);
    background: var(--ysi-bg-light);
}

.ysi-specs-table td {
    color: var(--ysi-text);
}

/* ── Broker Contact Box ────────────────────────────────────── */
.ysi-contact-box {
    background: var(--ysi-white);
    border: 1px solid var(--ysi-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.ysi-contact-box__headshot {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid var(--ysi-accent);
}

.ysi-contact-box__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ysi-primary);
    margin-bottom: 2px;
}

.ysi-contact-box__title {
    font-size: 13px;
    color: var(--ysi-muted);
    margin-bottom: 16px;
}

.ysi-contact-box__phone,
.ysi-contact-box__email {
    display: block;
    font-size: 14px;
    color: var(--ysi-primary);
    text-decoration: none;
    padding: 6px 0;
}

.ysi-contact-box__phone:hover,
.ysi-contact-box__email:hover {
    color: var(--ysi-accent);
}

/* ── Disclaimer ────────────────────────────────────────────── */
.ysi-disclaimer {
    font-size: 12px;
    color: var(--ysi-muted);
    line-height: 1.6;
    padding: 12px 16px;
    border-left: 3px solid var(--ysi-border);
    background: var(--ysi-bg-light);
    border-radius: 0 4px 4px 0;
    margin-top: 24px;
}

/* ── Broker Cards — Team Page ──────────────────────────────── */
.ysi-broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.ysi-broker-card {
    background: var(--ysi-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--ysi-shadow);
    text-align: center;
    transition: box-shadow var(--ysi-transition), transform var(--ysi-transition);
    text-decoration: none;
    color: var(--ysi-text);
    display: block;
}

.ysi-broker-card:hover {
    box-shadow: var(--ysi-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.ysi-broker-card__photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    background: var(--ysi-bg-light);
}

.ysi-broker-card__body {
    padding: 16px;
}

.ysi-broker-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ysi-primary);
    margin-bottom: 2px;
}

.ysi-broker-card__title {
    font-size: 13px;
    color: var(--ysi-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.ysi-broker-card__office {
    font-size: 12px;
    color: var(--ysi-muted);
    margin-bottom: 10px;
}

.ysi-broker-card__contact {
    font-size: 13px;
    color: var(--ysi-primary);
}

/* ── State Filter Buttons — Team Page ──────────────────────── */
.ysi-state-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ysi-state-filter-btn {
    padding: 8px 18px;
    border: 1px solid #ff7a36;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ysi-transition);
    color: #ff7a36;
}

.ysi-state-filter-btn.active,
.ysi-state-filter-btn:hover {
    background: #ff7a36;
    border-color: #ff7a36;
    color: #fff;
}

/* ── Broker Profile Page ───────────────────────────────────── */
.ysi-broker-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.ysi-broker-profile__sidebar {
    position: sticky;
    top: 100px;
}

.ysi-broker-profile__photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ysi-broker-profile__meta {
    margin-bottom: 20px;
}

.ysi-broker-profile__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--ysi-primary);
    margin-bottom: 4px;
}

.ysi-broker-profile__title {
    font-size: 15px;
    color: var(--ysi-accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.ysi-broker-profile__office {
    font-size: 14px;
    color: var(--ysi-muted);
    margin-bottom: 16px;
}

.ysi-broker-profile__contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ysi-primary);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--ysi-border);
}

.ysi-broker-profile__contact a:last-child {
    border-bottom: none;
}

.ysi-broker-profile__contact a:hover {
    color: var(--ysi-accent);
}

.ysi-broker-profile__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.ysi-broker-profile__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ysi-primary);
    color: var(--ysi-white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: background var(--ysi-transition);
}

.ysi-broker-profile__social a:hover {
    background: var(--ysi-accent);
    color: var(--ysi-white);
}

/* ── Office Locations ──────────────────────────────────────── */
.ysi-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ysi-office-card {
    background: var(--ysi-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--ysi-shadow);
    border-top: 4px solid #ff7a36;
}

.ysi-office-card--primary {
    border-top-color: #ff7a36 !important;
}

.ysi-office-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ysi-primary);
    margin-bottom: 12px;
}

.ysi-office-card__address {
    font-size: 14px;
    color: var(--ysi-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ysi-office-card__contact a {
    display: block;
    font-size: 14px;
    color: var(--ysi-primary);
    text-decoration: none;
    padding: 4px 0;
}

.ysi-office-card__contact a:hover {
    color: var(--ysi-accent);
}

.ysi-office-card__brokers {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ysi-border);
    font-size: 12px;
    color: var(--ysi-muted);
}

/* ── Zoho Form Placeholder ─────────────────────────────────── */
.ysi-inquiry-form {
    background: var(--ysi-bg-light);
    border: 2px dashed var(--ysi-border);
    border-radius: 0;
    padding: 32px;
    text-align: center;
    color: var(--ysi-muted);
    font-size: 14px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ysi-list-item {
        grid-template-columns: 120px 1fr;
    }

    .ysi-list-item__price {
        display: none;
    }

    .ysi-broker-profile {
        grid-template-columns: 1fr;
    }

    .ysi-broker-profile__sidebar {
        position: static;
    }

    #ysi-results[data-view="grid"] {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .ysi-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #ysi-results[data-view="grid"] {
        grid-template-columns: 1fr;
    }

    .ysi-list-item {
        grid-template-columns: 1fr;
    }

    .ysi-list-item__image {
        aspect-ratio: 16/9;
    }
}


/* ── Nav Whitespace Fix ────────────────────────────────────────────────────
   Bricks adds 90px padding-top to every .brxe-section by default.
   The fixed nav already offsets the body by 68px (nav height).
   Zeroing the first section's top padding removes the double-gap.
   Inner sections are unaffected — only :first-of-type is targeted.
   ─────────────────────────────────────────────────────────────────────── */

/* Homepage */
.page-id-3970 .brxe-section:first-of-type,

/* Vessel detail */
.single-ysi_vessel .brxe-section:first-of-type,

/* Broker profile (single) */
.single-ysi_broker .brxe-section:first-of-type,

/* Broker archive / Our Team */
.post-type-archive-ysi_broker .brxe-section:first-of-type,

/* News archive */
.page-id-3971 .brxe-section:first-of-type,

/* News single post */
.single-post .brxe-section:first-of-type,

/* Contact page */
.page-id-3974 .brxe-section:first-of-type,

/* About page */
.page-id-3973 .brxe-section:first-of-type,

/* Yacht search */
.page-id-3972 .brxe-section:first-of-type {
    padding-top: 0 !important;
}
/* ============================================================
   YSI Hybrid Grid Element — append to ysi-bricks.css
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.ysi-hg-wrap {
    width: 100%;
}

/* ── Filter tabs ─────────────────────────────────────────── */
.ysi-hg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ysi-hg-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: var(--base-dark, #1a2744);
    border: 2px solid var(--base-dark, #1a2744);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.ysi-hg-tab:hover,
.ysi-hg-tab--active {
    background: #ff7a36;
    border-color: #ff7a36;
    color: #ffffff;
}

/* ── Meta row ────────────────────────────────────────────── */
.ysi-hg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--neutral, #414042);
}

.ysi-hg-count strong {
    color: #ff7a36;
}

/* ── Grid ────────────────────────────────────────────────── */
.ysi-hg-grid {
    display: grid;
    gap: 24px;
}

.ysi-hg-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ysi-hg-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ysi-hg-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Propulsion badge (Hybrid/Electric) ──────────────────── */
.ysi-hg-propulsion-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.ysi-hg-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    color: #ffffff;
}

.ysi-hg-badge--hybrid {
    background: #1a7f4e; /* green */
}

.ysi-hg-badge--electric {
    background: #1d4ed8; /* blue */
}

/* Ensure card image is position:relative for badge overlay */
.ysi-hg-wrap .ysi-card__image {
    position: relative;
}

/* ── Load more ───────────────────────────────────────────── */
.ysi-hg-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.ysi-hg-load-more {
    display: inline-block;
    padding: 12px 36px;
    background: #ff7a36;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ysi-hg-load-more:hover {
    background: var(--base-dark, #1a2744);
}

/* ── Empty state ─────────────────────────────────────────── */
.ysi-hg-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--neutral, #414042);
    font-size: 15px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .ysi-hg-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .ysi-hg-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ysi-hg-grid--cols-2,
    .ysi-hg-grid--cols-3,
    .ysi-hg-grid--cols-4 { grid-template-columns: 1fr; }

    .ysi-hg-tabs { gap: 6px; }
    .ysi-hg-tab  { padding: 7px 14px; font-size: 12px; }
}

/* ── Hybrid Grid Loading State ─────────────────────────── */
.ysi-hg-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:60px 20px; color:#414042; font-size:14px; gap:16px; }
.ysi-hg-spinner { width:32px; height:32px; border:3px solid #e2e8f0; border-top-color:#ff7a36; border-radius:50%; animation:ysi-spin 0.7s linear infinite; }
@keyframes ysi-spin { to { transform:rotate(360deg); } }


/* ═══════════════════════════════════════════════════════════════
   YSI Brochure Gate
   ═══════════════════════════════════════════════════════════════ */

.ysi-brochure-gate {
    background: var(--ysi-white, #fff);
    border: 1px solid var(--ysi-border, #e2e8f0);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 40px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Card layout — centered narrow column */
.ysi-brochure-gate--card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

/* Inline layout — icon left, form right */
.ysi-brochure-gate--inline {
    flex-direction: row;
    align-items: flex-start;
    max-width: 860px;
}

/* Banner layout — full width, navy background */
.ysi-brochure-gate--banner {
    background: var(--base-dark, #0a1628);
    border: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 56px 40px;
}

.ysi-brochure-gate--banner .ysi-brochure-gate__icon {
    color: #ff7a36;
    background: rgba(255,122,54,.12);
}

.ysi-brochure-gate--banner .ysi-brochure-gate__heading {
    color: #fff;
}

.ysi-brochure-gate--banner .ysi-brochure-gate__sub {
    color: rgba(255,255,255,.72);
}

.ysi-brochure-gate--banner .ysi-brochure-gate__field label {
    color: rgba(255,255,255,.8);
}

.ysi-brochure-gate--banner .ysi-brochure-gate__field input {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}

.ysi-brochure-gate--banner .ysi-brochure-gate__field input::placeholder {
    color: rgba(255,255,255,.4);
}

.ysi-brochure-gate--banner .ysi-brochure-gate__privacy {
    color: rgba(255,255,255,.45);
}

/* Icon */
.ysi-brochure-gate__icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: rgba(255,122,54,.1);
    color: #ff7a36;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.ysi-brochure-gate__content {
    flex: 1;
    width: 100%;
}

.ysi-brochure-gate__heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--base-dark, #0a1628);
    margin: 0 0 10px;
    line-height: 1.3;
}

.ysi-brochure-gate__sub {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Form rows */
.ysi-brochure-gate__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ysi-brochure-gate__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.ysi-brochure-gate__field:last-of-type {
    margin-bottom: 20px;
}

.ysi-brochure-gate__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--base-dark, #0a1628);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ysi-brochure-gate__field input {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--ysi-border, #e2e8f0);
    background: #f8fafc;
    font-size: 15px;
    color: var(--base-dark, #0a1628);
    transition: border-color .18s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.ysi-brochure-gate__field input:focus {
    border-color: #ff7a36;
    background: #fff;
}

/* Button */
.ysi-brochure-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff7a36;
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .18s, opacity .18s;
    letter-spacing: .02em;
}

.ysi-brochure-gate__btn:hover {
    background: #e56c2d;
}

.ysi-brochure-gate__btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Messages */
.ysi-brochure-gate__msg {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
    line-height: 1.5;
}

.ysi-brochure-gate__msg--success {
    color: #16a34a;
    font-weight: 600;
}

.ysi-brochure-gate__msg--error {
    color: #dc2626;
}

/* Privacy note */
.ysi-brochure-gate__privacy {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ysi-brochure-gate--card .ysi-brochure-gate__row,
.ysi-brochure-gate--banner .ysi-brochure-gate__row {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.ysi-brochure-gate--card .ysi-brochure-gate__field,
.ysi-brochure-gate--banner .ysi-brochure-gate__field {
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .ysi-brochure-gate {
        padding: 28px 20px;
    }

    .ysi-brochure-gate__row {
        grid-template-columns: 1fr;
    }

    .ysi-brochure-gate--inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════════════════════
   YSI Careers Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared ──────────────────────────────────────────────────── */
.ysi-careers__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

.ysi-careers__section {
    padding: 80px 0;
    background: #fff;
}

.ysi-careers__section--dark {
    background: var(--base-dark, #0a1628);
}

.ysi-careers__section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.ysi-careers__eyebrow,
.ysi-careers__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ff7a36;
    margin: 0 0 12px;
}

.ysi-careers__label--orange { color: #ff7a36; }

.ysi-careers__h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--base-dark, #0a1628);
    margin: 0 0 16px;
    line-height: 1.25;
}

.ysi-careers__h2--light { color: #fff; }

.ysi-careers__section-sub {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.ysi-careers__section-sub--light {
    color: rgba(255,255,255,.65);
}

.ysi-careers__body {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 16px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.ysi-careers__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
    white-space: nowrap;
}

.ysi-careers__btn--primary {
    background: #ff7a36;
    color: #fff;
    border: 2px solid #ff7a36;
}

.ysi-careers__btn--primary:hover {
    background: #e56c2d;
    border-color: #e56c2d;
    color: #fff;
    text-decoration: none;
}

.ysi-careers__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}

.ysi-careers__btn--ghost:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.ysi-careers__btn--ghost-light {
    background: transparent;
    color: rgba(255,255,255,.8);
    border: 2px solid rgba(255,255,255,.3);
}

.ysi-careers__btn--ghost-light:hover {
    border-color: #ff7a36;
    color: #ff7a36;
    text-decoration: none;
}

.ysi-careers__btn--full {
    width: 100%;
}

/* ── Hero ────────────────────────────────────────────────────── */
.ysi-careers__hero {
    background: var(--base-dark, #0a1628);
    padding: 100px 32px 80px;
    text-align: center;
}

.ysi-careers__hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.ysi-careers__h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 20px;
}

.ysi-careers__hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ysi-careers__hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Pillars grid ────────────────────────────────────────────── */
.ysi-careers__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ysi-careers__pillar {
    padding: 32px 28px;
    background: #f8fafc;
    border-top: 3px solid #ff7a36;
}

.ysi-careers__pillar-icon {
    color: #ff7a36;
    margin-bottom: 16px;
}

.ysi-careers__pillar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--base-dark, #0a1628);
    margin: 0 0 10px;
    line-height: 1.3;
}

.ysi-careers__pillar-body {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ── Open positions ──────────────────────────────────────────── */
.ysi-careers__positions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 32px;
}

.ysi-careers__position {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    padding: 24px 28px;
    transition: background .18s;
}

.ysi-careers__position:hover {
    background: rgba(255,255,255,.08);
}

.ysi-careers__position-location {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
}

.ysi-careers__position-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255,122,54,.2);
    color: #ff7a36;
    vertical-align: middle;
}

.ysi-careers__position-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.ysi-careers__position-note {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0;
}

.ysi-careers__position-right {
    flex-shrink: 0;
}

.ysi-careers__general-apply {
    text-align: center;
    padding: 32px;
    border: 1px dashed rgba(255,255,255,.2);
}

.ysi-careers__general-apply p {
    color: rgba(255,255,255,.6);
    font-size: 15px;
    margin: 0 0 16px;
}

/* ── Two-col requirements ────────────────────────────────────── */
.ysi-careers__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.ysi-careers__req-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ysi-careers__req-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.5;
}

.ysi-careers__req-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── Apply card ──────────────────────────────────────────────── */
.ysi-careers__apply-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #ff7a36;
    padding: 36px 32px;
}

.ysi-careers__apply-card-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--base-dark, #0a1628);
    margin: 0 0 12px;
}

.ysi-careers__apply-card-body {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 24px;
}

.ysi-careers__apply-email-display {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin: 12px 0;
    letter-spacing: .02em;
}

.ysi-careers__apply-card-note {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 12px 0 0;
    text-align: center;
}

/* ── Closing CTA bar ─────────────────────────────────────────── */
.ysi-careers__cta-bar {
    background: #ff7a36;
    padding: 48px 32px;
}

.ysi-careers__cta-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.ysi-careers__cta-heading {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.ysi-careers__cta-sub {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    margin: 0;
}

.ysi-careers__cta-bar .ysi-careers__btn--primary {
    background: #fff;
    color: #ff7a36;
    border-color: #fff;
    flex-shrink: 0;
}

.ysi-careers__cta-bar .ysi-careers__btn--primary:hover {
    background: var(--base-dark, #0a1628);
    border-color: var(--base-dark, #0a1628);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ysi-careers__pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    .ysi-careers__two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ysi-careers__h1 { font-size: 30px; }
    .ysi-careers__h2 { font-size: 26px; }
}

@media (max-width: 600px) {
    .ysi-careers__pillars {
        grid-template-columns: 1fr;
    }
    .ysi-careers__position {
        flex-direction: column;
        align-items: flex-start;
    }
    .ysi-careers__hero { padding: 60px 20px 48px; }
    .ysi-careers__section { padding: 56px 0; }
    .ysi-careers__container { padding: 0 20px; }
    .ysi-careers__cta-inner { flex-direction: column; text-align: center; }
}

/* Careers button link color override */
.ysi-careers__btn,
.ysi-careers__btn:link,
.ysi-careers__btn--primary,
.ysi-careers__btn--primary:link,
.ysi-careers__cta-bar .ysi-careers__btn--primary,
.ysi-careers__cta-bar .ysi-careers__btn--primary:link,
.ysi-careers__btn--ghost,
.ysi-careers__btn--ghost:link,
.ysi-careers__btn--ghost-light,
.ysi-careers__btn--ghost-light:link,

/* ── Careers button link color overrides ──────────────────── */
.ysi-careers__btn,
.ysi-careers__btn:link,
.ysi-careers__btn:visited {
    color: #fff !important;
    text-decoration: none !important;
}
.ysi-careers__btn--primary,
.ysi-careers__btn--primary:link,
.ysi-careers__btn--primary:visited {
    color: #fff !important;
}
.ysi-careers__cta-bar .ysi-careers__btn--primary,
.ysi-careers__cta-bar .ysi-careers__btn--primary:link,
.ysi-careers__cta-bar .ysi-careers__btn--primary:visited {
    color: #ff7a36 !important;
}
.ysi-careers__btn--ghost,
.ysi-careers__btn--ghost:link,
.ysi-careers__btn--ghost:visited {
    color: #fff !important;
}
.ysi-careers__btn--ghost-light,
.ysi-careers__btn--ghost-light:link,
.ysi-careers__btn--ghost-light:visited {
    color: rgba(255,255,255,.8) !important;
}

/* ═══════════════════════════════════════════════════════════════
   YSI Careers Banner
   ═══════════════════════════════════════════════════════════════ */

.ysi-careers-banner {
    width: 100%;
    padding: 14px 32px;
}

.ysi-careers-banner--navy   { background: var(--base-dark, #0a1628); }
.ysi-careers-banner--orange { background: #ff7a36; }
.ysi-careers-banner--dark   { background: #414042; }

.ysi-careers-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ysi-careers-banner__msg {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    letter-spacing: .01em;
}

.ysi-careers-banner__cta {
    font-size: 14px;
    font-weight: 700;
    color: #ff7a36 !important;
    text-decoration: none !important;
    letter-spacing: .03em;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,122,54,.4);
    padding-bottom: 1px;
    transition: border-color .18s, color .18s;
}

.ysi-careers-banner--orange .ysi-careers-banner__cta {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.4);
}

.ysi-careers-banner__cta:hover {
    border-bottom-color: #ff7a36;
    text-decoration: none !important;
}

.ysi-careers-banner--orange .ysi-careers-banner__cta:hover {
    border-bottom-color: #fff;
}

@media (max-width: 600px) {
    .ysi-careers-banner {
        padding: 12px 20px;
        text-align: center;
    }
    .ysi-careers-banner__inner {
        flex-direction: column;
        gap: 6px;
    }
}
