/*
 * Tagify AGGRESSIVE Styling - Force compact amsify appearance
 */

/* Container with subtle border like b1.png */
tags.tagify,
.tagify,
input.form-control ~ tags.tagify,
.form-control ~ .tagify,
div.tagify,
span.tagify {
    --tag-remove-btn-bg--hover: red;
    display: inline-block !important;
    border: 0px solid #e0e0e0 !important;
    padding: 3px !important;
    margin: 0 !important;
    min-height: 38px !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    overflow-y: visible !important;
    font-size: 14px !important;
}

/* Focus state */
tags.tagify:focus,
.tagify:focus,
.tagify.tagify--focus {
    border-color: #66afe9 !important;
    outline: 0 !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6) !important;
}

/* Tag pills - EXACTLY like b1.png */
.tagify__tag,
tag,
.tagify tag {
    /* Override ALL Tagify variables */
    --tag-bg: none !important;
    --tag-hover: none !important;
    --tag-text-color: #000 !important;
    --tag-remove-btn-color: #000 !important;
    --tag-pad: 4px 10px !important;
    --tag-border-radius: 20px !important;

    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 3px 4px !important;
    padding: 4px 10px !important;
    background: #fff;
    background-color: #fff;
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 26px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    transition: none !important;
    box-shadow: none !important;
}

/* DISABLE hover effect completely - only for non-colored tags */
.tagify__tag:hover,
tag:hover,
.tagify__tag--editable:hover,
.tagify__tag--editable {
    border-color: #333 !important;
    transition: none !important;
    box-shadow: none !important;
}

/* Blue tags for primary (photographers/regions) - if used */
.tagify__tag.tag-primary,
tag.tag-primary {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
    transition: none !important;
}

/* NO hover effect on blue tags either */
.tagify__tag.tag-primary:hover,
tag.tag-primary:hover {
    background: #007bff !important;
    border-color: #007bff !important;
    transition: none !important;
}

/* Client color tags - matching colors from style.css (30 predefined colors) */
.tagify__tag.tag-1, tag.tag-1 { background: #E6B8AF !important; color: #A61C00 !important; border-color: #E6B8AF !important; }
.tagify__tag.tag-2, tag.tag-2 { background: #DD7E6B !important; color: #333333 !important; border-color: #DD7E6B !important; }
.tagify__tag.tag-3, tag.tag-3 { background: #A61C00 !important; color: #E6B8AF !important; border-color: #A61C00 !important; }
.tagify__tag.tag-4, tag.tag-4 { background: #F4CCCC !important; color: #CC0000 !important; border-color: #F4CCCC !important; }
.tagify__tag.tag-5, tag.tag-5 { background: #EA9999 !important; color: #333333 !important; border-color: #EA9999 !important; }
.tagify__tag.tag-6, tag.tag-6 { background: #CC0000 !important; color: #F4CCCC !important; border-color: #CC0000 !important; }
.tagify__tag.tag-7, tag.tag-7 { background: #FCE5CD !important; color: #E69137 !important; border-color: #FCE5CD !important; }
.tagify__tag.tag-8, tag.tag-8 { background: #F9CB9C !important; color: #333333 !important; border-color: #F9CB9C !important; }
.tagify__tag.tag-9, tag.tag-9 { background: #E69137 !important; color: #FCE5CD !important; border-color: #E69137 !important; }
.tagify__tag.tag-10, tag.tag-10 { background: #FFF2CC !important; color: #DE7800 !important; border-color: #FFF2CC !important; }
.tagify__tag.tag-11, tag.tag-11 { background: #FFE599 !important; color: #333333 !important; border-color: #FFE599 !important; }
.tagify__tag.tag-12, tag.tag-12 { background: #F1C232 !important; color: #FFF2CC !important; border-color: #F1C232 !important; }
.tagify__tag.tag-13, tag.tag-13 { background: #D9EAD3 !important; color: #69A84F !important; border-color: #D9EAD3 !important; }
.tagify__tag.tag-14, tag.tag-14 { background: #B6D7A9 !important; color: #333333 !important; border-color: #B6D7A9 !important; }
.tagify__tag.tag-15, tag.tag-15 { background: #69A84F !important; color: #D9EAD3 !important; border-color: #69A84F !important; }
.tagify__tag.tag-16, tag.tag-16 { background: #D0E0E3 !important; color: #44818E !important; border-color: #D0E0E3 !important; }
.tagify__tag.tag-17, tag.tag-17 { background: #A2C4C9 !important; color: #333333 !important; border-color: #A2C4C9 !important; }
.tagify__tag.tag-18, tag.tag-18 { background: #44818E !important; color: #D0E0E3 !important; border-color: #44818E !important; }
.tagify__tag.tag-19, tag.tag-19 { background: #C9DAF8 !important; color: #3D78D8 !important; border-color: #C9DAF8 !important; }
.tagify__tag.tag-20, tag.tag-20 { background: #A4C3F4 !important; color: #333333 !important; border-color: #A4C3F4 !important; }
.tagify__tag.tag-21, tag.tag-21 { background: #3D78D8 !important; color: #C9DAF8 !important; border-color: #3D78D8 !important; }
.tagify__tag.tag-22, tag.tag-22 { background: #CFE2F3 !important; color: #333333 !important; border-color: #CFE2F3 !important; }
.tagify__tag.tag-23, tag.tag-23 { background: #9FC5E8 !important; color: #333333 !important; border-color: #9FC5E8 !important; }
.tagify__tag.tag-24, tag.tag-24 { background: #3D85C6 !important; color: #CFE2F3 !important; border-color: #3D85C6 !important; }
.tagify__tag.tag-25, tag.tag-25 { background: #DAD2E9 !important; color: #674EA7 !important; border-color: #DAD2E9 !important; }
.tagify__tag.tag-26, tag.tag-26 { background: #B4A7D6 !important; color: #333333 !important; border-color: #B4A7D6 !important; }
.tagify__tag.tag-27, tag.tag-27 { background: #674EA7 !important; color: #DAD2E9 !important; border-color: #674EA7 !important; }
.tagify__tag.tag-28, tag.tag-28 { background: #EAD1DC !important; color: #A64D79 !important; border-color: #EAD1DC !important; }
.tagify__tag.tag-29, tag.tag-29 { background: #D5A6BD !important; color: #333333 !important; border-color: #D5A6BD !important; }
.tagify__tag.tag-30, tag.tag-30 { background: #A64D79 !important; color: #EAD1DC !important; border-color: #A64D79 !important; }

/* Remove button */
.tagify__tag__removeBtn,
.tagify__tag x,
tag x {
    order: 999 !important;
    margin-left: 5px !important;
    margin-right: 0 !important;
    color: #000 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    opacity: 1.0 !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* Darker red on hover for remove button */
.tagify__tag__removeBtn:hover,
tag x:hover {
    color: #c00 !important;
    opacity: 1 !important;
}

/* X button on colored tags - inherit text color */
.tagify__tag.tag-primary x,
.tagify__tag[class*="tag-"] x {
    color: inherit !important;
}

/* Darker X on colored tags hover */
.tagify__tag.tag-primary x:hover,
.tagify__tag[class*="tag-"] x:hover {
    opacity: 0.7 !important;
}

/* Tag text */
.tagify__tag-text,
.tagify__tag > div,
tag > div {
    order: 1 !important;
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Input area - dashed circle with + like b1.png */
.tagify__input,
.tagify input {
    display: inline-block !important;
    padding: 0 !important;
    margin: 3px 4px !important;
    border: 1px dashed #ccc !important;
    border-radius: 50% !important;
    outline: none !important;
    min-width: 32px !important;
    max-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    text-align: center !important;
    background: transparent !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Show + sign in dashed circle - ALWAYS visible */
.tagify__input::before {
    content: '+' !important;
    color: #999 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

/* Ensure + is visible even when empty */
.tagify:not(.tagify--focus) .tagify__input::before {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dropdown */
.tagify__dropdown {
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    border-radius: 3px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    margin-top: 2px !important;
    z-index: 9999 !important;
}

.tagify__dropdown__wrapper {
    background: #fff !important;
}

.tagify__dropdown__item {
    padding: 6px 10px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #333 !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.tagify__dropdown__item:hover,
.tagify__dropdown__item--active {
    background: #f8f9fa !important;
    color: #000 !important;
}

/* Kill any amsify remnants */
.amsify-list,
.amsify-suggestags-input-area {
    display: none !important;
}

/* Disabled state */
.tagify[disabled],
.tagify.tagify--disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
}
