/**
 * Advert Detail Page Styles
 * Reference: koksik design — card-based, warm, modern
 */

/* ========================================
   1. LAYOUT
   ======================================== */

.advert-detail {
    padding-bottom: var(--space-16);
    overflow-x: hidden;
    max-width: 100%;
}

/* Extra bottom padding on mobile to prevent sticky CTA from overlapping content */
@media (max-width: 767px) {
    .advert-detail {
        padding-bottom: 72px;
    }
}


.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-top: var(--space-4);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .detail-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-6);
    }

    .detail-gallery {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-info {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: start;
    }

    .detail-left {
        grid-column: 1;
        grid-row: 2;
    }

    .detail-right {
        grid-column: 2;
        grid-row: 2;
    }
}

/* ========================================
   2. GALLERY
   ======================================== */

.detail-gallery {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.main-image {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-muted);
    cursor: zoom-in;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.main-image:hover img {
    transform: scale(1.02);
}

/* Badge overlays on image */
.image-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
    z-index: 2;
}

.image-badge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-top {
    background-color: var(--color-primary);
    color: white;
}

/* Likes overlay */
.image-likes {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.image-likes:hover {
    background: white;
    transform: scale(1.05);
}

.image-likes .icon,
.image-likes .heart-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.image-likes.is-liked .icon,
.image-likes.is-liked .heart-icon {
    color: var(--error);
    fill: var(--error);
}

/* Photo counter */
.image-counter {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--overlay-darker);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.image-counter .icon,
.image-counter .icon-sm {
    width: 14px;
    height: 14px;
}

/* Gallery navigation arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    /* WCAG 2.5.5: 44×44 px minimum touch target (was 36×36) */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background var(--transition-fast), transform var(--transition-fast);
    padding: 0;
}

.gallery-arrow .icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.gallery-arrow-left {
    left: var(--space-3);
}

.gallery-arrow-right {
    right: var(--space-3);
}

/* Dot indicators */
.image-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.image-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all var(--transition-fast);
}

.image-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

/* Thumbnails */
.thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 70px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    background: none;
}

@media (min-width: 768px) {
    .thumbnail {
        width: 80px;
    }
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: var(--border-dark);
}

.thumbnail.active {
    border-color: var(--color-primary);
}

/* ========================================
   3. INFO PANEL (right column)
   ======================================== */

.detail-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
    max-width: 100%;
}

/* Tags / Badges */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid;
}

.tag-pill .icon {
    width: 14px;
    height: 14px;
}

.tag-verified {
    color: var(--success-text);
    border-color: var(--success-text);
    background-color: var(--success-bg);
}

.tag-service {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
}

.tag-category {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
}

.tag-trans {
    color: hsl(280, 60%, 45%);
    border-color: hsl(280, 60%, 75%);
    background-color: hsl(280, 70%, 95%);
}

.tag-gay {
    color: hsl(200, 60%, 45%);
    border-color: hsl(200, 60%, 75%);
    background-color: hsl(200, 70%, 95%);
}

.tag-couple {
    color: hsl(340, 60%, 45%);
    border-color: hsl(340, 60%, 75%);
    background-color: hsl(340, 70%, 95%);
}

.tag-stat {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background-color: var(--bg-secondary);
}

/* Location card */
.location-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.location-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.location-card-title .icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.location-card-text {
    margin: 0;
    padding-left: 28px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Title */
.advert-title a {
    color: inherit;
    text-decoration: none;
}

.advert-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin: 0;
}

@media (min-width: 768px) {
    .advert-title {
        font-size: var(--text-3xl);
    }
}

/* Price */
.advert-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin: 0;
}

/* Date */
.advert-date {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

/* ========================================
   4. PRICES CARD
   ======================================== */

.prices-card {
    background: white;
    border-radius: 16px;
    padding: var(--space-4) var(--space-5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
}

.prices-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.prices-header h2 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.prices-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

.price-boxes {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 767px) {
    .price-boxes {
        flex-direction: column;
    }
}

.price-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, hsl(43, 80%, 97%), hsl(43, 60%, 94%));
    border-radius: 12px;
    gap: var(--space-2);
}

.price-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.price-value {
    color: var(--color-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

/* ========================================
   5. CONTACT BUTTONS
   ======================================== */

/* Call button */
.btn-call-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-call-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-call-primary .icon {
    width: 20px;
    height: 20px;
}

/* Phone revealed */
.phone-revealed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: white;
    border-radius: 16px;
    border: 2px solid var(--color-primary);
}

.phone-number-link {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
    word-break: break-all;
}

.phone-number-link:hover {
    text-decoration: underline;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: var(--bg-muted);
}

.btn-copy .icon {
    width: 14px;
    height: 14px;
}

/* Messenger Buttons */
.messenger-buttons {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 767px) {
    .messenger-buttons {
        flex-direction: column;
    }
}

.messenger-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px var(--space-4);
    border-radius: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid;
}

.messenger-btn .icon {
    width: 20px;
    height: 20px;
}

.messenger-btn.telegram {
    background-color: var(--telegram-bg);
    color: var(--telegram-color);
    border-color: color-mix(in srgb, var(--telegram-color) 30%, transparent);
}

.messenger-btn.telegram:hover {
    background-color: var(--telegram-color);
    color: white;
}

.messenger-btn.whatsapp {
    background-color: var(--whatsapp-bg);
    color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
}

.messenger-btn.whatsapp:hover {
    background-color: var(--whatsapp-color);
    color: white;
}

.messenger-btn.viber {
    background-color: var(--viber-bg);
    color: var(--viber-color);
    border-color: var(--viber-color);
}

.messenger-btn.viber:hover {
    background-color: var(--viber-color);
    color: white;
}

/* ========================================
   6. CONTENT CARDS
   ======================================== */

.detail-left,
.detail-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: var(--space-5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.content-card--warm {
    background: hsl(43, 60%, 97%);
    border-color: hsl(43, 40%, 90%);
}

.content-card .card-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
}

.content-card .card-title .icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.card-icon {
    font-size: var(--text-lg);
}

/* Meeting places inline */
.meeting-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.meeting-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meeting-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-primary);
}

/* Description */
.description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    white-space: pre-line;
    margin: 0;
}

/* Truncation for long descriptions */
.description.is-truncated {
    max-height: 12em;
    overflow: hidden;
    position: relative;
}

.description.is-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-base);
}

.description-toggle:hover {
    color: var(--primary-700);
}

.description-toggle svg {
    transition: transform var(--transition-base);
}

.description-toggle.is-expanded svg {
    transform: rotate(180deg);
}

/* Description tags */
.description-tags {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.description-tags-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.description-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.description-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Services list */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.service-row:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--text-primary);
    font-size: var(--text-base);
}

.service-price {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    white-space: nowrap;
}

/* Location */
.location-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin: 0;
}

/* ========================================
   7. OWNER ADS SECTION
   ======================================== */

.owner-ads-section {
    margin-top: var(--space-8);
}

/* Grid progression: 2 → 3 → 4 → 5 (mobile-first cascade).
   Owner-ads panels are denser than full listing cards, so we add a
   4-column intermediate at 1024px instead of jumping 3 → 5. The 768px
   step replaces the old 840px breakpoint, which left small tablets
   stranded on the 2-column mobile layout.
   Each rule lifts the count — later media queries override earlier
   ones via the cascade, no `max-width` needed. */
@media (min-width: 768px) {
    .owner-ads-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .owner-ads-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1140px) {
    .owner-ads-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Similar ads grid: rules are in sections.css (single source of truth).
   If cascade issues arise, fix bundle order in scripts/optimize_bundles.sh
   (the cat block at Step 1) instead of duplicating. */

.owner-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.owner-ads-header .section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.owner-ads-header .section-title .icon {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.owner-ads-link {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.owner-ads-link:hover {
    opacity: 0.7;
}

.owner-ads-footer {
    text-align: center;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
}

/* ========================================
   8. REPORT BOTTOM
   ======================================== */

/* Related in this city (SEO internal links) */
.related-city-links {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.related-city-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 var(--space-3);
}

.related-city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.related-city-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all var(--transition-base);
}

.related-city-tag:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.report-bottom {
    text-align: center;
    padding: var(--space-8) 0 var(--space-4);
}

.report-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.report-bottom-btn:hover {
    color: var(--error);
    background: var(--error-bg);
}

.report-bottom-btn .icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   9. STICKY MOBILE BAR
   ======================================== */

.sticky-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.sticky-contact-bar.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .sticky-contact-bar {
        display: none;
    }
}

.btn-call-sticky {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-primary);
    color: white;
    font-weight: var(--font-semibold);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-call-sticky:hover {
    background-color: var(--primary-700);
}

.btn-message-sticky {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--telegram-bg);
    color: var(--telegram-color);
    font-weight: var(--font-semibold);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-message-sticky:hover {
    background-color: var(--telegram-color);
    color: white;
}

.sticky-contact-bar .icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   10. LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay-darkest);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: calc(var(--z-modal) + 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close .icon {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--overlay-light);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: var(--overlay-medium);
}

.lightbox-nav .icon {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 767px) {
    .lightbox-prev {
        left: var(--space-2);
    }

    .lightbox-next {
        right: var(--space-2);
    }
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* ========================================
   11. REPORT MODAL
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.modal-header h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-close .icon {
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-5);
}

@media (max-width: 767px) {
    .modal-overlay {
        padding: var(--space-3);
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        padding: var(--space-4);
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ========================================
   12. BREADCRUMBS
   ======================================== */

/* DEDUP CONSOLIDATION 2026-05-16: all .breadcrumb* rules now live
   in static/css/components/navigation.css as the single source of
   truth. This file used to redefine .breadcrumbs, .breadcrumb-list,
   .breadcrumb-item, .breadcrumb-item.active, .breadcrumb-separator
   — each diverging slightly from the navigation.css base (different
   colour, overflow, max-width on active). The .breadcrumb-separator
   selector here was already dead code — the partial emits separators
   as ``::before`` pseudo-elements on every <li> after the first
   (see components/_breadcrumbs.html PSI-20260504 comment), no
   sibling <span class="breadcrumb-separator"> markup remains
   anywhere in the templates. Removing the dead rule + the
   duplicates. */

/* ========================================
   13. RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
    .advert-detail {
        padding-bottom: calc(var(--space-16) + 70px);
    }

    .detail-info {
        gap: var(--space-3);
    }
}

/* ========================================
   14. UTILITY & ICON SIZING
   ======================================== */

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Section title reusable */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

/* ========================================
   15. ANIMATIONS
   ======================================== */

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox {
    animation: fadeInSlideUp 0.2s ease-out;
}

.modal-content {
    animation: fadeInSlideUp 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .modal-content,
    .main-image img {
        animation: none;
        transition: none;
    }
}
