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

/* Migrated Company index block 1 */
/*
     * Companies landing hero right-side actions.
     * Keeps buttons inside the hero box and aligned to the far right.
     */

    .syg-companies-listing-hero > .container {
        display: grid !important;
        grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.35fr) minmax(240px, auto) !important;
        column-gap: 2rem !important;
        row-gap: 0.75rem !important;
        align-items: center !important;
    }

    .syg-companies-listing-hero .syg-eyebrow {
        grid-column: 1 !important;
        margin-bottom: 0.35rem !important;
    }

    .syg-companies-listing-hero h1 {
        grid-column: 1 !important;
        margin-bottom: 0 !important;
    }

    .syg-companies-listing-hero .lead {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
    }

    .syg-companies-hero-actions {
        grid-column: 3 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        justify-self: end !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .syg-companies-hero-actions .btn {
        border-radius: 999px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    @media (max-width: 1199.98px) {
        .syg-companies-listing-hero > .container {
            grid-template-columns: 1fr !important;
        }

        .syg-companies-listing-hero .syg-eyebrow,
        .syg-companies-listing-hero h1,
        .syg-companies-listing-hero .lead,
        .syg-companies-hero-actions {
            grid-column: 1 !important;
            grid-row: auto !important;
            justify-self: start !important;
        }

        .syg-companies-hero-actions {
            flex-direction: row !important;
            flex-wrap: wrap !important;
            margin-top: 0.5rem !important;
        }
    }

/* Migrated Company index block 2 */
.syg-companies-index-map-section {
        width: 80%;
        margin: 3rem auto 3.5rem;
    }

    .syg-companies-index-map-heading {
        display: flex;
        justify-content: space-between;
        align-items: end;
        gap: 2rem;
        margin-bottom: 1.25rem;
    }

    .syg-companies-index-map-summary {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.95rem;
        text-align: right;
    }

    .syg-companies-index-map-panel {
        overflow: hidden;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
        background: #eef2f4;
    }

    #companies-index-map {
        width: 100%;
        height: 560px;
        min-height: 460px;
        background: #eef2f4;
        z-index: 1;
    }

    .syg-companies-index-map-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    @media (max-width: 991.98px) {
        .syg-companies-index-map-section {
            width: 90%;
        }

        #companies-index-map {
            height: 500px;
        }

        .syg-companies-index-map-heading {
            display: block;
        }

        .syg-companies-index-map-summary {
            margin-top: 0.75rem;
            text-align: left;
        }
    }

    @media (max-width: 575.98px) {
        .syg-companies-index-map-section {
            width: calc(100% - 1.5rem);
        }

        #companies-index-map {
            height: 440px;
            min-height: 400px;
        }

        .syg-companies-index-map-footer {
            display: block;
        }

        .syg-companies-index-map-footer .btn {
            margin-top: 1rem;
        }
    }

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

        .syg-service-category-commercial-cta .syg-service-category-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-service-category-commercial-cta .syg-service-category-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: 1rem;
        }

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

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

.syg-company-index-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-index-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-index-lead {
    margin-bottom: 0 !important;
    color: var(--syg-text-secondary) !important;
    font-size: clamp(1.08rem, 1.35vw, 1.25rem) !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
}

.syg-companies-index-map-panel,
.syg-service-category-panel {
    border: 1px solid var(--syg-border) !important;
    border-radius: var(--syg-radius) !important;
    background: var(--syg-white) !important;
    box-shadow: none !important;
}

.syg-companies-index-map-summary {
    color: var(--syg-text-secondary);
}

.syg-service-category-commercial-cta,
.syg-companies-index-map-section {
    border-color: var(--syg-border);
}

.syg-companies-hero-actions .btn,
.syg-companies-index-map-footer .btn,
.syg-service-category-actions .btn {
    border-radius: var(--syg-radius-small);
}
