/* ==========================================================================
   Listing Detail — modern, minimalist, contrast-focused refinements
   Loaded ONLY on the listing detail page (front_listing_detail) so the
   shared selectors below stay scoped to this page and never leak to the
   catalog / search-result grids that reuse the same class names.
   The green accent (#198754) used for booking / primary actions is kept.
   ========================================================================== */

:root {
    --ld-accent: #198754;
    --ld-accent-dark: #146c43;
    --ld-accent-soft: #e8f3ed;
    --ld-ink: #181c23;
    --ld-ink-soft: #232323;
    --ld-line: #e7e9ee;
    --ld-line-strong: #d6dae1;
    --ld-surface: #ffffff;
    --ld-surface-muted: #f6f8f7;
    --ld-radius: 16px;
    --ld-radius-sm: 10px;
    --ld-ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    padding: 0.85rem 0;
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: var(--ld-ink-soft);
    transition: color var(--ld-ease);
}

.breadcrumb-item a:hover {
    color: var(--ld-accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #c2c7d0;
}

.listing .breadcrumb-item.active,
.breadcrumb-item.active {
    color: var(--ld-ink);
    font-weight: 500;
}

/* ==========================================================================
   Gallery badges
   ========================================================================== */
.listing-gallery-main .badges-container {
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.listing-gallery-main .badge {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px -4px rgba(16, 24, 40, 0.35);
    backdrop-filter: blur(2px);
}

.listing-gallery-main .badge-exclusive {
    background: #ffd84d;
    color: #3d3000;
    border: none;
}

.listing-gallery-main .badge-new {
    background: var(--ld-accent);
    border: none;
}

.listing-gallery-main .badge-label,
.listing-gallery-main .badge-price,
.listing-gallery-main .badge-request {
    background: var(--ld-accent);
    border: none;
    width: auto;
}

.listing-gallery-main .badge-primary {
    border: none;
}

/* ==========================================================================
   Main gallery
   ========================================================================== */
.main-gallery .gallery-item {
    border-radius: var(--ld-radius);
}

.main-gallery .gallery-item.placeholder .no-image {
    border-radius: var(--ld-radius);
}

.main-gallery .gallery-item .bg {
    background: linear-gradient(to top, rgba(16, 24, 40, 0.32), rgba(16, 24, 40, 0));
}

/* «Все фото» — современная пилюля */
.main-gallery__show-all {
    right: 16px;
    bottom: 26px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ld-ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 999px;
    box-shadow: 0 6px 18px -6px rgba(16, 24, 40, 0.3);
    transition: transform var(--ld-ease), box-shadow var(--ld-ease), background var(--ld-ease);
}

.main-gallery__show-all:hover {
    background: #fff;
    color: var(--ld-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(16, 24, 40, 0.38);
}

.main-gallery__show-all-count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border: none;
    background: var(--ld-accent);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

/* ==========================================================================
   Listing info — title & location
   ========================================================================== */
.listing-info {
    padding-top: 0.5rem;
}

.listing-info h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ld-ink);
    padding-bottom: 8px;
}

.listing-info .location {
    margin-top: 2px;
}

.listing-info .location a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: none;
    color: var(--ld-ink-soft);
    font-size: 0.8rem;
    transition: color var(--ld-ease);
}

.listing-info .location a:hover {
    color: var(--ld-accent);
}

.listing-info .location a i.fa-map-marker-alt {
    color: var(--ld-accent);
}

.listing-info .location .listing_distance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 12px;
    margin-left: 6px;
    border-left: 1px solid var(--ld-line-strong);
    color: var(--ld-ink-soft);
    font-size: 0.8rem;
}



/* ==========================================================================
   Listing icons (amenities)
   ========================================================================== */
.listing-icons-container {
    padding-top: 28px;
    padding-bottom: 28px;
    border-top: 1px solid var(--ld-line);
    margin-top: 8px;
}

.listing-icons-container .icon-item {
    gap: 8px;
    padding: 6px 4px;
    border-radius: var(--ld-radius-sm);
    transition: background var(--ld-ease);
}

.listing-icons-container .icon-item:hover {
    background: var(--ld-surface-muted);
}

.listing-icons-container .icon-label {
    color: var(--ld-ink-soft);
    font-weight: 400;
}

/* ==========================================================================
   Quick check — modern pills
   ========================================================================== */
.quick-check-list{
    padding-top: 2px;
}
.quick-check-btn {
    background: var(--ld-surface);
    color: var(--ld-ink);
    border: 1px solid var(--ld-line-strong);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background var(--ld-ease), border-color var(--ld-ease), color var(--ld-ease), transform var(--ld-ease);
}

.quick-check-btn:hover {
    background: var(--ld-accent-soft);
    border-color: var(--ld-accent);
    color: var(--ld-accent-dark);
    transform: translateY(-1px);
}

.quick-check-divider {
    color: #c2c7d0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .listing-info h1 {
        font-size: 1.55rem;
    }

    .listing-items {
        gap: 8px;
    }

    .listing-items .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .listing-items .like-button {
        width: 42px;
        height: 42px;
    }

    .insta-stories-section > h2,
    .quick-check-section > h2,
    .extra-house-section .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .listing-info h1 {
        font-size: 1.4rem;
    }

    .main-gallery__show-all {
        right: 12px;
        bottom: 18px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .listing-icons-container {
        padding-top: 22px;
        padding-bottom: 22px;
    }
}
