﻿.auto-complete-card-container {
    padding-top: 20px;
    background-color: white;
    padding: 10px;
}

.company-info-card {
    font-family: "DM Sans",sans-serif;
    max-height: 96px;

}

.company-logo-container {
    border: 2px solid var(--bbb-secondary);
    border-radius: 10px;
    padding: 2px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    min-width: 80px;
    max-width: 80px;
}

    .company-logo-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.company-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    width: calc(100% - 100px); /* Logo genişliğini çıkar */
}

    .company-info .title {
        color: var(--bbb-primary);
        font-weight: 600;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100%;
    }

.company-location {
    font-size: 13px;
    width: 100%;
}

.company-tags {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    margin-top: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bbb-secondary) transparent;
    max-width: 100%;
    box-sizing: border-box;
}

    .company-tags::-webkit-scrollbar {
        height: 4px;
    }

    .company-tags::-webkit-scrollbar-track {
        background: transparent;
    }

    .company-tags::-webkit-scrollbar-thumb {
        background-color: var(--bbb-secondary);
        border-radius: 2px;
    }

    .company-tags .tag-badge {
        background-color: var(--bbb-secondary);
        color: white;
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 6px;
        flex-shrink: 0;
        white-space: nowrap;
    }


/*.company-info-card:hover .tags-popup {
    display: block;
}

.tags-popup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
    white-space: normal;
    max-width: 300px;
}*/


.ac-item {
    width: 100%;
}

.d-flex.gap-2 {
    width: 100%;
}

@media (max-width: 767px) {
}



/*Company Card*/
.card-container {
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fr-company-card {
    font-family: 'DM Sans','Nunito',sans-serif !important;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    border: 0.1px solid #D5DFE4;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' preserveAspectRatio='none'>\
  <defs>\
    <linearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='100%'>\
      <stop offset='0%' stop-color='rgba(180,200,255,0.3)' />\
      <stop offset='100%' stop-color='rgba(255,255,255,0.3)' />\
    </linearGradient>\
  </defs>\
  <path d='M0 350 C 200 250 600 450 800 350 L800 600 L0 600 Z' fill='url(%23grad)' />\
  <path d='M0 400 C 200 300 600 500 800 400 L800 600 L0 600 Z' fill='rgba(0,0,0,0.05)' />\
</svg>");
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #f8f9fc;
}
    .fr-company-card h1 {
        font-size: 16px !important;
        color: var(--bbb-primary) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
        margin-bottom:15px !important;
    }
    .fr-company-card:hover {
        border-color: #8C9EC5;
        cursor: pointer;
    }

.fr-company-name {
   
    width:100%;
    text-align:center;
    color:var(--bbb-primary);
}

.fr-company-logo {
    border: 1px solid var(--bbb-secondary);
    border-radius: 10px;
    padding: 2px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    min-width: 80px;
    max-width: 80px;
}

    .fr-company-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
.fr-company-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 3px;
    justify-content: center;
    border-bottom: 0.1px solid #f3e7e7;
}
.fr-company-address {
}

.fr-company-email {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 12px;
    color: #8C9EC5;
}
.fr-company-phone {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 12px;
    color: #8C9EC5;
}

.fr-company-location {
    display: inline-block;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 12px;
    color: #8C9EC5;
    width: 100%;
    padding-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
   



    .fr-company-phone i, .fr-company-email i, .fr-company-location i {
        color: var(--bbb-secondary);
    }
.fr-company-location a{
    all:unset;
    cursor:pointer;

}
    .fr-company-location a:hover {
        color:var(--bbb-secondary);
    }

.fr-company-gsm {
}

.fr-company-location {
}


.fr-company-tags {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    color: var(--bbb-gray);
  
    margin-top: 15px;
    font-size: 13px;
    border-top: 0.1px solid #e2e2e2;
    padding-top:3px;
}

.tag-item {
    color: var(--bbb-primary);
    display: inline; 
}

    .tag-item:not(:last-child)::after {
        content: " • ";
        color: var(--bbb-secondary);
        font-weight:600;
        margin-left: 4px;
    }

    @media (max-width: 767px) {
        .fr-company-card{
            width:100%;
            max-width:100%;
        }
    }

.business-card {
    width: 650px;
    background: #ffffff;
    padding: 0 0 20px 0;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.business-card {
    width: 400px;
    max-width: 100%;
    background: #ffffff;
    padding: 0 0 15px 0;
    font-family: "Poppins", sans-serif;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- TOP SECTION --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

/* SOL BLOK */
.left-block {
    background: #0c1b2f;
    color: white;
    padding: 12px 18px;
    width: 60%;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

    .left-block .name {
        font-size: 16px;
        font-weight: 300;
        letter-spacing: .5px;
    }

    .left-block .bold {
        font-weight: 700;
    }

    .left-block .role {
        margin-top: 2px;
        font-size: 10px;
        opacity: 0.8;
    }

/* SAĞ BLOK */
.right-block {
    background: #d2122e;
    color: white;
    font-size: 12px;
    padding: 12px 15px;
    width: 42%;
    text-align: right;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

/* --- CARD BODY --- */
.card-content {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
}

/* LEFT BODY */
.left .item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.left i {
    font-size: 14px;
    width: 25px;
    margin-top: 2px;
    color: #0c1b2f;
}

.left p {
    margin: 0;
    font-size: 12px;
}

/* RIGHT BODY */
.right {
    display:flex;
    align-items:center;
    text-align: center;
}

.company-logo {
    font-size: 20px;
    font-weight: bold;
    color: #d2122e;
}

.slogan {
    font-size: 10px;
    margin-top: 3px;
    color: #555;
}

.qr {
    width: 60px;
    height: 60px;
    background: #eee;
    border: 2px solid #ccc;
    margin: 15px auto 0 auto;
}

/* MOBILE */
@media (max-width: 768px) {
    .business-card {
        width: 100%;
    }
}