.listings-page {
    padding-top: 6.25rem;
    min-height: 100vh;
    background: #f8fafc;
}

.listings-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 4rem;
}

.listings-hero {
    margin-bottom: 1.5rem;
}

.listings-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
}

.listings-hero p {
    margin: 0;
    color: #6b7280;
}

.listings-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.listings-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listings-cat {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.listings-cat.is-active {
    background: #FF9B7D;
    border-color: #FF9B7D;
    color: #fff;
}

.listings-search {
    position: relative;
    min-width: min(100%, 280px);
    flex: 1 1 240px;
    max-width: 360px;
}

.listings-search input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    background: #fff;
    outline: none;
}

.listings-search input:focus {
    border-color: #FF9B7D;
    box-shadow: 0 0 0 3px rgba(255, 155, 125, 0.15);
}

.listings-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.listings-panel {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.listing-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.listing-row:last-child {
    border-bottom: 0;
}

.listing-row:hover {
    background: #fcfcff;
}

.listing-thumb {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    object-fit: cover;
    background: #eef2ff;
}

.listing-main h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.listing-meta {
    margin: 0.2rem 0 0.45rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.listing-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9rem;
}

.listing-actions a,
.listing-fav {
    color: #4f46e5;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.listing-actions a:hover,
.listing-fav:hover {
    text-decoration: underline;
}

.listing-fav.is-on {
    color: #e11d48;
}

.listing-side {
    text-align: right;
    min-width: 9rem;
}

.listing-phone {
    display: block;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.listing-loc {
    display: block;
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.listings-empty,
.listings-loading {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6b7280;
}

.listings-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.listings-pager button {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0.6rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.listings-pager button:disabled {
    opacity: 0.45;
    cursor: default;
}

.listings-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.listing-detail {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.listing-detail-hero {
    position: relative;
    height: min(360px, 50vw);
    background: #111827;
}

.listing-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-detail-body {
    padding: 1.75rem 1.5rem 2rem;
}

.listing-detail-cat {
    display: inline-block;
    color: #FF9B7D;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.listing-detail-body h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: #111827;
}

.listing-detail-body p {
    color: #4b5563;
    line-height: 1.7;
}

.listing-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.listing-fact {
    border: 1px solid #eef2f7;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}

.listing-fact span {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.listing-fact a,
.listing-fact strong {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.listing-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.listing-detail-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.listing-cta-primary {
    background: #FF9B7D;
    color: #fff;
}

.listing-cta-ghost {
    border: 1px solid #e5e7eb;
    color: #111827;
    background: #fff;
}

.listing-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nav-link.is-current {
    color: #FF9B7D !important;
}

@media (max-width: 720px) {
    .listing-row {
        grid-template-columns: auto 1fr;
        gap: 0.9rem;
        padding: 1rem;
    }

    .listing-side {
        grid-column: 2;
        text-align: left;
        min-width: 0;
    }
}
