/* Hubro Leaflet Map Styles */

.hubro-leaflet-map-container,
.leaflet-container {
    position: relative;
    background: transparent;
		z-index: 1;
}

.hubro-leaflet-map-container #map {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Region styling - these classes are used by JavaScript */
.region-default {
    fill-opacity: 1.0;
    stroke: #2c3e50;
    stroke-width: 1;
}

.region-hover {
    fill-opacity: 0.8;
    stroke-width: 2;
}

.region-active {
    fill-opacity: 0.8;
    stroke: #e74c3c;
    stroke-width: 2;
}

/* Disable text selection on map elements */
.hubro-leaflet-map-container * {
    user-select: none;
}

.leaflet-marker-icon.company-logo-marker {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: contain;
    background: #fff;
}

/* Custom cluster styling */
.marker-cluster-small {
    background-color: rgba(255, 165, 0, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(255, 165, 0, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(255, 165, 0, 0.7);
}
.marker-cluster-medium div {
    background-color: rgba(255, 165, 0, 0.9);
}

.marker-cluster-large {
    background-color: rgba(255, 165, 0, 0.8);
}
.marker-cluster-large div {
    background-color: rgba(147, 202, 21, 1);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: white;
    font-weight: bold;
}
.marker-cluster span {
    line-height: 30px;
}

/* Top-center filters */
.hubro-map-filters {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hubro-map-filters select {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
}

/* Popup redesign */
.leaflet-popup.company-popup .leaflet-popup-content-wrapper {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.leaflet-popup.company-popup .leaflet-popup-tip {
    background: transparent;
    box-shadow: none;
}
.company-card {
    position: relative;
    width: 260px;
    border: 6px solid #93ca15;
    border-radius: 18px;
    padding: 12px 14px 14px 14px;
    background: #fff;
    color: #111;
    text-align: center;
    font-size: 14px;
}
/* Green pointer below the card */
.company-card::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px; /* align with outer green border */
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 24px solid #93ca15; /* full green triangle */
    z-index: 0;
}
/* Remove inner white notch for a full green triangle */
.company-title {
    font-size: 17.5px;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.company-logo {
    max-width: 100px;
    width: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin: 4px auto 8px auto;
}
.company-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    white-space: normal;
}
.company-link {
    font-size: 14px;
    line-height: 1.4;
    color: #93ca15;
    font-style: italic;
    text-decoration: underline;
    display: inline-block;
    margin: 2px 0 8px 0;
}
.company-link:visited { color: #93ca15; }
.company-link:hover { text-decoration: underline; }
.company-section-label {
    font-size: 14px;
    line-height: 1.4;
    margin: 8px 0 4px 0;
}
.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.company-tag {
    font-size: 14px;
    line-height: 1.4;
    background: #eee;
    border-radius: 12px;
    padding: 4px 8px;
}

.company-tag-icon {
    width: 62.4px;
    height: 62.4px;
    margin: 2px;
    object-fit: contain;
}
