/* =============================================
   ADZ NEW VIEW - SHOP LIST DESIGN STYLE
   ============================================= */

:root {
    --primary: #707070;
    --primary-dark: #4a4a4a;
    --primary-light: rgba(255, 45, 45, 0.1);
    --dark: #2c2c2c;
    --dark-gray: #3a3a3a;
    --medium-gray: #6c757d;
    --light: #ffffff;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-small: 8px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.5s ease;
}

/* =============================================
   MAIN CONTAINER & LAYOUT
   ============================================= */

.card-area {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.container {
    max-width: 1400px;
}

/* =============================================
   SIDEBAR STYLES - ENHANCED MODERN FILTER PANEL
   ============================================= */

.sidebar {
    position: sticky;
    height: fit-content;
}

.sidebar .card {
    background: var(--light);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.sidebar .card-body {
    padding: 24px;
}

.sidebar .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.02em;
}

.sidebar .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

/* =============================================
   FORM ELEMENTS - ENHANCED MODERN INPUTS & SELECTS
   ============================================= */

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    z-index: 2;
    transition: var(--transition-fast);
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 14px;
    color: var(--dark);
    background: var(--light);
    transition: var(--transition);
    box-shadow: none;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
    background: var(--light);
    transform: translateY(-1px);
}

.form-control:focus + .form-icon {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.form-control::placeholder {
    color: var(--medium-gray);
    font-weight: 400;
    opacity: 0.8;
}

/* =============================================
   SORT SELECT - MODERN STYLE
   ============================================= */

.sort-select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-small) !important;
    background: var(--light) !important;
    color: var(--dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.sort-select:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

.sort-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none !important;
}

/* =============================================
   CHECKBOX STYLES - ENHANCED CUSTOM MODERN DESIGN
   ============================================= */

.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 4rem;
    margin-bottom: 8px;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 8px 12px;
    border-radius: 6px;
    margin: -8px -12px;
}

.custom-control-label:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.custom-control-label::before {
    position: absolute;
    top: 0.5rem;
    left: -2rem;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
    content: "";
    background-color: var(--light);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.custom-control-label::after {
    position: absolute;
    top: 0.5rem;
    left: -2rem;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
    transition: var(--transition);
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: var(--light);
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

/* =============================================
   LISTING WRAPPER - ENHANCED MAIN CONTENT AREA
   ============================================= */

.listing-wrapper {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
    min-height: 600px;
    border: 1px solid var(--border-light);
}

/* =============================================
   LIST VIEW - HORIZONTAL CARDS
   ============================================= */

.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-view .card {
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(207, 207, 207, 0.15);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: row;
    height: auto;
}

.list-view .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.list-view .card:hover::before {
    opacity: 0.3;
}

.list-view .card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 40px rgba(100, 100, 100, 0.25);
}

.list-view .card-image {
    display: block;
    width: 240px;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--radius) 0 0 var(--radius);
}

.list-view .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.list-view .card:hover .card-img-top {
    transform: scale(1.08);
}

.list-view .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-view .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.list-view .card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.list-view .card-title a:hover {
    color: var(--primary-dark);
}

.list-view .card-text {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.list-view .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.list-view .info-list li {
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-view .info-list .icon {
    color: var(--primary);
    font-weight: 600;
}

.list-view .verified-badge {
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 12px;
}

.list-view .verified-badge i {
    color: #28a745;
    font-size: 12px;
    margin-left: 4px;
}

.list-view .vip-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(167, 167, 167, 0.2);
}

.list-view .vip-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(114, 114, 114, 0.3);
    color: var(--light);
    text-decoration: none;
}

.list-view .font-size-14 {
    color: var(--medium-gray);
    font-weight: 400;
    font-size: 12px !important;
}

/* =============================================
   GALLERY VIEW - GRID LAYOUT
   ============================================= */

.gallery-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-view .card {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.gallery-view .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.gallery-view .card-image {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.gallery-view .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-view .card:hover .card-img-top {
    transform: scale(1.1);
}

.gallery-view .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-view .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-view .card-title a {
    color: inherit;
    text-decoration: none;
}

.gallery-view .card-title a:hover {
    color: var(--primary-dark);
}

.gallery-view .card-text {
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-view .info-list {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 10px;
}

.gallery-view .info-list li {
    color: var(--gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   MAP VIEW - PLACEHOLDER
   ============================================= */

.map-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    flex-direction: column;
    gap: 20px;
}

.map-view i {
    font-size: 64px;
    color: var(--primary);
}

.map-view h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.map-view p {
    font-size: 16px;
    color: var(--gray);
    max-width: 400px;
    text-align: center;
    margin: 0;
}

/* =============================================
   LOADING SPINNER - ENHANCED MODERN DESIGN
   ============================================= */

#loading-spinner {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#loading-spinner i {
    color: var(--primary);
    font-size: 48px;
    animation: spin 1s linear infinite;
}

#loading-spinner::after {
    content: 'Loading...';
    color: var(--medium-gray);
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   ALERT STYLES
   ============================================= */

.alert {
    border-radius: var(--radius-small);
    border: none;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    box-shadow: var(--shadow);
}

/* =============================================
   PAGINATION - ENHANCED MODERN DESIGN
   ============================================= */

#pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-link {
    color: var(--primary);
    background-color: var(--light);
    border: 2px solid var(--border);
    border-radius: 0 !important;
    margin: 0;
    padding: 12px 16px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: var(--transition);
    z-index: -1;
}

.page-link:hover::before,
.page-link:focus::before {
    left: 0;
}

.page-link:hover,
.page-link:focus {
    color: var(--light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-light);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px var(--primary-light);
}

.page-item.disabled .page-link {
    color: var(--medium-gray);
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   VIEW BY SECTION - ENHANCED DESIGN
   ============================================= */

.view-by-card {
    background: linear-gradient(135deg, var(--light) 0%, #fafafa 100%) !important;
    border: 2px solid var(--border-light) !important;
    position: relative;
    overflow: hidden;
}

.view-by-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
}

.view-by-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

.view-by-header {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

.view-by-header .card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.view-by-header .card-title i {
    font-size: 22px;
    color: var(--primary);
    animation: pulse-icon 2s ease-in-out infinite;
}

.view-by-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin: 8px 0 0 34px;
    font-weight: 500;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        color: var(--primary);
    }
    50% {
        transform: scale(1.1);
        color: var(--primary-dark);
    }
}

.view-options-wrapper {
    position: relative;
    z-index: 2;
}

.view-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
    border: 2.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    position: relative;
    overflow: hidden;
    font-size: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 75px;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.1) 0%, rgba(255, 45, 45, 0.05) 100%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
}

.view-btn i {
    font-size: 26px;
    color: var(--gray);
    transition: var(--transition);
    display: block;
}

.view-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark-gray);
    transition: var(--transition);
    display: block;
    text-align: center;
}

/* Hover State */
.view-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.02) 0%, rgba(255, 45, 45, 0.01) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(100, 100, 100, 0.18);
}

.view-btn:hover i {
    color: var(--primary);
    transform: scale(1.15);
}

.view-btn:hover .view-label {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Active State */
.view-btn-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 32px rgba(114, 114, 114, 0.35);
    position: relative;
}

.view-btn-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

.view-btn-active i {
    color: var(--light);
    transform: scale(1.2);
    filter: brightness(1.1);
}

.view-btn-active .view-label {
    color: var(--light);
    font-weight: 800;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   ADZ LOGO FALLBACK
   ============================================= */

.adz-logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff2d2d 0%, #cc0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.adz-logo-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.fallback-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.adz-logo-fallback i {
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.fallback-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 110px;
    word-break: break-word;
    letter-spacing: -0.02em;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.card-image:hover .adz-logo-fallback {
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-image:hover .adz-logo-fallback i {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
    .list-view .card {
        flex-direction: column;
    }

    .list-view .card-image {
        width: 100%;
        height: 200px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .gallery-view {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .card-area {
        padding-top: 100px !important;
    }

    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .card-area {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .list-view .card {
        flex-direction: column;
    }

    .list-view .card-image {
        width: 100%;
        height: 160px;
    }

    .gallery-view {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .view-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .view-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .view-btn {
        min-height: 60px;
    }

    .gallery-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.ml-4 { margin-left: 24px !important; }
.mr-2 { margin-right: 8px !important; }
.mt-1 { margin-top: 8px !important; }
.text-muted { color: var(--medium-gray) !important; }

