body.damgar-modal-open{
    overflow:hidden;
}

.damgar-filter-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.damgar-filter-sidebar {
    width: 320px;
    min-width: 320px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    order: 2;
    position: sticky;
    top: 20px;
}

.damgar-filter-results-wrap {
    flex: 1;
    min-width: 0;
    order: 1;
}

.damgar-results-top-help{
    margin-bottom:14px;
}

.damgar-help-btn{
    display:inline-block;
    background:#111827;
    color:#fff;
    padding:10px 16px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.damgar-help-btn:hover{
    color:#fff;
    opacity:.92;
}

.damgar-filter-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.damgar-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.damgar-filter-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.damgar-filter-row label {
    font-size: 14px;
    font-weight: 600;
}

.damgar-filter-row select,
.damgar-filter-row input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
}

.damgar-filter-row-button button {
    width: 100%;
    min-height: 42px;
    border: none;
    background: #c60021;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 700;
    font-size: 14px;
}

.damgar-filter-row-button button:hover {
    opacity: 0.9;
}

.damgar-clear-btn{
    background:#6b7280 !important;
}

.damgar-results-meta {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.damgar-results-table-wrap {
    overflow-x: auto;
}

.damgar-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.damgar-results-table th,
.damgar-results-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

.damgar-results-table th {
    background: #f0f0f0;
    font-weight: 700;
}

.damgar-result-image {
    max-width: 70px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.damgar-no-image {
    font-size: 12px;
    color: #888;
}

.damgar-no-results,
.damgar-loading,
.damgar-error {
    font-size: 14px;
    margin-top: 10px;
    background: #fff;
    padding: 12px;
    border: 1px solid #ddd;
}

.damgar-no-results-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 6px;
}

.damgar-no-results-help {
    margin: 10px 0 14px;
    font-size: 14px;
}

.damgar-whatsapp-btn {
    background: #25D366;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.damgar-whatsapp-btn:hover {
    background: #1ebe5d;
    color: #fff;
}

.damgar-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.damgar-page-btn {
    border: none;
    background: #f0f0f0;
    color: #222;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.damgar-page-btn:hover {
    background: #ddd;
}

.damgar-page-btn.active {
    background: #c60021;
    color: #fff;
}

.damgar-image-preview{
    margin-top:10px;
}

.damgar-image-preview img{
    max-width:140px;
    height:auto;
    border:1px solid #ddd;
    border-radius:8px;
    display:block;
}

@media (max-width: 991px) {
    .damgar-filter-layout {
        flex-direction: column;
    }

    .damgar-filter-sidebar {
        width: 100%;
        min-width: 100%;
        order: 1;
        position: static;
    }

    .damgar-filter-results-wrap {
        width: 100%;
        order: 2;
    }

    .damgar-results-table thead {
        display: none;
    }

    .damgar-results-table,
    .damgar-results-table tbody,
    .damgar-results-table tr,
    .damgar-results-table td {
        display: block;
        width: 100%;
    }

    .damgar-results-table tr {
        margin-bottom: 16px;
        border: 1px solid #ddd;
        background: #fff;
        padding: 10px;
        border-radius: 6px;
    }

    .damgar-results-table td {
        border: none;
        border-bottom: 1px solid #eee;
        text-align: right;
        padding: 10px 8px;
        position: relative;
    }

    .damgar-results-table td:last-child {
        border-bottom: none;
    }

    .damgar-results-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
        color: #555;
    }
}

.damgar-image-zoom-link{
    display:inline-block;
    cursor:zoom-in;
}

.damgar-image-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.82);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
    padding:30px;
}

.damgar-image-lightbox.active{
    display:flex;
}

.damgar-image-lightbox img{
    max-width:90vw;
    max-height:85vh;
    width:auto;
    height:auto;
    border-radius:8px;
    box-shadow:0 10px 40px rgba(0,0,0,.35);
    background:#fff;
}

.damgar-image-lightbox-close{
    position:absolute;
    top:18px;
    left:18px;
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#111;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}