/* Discover Page CSS */

.discover-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--slate-200);
    overflow: hidden;
    flex-wrap: wrap;
    align-items: center;
}

/* ══════════════════════════════════════════
   SIDEBAR LAYOUT
══════════════════════════════════════════ */
.discover-layout {
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.25rem;
}

.discover-sidebar {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 24px;
    z-index: 900;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-clear-btn {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--husay) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.sidebar-clear-btn:hover {
    color: #c45b37 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: underline !important;
}

.sidebar-clear-btn:focus,
.sidebar-clear-btn:active,
.sidebar-clear-btn:focus-visible {
    color: var(--husay) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Search inside sidebar */
.sidebar-search-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.sidebar-search-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    font-size: 0.875rem;
    color: var(--slate-700);
    background: var(--slate-50);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--husay);
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1);
}

/* Filter Groups */
.sidebar-filter-group {
    margin-bottom: 1.25rem;
}

.sidebar-filter-group+.sidebar-filter-group {
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
}

.sidebar-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    display: block;
}

.sidebar-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    font-size: 0.875rem;
    color: var(--slate-700);
    background: var(--slate-50);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
}

.sidebar-select:focus {
    outline: none;
    border-color: var(--husay);
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1);
}

/* Artist Type accordion inside sidebar */
.sidebar-artist-type-accordion {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--slate-50);
    padding: 4px 0;
}

/* Sidebar Category Radios */
.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-cat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}

.sidebar-cat-label:hover {
    background: var(--slate-100);
}

.sidebar-cat-label input[type="radio"] {
    accent-color: var(--husay);
    width: 16px;
    height: 16px;
    margin: 0;
}

.cat-text {
    flex: 1;
}

.cat-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    min-width: 24px;
    text-align: center;
}

/* Sidebar Checkbox List (Listing Type) */
.sidebar-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.sidebar-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-600);
    cursor: pointer;
}

.sidebar-checkbox-list input[type="checkbox"] {
    accent-color: var(--husay);
    width: 15px;
    height: 15px;
    margin: 0;
    border-radius: 4px;
}

/* Date filter inside sidebar */
.sidebar-date-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.sidebar-date-toggle label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--slate-600);
}

.sidebar-date-toggle input {
    accent-color: var(--husay);
}

.sidebar-date-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--slate-700);
    background: var(--slate-50);
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 6px;
}

.sidebar-date-input:focus {
    outline: none;
    border-color: var(--husay);
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1);
}

.sidebar-date-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    display: block;
    margin-bottom: 4px;
}

/* Status pills (Communities) */
.sidebar-status-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 5px 14px !important;
    border-radius: 99px !important;
    border: 1px solid #DCD7EC !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: #F0EEF4 !important;
    color: #403272 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.status-pill:hover,
.status-pill:focus {
    background: #DCD7EC !important;
    color: #403272 !important;
    border-color: #403272 !important;
}

.status-pill.active {
    background: #403272 !important;
    color: #fff !important;
    border-color: #403272 !important;
}

/* Due Date Pills (Opportunities) */
.sidebar-due-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.sidebar-due-pills .status-pill {
    padding: 5px 12px !important;
    border-radius: 99px !important;
    border: 1px solid #DCD7EC !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: #F0EEF4 !important;
    color: #403272 !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-due-pills .status-pill:hover {
    background: #DCD7EC !important;
    color: #403272 !important;
    border-color: #403272 !important;
}

.sidebar-due-pills .status-pill.active {
    background: #403272 !important;
    color: #fff !important;
    border-color: #403272 !important;
    font-weight: 600 !important;
}


/* Active filter count badge */
.filter-count-badge {
    background: var(--husay);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    display: none;
}

.filter-count-badge.visible {
    display: inline-block;
}

/* Content column */
.discover-content {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.discover-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Mobile filter toggle button */
.btn-mobile-filters {
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mobile-filters:hover {
    border-color: var(--husay);
    color: var(--husay);
}

/* Mobile Drawer Overlay */
.sidebar-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.sidebar-drawer-overlay.open {
    display: block;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    max-width: 90vw;
    background: #fff;
    z-index: 10001;
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.sidebar-drawer.open {
    transform: translateX(0);
}

.sidebar-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-drawer-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.btn-close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-close-drawer:hover {
    color: var(--slate-800);
}

.discover-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-500);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -1px;
}

.discover-tab-btn:hover {
    color: var(--slate-700);
    background: transparent !important;
}

.discover-tab-btn.active {
    color: var(--husay);
    background: transparent;
    border-bottom: 3px solid var(--husay);
}

.tab-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.discover-tab-btn.active .tab-badge {
    background: #ffedd5;
    color: #c2410c;
}

/* Filter Box Redesign */
.filter-box-container {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    animation: fadeInCatToolbar 0.2s ease-in-out;
}

.filter-box-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.filter-box-row .pub-search-input-alt {
    flex: 1 1 200px;
    min-width: 180px;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background: white;
    font-size: 0.875rem;
    color: var(--slate-700);
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.filter-box-row .pub-search-input-alt:focus {
    border-color: var(--husay, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-box-row select.filter-select-alt {
    flex: 0 0 auto;
    width: auto;
    min-width: 130px;
    max-width: 175px;
    height: 42px;
    padding: 0 2.2rem 0 0.875rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.filter-box-row select.filter-select-alt:focus {
    border-color: var(--husay, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-box-row .custom-date-dropdown {
    flex: 0 0 auto;
}

.filter-box-row button.filter-select-alt {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    height: 42px;
    padding: 0 0.875rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.filter-box-row button.filter-select-alt:hover {
    border-color: var(--slate-300);
}

.filter-box-row .btn-clear-white {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background: white;
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.2s;
}

.filter-box-row .btn-clear-white:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-800);
}

.date-preset-pill {
    padding: 4px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 9999px;
    background: white;
    color: var(--slate-600);
    font-size: 0.775rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.date-preset-pill:hover {
    border-color: var(--husay, #f97316);
    color: var(--husay, #f97316);
    background: #fff7ed;
}

@media (max-width: 900px) {

    .filter-box-row select.filter-select-alt,
    .filter-box-row button.filter-select-alt {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }
}

@media (max-width: 600px) {

    .filter-box-row select.filter-select-alt,
    .filter-box-row button.filter-select-alt,
    .filter-box-row .pub-search-input-alt,
    .filter-box-row .btn-clear-white {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Card Styles */
.discover-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--slate-200);
    position: relative;
    /* For floating badge */
}

.discover-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-category-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 8px;
    letter-spacing: 0.5px;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    background: #f1f5f9;
    color: #475569;
}

.card-category-badge:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.card-floating-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--husay);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 8px;
    letter-spacing: 0.5px;
}

/* Card Header Group: balanced spacing between tag/org and title */
.discover-card-header-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.discover-card-header-group .card-org {
    margin: 0;
    line-height: 1.3;
}

.discover-card-header-group .discover-card-title {
    margin: 0;
    line-height: 1.3;
}

.card-org {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-org-tag {
    cursor: pointer;
    transition: color 0.15s ease;
    display: inline-block;
}

.card-org-tag:hover {
    color: var(--husay);
    text-decoration: underline;
}

.discover-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.3;
}

.discover-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.discover-title-link:hover {
    color: var(--husay);
    text-decoration: underline;
}

.discover-card-meta {
    display: flex;
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}

.discover-card-meta.meta-box {
    flex-direction: column;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
}

.discover-card-meta.meta-box:empty {
    display: none;
    padding: 0;
    margin: 0;
}

/* "For: ___" audience section box */
.discover-audience-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discover-audience-box:empty {
    display: none;
    padding: 0;
    margin: 0;
}

.discover-audience-box .discover-meta-item.discover-meta-audience {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.discover-audience-box .discover-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 600;
    flex-shrink: 0;
    margin: 0;
}

.discover-audience-box .discover-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-left: 4px;
}

.discover-audience-box .discover-tag {
    background: #eef2f6;
    color: #475569;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    text-transform: capitalize;
}

.discover-audience-box .discover-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.discover-audience-box .discover-audience-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.discover-audience-box .discover-audience-tags-row .discover-type-tag,
.discover-audience-box .discover-audience-tags-row .discover-tag {
    margin: 0;
}

.discover-card-meta.meta-inline {
    flex-direction: row;
    gap: 15px;
    margin: 14px 0 12px 0;
}

.discover-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.discover-meta-item.discover-meta-audience {
    align-items: flex-start;
}

.discover-meta-item.discover-meta-audience .discover-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 3px;
}

.discover-meta-item.discover-meta-audience .discover-meta-tags {
    display: inline-block;
    margin-left: 4px;
    flex: 1;
}

.discover-card-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.5;
    flex: 1;
}

.discover-card-action {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.action-left {
    color: #94a3b8;
}

.btn-discover-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--husay);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-discover-link:hover {
    color: #c45b37;
}

/* Modal Submission */
.modal-discover {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-discover-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-discover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.modal-discover-close-btn {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #64748b !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    position: static !important;
    box-shadow: none !important;
}

.modal-discover-close-btn:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

.modal-discover-close-btn svg,
.modal-discover-close-btn i {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    display: block !important;
}

.form-row-1,
.form-row-2,
.form-row-3 {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-1 {
    grid-template-columns: 1fr;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

.form-group-dynamic {
    display: none;
}

.form-group-dynamic.active {
    display: block;
}

/* Fix for date dropdown button hover turning text white */
button.filter-select-alt:hover {
    color: var(--slate-600) !important;
    background: white !important;
}

/* Modal form inputs styling */
.modal-discover-content .form-input {
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    padding: 10px 14px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.modal-discover-content .form-input:focus {
    border-color: var(--husay) !important;
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1) !important;
}

/* Custom Scrollbar for Modal */
.modal-discover-content::-webkit-scrollbar {
    width: 8px;
}

.modal-discover-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-discover-content::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

.modal-discover-content::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ══════════════════════════════════════════
   SUBMIT MODAL: VISUAL CATEGORY SELECTOR
   ══════════════════════════════════════════ */
.submit-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 860px) {
    .submit-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .submit-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Base button reset & styling - override Astra button styles */
.modal-discover-content button.submit-type-card,
button.submit-type-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 10px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal-discover-content button.submit-type-card i,
.modal-discover-content button.submit-type-card svg,
button.submit-type-card i,
button.submit-type-card svg {
    width: 22px !important;
    height: 22px !important;
    color: #64748b !important;
    stroke: #64748b !important;
    stroke-width: 1.8 !important;
    transition: color 0.2s, stroke 0.2s, transform 0.2s !important;
    display: block !important;
}

.modal-discover-content button.submit-type-card span,
button.submit-type-card span {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: color 0.2s !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Hover on Inactive */
.modal-discover-content button.submit-type-card:hover:not(.active),
button.submit-type-card:hover:not(.active) {
    border-color: #C8C2DE !important;
    background: #FAF9FC !important;
    color: #403272 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(64, 50, 114, 0.08) !important;
}

.modal-discover-content button.submit-type-card:hover:not(.active) span,
button.submit-type-card:hover:not(.active) span {
    color: #403272 !important;
    font-weight: 600 !important;
}

.modal-discover-content button.submit-type-card:hover:not(.active) i,
.modal-discover-content button.submit-type-card:hover:not(.active) svg,
button.submit-type-card:hover:not(.active) i,
button.submit-type-card:hover:not(.active) svg {
    color: #403272 !important;
    stroke: #403272 !important;
    transform: translateY(-1px) !important;
}

/* Active State */
.modal-discover-content button.submit-type-card.active,
button.submit-type-card.active,
.modal-discover-content button.submit-type-card.active:hover,
button.submit-type-card.active:hover,
.modal-discover-content button.submit-type-card.active:focus,
button.submit-type-card.active:focus {
    border: 2px solid #403272 !important;
    border-color: #403272 !important;
    background: #F0EEF4 !important;
    color: #403272 !important;
    box-shadow: 0 0 0 1px #403272, 0 4px 14px rgba(64, 50, 114, 0.16) !important;
}

.modal-discover-content button.submit-type-card.active span,
button.submit-type-card.active span,
.modal-discover-content button.submit-type-card.active:hover span,
button.submit-type-card.active:hover span {
    color: #403272 !important;
    font-weight: 700 !important;
}

.modal-discover-content button.submit-type-card.active i,
.modal-discover-content button.submit-type-card.active svg,
button.submit-type-card.active i,
button.submit-type-card.active svg,
.modal-discover-content button.submit-type-card.active:hover i,
.modal-discover-content button.submit-type-card.active:hover svg,
button.submit-type-card.active:hover i,
button.submit-type-card.active:hover svg {
    color: #403272 !important;
    stroke: #403272 !important;
    transform: scale(1.08) !important;
}

.modal-discover-content button.submit-type-card:focus-visible,
button.submit-type-card:focus-visible {
    outline: 2px solid #403272 !important;
    outline-offset: 2px !important;
}

.modal-discover-content button.submit-type-card:focus:not(:focus-visible),
button.submit-type-card:focus:not(:focus-visible) {
    outline: none !important;
}

/* ══════════════════════════════════════════
   SUBMIT MODAL: CHOOSE CATEGORY PROMPT
   ══════════════════════════════════════════ */
.submit-choose-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 38px 24px;
    background: #FAF9FC;
    border: 1.5px dashed #DCD7EC;
    border-radius: 14px;
    margin-top: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.submit-choose-prompt-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #F0EEF4;
    border: 1px solid #DCD7EC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #403272;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(64, 50, 114, 0.08);
}

.submit-choose-prompt-icon i,
.submit-choose-prompt-icon svg {
    width: 24px;
    height: 24px;
    color: #403272;
    stroke: #403272;
    stroke-width: 1.8;
}

.submit-choose-prompt h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1E1B4B;
}

.submit-choose-prompt p {
    margin: 0;
    font-size: 13.5px;
    color: #645A7D;
    max-width: 460px;
    line-height: 1.55;
}

.submit-choose-prompt p strong {
    color: #403272;
}

/* ══════════════════════════════════════════
   SUBMIT MODAL: THUMBNAIL UPLOAD & DROPZONE
   ══════════════════════════════════════════ */
.thumbnail-badge {
    font-size: 11.5px;
    color: #403272;
    background: #F0EEF4;
    border: 1px solid #DCD7EC;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.discover-upload-dropzone {
    border: 2px dashed #DCD7EC;
    border-radius: 12px;
    background: #FAF9FC;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.discover-upload-dropzone:hover,
.discover-upload-dropzone.dragover {
    border-color: #403272;
    background: #F0EEF4;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F0EEF4;
    border: 1px solid #DCD7EC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #403272;
    box-shadow: 0 1px 3px rgba(64, 50, 114, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dropzone-icon-circle i,
.dropzone-icon-circle svg {
    width: 22px;
    height: 22px;
    color: #403272;
    stroke: #403272;
    stroke-width: 1.8;
}

.discover-upload-dropzone:hover .dropzone-icon-circle {
    transform: scale(1.08);
    border-color: #403272;
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dropzone-primary-text {
    font-size: 13.5px;
    color: #334155;
    font-weight: 500;
}

.dropzone-primary-text strong {
    color: #403272;
}


.dropzone-subtext {
    font-size: 11.5px;
    color: #64748b;
}

.thumbnail-preview-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.thumbnail-preview-card {
    position: relative;
    height: 180px;
    width: 100%;
    background: #0f172a;
}

.thumbnail-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px 16px;
    color: #ffffff;
}

.thumbnail-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 65%;
}

.thumbnail-filename {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.thumbnail-filesize {
    font-size: 11.5px;
    color: #cbd5e1;
}

.thumbnail-preview-actions {
    display: flex;
    gap: 8px;
}

.btn-preview-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-preview-action i,
.btn-preview-action svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.btn-change-thumb {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
}

.btn-change-thumb:hover {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-remove-thumb {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.btn-remove-thumb:hover {
    background: #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.thumbnail-size-warning {
    margin: 10px 14px 12px 14px;
    font-size: 12px;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbnail-size-warning i,
.thumbnail-size-warning svg {
    width: 14px;
    height: 14px;
    stroke: #b45309;
    flex-shrink: 0;

}

/* ══════════════════════════════════════════
   SUBMIT MODAL: EMBEDDED ARTIST REGISTRATION
   ══════════════════════════════════════════ */
.modal-discover-content .reg-flat-form {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.modal-discover-content .reg-section {
    margin-bottom: 2rem;
}

.modal-discover-content .reg-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-discover-content .reg-section-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--husay-light, #ffedd5);
    color: var(--husay, #e87147);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.modal-discover-content .reg-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900, #0f172a);
    margin: 0;
}

.modal-discover-content .reg-slug-wrap {
    display: flex;
    align-items: stretch;
}

.modal-discover-content .reg-slug-prefix {
    background: #f1f5f9;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.modal-discover-content .reg-slug-input {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    flex: 1;
}

.modal-discover-content .toggle-bar {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.modal-discover-content .toggle-btn {
    padding: 6px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.modal-discover-content .toggle-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.modal-discover-content .toggle-btn:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.modal-discover-content .btn-upload:hover {
    background: #F0EEF4 !important;
    border-color: #403272 !important;
    color: #32255d !important;
}

.modal-discover-content .pass-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-discover-content .pass-toggle:hover {
    background: transparent !important;
    color: #403272 !important;
}

.modal-discover-content .btn-submit {
    background: #403272 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(64, 50, 114, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.modal-discover-content .btn-submit:hover {
    background: #32255d !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(64, 50, 114, 0.35) !important;
}

/* Close button hover fix */
.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--slate-800);
}

/* 3-Column Grid for Discover Cards (Wider Cards) */
.discover-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1200px) {
    .discover-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .discover-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

.discover-card-img {
    width: calc(100% + 3rem) !important;
    max-width: calc(100% + 3rem) !important;
    min-width: calc(100% + 3rem) !important;
    height: 160px !important;
    margin: -1.5rem -1.5rem 0.75rem -1.5rem !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.discover-card-img.cover-placeholder {
    background-image: url('../images/Husay-Icon-gray.jpg');
    background-size: cover;
    background-position: center;
    height: 160px !important;
}


.discover-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.discover-card-tags:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.discover-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 2px;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.discover-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 2px;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.discover-tag-clickable,
.discover-tag.clickable,
.discover-type-tag.clickable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.discover-tag-clickable:hover,
.discover-tag.clickable:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.discover-type-tag.clickable:hover,
.discover-type-tag.discover-tag-clickable:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile Sidebar Drawer
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .discover-layout {
        grid-template-columns: 1fr;
    }

    /* Hide the sticky sidebar on mobile — use drawer instead */
    .discover-sidebar {
        display: none;
    }

    .btn-mobile-filters {
        display: flex;
    }
}

@media (max-width: 600px) {
    .discover-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }

    .discover-tab-btn {
        font-size: 0.875rem;
        padding: 0.65rem 0.4rem;
    }

    .sidebar-drawer {
        width: 100%;
        max-width: 100vw;
    }
}

/* ══════════════════════════════════════════
   DISCOVER INNER TABS (Browse / Saved)
══════════════════════════════════════════ */
.discover-navigation {
    margin-bottom: 30px;
    border-bottom: 1px solid #DCD7EC;
}

.discover-nav {
    display: flex;
    gap: 32px;
}

.discover-nav .discover-nav-item {
    padding: 12px 0;
    color: #645A7D;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.discover-nav .discover-nav-item:hover {
    color: #403272;
    font-weight: 600;
}

.discover-nav .discover-nav-item.active {
    color: #403272;
    font-weight: 700;
}

.discover-nav .discover-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: #403272;
}

/* ══════════════════════════════════════════
   SAVE TO WISHLIST BUTTON
══════════════════════════════════════════ */
.btn-save-listing {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.btn-save-listing svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    stroke: #94a3b8 !important;
    fill: none !important;
    transition: all 0.2s ease;
    display: block !important;
    flex-shrink: 0 !important;
}

.btn-save-listing:hover,
.btn-save-listing:focus,
.btn-save-listing:active {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1) !important;
    /* Prevent theme hover/focus backgrounds */
    outline: none !important;
    color: #403272 !important;
}

.btn-save-listing:hover svg,
.btn-save-listing:focus svg {
    stroke: #403272 !important;
    fill: #DCD7EC !important;
    /* Light fill on hover/focus */
}

.btn-save-listing.active svg {
    stroke: #403272 !important;
    fill: #403272 !important;
}

/* ══════════════════════════════════════════
   CATEGORY SPECIFIC TOOLBAR (Above Grid)
   ══════════════════════════════════════════ */
.category-toolbars-wrap {
    margin-bottom: 1.25rem;
}

.category-toolbar-box {
    background: #ffffff;
    border: 1px solid #DCD7EC;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(64, 50, 114, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: fadeInCatToolbar 0.2s ease-in-out;
}

@keyframes fadeInCatToolbar {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-toolbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F0EEF4;
}

.category-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #403272;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-toolbar-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.category-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-toolbar-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #645A7D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-toolbar-group .sidebar-select {
    min-width: 180px;
    padding: 6px 12px;
    font-size: 0.825rem;
    border: 1px solid #DCD7EC;
    border-radius: 8px;
    background-color: #fff;
    color: #403272;
}

.category-toolbar-group .sidebar-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-toolbar-group .status-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    background: #F0EEF4;
    border: 1px solid #DCD7EC;
    color: #403272;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}

.category-toolbar-group .status-pill:hover {
    background: #DCD7EC;
    color: #403272;
    border-color: #403272;
}

.category-toolbar-group .status-pill.active {
    background: #403272 !important;
    border-color: #403272 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   SIDEBAR ACTIVE CHIP & BADGE
   ══════════════════════════════════════════ */
.sidebar-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
}

.sidebar-active-chip button {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    color: #ea580c !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.15s ease !important;
}

.sidebar-active-chip button:hover {
    color: #9a3412 !important;
}

/* ══════════════════════════════════════════
   UNIFIED DROPDOWN PILLS (LOCATION & CREATIVE FIELD)
   ══════════════════════════════════════════ */
.dropdown-pill-wrapper {
    position: relative;
    display: inline-flex;
}

.dropdown-pill-wrapper.open,
.dropdown-pill-wrapper:focus-within {
    z-index: 1060;
}

.status-pill.dropdown-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.status-pill.dropdown-pill.active {
    background: var(--husay) !important;
    color: #fff !important;
    border-color: var(--husay) !important;
}

.dropdown-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-pill-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-left: 3px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-pill-clear:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: scale(1.15);
}

.dropdown-pill-clear.hidden {
    display: none !important;
}

.pill-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1050;
    width: 250px;
    max-height: 280px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 8px;
    display: flex;
    flex-direction: column;
    animation: pillDropdownFadeIn 0.15s ease-out;
}

.sidebar-drawer .pill-dropdown-menu {
    max-width: calc(100vw - 60px);
}

/* ══════════════════════════════════════════
   INLINE CUSTOM "OTHER" INPUT FIELDS
   ══════════════════════════════════════════ */
.sidebar-other-input-wrap {
    margin-top: 8px;
    animation: otherFieldSlideDown 0.18s ease-out;
}

@keyframes otherFieldSlideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-other-input-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.sidebar-other-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sidebar-other-input {
    width: 100%;
    padding: 6px 28px 6px 30px !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    color: var(--slate-800) !important;
    background: var(--slate-50) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.sidebar-other-input:focus {
    border-color: var(--husay) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1) !important;
}

.sidebar-other-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--slate-400);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.sidebar-other-clear-btn:hover {
    color: var(--slate-700);
}

@keyframes pillDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pill-dropdown-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.pill-dropdown-search input {
    border: none !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--slate-700) !important;
}

.pill-dropdown-list {
    overflow-y: auto;
    max-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 2px;
}

.pill-dropdown-list::-webkit-scrollbar {
    width: 5px;
}

.pill-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 10px;
}

.pill-dropdown-group {
    margin-bottom: 6px;
}

.pill-dropdown-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 6px 2px;
}

.pill-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 8px;
    font-size: 0.78rem;
    color: var(--slate-700);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pill-dropdown-item:hover {
    background: #fdf0ec !important;
    color: var(--husay) !important;
}

/* ══════════════════════════════════════════
   LIVE URL VERIFICATION BADGE & MODAL PILLS
   ══════════════════════════════════════════ */
.url-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.url-status-badge.checking {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.url-status-badge.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.url-status-badge.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.url-status-badge.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.url-status-badge svg,
.url-status-badge i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

@keyframes spinLoader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.url-status-badge .spin {
    animation: spinLoader 0.9s linear infinite;
}

#modal-opp-loc-pills .status-pill,
#modal-comm-loc-pills .status-pill,
#modal-event-loc-pills .status-pill {
    padding: 6px 14px;
    font-size: 12.5px;
}

#modal-opp-loc-province-dropdown,
#modal-comm-loc-province-dropdown,
#modal-event-loc-province-dropdown {
    width: 260px;
    max-height: 260px;
}

/* ══════════════════════════════════════════
   AIRBNB-STYLE DATE MODE TOGGLE
   ══════════════════════════════════════════ */
.airbnb-date-mode-pills {
    display: inline-flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--slate-200);
    gap: 2px;
    align-items: center;
}

button.airbnb-mode-btn,
.airbnb-mode-btn {
    border: none !important;
    background: transparent !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.3 !important;
    height: auto !important;
    margin: 0 !important;
    text-decoration: none !important;
}

button.airbnb-mode-btn:hover,
.airbnb-mode-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

button.airbnb-mode-btn.active,
.airbnb-mode-btn.active {
    background: #ffffff !important;
    color: #d4603a !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

button.airbnb-mode-btn.active:hover,
.airbnb-mode-btn.active:hover {
    background: #ffffff !important;
    color: #d4603a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

button.airbnb-mode-btn:focus,
.airbnb-mode-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   THUMBNAIL CROPPER & PAN MODAL STYLES (WITH DIMMED SURROUNDINGS)
   ═════════════════════════════════════════════════════════════════════════ */
.discover-cropper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100050;
    padding: 1rem;
    animation: fadeInCropper 0.2s ease;
}

@keyframes fadeInCropper {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.discover-cropper-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 660px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    max-height: 94vh;
    overflow-y: auto;
}

.discover-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discover-cropper-stage {
    width: 100%;
    height: 360px;
    background: #090d16;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.discover-cropper-stage.grabbing {
    cursor: grabbing;
}

.discover-cropper-img {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
    max-width: none !important;
    display: block;
    will-change: transform;
    z-index: 1;
}

/* The illuminated card thumbnail crop box with dimmed surroundings outside */
.discover-cropper-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 510px;
    height: 240px;
    border: 2px solid #e87147;
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
    /* Box shadow dims the entire stage outside the crop box */
    box-shadow: 0 0 0 2500px rgba(15, 23, 42, 0.72);
}

@media (max-width: 560px) {
    .discover-cropper-box {
        width: calc(100% - 32px);
        height: calc((100vw - 64px) * 160 / 340);
    }
}

.discover-cropper-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.discover-cropper-grid>div {
    border: 1px dashed rgba(255, 255, 255, 0.22);
}

.crop-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #e87147;
    border-style: solid;
    pointer-events: none;
}

.crop-corner.top-left {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 4px;
}

.crop-corner.top-right {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 4px;
}

.crop-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 4px;
}

.crop-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 4px;
}

.cropper-mock-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-top-left-radius: 6px;
    border-bottom-right-radius: 8px;
    background: rgba(232, 113, 71, 0.92);
    color: white;
    letter-spacing: 0.5px;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cropper-mock-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.discover-cropper-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.cropper-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Prevent red button focus flash from dashboard.css across cropper and preview modals */
.discover-cropper-content button:focus,
.discover-cropper-content button:focus:not(:focus-visible),
.discover-cropper-content button:active {
    outline: none !important;
}

.btn-cropper-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none !important;
    box-shadow: none !important;
}

.btn-cropper-pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-cropper-pill:focus,
.btn-cropper-pill:focus:not(:focus-visible),
.btn-cropper-pill:active {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Active toggle for Fit or Fill Frame pill */
.btn-cropper-pill.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.btn-cropper-pill.active:hover,
.btn-cropper-pill.active:focus,
.btn-cropper-pill.active:active {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

.discover-cropper-hint {
    font-size: 0.78rem;
    color: #64748b;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discover-cropper-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
}

.btn-cropper-cancel {
    background: #f1f5f9 !important;
    border: none !important;
    color: #475569 !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
    outline: none !important;
    box-shadow: none !important;
}

.btn-cropper-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-cropper-cancel:focus,
.btn-cropper-cancel:focus:not(:focus-visible),
.btn-cropper-cancel:active {
    background: #f1f5f9 !important;
    border: none !important;
    color: #475569 !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-cropper-apply {
    background: #e87147 !important;
    border: none !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(232, 113, 71, 0.25);
    outline: none !important;
}

.btn-cropper-apply:hover {
    background: #d4603a !important;
    transform: translateY(-1px);
}

.btn-cropper-apply:focus,
.btn-cropper-apply:focus:not(:focus-visible),
.btn-cropper-apply:active {
    background: #d4603a !important;
    outline: none !important;
}

.modal-discover-close-btn:focus,
.modal-discover-close-btn:focus:not(:focus-visible),
.modal-discover-close-btn:active {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-preview-crop {
    background: #e87147 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.btn-preview-crop:hover {
    background: #d4603a !important;
    color: #ffffff !important;
}

.btn-preview-crop:focus,
.btn-preview-crop:focus:not(:focus-visible),
.btn-preview-crop:active {
    background: #d4603a !important;
    color: #ffffff !important;
    outline: none !important;
}

.btn-change-thumb:focus,
.btn-change-thumb:focus:not(:focus-visible),
.btn-change-thumb:active {
    background: #ffffff !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-remove-thumb:focus,
.btn-remove-thumb:focus:not(:focus-visible),
.btn-remove-thumb:active {
    background: #dc2626 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}