/* ==========================================================================
   Base Styles and Reset
   ========================================================================== */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typography */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #F5F6F7;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.25em;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1em;
}

/* Forms */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Accessibility */
:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide mobile-only line break on desktop */
.mobile-br { display: none; }

.h1-sub {
    font-size: 0.65em;
    font-weight: 400;
    color: #6c757d;
}

.location-filter {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive Styles */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .mobile-br { display: inline; }
    html {
        /* font-size: 14px; */
    }

    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.85rem; }
}

/* Medium devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }
}

/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    h1 { margin-top: 1.5rem; }
}

/* ==========================================================================
   Layout Styles
   ========================================================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Site Header */
.site-header {
    background-color: #FEF2F2;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-bottom: 0.5rem;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.site-title a:hover {
    color: #F87171;
}

.site-title svg {
    width: 43px;
    height: 43px;
    background-color: #FDA4AF;
    color: #fff;
    border-radius: 14px;
    padding: 6px 6px;
    background: linear-gradient(180deg, #F87171 0%, #FDA4AF 100%);
}

.site-tagline {
    color: #6c757d;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

/* Main Content */
main {
    min-height: 60vh;
    padding: 0 0 2rem 0;
}

/* Footer */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: #fff;
    margin-right: 1.5rem;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    color: #adb5bd;
    font-size: 0.875rem;
    margin: 0;
}

/* Grids */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

@media (max-width: 768px) {
    main {
        padding: 0.75rem 0;
    }

    h1 {
        text-align: center;
        font-size: 1.45rem;
        margin: 1.2rem 0.2rem;
    }

    .site-header {
        padding: 0.8rem 0;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .location-filter {
        margin-top: 0.15rem;
        margin-bottom: 0.25rem;
    }

    .regions-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.5rem;
    }
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Sections */
.intro, .regions-list, .listings-list {
    margin-bottom: 0;
}

.regions-list {
    margin-top: 0.25rem;
}

.regions-list h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {

    .regions-list {
        margin-top: 1.5rem;
    }    

    .regions-list h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}


.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

/* Modern Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #F87171, transparent);
    opacity: 0.3;
}

.divider-icon {
    color: #F87171;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.divider-icon svg {
    display: block;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .section-divider {
        margin: 1.5rem 0;
        gap: 1rem;
    }

    .divider-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Cards */
.region-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 1.25rem;
    background-color: #fff;
    border: 2px solid #FEF2F2;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.1), transparent);
    transition: left 0.5s;
}

.region-card:hover::before {
    left: 100%;
}

.region-card:hover {
    background: linear-gradient(135deg, #F87171 0%, #FDA4AF 100%);
    color: #fff;
    border-color: #F87171;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.3);
}

.region-toggle-btn {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px dashed #FDA4AF;
    cursor: pointer;
    font-weight: 700;
    color: #F87171;
    position: relative;
}

.region-toggle-btn::before {
    display: none;
}

.region-toggle-btn:hover {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
    border-color: #F87171;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 113, 113, 0.25);
}

.region-bulgaria {
    font-weight: 700;
    font-size: 1.05rem;
}

.region-other-countries {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #FCD34D;
    color: #92400E;
}

.region-other-countries::before {
    background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.2), transparent);
}

.region-other-countries:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #fff;
    border-color: #F59E0B;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Responsive design for region cards */
@media (max-width: 768px) {
    .region-card {
        padding: 0.3rem 0.4rem;
    }
}

.listing-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.listing-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.listing-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.listing-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    max-height: 370px;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.listing-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.listing-meta > span {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.listing-meta svg.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6c757d;
    margin-top: 3px;
}

.listing-age {
    display: inline-flex;
    align-items: center;
    background-color: #ffe5e5;
    color: #ff6b6b;
    padding: 0 5px 0 8px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: var(--text-xs);
    white-space: nowrap;
}

.listing-location {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
}

.listing-height {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.listing-height-value::before {
    content: "Височина: ";
}

.listing-languages {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.listing-languages-value::before {
    content: "Езици: ";
}

.listing-card-description {
    font-size: 0.82rem;
    font-style: italic;
    color: #5a6370;
    line-height: 1.5;
    margin: 0.25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-excerpt {
    margin: 0;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-search-match {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background-color: #fff8e1;
    border-left: 2px solid #ffa726;
    border-right: 2px solid #ffa726;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #424242;
    min-height: 2.5rem;
    flex-shrink: 0;
}

.listing-search-match .icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #f57c00;
    opacity: 0.8;
}

.listing-search-match mark {
    background-color: #ffeb3b;
    color: #000;
    font-weight: 600;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.search-match-text {
    flex: 1;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.listing-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: #ff6b6b;
}

.listing-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.listing-details-btn:hover {
    background-color: #ff5252;
}

.listing-details-btn .icon {
    color: #fff;
}

.listing-details-btn .btn-text::before {
    content: "Виж детайли";
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 0.25rem;
        padding-bottom: 0.25rem;
        white-space: nowrap;
        overflow: auto;
        flex-wrap: nowrap;
    }
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-list li {
    display: flex;
    align-items: center;
}

/* Pagination Links */
.pagination-link,
.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background-color: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    color: #24292e;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 6px;
}

.pagination-prev,
.pagination-next {
    padding: 0 16px;
    font-weight: 600;
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background-color: #f6f8fa;
    border-color: #0366d6;
    color: #0366d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.15);
}

.pagination-link:active,
.pagination-prev:active,
.pagination-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(3, 102, 214, 0.1);
}

/* Active Page */
.pagination-link.active {
    background: linear-gradient(135deg, #0366d6 0%, #0256c7 100%);
    border-color: #0366d6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.25);
    cursor: default;
    pointer-events: none;
}

/* Ellipsis */
.pagination-ellipsis span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: #6a737d;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
}

/* SVG Icons */
.pagination-prev svg,
.pagination-next svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0;
        padding: 0 1rem;
    }

    .pagination-list {
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0;
    }

    .pagination-list::-webkit-scrollbar {
        display: none;
    }

    .pagination-link,
    .pagination-prev,
    .pagination-next {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
        border-radius: 6px;
        border-width: 1px;
        flex-shrink: 0;
    }

    .pagination-prev,
    .pagination-next {
        min-width: 36px;
        padding: 0 8px;
    }

    .pagination-prev span,
    .pagination-next span {
        display: none;
    }

    .pagination-prev svg,
    .pagination-next svg {
        width: 18px;
        height: 18px;
    }

    .pagination-ellipsis span {
        min-width: 30px;
        height: 36px;
        font-size: 14px;
    }

    .pagination-link:hover,
    .pagination-prev:hover,
    .pagination-next:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 0 0.5rem;
    }

    .pagination-list {
        gap: 0.2rem;
    }

    .pagination-link,
    .pagination-prev,
    .pagination-next {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
    }

    .pagination-ellipsis span {
        min-width: 26px;
        height: 32px;
        font-size: 13px;
    }
}

/* Regions and Cities Toggle Styles */
.other-regions-hidden {
    display: none;
}

.other-regions-visible {
    display: contents;
}

.other-regions-visible .region-item {
    animation: slideIn 0.4s ease-out backwards;
}

.other-regions-visible .region-item:nth-child(1) { animation-delay: 0.05s; }
.other-regions-visible .region-item:nth-child(2) { animation-delay: 0.08s; }
.other-regions-visible .region-item:nth-child(3) { animation-delay: 0.11s; }
.other-regions-visible .region-item:nth-child(4) { animation-delay: 0.14s; }
.other-regions-visible .region-item:nth-child(5) { animation-delay: 0.17s; }
.other-regions-visible .region-item:nth-child(6) { animation-delay: 0.20s; }
.other-regions-visible .region-item:nth-child(n+7) { animation-delay: 0.23s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   SEO Content Section (Homepage)
   ========================================================================== */

.seo-content {
    margin-top: 3rem;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-intro p {
    margin: 0 0 2rem;
    color: #6c757d;
    text-align: center;
}

.seo-faq-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
}

.seo-faq {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: #F87171;
}

.faq-item summary {
    padding: 0.9rem 1.2rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #adb5bd;
    border-bottom: 2px solid #adb5bd;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item summary:hover {
    color: #F87171;
}

.faq-item p {
    padding: 0 1.2rem 1rem;
    margin: 0;
    color: #6c757d;
}

@media (max-width: 768px) {
    .seo-content {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .seo-faq-heading {
        font-size: 1rem;
    }

    .faq-item summary {
        padding: 0.8rem 1rem;
        font-size: 0.875rem;
    }

    .faq-item p {
        padding: 0 1rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   Similar Ads Section (detail page)
   ============================================================ */
.similar-ads {
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
    padding: 2rem 0 1rem;
}

.similar-ads h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem;
}

.similar-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Card overrides for narrow similar-ads grid */

/* Title: single line with ellipsis */
.similar-ads-grid .listing-title {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 1.1rem;
    text-align: center;
}

.similar-ads-grid .listing-content {
    text-align: center;
}

.similar-ads-grid .listing-meta-row {
    justify-content: center;
}

.similar-ads-grid .listing-location {
    justify-content: center;
}

.similar-ads-grid .listing-card-description {
    text-align: center;
}

/* Shorter image for similar-ads cards (60% of normal listing height) */
.similar-ads-grid .listing-image {
    aspect-ratio: 3 / 2.4;
    max-height: 222px;
}

/* Age badge: overlay on bottom-right of image */
.similar-age-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    background-color: #ffe5e5;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 7px 2px 9px;
    border-radius: 8px 0 0 0;
}

/* Price + button: centered, stacked */
.similar-ads-grid .listing-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.similar-ads-grid .listing-price {
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3rem;
}

.similar-ads-grid .listing-price br {
    display: none;
}

.similar-ads-grid .listing-details-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
}

@media (max-width: 768px) {
    .similar-ads-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }

    .similar-ads-grid::-webkit-scrollbar {
        display: none;
    }

    .similar-ads-grid .listing-card {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }
}
