/*==========================================================================
DESIGN SYSTEM TOKENS & VARIABLES
==========================================================================*/
:root {
    --ams-primary: #e11d48; /* Warm Rose */
    --ams-primary-light: #fff1f2;
    --ams-primary-grad: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
    --ams-secondary: #4f46e5; /* Royal Indigo */
    --ams-secondary-light: #e0e7ff;
    --ams-success: #10b981;
    --ams-success-light: #ecfdf5;
    
    --ams-bg: #f8fafc;
    --ams-card-bg: #ffffff;
    --ams-text-main: #0f172a;
    --ams-text-muted: #64748b;
    --ams-text-light: #94a3b8;
    --ams-border: #e2e8f0;
    --ams-border-hover: #cbd5e1;
    
    --ams-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ams-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --ams-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --ams-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    
    --ams-radius-sm: 6px;
    --ams-radius-md: 12px;
    --ams-radius-lg: 20px;
    --ams-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --ams-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/*==========================================================================
GENERAL LAYOUT & CONTAINERS
==========================================================================*/
.ams-container {
    font-family: var(--ams-font);
    background-color: var(--ams-bg);
    color: var(--ams-text-main);
    padding: 20px;
    border-radius: var(--ams-radius-lg);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.ams-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/*==========================================================================
SIDEBAR FILTERS
==========================================================================*/
.ams-sidebar {
    width: 320px;
    background: var(--ams-card-bg);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-md);
    box-shadow: var(--ams-shadow-md);
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    overflow: hidden;
    z-index: 100;
}

.ams-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--ams-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ams-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--ams-text-main);
    background: var(--ams-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ams-close-drawer {
    display: none;
    font-size: 28px;
    background: none;
    border: 0;
    color: var(--ams-text-muted);
    cursor: pointer;
    line-height: 1;
}

.ams-sidebar-scroll {
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--ams-border) transparent;
}

.ams-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.ams-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ams-sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: var(--ams-border);
    border-radius: 20px;
}

.ams-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--ams-border);
    background: var(--ams-bg);
}

.ams-btn-reset {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1.5px solid var(--ams-border);
    color: var(--ams-text-muted);
    border-radius: var(--ams-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ams-transition);
}

.ams-btn-reset:hover {
    border-color: var(--ams-primary);
    color: var(--ams-primary);
    background: var(--ams-primary-light);
}

/*==========================================================================
ACCORDION STYLING
==========================================================================*/
.ams-filter-box {
    border-bottom: 1px solid var(--ams-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ams-filter-box:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ams-filter-header-simple h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ams-text-muted);
    margin: 0 0 12px;
}

.ams-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.ams-accordion-header h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ams-text-muted);
    margin: 0;
    transition: var(--ams-transition);
}

.ams-accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ams-text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ams-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease;
    padding-top: 0;
}

/* Open Accordion States */
.ams-accordion.ams-open .ams-accordion-header h3 {
    color: var(--ams-primary);
}

.ams-accordion.ams-open .ams-accordion-toggle {
    transform: rotate(180deg);
    color: var(--ams-primary);
}

.ams-accordion.ams-open .ams-accordion-content {
    max-height: 300px;
    opacity: 1;
    padding-top: 15px;
    overflow-y: auto;
}

/*==========================================================================
FILTER INPUTS: KEYWORD & SLIDERS
==========================================================================*/
.ams-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ams-keyword-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    padding: 0 40px 0 15px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    color: var(--ams-text-main);
    transition: var(--ams-transition);
}

.ams-keyword-input:focus {
    border-color: var(--ams-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.ams-search-icon {
    position: absolute;
    right: 15px;
    color: var(--ams-text-light);
    pointer-events: none;
    display: flex;
}

.ams-clear-keyword {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--ams-border);
    border: 0;
    border-radius: 50%;
    color: var(--ams-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--ams-transition);
}

.ams-clear-keyword:hover {
    background: var(--ams-primary);
    color: #fff;
}

/* DUAL RANGE SLIDER */
.ams-filter-slider-wrapper {
    padding: 5px 0;
}

.ams-range-slider-container {
    position: relative;
    height: 6px;
    width: 100%;
    background: var(--ams-border);
    border-radius: 3px;
    margin: 15px 0;
}

.ams-slider-track {
    position: absolute;
    height: 100%;
    background: var(--ams-primary-grad);
    border-radius: 3px;
}

.ams-range-input {
    position: absolute;
    height: 6px;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    top: 0;
    left: 0;
    outline: none;
}

.ams-range-input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--ams-primary);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: var(--ams-shadow-md);
    transition: var(--ams-transition);
    margin-top: -6px; /* align with 6px height track */
}

.ams-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--ams-primary-light);
}

.ams-range-input::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--ams-primary);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--ams-shadow-md);
}

.ams-slider-values-display {
    font-size: 13px;
    color: var(--ams-text-muted);
    text-align: right;
}

.ams-slider-values-display strong {
    color: var(--ams-text-main);
    font-size: 14px;
}

/*==========================================================================
FILTER IN-BOX LOCAL SEARCH
==========================================================================*/
.ams-filter-search {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.ams-filter-search-input {
    width: 100%;
    height: 32px;
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    padding: 0 10px 0 26px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    color: var(--ams-text-main);
    transition: var(--ams-transition);
}

.ams-filter-search-input:focus {
    border-color: var(--ams-primary);
}

.ams-filter-search-icon {
    position: absolute;
    left: 8px;
    color: var(--ams-text-light);
    pointer-events: none;
    display: flex;
}

/*==========================================================================
CUSTOM CHECKBOX LISTS
==========================================================================*/
.ams-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--ams-border) transparent;
}

.ams-filter-options::-webkit-scrollbar {
    width: 4px;
}

.ams-filter-options::-webkit-scrollbar-thumb {
    background-color: var(--ams-border);
    border-radius: 20px;
}

.ams-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--ams-text-main);
    padding: 4px 0;
    user-select: none;
    transition: var(--ams-transition);
}

.ams-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ams-checkbox-box {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1.5px solid var(--ams-border);
    border-radius: 4px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ams-transition);
    position: relative;
    flex-shrink: 0;
}

/* Hover Checkbox State */
.ams-checkbox:hover .ams-checkbox-box {
    border-color: var(--ams-primary);
    background-color: var(--ams-primary-light);
}

/* Checked Checkbox State */
.ams-checkbox input:checked ~ .ams-checkbox-box {
    background-color: var(--ams-primary);
    border-color: var(--ams-primary);
}

/* Draw check icon inside box */
.ams-checkbox-box:after {
    content: "";
    position: absolute;
    display: none;
}

.ams-checkbox input:checked ~ .ams-checkbox-box:after {
    display: block;
}

.ams-checkbox .ams-checkbox-box:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ams-checkbox-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--ams-transition);
}

.ams-checkbox input:checked ~ .ams-checkbox-label {
    font-weight: 600;
    color: var(--ams-primary);
}

.ams-checkbox-count {
    color: var(--ams-text-light);
    font-size: 11px;
    background: var(--ams-bg);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    transition: var(--ams-transition);
}

.ams-checkbox:hover .ams-checkbox-count {
    background: var(--ams-border);
    color: var(--ams-text-main);
}

.ams-checkbox input:checked ~ .ams-checkbox-count {
    background: var(--ams-primary-light);
    color: var(--ams-primary);
}

.ams-no-options {
    font-size: 13px;
    color: var(--ams-text-light);
    font-style: italic;
    margin: 5px 0;
}

/*==========================================================================
CONTENT AREA & CHIPS
==========================================================================*/
.ams-content {
    flex: 1;
    min-width: 0;
}

/* ACTIVE FILTER CHIPS */
.ams-active-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--ams-card-bg);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-md);
    box-shadow: var(--ams-shadow-sm);
    align-items: center;
}

.ams-active-chips-container:before {
    content: "Active Filters:";
    font-size: 13px;
    font-weight: 700;
    color: var(--ams-text-muted);
    margin-right: 5px;
}

.ams-chip {
    display: inline-flex;
    align-items: center;
    background: var(--ams-primary-light);
    color: var(--ams-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid rgba(225, 29, 72, 0.1);
    transition: var(--ams-transition);
}

.ams-chip-label {
    text-transform: capitalize;
}

.ams-chip-val {
    margin-left: 3px;
    font-weight: 700;
}

.ams-chip-remove {
    background: none;
    border: 0;
    font-size: 16px;
    color: var(--ams-primary);
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    display: inline-flex;
    line-height: 1;
}

.ams-chip-remove:hover {
    color: var(--ams-primary-hover);
    transform: scale(1.2);
}

.ams-chip-clear-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--ams-secondary);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--ams-transition);
}

.ams-chip-clear-all:hover {
    color: var(--ams-secondary-hover);
    text-decoration: underline;
}

/* RESULTS INFO PANEL */
.ams-results-header-info {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ams-results-count {
    font-size: 14px;
    color: var(--ams-text-muted);
}

.ams-results-count strong {
    color: var(--ams-text-main);
}

/*==========================================================================
PROFILE CARDS GRID
==========================================================================*/
.ams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ams-card {
    background: #000;
    border-radius: var(--ams-radius-md);
    overflow: hidden;
    box-shadow: var(--ams-shadow-sm);
    transition: var(--ams-transition);
    aspect-ratio: 3 / 4;
}

.ams-card:hover {
    box-shadow: var(--ams-shadow-hover);
    transform: translateY(-4px);
}

.ams-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.ams-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ams-image-container {
    width: 100%;
    height: 100%;
    background: #1e293b;
}

.ams-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ams-card:hover .ams-image-container img {
    transform: scale(1.06);
    opacity: 0.5;
}

/* Default visible info overlays the bottom of the card */
.ams-card-default-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide default info on hover so it doesn't clash with overlay */
.ams-card:hover .ams-card-default-info {
    opacity: 0;
}

.ams-profile-name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ams-profile-name a {
    color: #ffffff;
    text-decoration: none;
}

.ams-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--ams-success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--ams-success);
    margin-left: 2px;
}

.ams-profile-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
}

.ams-gold-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #f59e0b; /* Amber/Gold */
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Hover Overlay details */
.ams-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ams-card:hover .ams-card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ams-overlay-details {
    width: 100%;
    color: #ffffff;
}

.ams-overlay-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.ams-overlay-details tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ams-overlay-details tr:last-child {
    border-bottom: 0;
}

.ams-overlay-details th {
    text-align: left;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    font-weight: 500;
}

.ams-overlay-details td {
    text-align: right;
    font-size: 13px;
    color: #ffffff;
    padding: 6px 0;
    font-weight: 700;
}

.ams-overlay-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--ams-primary-grad);
    color: #ffffff;
    padding: 10px;
    border-radius: var(--ams-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ams-transition);
}

.ams-overlay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
    color: #ffffff;
}

.ams-btn-view svg {
    transition: transform 0.2s ease;
}

.ams-btn-view:hover svg {
    transform: translateX(4px);
}

/*==========================================================================
AJAX SKELETON LOADERS
==========================================================================*/
#ams-results.ams-loading {
    position: relative;
    pointer-events: none;
}

.ams-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.ams-skeleton-card {
    background: var(--ams-card-bg);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-md);
    overflow: hidden;
    box-shadow: var(--ams-shadow-sm);
}

.ams-skeleton-img {
    width: 100%;
    padding-top: 110%;
    background: #e2e8f0;
    position: relative;
}

.ams-skeleton-details {
    padding: 20px;
}

.ams-skeleton-line {
    height: 14px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ams-skeleton-title {
    width: 70%;
    height: 18px;
    margin-bottom: 16px;
}

.ams-skeleton-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.ams-skeleton-badge {
    width: 60px;
    height: 20px;
    border-radius: 4px;
}

.ams-skeleton-desc {
    width: 100%;
}

.ams-skeleton-desc-short {
    width: 45%;
}

.ams-skeleton-btn {
    height: 40px;
    width: 100%;
    border-radius: var(--ams-radius-sm);
    margin-top: 10px;
}

.ams-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: ams-shimmer-anim 1.5s infinite;
}

@keyframes ams-shimmer-anim {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/*==========================================================================
PAGINATION SYSTEM
==========================================================================*/
.ams-pagination {
    /* margin-top: 40px; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ams-pagination a, 
.ams-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    text-decoration: none;
    color: var(--ams-text-main);
    font-size: 14px;
    font-weight: 600;
    background: var(--ams-card-bg);
    transition: var(--ams-transition);
}

.ams-pagination a:hover {
    border-color: var(--ams-primary);
    color: var(--ams-primary);
    background: var(--ams-primary-light);
}

.ams-pagination a.active {
    background: var(--ams-primary-grad);
    border-color: var(--ams-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.ams-pagination-dots {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--ams-text-light);
    cursor: default;
}

.ams-pag-prev,
.ams-pag-next {
    display: inline-flex;
    gap: 6px;
}

/*==========================================================================
NO RESULTS
==========================================================================*/
.ams-no-result {
    background: var(--ams-card-bg);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-md);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--ams-shadow-sm);
    max-width: 600px;
    margin: 40px auto;
}

.ams-no-result-icon {
    color: var(--ams-text-light);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ams-no-result h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ams-text-main);
}

.ams-no-result p {
    font-size: 14px;
    color: var(--ams-text-muted);
    margin: 0 0 25px;
    line-height: 1.5;
}

.ams-btn-reset-results {
    padding: 12px 24px;
    background: var(--ams-primary-grad);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--ams-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
    transition: var(--ams-transition);
}

.ams-btn-reset-results:hover {
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.35);
    transform: translateY(-2px);
}

/*==========================================================================
MOBILE & RESPONSIVE
==========================================================================*/
.ams-mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 60px;
    right: 10px;
    /* left: 50%;
    transform: translateX(-50%); */
    z-index: 999;
    padding: 14px 28px;
    background: var(--ams-primary-grad);
    color: #fff;
    border: 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--ams-transition);
}

.ams-mobile-filter-trigger:hover {
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 991px) {
    .ams-mobile-filter-trigger {
        display: flex;
    }

    .ams-sidebar {
        position: fixed;
        top: auto;
        bottom: -100%; /* Hidden off-screen bottom */
        left: 0;
        right: 0;
        width: 100vw;
        max-height: 85vh;
        border-radius: var(--ams-radius-lg) var(--ams-radius-lg) 0 0;
        box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.15);
        border: 0;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .ams-sidebar.ams-mobile-drawer-open {
        bottom: 0;
    }

    .ams-close-drawer {
        display: block;
    }

    /* Dim background overlay when mobile drawer is open */
    .ams-container.ams-overlay-active:after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        animation: ams-fade-in 0.3s ease;
    }

    @keyframes ams-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 640px) {
    .ams-container {
        padding: 10px;
    }

    .ams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/*==========================================================================
VIEW TOGGLES, DATE PILLS, & LIST VIEW LAYOUTS
==========================================================================*/
.ams-view-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: var(--ams-radius-sm);
    border: 1px solid var(--ams-border);
}

.ams-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--ams-text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--ams-transition);
}

.ams-toggle-btn:hover {
    color: var(--ams-primary);
    background: rgba(225, 29, 72, 0.05);
}

.ams-toggle-btn.active {
    background: #ffffff;
    color: var(--ams-primary);
    box-shadow: var(--ams-shadow-sm);
}

/* CUSTOM DATE RADIO PILLS */
.ams-radio {
    display: block;
    cursor: pointer;
    margin-bottom: 8px;
}

.ams-radio:last-child {
    margin-bottom: 0;
}

.ams-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ams-radio-label-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1.5px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ams-text-main);
    transition: var(--ams-transition);
}

.ams-radio input:checked + .ams-radio-label-btn {
    border-color: var(--ams-primary);
    background: var(--ams-primary-light);
    color: var(--ams-primary);
}

.ams-radio-label-btn:hover {
    border-color: var(--ams-border-hover);
    background: var(--ams-bg);
}

.ams-radio input:checked + .ams-radio-label-btn:hover {
    border-color: var(--ams-primary);
    background: var(--ams-primary-light);
}

/* LIST VIEW LAYOUT */
.ams-grid.ams-list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ams-grid.ams-list-view .ams-card {
    aspect-ratio: auto;
    background: var(--ams-card-bg);
    border: 1px solid var(--ams-border);
    box-shadow: var(--ams-shadow-sm);
    height: auto;
    overflow: visible;
}

.ams-grid.ams-list-view .ams-card-inner {
    display: flex;
    flex-direction: row;
    height: 100%;
}

/* Left Image Box in List View */
.ams-grid.ams-list-view .ams-card-media {
    width: 200px;
    height: 180px;
    flex-shrink: 0;
    position: relative;
    border-radius: var(--ams-radius-md) 0 0 var(--ams-radius-md);
    overflow: hidden;
}

.ams-grid.ams-list-view .ams-image-container {
    width: 100%;
    height: 100%;
}

.ams-grid.ams-list-view .ams-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    transform: none !important;
}

.ams-grid.ams-list-view .ams-badge-online-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: var(--ams-success);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: var(--ams-shadow-sm);
    z-index: 2;
}

/* Right Content Box in List View */
.ams-grid.ams-list-view .ams-card-body {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    background: var(--ams-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ams-grid.ams-list-view .ams-card-header-block {
    margin-bottom: 8px;
}

.ams-grid.ams-list-view .ams-profile-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ams-text-main);
}

.ams-grid.ams-list-view .ams-profile-name a {
    color: var(--ams-text-main);
}

.ams-grid.ams-list-view .ams-profile-name a:hover {
    color: var(--ams-primary);
}

.ams-grid.ams-list-view .ams-profile-sub {
    font-size: 13px;
    color: var(--ams-text-muted);
}

.ams-grid.ams-list-view .ams-profile-desc {
    display: block;
    font-size: 13.5px;
    color: var(--ams-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ams-grid.ams-list-view .ams-card-actions {
    display: block;
}

.ams-grid.ams-list-view .ams-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--ams-primary-grad);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--ams-radius-sm);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
    transition: var(--ams-transition);
}

.ams-grid.ams-list-view .ams-btn-action:hover {
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.3);
    transform: translateY(-1.5px);
    color: #ffffff;
}

/* Hide elements in List View */
.ams-grid.ams-list-view .ams-card-hover-overlay,
.ams-grid.ams-list-view .ams-gold-badge {
    display: none !important;
}

/* Hide elements in Grid View */
.ams-profile-desc,
.ams-card-actions {
    display: none;
}

/* Responsive tweaks for List View */
@media (max-width: 600px) {
    .ams-grid.ams-list-view .ams-card-inner {
        flex-direction: column;
    }
    
    .ams-grid.ams-list-view .ams-card-media {
        width: 100%;
        height: 220px;
        border-radius: var(--ams-radius-md) var(--ams-radius-md) 0 0;
    }
}