.tg-map-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background: #e9f7ff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tg-map-topbar {
    height: 58px;
    background: #d8efff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    box-sizing: border-box;
}

.tg-logo-box {
    background: #a7d42b;
    color: white;
    padding: 5px 10px;
    line-height: 1;
    width: 120px;
    text-align: left;
}

.tg-logo-small {
    display: block;
    font-size: 8px;
    letter-spacing: 0.5px;
}

.tg-logo-main {
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.tg-menu-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #0067a8;
    cursor: pointer;
}

.tg-map-container {
    position: relative;
    width: 100%;
    min-height: 620px;
    background: #bfeaff;
    overflow: hidden;
}

.tg-map-stage {
    position: relative;
    width: 100%;
    height: 620px;
}

.tg-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FILTER PANEL */
.tg-filter-panel {
    position: absolute;
    top: 90px;
    left: 22px;
    z-index: 20;
    width: 190px;
}

#tg-category-filter,
#tg-company-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #2f7dbf;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.tg-filter-list {
    background: white;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    overflow: hidden;
}

.tg-filter-option {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    color: #333;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.tg-filter-option:hover,
.tg-filter-option.active {
    background: #78b82a;
    color: white;
}

/* CLUSTER CIRCLES */
/* These are the 3 main region clusters from the CSV: West Palm Beach, Fort Lauderdale, Miami */
.tg-cluster {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid white;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* West Palm Beach cluster - closer to West Palm icon/text */
.tg-cluster-west {
    top: 155px;
    right: 190px;
    background: #f5a623;
}

/* Hide Sunrise because we are grouping by region, not individual city */
.tg-cluster-sunrise {
    display: none !important;
}

/* Fort Lauderdale cluster - next to Fort Lauderdale icon/text */
.tg-cluster-fort {
    top: 305px;
    right: 275px;
    background: #0071bc;
}

/* Miami cluster - next to Miami icon/text */
.tg-cluster-miami {
    bottom: 145px;
    left: 420px;
    background: #0059b3;
}

/* SLIDING COMPANY LIST */
.tg-company-slider {
    position: absolute;
    left: 22px;
    bottom: 28px;
    width: 320px;
    max-height: 330px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    z-index: 25;
    overflow: hidden;
    display: none;
}

.tg-company-slider.show {
    display: block;
}

.tg-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0067a8;
    color: white;
    padding: 12px 14px;
}

.tg-slider-header h3 {
    margin: 0;
    font-size: 16px;
}

#tg-close-slider,
#tg-close-detail {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

#tg-company-list {
    padding: 12px;
    max-height: 270px;
    overflow-y: auto;
}

/* COMPANY CARD */
.tg-company-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border-left: 4px solid #78b82a;
}

.tg-company-card:hover {
    background: #e9f7ff;
}

.tg-company-card img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 6px;
    border: 1px solid #d7e6ef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.tg-company-card h4 {
    margin: 0;
    font-size: 15px;
    color: #222;
}

.tg-company-card p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #555;
}

/* COMPANY DETAIL POPUP */
.tg-company-detail {
    position: absolute;
    right: 24px;
    bottom: 55px;
    width: 275px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    z-index: 30;
    padding: 16px;
    display: none;
}

.tg-company-detail.show {
    display: block;
}

#tg-close-detail {
    color: #333;
    position: absolute;
    right: 10px;
    top: 8px;
}

.tg-detail-logo {
    width: 95px;
    height: 65px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid #d7e6ef;
    box-shadow: 0 1px 5px rgba(0,0,0,0.12);
    margin-bottom: 8px;
}

.tg-company-detail h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #222;
}

.tg-company-detail p {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
    margin: 6px 0;
}

.tg-detail-link {
    display: inline-block;
    background: #78b82a;
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    margin-top: 8px;
}

.tg-detail-link:hover {
    background: #5f9d1e;
    color: white;
}

/* MOBILE */
@media screen and (max-width: 700px) {
    .tg-map-wrapper {
        max-width: 100%;
    }

    .tg-map-container {
        min-height: 560px;
    }

    .tg-map-stage {
        height: 560px;
    }

    .tg-filter-panel {
        top: 70px;
        left: 12px;
        width: 155px;
    }

    .tg-cluster {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .tg-cluster-west {
        top: 135px;
        right: 95px;
    }

    .tg-cluster-fort {
        top: 270px;
        right: 150px;
    }

    .tg-cluster-miami {
        bottom: 115px;
        left: 285px;
    }

    .tg-company-slider {
        width: 280px;
        left: 12px;
        bottom: 14px;
    }

    .tg-company-detail {
        width: 230px;
        right: 12px;
        bottom: 14px;
    }

    .tg-company-card img {
        width: 42px;
        height: 42px;
    }

    .tg-detail-logo {
        width: 75px;
        height: 52px;
    }
}