/* ==========================================================================
   İlanTest — Premium public frontend theme
   Loaded last so the visual system can refine existing public components
   without changing their routes, data contracts, or JavaScript behaviour.
   ========================================================================== */

:root {
    --bg-primary: #080710;
    --bg-secondary: #100a16;
    --bg-card: #15101c;
    --bg-card-hover: #1b1323;
    --bg-elevated: #1d1527;
    --accent: #ff2d78;
    --accent-hover: #ff4f9a;
    --accent-soft: rgba(255, 45, 120, .12);
    --text-primary: #ffffff;
    --text-secondary: #b9b3be;
    --text-muted: #77717e;
    --border: rgba(255, 45, 120, .20);
    --border-soft: rgba(255, 255, 255, .08);
    --shadow: 0 24px 60px rgba(0, 0, 0, .34);
    --shadow-accent: 0 14px 34px rgba(255, 45, 120, .16);

    --color-brand-dark: var(--bg-primary);
    --color-brand-mid: var(--bg-secondary);
    --color-brand-accent: var(--accent);
    --color-brand-accent-dk: #d91860;
    --color-brand-light: var(--accent-soft);
    --color-page-bg: var(--bg-primary);
    --color-card-bg: var(--bg-card);
    --color-card-bg-hover: var(--bg-card-hover);
    --color-surface-raised: var(--bg-elevated);
    --color-border: var(--border);
    --color-border-light: var(--border-soft);
    --color-text: var(--text-primary);
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-muted: var(--text-muted);
    --color-badge-featured: var(--accent);
    --radius-card: 18px;
    --radius-card-sm: 14px;
    --radius-btn: 12px;
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, .20);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, .28);
    --shadow-lg: var(--shadow);
    --site-max-w: 1440px;
    --site-gutter: clamp(1rem, 3vw, 2rem);
    --nav-height: 66px;
}

html {
    background: var(--bg-primary);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 45, 120, .07), transparent 25rem),
        var(--bg-primary);
    color: var(--text-primary);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
    background: var(--accent);
    color: var(--text-primary);
}

a {
    color: var(--accent-hover);
}

a:hover {
    color: var(--text-primary);
}

/* Navigation */
.site-header {
    min-height: var(--nav-height);
}

.site-navbar {
    min-height: var(--nav-height);
    background: rgba(8, 7, 16, .94) !important;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.site-nav-container {
    min-height: var(--nav-height);
}

.site-navbar .navbar-brand,
.site-navbar__brand {
    gap: .7rem;
    color: var(--text-primary);
    font-weight: 850;
    letter-spacing: -.035em;
}

.site-navbar__logo-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-navbar__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.site-navbar__name {
    max-width: 15rem;
    color: var(--text-primary);
    font-size: clamp(.98rem, 1.4vw, 1.16rem);
    text-transform: uppercase;
    letter-spacing: .055em;
}

.site-navbar .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary) !important;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding-inline: .78rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
    color: var(--text-primary) !important;
    background: var(--accent-soft);
}

.site-navbar .nav-link--disabled {
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: .62;
}

.site-navbar .nav-link--disabled:hover {
    color: var(--text-muted) !important;
    background: transparent;
}

.site-navbar .nav-cta {
    justify-content: center;
    min-width: 108px;
    background: linear-gradient(135deg, var(--accent), #d91663) !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(255, 45, 120, .22);
}

.site-navbar .nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent)) !important;
    box-shadow: 0 12px 28px rgba(255, 45, 120, .34);
}

.site-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--accent-soft);
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 45, 120, .20);
}

/* Search and region filter */
.listing-filter,
.listing-location-filter {
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding: .7rem 0 .45rem;
    background: transparent;
}

.listing-filter__panel,
.listing-location-filter__panel {
    background: rgba(21, 16, 28, .95);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.listing-filter__title {
    color: var(--text-primary);
    font-size: .9rem;
    letter-spacing: .01em;
}

.listing-filter__title-icon {
    color: var(--accent);
}

.listing-filter__regions,
.listing-location-filter__regions {
    gap: .45rem;
}

.listing-filter__region {
    min-height: 40px;
    border-color: var(--border-soft);
    background: rgba(255, 255, 255, .035);
    color: var(--text-secondary);
}

.listing-filter__region:hover {
    border-color: var(--border);
    background: var(--accent-soft);
    color: var(--text-primary);
}

.listing-filter__region--active,
.listing-filter__region--active:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), #d91663);
    color: var(--text-primary);
    box-shadow: 0 8px 22px rgba(255, 45, 120, .22);
}

.listing-filter:not(.listing-filter--ready) .listing-filter__select,
.listing-filter:not(.listing-filter--ready) .listing-location-filter__select,
.listing-filter .select2-container--bootstrap-5 .select2-selection,
.listing-location-filter .select2-container--bootstrap-5 .select2-selection {
    min-height: 48px;
    border-color: var(--border-soft);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .045);
    color: var(--text-primary);
}

.listing-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field,
.listing-location-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    color: var(--text-primary);
}

.listing-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder,
.listing-location-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    color: var(--text-muted);
}

.listing-filter .select2-container--bootstrap-5:not(.select2-container--open) .select2-selection--multiple:not(:has(.select2-selection__choice)) .select2-search--inline,
.listing-location-filter .select2-container--bootstrap-5:not(.select2-container--open) .select2-selection--multiple:not(:has(.select2-selection__choice)) .select2-search--inline {
    width: 100%;
}

.listing-filter .select2-container--bootstrap-5:not(.select2-container--open) .select2-selection--multiple:not(:has(.select2-selection__choice)) .select2-search__field,
.listing-location-filter .select2-container--bootstrap-5:not(.select2-container--open) .select2-selection--multiple:not(:has(.select2-selection__choice)) .select2-search__field {
    width: 100% !important;
    min-height: 28px;
    opacity: 1;
}

.listing-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
.listing-location-filter .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    border-color: var(--border);
    background: var(--accent-soft);
    color: var(--text-primary);
}

.listing-filter__submit {
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #d91663);
    box-shadow: 0 8px 22px rgba(255, 45, 120, .22);
}

.listing-filter__submit:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 12px 28px rgba(255, 45, 120, .30);
}

.listing-filter__clear {
    color: var(--text-muted);
}

.listing-filter--region-preset .listing-filter__form {
    display: flex;
    justify-content: flex-end;
}

.listing-filter--region-preset .listing-filter__field,
.listing-filter--region-preset .listing-filter__submit {
    display: none;
}

.listing-filter--region-preset .listing-filter__actions {
    width: auto;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.select2-container--bootstrap-5 .select2-search__field {
    border-color: var(--border-soft);
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.select2-container--bootstrap-5 .select2-results__option {
    color: var(--text-secondary);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--accent-soft);
    color: var(--text-primary);
}

/* Listings */
.listing-section {
    padding: 2.4rem 0 3rem;
    background: transparent;
}

.listing-section__counter-row {
    justify-content: flex-start;
    margin-bottom: 1.35rem;
}

.listing-section__counter {
    color: var(--text-muted);
    font-size: .78rem;
}

.listing-vip-section__header,
.listing-normal-section__header {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 0 0 .85rem;
    border-bottom: 1px solid var(--border-soft);
}

.listing-vip-section__heading,
.listing-normal-section__heading {
    margin-bottom: .35rem;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -.025em;
    text-transform: none;
}

.listing-vip-section__mark {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 45, 120, .42));
}

.listing-vip-section__sub,
.listing-normal-section__sub {
    color: var(--text-muted);
    font-size: .84rem;
}

.listing-vip-section__rule {
    display: none;
}

.listing-section-divider {
    margin: 2.75rem 0 2.3rem;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.listing-grid {
    --bs-gutter-x: 1.15rem;
    --bs-gutter-y: 1.25rem;
}

.listing-card {
    height: auto;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.listing-card:hover {
    border-color: var(--border);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-accent), 0 24px 44px rgba(0, 0, 0, .28);
    transform: translateY(-6px);
}

.listing-card--vip,
.listing-card--vip:hover {
    border-color: rgba(255, 45, 120, .48);
    background: var(--bg-card);
    box-shadow: 0 0 0 1px rgba(255, 45, 120, .08), var(--shadow-accent);
}

.listing-card--vip::before {
    inset: 0;
    border-radius: var(--radius-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.listing-card__image-wrap,
.listing-card--vip .listing-card__image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
    background-color: var(--bg-elevated);
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
}

.listing-card__image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(8, 7, 16, .76));
    pointer-events: none;
}

.listing-card__image {
    object-fit: cover;
    object-position: center top;
}

.listing-card__badges--featured {
    top: .75rem;
    left: .75rem;
    right: auto;
    align-items: flex-start;
}

.listing-card__badges--service {
    display: none;
}

.listing-card--vip .listing-card__badge--featured {
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), #d91663);
    color: var(--text-primary);
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(255, 45, 120, .26);
    font-size: .62rem;
    letter-spacing: .06em;
}

.listing-card__channels {
    bottom: .8rem;
    right: .8rem;
}

.listing-card__whatsapp,
.listing-card__telegram {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
}

.listing-card__body {
    min-height: 96px;
    align-items: flex-start;
    justify-content: center;
    gap: .32rem;
    padding: .8rem .95rem .9rem;
    text-align: left;
}

.listing-card__title,
.listing-card--vip .listing-card__title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
}

.listing-card:hover .listing-card__title,
.listing-card--vip:hover .listing-card__title {
    color: var(--accent-hover);
}

.listing-card__meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem .7rem;
}

.listing-card__meta-item,
.listing-card__location,
.listing-card__age {
    justify-content: flex-start;
    color: var(--text-muted);
    font-size: .72rem;
}

.listing-card__location i {
    color: var(--accent);
}

.listing-card__service {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .1rem 0 0;
    color: var(--text-secondary);
    font-size: .69rem;
    line-height: 1.35;
}

.listing-card__service i {
    flex: 0 0 auto;
    color: var(--accent-hover);
}

.listing-card__service span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-pagination .page-link {
    border-color: var(--border-soft);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.listing-pagination .page-link:hover,
.listing-pagination .page-link:focus-visible,
.listing-pagination .page-item.active .page-link {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(255, 45, 120, .22);
}

.listing-empty {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--bg-card);
}

/* Partnership and listing CTA */
.listing-cta {
    padding: 0 0 3.5rem;
    background: transparent;
}

.listing-cta__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem 1.15rem;
    align-items: center;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(255, 45, 120, .10), transparent 46%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 1.4rem;
}

.listing-cta__panel::before {
    right: -7rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(255, 45, 120, .18), transparent 68%);
}

.listing-cta__panel::after {
    display: none;
}

.listing-cta__icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.45rem;
}

.listing-cta__content {
    position: relative;
    z-index: 1;
}

.listing-cta__badge {
    justify-content: flex-start;
    margin: 0 0 .45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-hover);
    font-size: .66rem;
}

.listing-cta__title {
    max-width: none;
    margin: 0 0 .4rem;
    color: var(--text-primary);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.listing-cta__title-accent {
    background: none;
    color: var(--accent-hover);
    -webkit-text-fill-color: currentColor;
}

.listing-cta__description {
    max-width: 46rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: .87rem;
    line-height: 1.6;
}

.listing-cta__button {
    grid-column: 1 / -1;
    min-height: 50px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #d91663);
    box-shadow: 0 10px 24px rgba(255, 45, 120, .24);
}

.listing-cta__button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 14px 30px rgba(255, 45, 120, .32);
}

/* Footer */
.site-footer {
    background:
        radial-gradient(circle at 88% 5%, rgba(255, 45, 120, .08), transparent 20rem),
        #07060d;
    border-top: 1px solid var(--border-soft);
    color: var(--text-secondary);
}

.site-footer__top {
    padding: 3rem 0 2.5rem;
    border-bottom-color: var(--border-soft);
}

.site-footer__logo {
    width: auto;
    max-width: 150px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.site-footer__site-name {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.site-footer__tagline {
    max-width: 32ch;
    color: var(--text-muted);
    font-size: .8rem;
}

.site-footer__heading {
    color: var(--text-primary);
    font-size: .72rem;
}

.site-footer__link {
    color: var(--text-secondary);
}

.site-footer__link:hover {
    color: var(--accent-hover);
}

.site-footer__link--soon {
    color: var(--text-muted);
    opacity: .7;
}

.site-footer__contact-text {
    max-width: 28rem;
    margin: 0 0 .85rem;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.6;
}

.site-footer__contact-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--text-primary);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__contact-link:hover {
    border-color: var(--accent);
    background: rgba(255, 45, 120, .18);
    color: var(--text-primary);
}

.site-footer__copy {
    color: var(--text-muted);
}

/* Detail page */
.detail-page {
    min-height: calc(100vh - var(--nav-height));
    padding: 0 0 4rem;
    background:
        radial-gradient(circle at 82% 4%, rgba(255, 45, 120, .07), transparent 25rem),
        var(--bg-primary);
}

.detail-breadcrumb {
    padding: 1.1rem 0 .8rem;
}

.detail-breadcrumb .breadcrumb {
    color: var(--text-muted);
}

.detail-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.detail-breadcrumb .active {
    color: var(--text-muted);
}

.detail-layout {
    align-items: flex-start;
}

.detail-gallery__stage {
    max-height: none;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: #050409;
    box-shadow: var(--shadow-md);
}

.detail-gallery__main-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.detail-gallery__counter,
.detail-gallery__fs-btn {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(8, 7, 16, .72);
}

.detail-gallery__fs-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.detail-gallery__thumbs {
    flex-wrap: nowrap;
    gap: .65rem;
    overflow-x: auto;
    padding: .75rem 0 .35rem;
    scrollbar-color: var(--accent) var(--bg-card);
}

.detail-gallery__thumb {
    width: 86px;
    height: 108px;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    background: var(--bg-card);
    opacity: .62;
}

.detail-gallery__thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    opacity: 1;
}

.detail-summary {
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background:
        linear-gradient(145deg, rgba(255, 45, 120, .05), transparent 38%),
        var(--bg-card);
    box-shadow: var(--shadow-md);
}

.detail-summary__header {
    gap: .7rem;
}

.detail-summary__title {
    color: var(--text-primary);
    font-size: clamp(1.65rem, 3.6vw, 2.3rem);
    font-weight: 880;
    letter-spacing: -.04em;
}

.detail-summary__badge--featured,
.detail-specs__vip {
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, var(--accent), #d91663);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(255, 45, 120, .22);
}

.detail-summary__highlight {
    color: var(--text-secondary);
}

.detail-summary__icon {
    color: var(--accent);
}

.detail-summary__price {
    color: var(--accent-hover);
}

.detail-summary__currency {
    color: var(--text-muted);
}

.detail-comm-card,
.detail-specs,
.detail-description {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card-sm);
    background: rgba(8, 7, 16, .48);
    box-shadow: none;
}

.detail-comm-card__header,
.detail-section-heading,
.detail-summary__phone,
.detail-specs__row {
    border-color: var(--border-soft);
}

.detail-comm-card__title,
.detail-specs__value,
.detail-summary__phone-value {
    color: var(--text-primary);
}

.detail-comm-card__subtitle,
.detail-comm-card__helper,
.detail-specs__label,
.detail-description__body,
.detail-summary__phone {
    color: var(--text-secondary);
}

.detail-wa-btn {
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, var(--accent), #d91663);
    box-shadow: 0 10px 24px rgba(255, 45, 120, .24);
}

.detail-wa-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 14px 30px rgba(255, 45, 120, .32);
}

.detail-tg-btn {
    border: 1px solid rgba(255, 255, 255, .12);
}

.detail-body {
    gap: 1rem;
}

.detail-section-heading {
    color: var(--text-primary);
    font-size: .75rem;
}

.detail-specs__label i {
    color: var(--accent);
}

.detail-description__body {
    line-height: 1.8;
}

.detail-safety-notice {
    border: 1px solid rgba(245, 158, 11, .20);
    border-radius: var(--radius-card-sm);
    background: rgba(245, 158, 11, .055);
    box-shadow: none;
}

.detail-safety-notice__title {
    color: #f6c85f;
}

.detail-safety-notice__intro,
.detail-safety-notice__item {
    color: #cbbd9e;
}

.gallery-fs__backdrop {
    background: rgba(4, 3, 8, .96);
}

.gallery-fs__img {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
}

/* Tablet and desktop */
@media (min-width: 768px) {
    .listing-filter__panel,
    .listing-location-filter__panel {
        padding: 1.1rem 1.2rem 1.2rem;
    }

    .listing-cta__panel {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 1.5rem 1.7rem;
    }

    .listing-cta__button {
        grid-column: auto;
        width: auto;
        min-width: 150px;
    }

    .detail-gallery__stage {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 992px) {
    .detail-sidebar {
        top: calc(var(--nav-height) + 1rem);
    }

    .detail-summary {
        padding: 1.5rem;
    }
}

/* Mobile refinements */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        margin: .75rem 0 1rem;
        padding: .75rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(21, 16, 28, .98);
        box-shadow: var(--shadow-md);
    }

    .site-navbar .navbar-nav {
        align-items: stretch !important;
    }

    .site-navbar .nav-link {
        width: 100%;
    }

    .site-navbar .nav-cta {
        margin-top: .35rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --nav-height: 62px;
    }

    .site-navbar,
    .site-nav-container {
        min-height: var(--nav-height);
    }

    .site-nav-container {
        padding-inline: 1rem;
    }

    .site-navbar__logo-wrap {
        width: 36px;
        height: 36px;
    }

    .site-navbar__name {
        max-width: 9.2rem;
        font-size: .9rem;
    }

    .listing-filter,
    .listing-location-filter {
        margin-top: 0;
    }

    .listing-filter__panel,
    .listing-location-filter__panel {
        padding: .9rem;
    }

    .listing-filter__regions,
    .listing-location-filter__regions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .listing-filter__region {
        width: 100%;
    }

    .listing-section {
        padding-top: 2rem;
    }

    .listing-card__body {
        min-height: 92px;
    }

    .listing-cta__panel {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.15rem;
    }

    .listing-cta__icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        font-size: 1.2rem;
    }

    .listing-cta__button {
        grid-column: 1 / -1;
    }

    .detail-gallery__thumb {
        width: 72px;
        height: 90px;
    }

    .detail-summary {
        padding: 1.05rem;
    }

    .detail-summary__title {
        font-size: 1.55rem;
    }

    .detail-specs,
    .detail-description,
    .detail-safety-notice {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
