/* Migrated from companies/templates/companies/company_page.html */

/* Migrated Company detail block 1 */
/*
     * Company profile summary card.
     * Public-facing company overview near the top of profile pages.
     */

    .syg-company-summary-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
            #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
        overflow: hidden;
    }

    .syg-company-summary-logo {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: #ffffff;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .syg-company-summary-logo img {
        max-height: 130px;
        width: auto;
        object-fit: contain;
    }

    .syg-company-summary-placeholder {
        width: 100%;
        min-height: 150px;
        border-radius: 18px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 36%),
            linear-gradient(135deg, #f8fafc, #eef7ff);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0b3a5b;
        font-weight: 800;
        text-align: center;
        padding: 1rem;
    }

    .syg-company-summary-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .syg-company-summary-fact {
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.72);
        padding: 0.75rem;
    }

    .syg-company-summary-fact dt {
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.25rem;
    }

    .syg-company-summary-fact dd {
        color: #172033;
        margin-bottom: 0;
        font-weight: 600;
    }

    .syg-company-summary-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    @media (max-width: 767.98px) {
        .syg-company-summary-facts {
            grid-template-columns: 1fr;
        }
    }

/* Migrated Company detail block 2 */
/*
     * Company profile listing status card.
     * Adds a clear trust/status panel without changing model data.
     */

    .syg-company-status-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
            #ffffff;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
    }

    .syg-company-status-card h2 {
        color: #0b3a5b;
    }

    .syg-company-status-list {
        margin: 0;
    }

    .syg-company-status-list div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .syg-company-status-list div:last-child {
        border-bottom: 0;
    }

    .syg-company-status-list dt {
        color: #64748b;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .syg-company-status-list dd {
        color: #172033;
        font-size: 0.88rem;
        margin-bottom: 0;
        text-align: right;
        font-weight: 600;
    }

    .syg-company-status-note {
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .syg-company-status-actions .btn {
        border-radius: 999px;
        font-weight: 600;
    }

/* Migrated Company detail block 3 */
/*
     * Company profile width alignment.
     * Matches company detail hero/content widths to homepage section widths.
     * Width only: no colours, buttons, text, cards or content changed.
     */

    .syg-detail-hero .container,
    .syg-listing-hero > .container,
    body .container.my-5 {
        max-width: 1440px !important;
        width: 96% !important;
    }

/* Migrated Company detail block 4 */
.syg-company-commercial-cta .syg-company-commercial-panel {
            border: 1px solid rgba(16, 44, 70, 0.12);
            border-radius: 1.25rem;
            background: linear-gradient(135deg, #f2f8fc 0%, #ffffff 68%, #eef5f9 100%);
            box-shadow: 0 1rem 2.5rem rgba(10, 35, 55, 0.07);
            padding: clamp(1.25rem, 3vw, 2rem);
        }

        .syg-company-commercial-cta .syg-company-commercial-eyebrow {
            display: inline-flex;
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            background: #eaf7d8;
            color: #405f12;
            border: 1px solid rgba(64, 95, 18, 0.12);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
        }

        .syg-company-commercial-cta .syg-company-commercial-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: 1rem;
        }

        .syg-company-commercial-cta .btn {
            font-weight: 800;
        }

/* ==========================================================
   SUPERYACHT GUIDE — COMPANY PROFILE COMPONENTS
   Clean design-system alignment
   ========================================================== */

.syg-company-profile-eyebrow {
    color: var(--syg-gold-dark) !important;
    font-size: .78rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.syg-company-profile-title {
    margin-bottom: .75rem !important;
    color: var(--syg-navy) !important;
    font-size: clamp(2.2rem, 3vw, 3rem) !important;
    line-height: 1.16 !important;
    font-weight: 600 !important;
    letter-spacing: -.03em !important;
}

.syg-company-summary-card,
.syg-company-status-card,
.syg-company-commercial-panel {
    border: 1px solid var(--syg-border) !important;
    border-radius: var(--syg-radius) !important;
    background: var(--syg-white) !important;
    box-shadow: none !important;
}

.syg-company-summary-fact {
    border-color: var(--syg-border-soft);
}

.syg-company-summary-placeholder,
.syg-company-status-note {
    color: var(--syg-text-secondary);
}

.syg-company-commercial-panel {
    background: var(--syg-surface-subtle) !important;
}

.syg-company-summary-actions .btn,
.syg-company-status-actions .btn,
.syg-company-commercial-actions .btn {
    border-radius: var(--syg-radius-small);
}

/* Company profile: full-width content layout */
.syg-company-profile-support .syg-company-status-card,
.syg-company-profile-support .syg-company-contact-card {
    height: 100%;
    border: 1px solid var(--syg-border) !important;
    border-radius: var(--syg-radius) !important;
    background: var(--syg-white) !important;
    box-shadow: none !important;
}

.syg-company-related-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--syg-border);
    border-top: 3px solid var(--syg-gold);
    border-radius: var(--syg-radius);
    background: var(--syg-white);
}

.syg-company-related-card h3 {
    color: var(--syg-navy);
    margin-bottom: 1rem;
}

.syg-company-related-card ul {
    padding-left: 1.1rem;
}

.syg-company-related-card li + li {
    margin-top: .8rem;
}

.syg-company-profile-support .card-body {
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .syg-company-profile-support .card-body,
    .syg-company-related-card {
        padding: 1.1rem;
    }
}

/* Company flexible editorial content */
.syg-company-flexible-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.syg-company-flexible-content .syg-layout-row {
    align-items: center;
}

.syg-company-editor-feature {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.syg-company-editor-copy {
    padding: .5rem clamp(.25rem, 2vw, 1.5rem);
}

.syg-company-editor-copy h2,
.syg-company-editor-panel h2 {
    color: var(--syg-navy);
    margin-bottom: 1rem;
}

.syg-company-editor-copy p,
.syg-company-editor-panel p {
    max-width: 68ch;
    line-height: 1.72;
}

.syg-company-editor-media .syg-editor-image {
    margin: 0;
}

.syg-company-editor-media .syg-editor-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--syg-radius);
    border: 1px solid var(--syg-border);
}

.syg-company-editor-media figcaption {
    padding-left: .15rem;
    padding-right: .15rem;
}

.syg-company-editor-panel {
    align-self: stretch;
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    background: var(--syg-surface-subtle);
}

.syg-company-editor-panel > *:last-child {
    margin-bottom: 0;
}

.syg-company-editor-facts .syg-editor-card {
    height: 100%;
    margin-bottom: 0;
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    box-shadow: none;
}

.syg-company-editor-facts .card-body {
    padding: 1.5rem;
}

.syg-company-flexible-content .syg-editor-cta {
    border-color: var(--syg-border);
    border-radius: var(--syg-radius);
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .syg-company-editor-feature {
        margin-bottom: 2.25rem;
    }

    .syg-company-editor-copy {
        padding: 0;
    }

    .syg-company-editor-media {
        margin-top: 1rem;
    }

    .syg-company-editor-panel + .syg-company-editor-panel {
        margin-top: 1rem;
    }
}

/* Company profile flexible layout — explicit desktop columns */
@media (min-width: 768px) {
    .syg-company-flexible-content .syg-layout-row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .syg-company-flexible-content .syg-layout-row > .syg-layout-column {
        width: var(--syg-column-width) !important;
        flex: 0 0 var(--syg-column-width) !important;
        max-width: var(--syg-column-width) !important;
    }
}

.syg-company-flexible-content .syg-company-editor-media .syg-editor-image img {
    width: 100% !important;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
}

.syg-company-flexible-content .syg-company-editor-feature:nth-of-type(2) .syg-company-editor-media .syg-editor-image img {
    object-position: center center;
}

@media (max-width: 767.98px) {
    .syg-company-flexible-content .syg-layout-row > .syg-layout-column {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .syg-company-flexible-content .syg-company-editor-media .syg-editor-image img {
        max-height: none;
        object-fit: contain;
    }
}

/* Company overview profile photograph */
.syg-company-summary-photo {
    min-height: 220px;
    padding: 0;
    overflow: hidden;
}

.syg-company-summary-photo img {
    display: block;
    width: 100%;
    height: 220px;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .syg-company-summary-photo {
        min-height: 250px;
    }

    .syg-company-summary-photo img {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 0;
        height: auto;
    }
}

/* Company overview: larger photographic profile image */
.syg-company-summary-photo {
    min-height: 240px;
    padding: 0;
    overflow: hidden;
}

.syg-company-summary-photo img {
    width: 100% !important;
    height: 240px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (min-width: 992px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 270px;
        height: 270px !important;
    }
}

@media (max-width: 767.98px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 220px;
        height: 220px !important;
    }
}

/* Company detail hero: keep title readable over dark image overlay */
.syg-detail-hero .syg-company-profile-title {
    color: #ffffff !important;
}

/* Company detail locations map */
.syg-company-location-map-wrap {
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    background: var(--syg-white);
    overflow: hidden;
}

.syg-company-location-map {
    width: 100%;
    height: 420px;
}

.syg-company-location-map-wrap > p {
    padding: 0 .85rem .8rem;
}

.syg-company-location-map .leaflet-popup-content {
    min-width: 220px;
    line-height: 1.45;
}

.syg-company-location-map .leaflet-popup-content strong {
    color: var(--syg-navy);
}

@media (max-width: 767.98px) {
    .syg-company-location-map {
        height: 320px;
    }
}
