/* ---- Context Switcher ---- */
.ctx-switcher {
    position: relative;
}
.ctx-switcher__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    position: relative;
}
.ctx-switcher__btn:hover {
    background: var(--hover-bg, #f3f4f6);
}
.ctx-switcher--static {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}
.ctx-switcher__avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
}
.ctx-switcher__avatar--placeholder {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--accent, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctx-switcher__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ctx-switcher__caret {
    opacity: .5;
    flex-shrink: 0;
}
.ctx-switcher__other-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.ctx-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
}
.ctx-panel__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    text-align: left;
}
.ctx-panel__item:hover { background: #f9fafb; }
.ctx-panel__item--active { background: #eff6ff; font-weight: 600; }
.ctx-panel__item--create { color: #2563eb; border-top: 1px solid var(--border, #e5e7eb); }
.ctx-panel__avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.ctx-panel__avatar--placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ctx-panel__item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ctx-panel__pending {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}
.ctx-panel__badge {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}
.ctx-panel__plus {
    font-size: 20px;
    line-height: 1;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

/* ---- Catalog ---- */
.companies-catalog { }
.companies-catalog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 20px;
}
.companies-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 24px;
}
.filter-tag {
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e7eb);
    font-size: 13px;
    text-decoration: none;
    color: inherit;
}
.filter-tag:hover { background: #f3f4f6; }
.filter-tag--active { background: #2563eb; color: #fff; border-color: #2563eb; }

.companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
}
@media (max-width: 640px) { .companies-grid { grid-template-columns: 1fr; } }

.company-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.company-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.company-card__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.company-card__logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.company-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.company-card__logo-placeholder { font-size: 22px; font-weight: 700; color: #9ca3af; }
.company-card__body { flex: 1; min-width: 0; }
.company-card__name { font-weight: 600; font-size: 15px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card__category { font-size: 12px; color: #6b7280; }
.company-card__subs { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
.company-card__address { font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Landing (new layout) ---- */
.cl-page { padding: 0 16px 40px; }

/* Header */
.cl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 16px;
}
.cl-header__identity { display: flex; align-items: flex-start; gap: 16px; }
.cl-header__logo {
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.cl-header__logo img { width: 100%; height: 100%; object-fit: cover; }
.cl-header__logo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; color: #9ca3af;
}
.cl-header__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-header__name { font-size: 22px; font-weight: 700; margin: 0; }
.cl-badge--pending {
    padding: 2px 8px; border-radius: 10px;
    background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 500;
}
.cl-header__category { font-size: 14px; color: #6b7280; margin-top: 3px; }
.cl-header__followers {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; color: #9ca3af; margin-top: 4px;
}
.cl-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 4px; }

/* Two-column layout */
.cl-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 14px;
    align-items: start;
}
.cl-cover        { grid-column: 1; grid-row: 1; }
.cl-sidebar-top  { grid-column: 2; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; gap: 14px; }
.cl-main         { grid-column: 1; grid-row: 2; }
.cl-sidebar-bottom { grid-column: 2; grid-row: 2; }

/* Cover photo */
.cl-cover {
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    aspect-ratio: 16/7;
}
.cl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sidebar top: map stretches to fill remaining height */
.cl-sidebar-top .cl-card { margin-bottom: 0; }
.cl-sidebar-top .cl-card--map {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.cl-sidebar-top .cl-map { flex: 1; min-height: 120px; }
.cl-description {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 16px;
}

/* Tabs */
.cl-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 12px;
}
.cl-tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.cl-tab:hover { color: #111; }
.cl-tab--active { color: #0b1f33; border-bottom-color: #0b1f33; font-weight: 600; }

/* Post / project cards */
.cl-post-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s;
}
.cl-post-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cl-post-card__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cl-post-card__preview { font-size: 13px; color: #6b7280; line-height: 1.5; }
.cl-post-card__meta { font-size: 12px; color: #9ca3af; margin-top: 5px; }
.cl-mention-review { margin-top: 6px; font-style: italic; }
.feed-card__review {
    margin: 0 0 12px;
    font-size: 13px;
    color: #374151;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#tab-mentions .feed-card__author {
    margin-bottom: 14px;
}
.cl-empty { color: #9ca3af; font-size: 14px; padding: 20px 0; }

/* Boats list */
.cl-boat-list-card {
    display: flex;
    flex-direction: row;
    background: #f0f4f8;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cl-boat-list-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.cl-boat-list-card__left {
    flex: 0 0 280px;
    background: #e4ecf4;
    border-right: 1px solid #d5e3f0;
    padding: 12px;
    display: flex;
    align-items: center;
}
.cl-boat-list-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.cl-boat-list-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #c8d9ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cl-boat-list-card__right {
    flex: 1;
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.cl-boat-list-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.3;
    margin: 0 0 8px;
}
.cl-boat-list-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cl-boat-list-card__footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

/* Sidebar */
.cl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.cl-card__title { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.cl-card--map { padding: 0; overflow: hidden; }
.cl-map { width: 100%; height: 220px; isolation: isolate; }
.cl-map .leaflet-control-attribution { font-size: 9px; }
.cl-contact-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: #374151;
    padding: 5px 0;
}
.cl-contact-row:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.cl-contact-row svg { flex-shrink: 0; margin-top: 1px; color: #9ca3af; }
.cl-contact-row a { color: #2563eb; word-break: break-all; }

/* Services */
.cl-services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-services li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 14px;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 700px) {
    .cl-layout { grid-template-columns: 1fr; }
    .cl-header { flex-wrap: wrap; }
    .cl-header__actions { width: 100%; }
}

/* ---- Form pages ---- */
.company-form-page { max-width: 800px; }
.company-form-page__note { color: #6b7280; font-size: 14px; margin-bottom: 20px; }
.company-form { display: flex; flex-direction: column; gap: 16px; }
.company-form__actions { display: flex; gap: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #374151; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; font-family: inherit; color: #1f2933;
    background: #fff; box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #0B1F33;
    box-shadow: 0 0 0 3px rgba(23,90,156,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-error { color: #dc2626; font-size: 13px; margin-top: 4px; }

/* ---- Shared buttons ---- */
.btn { display: inline-block; padding: 9px 22px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; text-decoration: none; transition: background 0.2s ease, transform 0.15s ease; }
.btn--primary { background: #0B1F33; color: #fff; }
.btn--primary:hover { background: #13477a; transform: translateY(-1px); }
.btn--secondary { background: #fff; color: #0B1F33; border: 1.5px solid #0B1F33; }
.btn--secondary:hover { background: #f0f4f8; }

/* ---- Members ---- */
.company-members { max-width: 600px; }
.company-members__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.members-add-form { display: flex; gap: 10px; margin-bottom: 24px; }
.members-add-form__input { flex: 1; padding: 8px 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; font-size: 14px; }
.members-list { display: flex; flex-direction: column; gap: 2px; }
.members-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #f3f4f6);
}
.members-list__user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; }
.members-list__avatar { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.members-list__avatar--placeholder {
    width: 36px; height: 36px; border-radius: 9px;
    background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.members-list__role { font-size: 12px; color: #6b7280; }
.members-list__role--owner { color: #2563eb; font-weight: 600; }
.members-list__remove { background: none; border: none; color: #dc2626; font-size: 13px; cursor: pointer; }
.members-list__remove:hover { text-decoration: underline; }

/* ---- Inbox ---- */
.company-inbox { max-width: 600px; }
.inbox-list { display: flex; flex-direction: column; gap: 2px; }
.inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}
.inbox-item:hover { background: #f9fafb; }
.inbox-item__avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.inbox-item__avatar--placeholder {
    width: 40px; height: 40px; border-radius: 10px;
    background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
}
.inbox-item__body { flex: 1; }
.inbox-item__name { font-weight: 500; }
.inbox-item__time { font-size: 12px; color: #9ca3af; }
.inbox-item__badge {
    min-width: 20px; height: 20px; border-radius: 10px;
    background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---- Conversation ---- */
.company-conv { max-width: 600px; display: flex; flex-direction: column; height: calc(100vh - 120px); }
.company-conv__header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.company-conv__title { font-weight: 600; font-size: 16px; }
.company-conv__messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}
.msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.msg-bubble p { margin: 0; }
.msg-bubble__time { font-size: 11px; opacity: .5; display: block; margin-top: 4px; }
.msg-bubble__image { max-width: 200px; border-radius: 8px; display: block; margin-bottom: 4px; cursor: zoom-in; }
.msg-bubble--user { background: #f3f4f6; align-self: flex-start; }
.msg-bubble--company { background: #2563eb; color: #fff; align-self: flex-end; }
.company-conv__form { border-top: 1px solid var(--border, #e5e7eb); padding-top: 12px; margin-top: 12px; }
.company-conv__textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border, #e5e7eb); border-radius: 8px;
    font-size: 14px; resize: none; font-family: inherit; box-sizing: border-box;
}
.company-conv__form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.company-conv__attach { font-size: 13px; color: #2563eb; cursor: pointer; }
.company-conv__attach:hover { text-decoration: underline; }
.company-conv__empty { color: #9ca3af; text-align: center; padding: 32px 0; }

/* ---- Buttons (shared) ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
    text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: #2563eb; color: #fff; }
.btn--primary:hover { background: #1d4ed8; }
.btn--secondary { background: #f3f4f6; color: #111; }
.btn--secondary:hover { background: #e5e7eb; }


/* ===== Single photo uploader ===== */
.spu__preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1.5px dashed #d1d5db;
    cursor: pointer;
    max-width: 320px;
}
.spu__preview--logo {
    max-width: 160px;
}
.spu__preview img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.spu__empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; color: #9ca3af; font-size: 13px;
    cursor: pointer; transition: color .15s;
}
.spu__empty:hover { color: #6b7280; }
.spu__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px;
    opacity: 0; transition: opacity .2s;
}
.spu__preview:hover .spu__overlay { opacity: 1; }
.spu__ovl-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    color: #fff; font-size: 13px; font-weight: 500;
    padding: 6px 14px; cursor: pointer;
    transition: background .15s;
}
.spu__ovl-btn:hover { background: rgba(255,255,255,0.28); }
.spu__ovl-btn--del:hover { background: rgba(220,38,38,0.6); border-color: transparent; }

/* Crop modal */
.spu-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.spu-modal[hidden] { display: none; }
.spu-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.spu-modal__box {
    position: relative; background: #fff; border-radius: 12px;
    width: min(720px, 95vw); max-height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.spu-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #e5e7eb;
    font-weight: 600; font-size: 15px;
}
.spu-modal__header button {
    background: none; border: none; cursor: pointer;
    color: #6b7280; display: flex; padding: 4px; border-radius: 4px;
}
.spu-modal__header button:hover { color: #111; background: #f3f4f6; }
.spu-modal__canvas-wrap {
    position: relative; overflow: hidden; flex: 1; min-height: 0;
    background: #111; display: flex; align-items: center; justify-content: center;
}
.spu-modal__canvas-wrap canvas { display: block; max-width: 100%; max-height: 60vh; }
.spu-modal__overlay {
    position: absolute; border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    cursor: move; box-sizing: border-box;
}
.spu-resize-handle {
    position: absolute; width: 10px; height: 10px;
    background: #fff; border: 1.5px solid rgba(0,0,0,0.35);
    border-radius: 2px; box-sizing: border-box;
}
.spu-resize-handle--nw { top: -5px;    left: -5px;    cursor: nw-resize; }
.spu-resize-handle--ne { top: -5px;    right: -5px;   cursor: ne-resize; }
.spu-resize-handle--se { bottom: -5px; right: -5px;   cursor: se-resize; }
.spu-resize-handle--sw { bottom: -5px; left: -5px;    cursor: sw-resize; }
.spu-modal__footer {
    padding: 14px 20px; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end;
}
.spu-modal__footer { gap: 10px; }
.spu-modal__fit {
    padding: 9px 20px; background: #fff; color: #374151;
    border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 14px;
    font-weight: 500; cursor: pointer;
}
.spu-modal__fit:hover { border-color: #6b7280; color: #111; }
.spu-modal__apply {
    padding: 9px 28px; background: #0B1F33; color: #fff;
    border: none; border-radius: 8px; font-size: 14px;
    font-weight: 600; cursor: pointer;
}
.spu-modal__apply:hover { background: #124f8a; }

/* Add-post button (dark, like boat page) */
.add-post-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background-color: #0B1F33;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.add-post-btn:hover {
    background-color: #13477a;
    transform: translateY(-1px);
}


/* ---- Category chips (form) ---- */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.cat-chips input[type=checkbox] {
    display: none;
}
.cat-chips label {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    background: #f9fafb;
}
.cat-chips label:hover {
    border-color: #0b4f7a;
    color: #0b4f7a;
}
.cat-chips input[type=checkbox]:checked + label {
    background: #0b4f7a;
    border-color: #0b4f7a;
    color: #fff;
}

/* ---- Catalog layout with geo sidebar ---- */
.catalog-layout {
    display: flex;
    gap: 28px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
.catalog-main {
    flex: 1;
    min-width: 0;
}
.catalog-filters {
    width: 220px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 80px;
}
.catalog-filters .filter-block { margin-bottom: 16px; }
.catalog-filters .filter-block:last-of-type { margin-bottom: 0; }
.catalog-filters .filter-block__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 6px;
}
.catalog-filters .filter-select {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.catalog-filters .filter-select:focus { border-color: #0b4f7a; outline: none; }
.catalog-filters .filter-reset-btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.catalog-filters .filter-reset-btn:hover { background: #f3f4f6; color: #111; }
@media (max-width: 700px) {
    .catalog-layout { flex-direction: column; }
    .catalog-filters { width: 100%; position: static; }
}

/* ===== КАРТОЧКИ ПОСТОВ ПРОЕКТА (компактнее на 30%) ===== */
.pd-posts .feed-card {
    height: 178px;
}
.pd-posts .feed-card__title {
    font-size: 17px;
}
.pd-posts .feed-card__images {
    padding: 10px 10px 10px 0;
}
.pd-posts .feed-card__img {
    width: 210px;
}
