.companies-page {
    min-height: 70vh;
}

.companies-hero {
    padding: 55px 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        #efe4d8,
        #f8f3ed
    );
}

.companies-hero h1 {
    margin: 8px 0 14px;
    color: #3e2f27;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.companies-hero p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: #6d5a4e;
    line-height: 1.7;
}

.companies-content {
    padding-top: 36px;
    padding-bottom: 70px;
}

.companies-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(62, 47, 39, 0.1);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-field label {
    color: #45352c;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7c9bd;
    border-radius: 11px;
    padding: 10px 12px;
    color: #3e2f27;
    background: #fffaf5;
    font: inherit;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.companies-results-header {
    margin: 35px 0 20px;
}

.companies-results-header h2 {
    margin: 0;
    color: #45352c;
    font-size: 1.3rem;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.company-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2d6cc;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(62, 47, 39, 0.09);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 36px rgba(62, 47, 39, 0.14);
}

.company-card.featured {
    border: 2px solid #9c775c;
}

.company-featured-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #6c4f3e;
    font-size: 0.75rem;
    font-weight: 700;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 22px;
    background: #f4ede6;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ffffff;
    font-size: 3rem;
}

.company-card-content {
    padding: 22px;
}

.company-category {
    display: inline-block;
    margin-bottom: 8px;
    color: #765745;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.company-card h2 {
    margin: 0 0 7px;
    color: #3e2f27;
    font-size: 1.35rem;
}

.company-location {
    margin: 0 0 14px;
    color: #806c60;
    font-size: 0.92rem;
}

.company-description {
    min-height: 105px;
    margin: 0 0 18px;
    color: #66564c;
    line-height: 1.6;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.company-contact a {
    color: #5e4637;
    font-weight: 600;
    text-decoration: none;
}

.company-contact a:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 55px 25px;
    border-radius: 18px;
    text-align: center;
    background: #f6efe8;
}

.empty-state h2 {
    margin-top: 0;
    color: #45352c;
}

@media (max-width: 950px) {
    .companies-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .companies-hero {
        padding: 38px 18px;
    }

    .companies-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .button {
        width: 100%;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .company-description {
        min-height: auto;
    }
}


.company-detail-page {
    min-height: 70vh;
    background: #faf7f3;
}

.company-detail-hero {
    padding: 32px 0 45px;
    border-bottom: 1px solid #e1d4c9;
    background:
        linear-gradient(
            135deg,
            rgba(239, 228, 216, 0.96),
            rgba(250, 246, 241, 0.98)
        );
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #806d60;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #654b3b;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.company-detail-heading {
    display: flex;
    align-items: center;
    gap: 28px;
}

.company-detail-logo {
    display: flex;
    flex: 0 0 180px;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 1px solid #ddcfc4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(62, 47, 39, 0.1);
}

.company-detail-logo img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.company-detail-logo-placeholder {
    font-size: 4.5rem;
}

.company-detail-title {
    min-width: 0;
}

.company-detail-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.company-detail-title h1 {
    margin: 0 0 10px;
    color: #3e2f27;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.company-detail-location {
    margin: 0;
    color: #735f53;
    font-size: 1.08rem;
}

.company-featured-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: #6c4f3e;
    font-size: 0.78rem;
    font-weight: 700;
}

.company-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 30px;
    padding-top: 38px;
    padding-bottom: 75px;
}

.company-detail-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.company-detail-card,
.company-action-card,
.company-info-card {
    border: 1px solid #e1d6cd;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(62, 47, 39, 0.07);
}

.company-detail-card {
    padding: 30px;
}

.company-detail-card h2,
.company-action-card h2,
.company-info-card h2 {
    margin: 0 0 18px;
    color: #3e2f27;
}

.company-detail-description {
    color: #625248;
    line-height: 1.8;
}

.company-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.company-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    border-radius: 14px;
    background: #f8f3ee;
}

.company-contact-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eadfd5;
    font-size: 1.2rem;
}

.company-contact-item div:last-child {
    min-width: 0;
}

.company-contact-item span {
    display: block;
    margin-bottom: 5px;
    color: #877265;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.company-contact-item a,
.company-contact-item strong {
    overflow-wrap: anywhere;
    color: #523d31;
    font-weight: 700;
    text-decoration: none;
}

.company-contact-item a:hover {
    text-decoration: underline;
}

.company-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.company-action-card,
.company-info-card {
    padding: 24px;
}

.company-action-card p {
    margin: 0 0 20px;
    color: #6d5b50;
    line-height: 1.6;
}

.company-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.button.whatsapp {
    color: #ffffff;
    background: #327a52;
}

.button.whatsapp:hover {
    background: #286443;
}

.company-info-list {
    margin: 0;
}

.company-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #eee4dc;
}

.company-info-list div:last-child {
    border-bottom: 0;
}

.company-info-list dt {
    color: #806d61;
}

.company-info-list dd {
    margin: 0;
    color: #46352c;
    font-weight: 700;
    text-align: right;
}

.back-companies-link {
    color: #604738;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.back-companies-link:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .company-detail-content {
        grid-template-columns: 1fr;
    }

    .company-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 650px) {
    .company-detail-hero {
        padding-top: 22px;
    }

    .company-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-detail-logo {
        flex-basis: auto;
        width: 135px;
        height: 135px;
    }

    .company-detail-title h1 {
        font-size: 2.2rem;
    }

    .company-detail-content {
        padding-top: 24px;
    }

    .company-detail-card,
    .company-action-card,
    .company-info-card {
        padding: 20px;
        border-radius: 16px;
    }

    .company-contact-list {
        grid-template-columns: 1fr;
    }
}