/* Container */
.webzad-car-listings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* Card */
.webzad-car-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.webzad-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.webzad-car-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.webzad-car-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Badge */
.webzad-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e31b23;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.webzad-badge.rent {
    background-color: #e31b23;
}

.webzad-car-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.webzad-car-content {
    padding: 24px;
}

/* Header */
.webzad-car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.webzad-car-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.webzad-car-compare {
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.webzad-car-compare:hover {
    color: #333;
}

.webzad-car-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    font-weight: 400;
}

.webzad-car-type,
.webzad-car-year {
    color: #777;
}

.webzad-separator {
    margin: 0 6px;
    color: #ddd;
}

/* Divider */
.webzad-divider {
    height: 1px;
    border-top: 1px dashed #e0e0e0;
    background: none;
    margin: 20px 0;
}

/* Specs Grid */
.webzad-car-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.webzad-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.webzad-spec-icon {
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.webzad-spec-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.2px;
}

.webzad-spec-value {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Footer */
.webzad-car-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    align-items: center;
}

.webzad-footer-left,
.webzad-footer-center,
.webzad-footer-right {
    display: flex;
    gap: 4px;
}

.webzad-label {
    color: #999;
}

.webzad-value-highlight {
    color: #333;
    font-weight: 600;
}

.webzad-value {
    color: #999;
}

/* Single Car Page */
.webzad-single-car-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.webzad-single-image-section {
    margin-bottom: 40px;
}

.webzad-single-main-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.webzad-single-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.webzad-single-gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.webzad-thumb-item {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border 0.2s;
    flex-shrink: 0;
}

.webzad-thumb-item:hover,
.webzad-thumb-item.active {
    opacity: 1;
    border: 2px solid #333;
}

.webzad-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webzad-single-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.webzad-single-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
}

.webzad-single-meta {
    font-size: 14px;
    color: #777;
}

.webzad-header-right {
    text-align: right;
}

.webzad-single-price {
    font-size: 32px;
    font-weight: 400;
    color: #555;
    margin-bottom: 5px;
    background: none;
    padding: 0;
}

.webzad-single-sub-meta {
    font-size: 12px;
    color: #999;
}

.webzad-single-description {
    margin-bottom: 40px;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

.webzad-single-details-section {
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.webzad-single-details-section h3,
.webzad-single-features-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.webzad-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
}

.webzad-detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.webzad-detail-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.webzad-detail-value {
    color: #333;
    font-size: 14px;
}

.webzad-single-features-section {
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.webzad-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.webzad-features-list span {
    font-size: 14px;
    color: #666;
}

.webzad-features-list span::before {
    color: #e31b23;
    margin-right: 5px;
    font-weight: bold;
}

/* ================================
   Car Filter Widget Styles
   ================================ */

.webzad-car-filter {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    font-family: 'Inter', sans-serif;
}

.webzad-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.webzad-filter-field {
    display: flex;
    flex-direction: column;
}

.webzad-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.webzad-filter-input,
.webzad-filter-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8f8f8;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.webzad-filter-input:focus,
.webzad-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.webzad-filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.webzad-filter-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.webzad-filter-range-inputs .webzad-filter-input {
    flex: 1;
}

.webzad-range-separator {
    color: #999;
    font-weight: 500;
}

.webzad-filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.webzad-filter-button,
.webzad-reset-button {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.webzad-filter-button {
    background-color: #0073aa;
    color: #ffffff;
}

.webzad-filter-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.webzad-filter-button:active {
    transform: translateY(0);
}

.webzad-reset-button {
    background-color: #f0f0f0;
    color: #666666;
}

.webzad-reset-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Layout: Horizontal */
.webzad-filter-horizontal .webzad-filter-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

.webzad-filter-horizontal .webzad-filter-field {
    flex: 1;
    min-width: 150px;
}

.webzad-filter-horizontal .webzad-filter-buttons {
    margin-top: 0;
}

/* Layout: Grid */
.webzad-filter-grid .webzad-filter-form {
    display: grid;
    gap: 15px;
}

.webzad-filter-grid-1 .wevbzad-filter-form {
    grid-template-columns: 1fr;
}

.webzad-filter-grid-2 .webzad-filter-form {
    grid-template-columns: repeat(2, 1fr);
}

.webzad-filter-grid-3 .webzad-filter-form {
    grid-template-columns: repeat(3, 1fr);
}

.webzad-filter-grid-4 .webzad-filter-form {
    grid-template-columns: repeat(4, 1fr);
}

.webzad-filter-grid .webzad-filter-buttons {
    grid-column: 1 / -1;
}

/* ================================
   Filter Results Display
   ================================ */

.webzad-filter-results-wrapper {
    margin-top: 30px;
}

.webzad-filter-results {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.webzad-filter-results[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.webzad-filter-results[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.webzad-filter-results[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.webzad-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Loading Spinner */
.webzad-filter-loading {
    text-align: center;
    padding: 40px 20px;
}

.webzad-spinner {
    margin: 0 auto 15px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: webzad-spin 1s linear infinite;
}

.webzad-filter-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@keyframes webzad-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .webzad-filter-results[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .webzad-single-header-row {
        flex-direction: column;
        gap: 20px;
    }

    .webzad-header-right {
        text-align: left;
    }

    .webzad-details-grid,
    .webzad-features-list {
        grid-template-columns: 1fr;
    }

    .webzad-car-filter {
        padding: 20px;
    }

    .webzad-filter-horizontal .webzad-filter-form,
    .webzad-filter-grid .webzad-filter-form {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .webzad-filter-horizontal .webzad-filter-field {
        width: 100%;
    }

    .webzad-filter-buttons {
        flex-direction: column;
    }

    .webzad-filter-button,
    .webzad-reset-button {
        width: 100%;
    }

    .webzad-filter-results[data-columns="3"],
    .webzad-filter-results[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .webzad-filter-results {
        grid-template-columns: 1fr !important;
    }
}

/* ================================
   Hero Search Widget Styles
   ================================ */

.webzad-hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 10px;
    flex-wrap: wrap;
}

.webzad-hero-input-group,
.webzad-hero-select-group {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.webzad-hero-input-group input,
.webzad-hero-select-group select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.webzad-hero-input-group input::placeholder {
    color: #999;
}

/* Add separators between fields */
.webzad-hero-select-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #eee;
}

.keyword-group {
    flex: 2;
    /* Make keyword input wider */
    min-width: 200px;
}

.webzad-hero-filter-icon {
    color: #666;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.webzad-hero-search-btn {
    background-color: #0056b3;
    /* Blue color from image */
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    grid-template-columns: 1fr;
}

.webzad-filter-results[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.webzad-filter-results[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.webzad-filter-results[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.webzad-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Loading Spinner */
.webzad-filter-loading {
    text-align: center;
    padding: 40px 20px;
}

.webzad-spinner {
    margin: 0 auto 15px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: webzad-spin 1s linear infinite;
}

.webzad-filter-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@keyframes webzad-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .webzad-filter-results[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .webzad-single-header-row {
        flex-direction: column;
        gap: 20px;
    }

    .webzad-header-right {
        text-align: left;
    }

    .webzad-details-grid,
    .webzad-features-list {
        grid-template-columns: 1fr;
    }

    .webzad-car-filter {
        padding: 20px;
    }

    .webzad-filter-horizontal .webzad-filter-form,
    .webzad-filter-grid .webzad-filter-form {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .webzad-filter-horizontal .webzad-filter-field {
        width: 100%;
    }

    .webzad-filter-buttons {
        flex-direction: column;
    }

    .webzad-filter-button,
    .webzad-reset-button {
        width: 100%;
    }

    .webzad-filter-results[data-columns="3"],
    .webzad-filter-results[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .webzad-filter-results {
        grid-template-columns: 1fr !important;
    }
}

/* ================================
   Hero Search Widget Styles
   ================================ */

.webzad-hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 10px;
    flex-wrap: wrap;
}

.webzad-hero-input-group,
.webzad-hero-select-group {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.webzad-hero-input-group input,
.webzad-hero-select-group select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.webzad-hero-input-group input::placeholder {
    color: #999;
}

/* Add separators between fields */
.webzad-hero-select-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #eee;
}

.keyword-group {
    flex: 2;
    /* Make keyword input wider */
    min-width: 200px;
}

.webzad-hero-filter-icon {
    color: #666;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.webzad-hero-search-btn {
    background-color: #0056b3;
    /* Blue color from image */
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.webzad-hero-search-btn:hover {
    background-color: #004494;
}

.webzad-hero-search-btn i {
    font-size: 18px;
}

/* ================================
   Car Gallery Image Layouts
   ================================ */

/* Main Gallery Wrapper */
.webzad-car-gallery-wrapper {
    margin-bottom: 40px;
}

/* ========== Main + Thumbnails Layout ========== */
.webzad-main-thumbs-wrapper {
    display: flex;
    gap: 15px;
}

/* Default: Thumbnails at Bottom */
.webzad-main-thumbs-wrapper.thumb-bottom {
    flex-direction: column;
}

/* Thumbnails on Right */
.webzad-main-thumbs-wrapper.thumb-right {
    flex-direction: row;
}

.webzad-main-thumbs-wrapper.thumb-right .webzad-single-main-image-wrapper {
    flex: 1;
}

.webzad-main-thumbs-wrapper.thumb-right .webzad-single-gallery-thumbs {
    flex-direction: column;
    width: 120px;
    flex-shrink: 0;
}

/* Thumbnails on Left */
.webzad-main-thumbs-wrapper.thumb-left {
    flex-direction: row-reverse;
}

.webzad-main-thumbs-wrapper.thumb-left .webzad-single-main-image-wrapper {
    flex: 1;
}

.webzad-main-thumbs-wrapper.thumb-left .webzad-single-gallery-thumbs {
    flex-direction: column;
    width: 120px;
    flex-shrink: 0;
}

/* ========== Grid Layout ========== */
.webzad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.webzad-gallery-grid .webzad-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.webzad-gallery-grid .webzad-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* ========== Masonry Layout ========== */
.webzad-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-rows: 150px;
}

.webzad-gallery-masonry .webzad-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.webzad-gallery-masonry .webzad-gallery-item:nth-child(1) {
    grid-row: span 2;
    grid-column: span 2;
}

.webzad-gallery-masonry .webzad-gallery-item:nth-child(4n+2) {
    grid-row: span 2;
}

.webzad-gallery-masonry .webzad-gallery-item:nth-child(6n+5) {
    grid-column: span 2;
}

.webzad-gallery-masonry .webzad-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* ========== Lightbox Gallery ========== */
.webzad-gallery-lightbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.webzad-gallery-lightbox .webzad-gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.webzad-gallery-lightbox .webzad-gallery-item a::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.webzad-gallery-lightbox .webzad-gallery-item a:hover::after {
    opacity: 1;
}

.webzad-gallery-lightbox .webzad-gallery-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.webzad-gallery-lightbox .webzad-gallery-item a:hover::before {
    opacity: 1;
}

.webzad-gallery-lightbox .webzad-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* ========== Slider Layout ========== */
.webzad-gallery-slider {
    position: relative;
    width: 100%;
}

.webzad-slider-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.webzad-slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.webzad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.webzad-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.webzad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webzad-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.webzad-slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.webzad-slider-nav.webzad-prev {
    left: 20px;
}

.webzad-slider-nav.webzad-next {
    right: 20px;
}

.webzad-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.webzad-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.webzad-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.webzad-dot.active {
    background: #333;
    width: 14px;
    height: 14px;
}

/* ========== Hover Effects ========== */

/* Zoom Effect */
.webzad-hover-zoom .webzad-gallery-item img:hover,
.webzad-hover-zoom .webzad-single-main-image-wrapper img:hover {
    transform: scale(1.1);
}

/* Fade Effect */
.webzad-hover-fade .webzad-gallery-item {
    position: relative;
}

.webzad-hover-fade .webzad-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.webzad-hover-fade .webzad-gallery-item:hover::after {
    opacity: 1;
}

/* Slide Effect */
.webzad-hover-slide .webzad-gallery-item {
    position: relative;
}

.webzad-hover-slide .webzad-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.webzad-hover-slide .webzad-gallery-item:hover::before {
    left: 100%;
}

/* ========== Gallery Item Common Styles ========== */
.webzad-gallery-item {
    cursor: pointer;
    aspect-ratio: 4/3;
}

.webzad-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Responsive Styles for Galleries ========== */
@media (max-width: 1024px) {

    .webzad-gallery-grid,
    .webzad-gallery-masonry,
    .webzad-gallery-lightbox {
        grid-template-columns: repeat(2, 1fr);
    }

    .webzad-gallery-masonry {
        grid-auto-rows: 120px;
    }
}

@media (max-width: 768px) {

    .webzad-main-thumbs-wrapper.thumb-right,
    .webzad-main-thumbs-wrapper.thumb-left {
        flex-direction: column;
    }

    .webzad-main-thumbs-wrapper.thumb-right .webzad-single-gallery-thumbs,
    .webzad-main-thumbs-wrapper.thumb-left .webzad-single-gallery-thumbs {
        flex-direction: row;
        width: 100%;
    }

    .webzad-gallery-grid,
    .webzad-gallery-masonry,
    .webzad-gallery-lightbox {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .webzad-gallery-masonry {
        grid-auto-rows: 100px;
    }

    .webzad-slider-track {
        height: 350px;
    }

    .webzad-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .webzad-slider-nav.webzad-prev {
        left: 10px;
    }

    .webzad-slider-nav.webzad-next {
        right: 10px;
    }
}

@media (max-width: 480px) {

    .webzad-gallery-grid,
    .webzad-gallery-masonry,
    .webzad-gallery-lightbox {
        grid-template-columns: 1fr;
    }

    .webzad-gallery-masonry {
        grid-auto-rows: 200px;
    }

    .webzad-gallery-masonry .webzad-gallery-item:nth-child(1) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .webzad-gallery-masonry .webzad-gallery-item:nth-child(4n+2) {
        grid-row: span 1;
    }

    .webzad-gallery-masonry .webzad-gallery-item:nth-child(6n+5) {
        grid-column: span 1;
    }

    .webzad-slider-track {
        height: 250px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .webzad-hero-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .webzad-hero-select-group::before {
        display: none;
        /* Remove separators on mobile */
    }

    .webzad-hero-search-btn {
        width: 100%;
    }

    .webzad-hero-filter-icon {
        display: none;
    }
}
/* Force cards to fit grid columns in results widget */
.webzad-filter-results .webzad-car-card {
    width: 100%;
    max-width: 100%;
}
