.tag-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

/* Climate tag hover */
.tag-tooltip[data-type="climate"]:hover {
    background-color: #b7d9b9 !important;
}

/* Environment tag hover */
.tag-tooltip[data-type="environment"]:hover {
    background-color: #c7e0db !important;
}

/* Light tag hover */
.tag-tooltip[data-type="light"]:hover {
    background-color: #d0d7cc !important;
}

/* Toxicity tag hover */
.tag-tooltip[data-type="toxicity"]:hover {
    background-color: #ffe4cc !important;
}

/* Size tag hover */
.tag-tooltip[data-type="size"]:hover {
    background-color: #d0e7e4 !important;
}

/* Care difficulty tag hover */
.tag-tooltip[data-type="care-difficulty"]:hover {
    background-color: #e6d0ff !important;
}

/* Growth rate tag hover */
.tag-tooltip[data-type="growth-rate"]:hover {
    background-color: #e6f0cc !important;
}

.tag-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #4e6b50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #4e6b50 transparent transparent transparent;
}

.tag-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Adjust tooltip position for tags at the top of the screen */
.tag-tooltip.top .tooltip-text {
    bottom: auto;
    top: 125%;
}

.tag-tooltip.top .tooltip-text::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #4e6b50 transparent;
}

/* Tooltip background for each tag type */
.tag-tooltip[data-type="climate"] .tooltip-text {
    background-color: #d0e7d2;
    color: #3e5637;
}
.tag-tooltip[data-type="environment"] .tooltip-text {
    background-color: #e0f0eb;
    color: #3e5637;
}
.tag-tooltip[data-type="light"] .tooltip-text {
    background-color: #e6ebe0;
    color: #3e5637;
}
.tag-tooltip[data-type="toxicity"] .tooltip-text {
    background-color: #fff4e6;
    color: #3e5637;
}
.tag-tooltip[data-type="size"] .tooltip-text {
    background-color: #e6f7f5;
    color: #3e5637;
}
.tag-tooltip[data-type="care-difficulty"] .tooltip-text {
    background-color: #f3e6ff;
    color: #3e5637;
}
.tag-tooltip[data-type="growth-rate"] .tooltip-text {
    background-color: #f7fae6;
    color: #3e5637;
}

.tag-tooltip[data-type="climate"] .tooltip-text::after {
    border-color: #d0e7d2 transparent transparent transparent;
}
.tag-tooltip[data-type="environment"] .tooltip-text::after {
    border-color: #e0f0eb transparent transparent transparent;
}
.tag-tooltip[data-type="light"] .tooltip-text::after {
    border-color: #e6ebe0 transparent transparent transparent;
}
.tag-tooltip[data-type="toxicity"] .tooltip-text::after {
    border-color: #fff4e6 transparent transparent transparent;
}
.tag-tooltip[data-type="size"] .tooltip-text::after {
    border-color: #e6f7f5 transparent transparent transparent;
}
.tag-tooltip[data-type="care-difficulty"] .tooltip-text::after {
    border-color: #f3e6ff transparent transparent transparent;
}
.tag-tooltip[data-type="growth-rate"] .tooltip-text::after {
    border-color: #f7fae6 transparent transparent transparent;
} 