.rent-page {
    --rent-accent: #2563eb;
    --rent-accent-soft: #eff6ff;
    --rent-green: #059669;
    --rent-surface: #ffffff;
    --rent-border: #e8edf3;
    --rent-text: #0f172a;
    --rent-muted: #64748b;
    --rent-radius: 16px;
    --rent-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --rent-shadow-hover: 0 4px 6px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 120px, #f8fafc 100%);
    min-height: 60vh;
    padding-bottom: 3rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.rent-page__inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0.15rem 1rem 0;
}

/* Breadcrumbs */
.rent-breadcrumbs {
    margin-bottom: 0.85rem;
}

.rent-breadcrumbs .breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: 0.8125rem;
}

.rent-breadcrumbs .breadcrumb-item a {
    color: var(--rent-muted);
    text-decoration: none;
}

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

.rent-breadcrumbs .breadcrumb-item.active {
    color: var(--rent-text);
    font-weight: 600;
}

/* Hero */
.rent-hero {
    margin-bottom: 1.25rem;
}

.rent-hero__title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rent-text);
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.rent-hero__meta {
    margin: 0;
    color: var(--rent-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.rent-hero__meta strong {
    color: var(--rent-accent);
    font-weight: 700;
}

#rent-hero-city {
    color: var(--rent-text);
    font-weight: 600;
}

.rent-hero__hint {
    color: var(--rent-muted);
}

.rent-hero__map {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--rent-border);
    background: var(--rent-surface);
    color: var(--rent-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    white-space: nowrap;
}

.rent-hero__map:hover {
    border-color: var(--rent-accent);
    box-shadow: var(--rent-shadow);
    color: var(--rent-accent);
    transform: translateY(-1px);
}

/* Toolbar sticky */
.rent-toolbar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--rent-header-offset, 56px);
    z-index: 1025;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0;
    transition: box-shadow 0.2s, background 0.2s;
    overflow: visible;
}

.rent-toolbar-sticky.is-pinned {
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rent-toolbar-sticky.is-pinned .rent-toolbar__card {
    border-color: #dbeafe;
}

.rent-toolbar-sticky.is-pinned .rent-toolbar__row {
    flex-wrap: nowrap;
    align-items: flex-end;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.4rem;
}

.rent-toolbar-sticky.is-pinned .rent-toolbar__row::-webkit-scrollbar {
    display: none;
}

.rent-toolbar-sticky.is-pinned .rent-toolbar__group,
.rent-toolbar-sticky.is-pinned .rent-btn-more,
.rent-toolbar-sticky.is-pinned .rent-btn-filter-toggle {
    flex: 0 0 auto;
}

.rent-toolbar-sticky.is-pinned .rent-toolbar__group--city .rent-city-picker__trigger {
    min-width: 7.25rem;
    max-width: 8.25rem;
}

.rent-toolbar-sticky.is-pinned .rent-price-box input {
    width: 3.5rem;
}

.rent-toolbar__card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--rent-border);
    border-radius: var(--rent-radius);
    box-shadow: var(--rent-shadow);
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    overflow: visible;
}

.rent-toolbar-sticky:has(.rent-city-picker.is-open) {
    z-index: 1095;
}

.rent-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.rent-toolbar__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rent-muted);
    margin-bottom: 0.35rem;
}

.rent-toolbar__group {
    display: flex;
    flex-direction: column;
}

.rent-toolbar__group--city {
    min-width: 140px;
}

.rent-toolbar__group--agent {
    align-items: center;
}

.rent-toolbar__group--agent .form-switch {
    padding-top: 0.15rem;
}

/* Reset button */
.rent-btn-reset {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rent-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.rent-btn-reset:hover {
    color: var(--rent-accent);
    background: var(--rent-accent-soft);
}

.rent-btn-reset__text {
    display: none;
}

@media (min-width: 768px) {
    .rent-btn-reset__text {
        display: inline;
    }
}

/* More filters button */
.rent-btn-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--rent-border);
    background: var(--rent-surface);
    color: var(--rent-text);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    margin-bottom: 0;
}

.rent-btn-filter-toggle:hover {
    border-color: var(--rent-accent);
    box-shadow: var(--rent-shadow);
}

.rent-btn-filter-toggle.is-active {
    border-color: var(--rent-accent);
    background: var(--rent-accent-soft);
    color: var(--rent-accent);
}

.rent-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    min-height: 38px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: transparent;
    color: var(--rent-text);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    margin-bottom: 0;
}

.rent-btn-more:hover {
    background: var(--rent-accent-soft);
    border-color: var(--rent-accent);
    color: var(--rent-accent);
}

.rent-btn-more__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--rent-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Segments */
.rent-segment {
    display: inline-flex;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 10px;
    gap: 2px;
}

.rent-segment .btn-check + .btn {
    border: none !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem;
    min-width: 2.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rent-muted);
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

.rent-segment .btn-check:checked + .btn {
    background: var(--rent-surface) !important;
    color: var(--rent-accent) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Price box */
.rent-price-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--rent-border);
    border-radius: 10px;
    background: #f8fafc;
    min-height: 38px;
}

.rent-price-box input {
    width: 4.5rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rent-text);
    padding: 0.1rem 0;
}

.rent-price-box input:focus {
    outline: none;
}

.rent-price-box input::placeholder {
    color: #94a3b8;
}

.rent-price-box__sep {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* City picker */
.rent-city-picker {
    position: relative;
    display: inline-flex;
}

.rent-city-picker__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--rent-border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--rent-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 120px;
    max-width: 180px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rent-city-picker__trigger:hover,
.rent-city-picker.is-open .rent-city-picker__trigger {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rent-city-picker__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rent-city-picker__chevron {
    flex-shrink: 0;
    transition: transform 0.15s;
}

.rent-city-picker.is-open .rent-city-picker__chevron {
    transform: rotate(180deg);
}

.rent-city-picker__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1100;
    width: min(280px, 85vw);
    max-height: 320px;
    background: var(--rent-surface);
    border: 1px solid var(--rent-border);
    border-radius: 12px;
    box-shadow: var(--rent-shadow-hover);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rent-city-picker__menu[hidden] {
    display: none !important;
}

.rent-city-picker__search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem;
    border-bottom: 1px solid var(--rent-border);
    color: var(--rent-muted);
}

.rent-city-picker__search {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--rent-text);
    padding: 0.15rem 0;
}

.rent-city-picker__search:focus {
    outline: none;
}

.rent-city-picker__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
}

.rent-city-picker__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--rent-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.12s;
}

.rent-city-picker__option:hover,
.rent-city-picker__option.is-active {
    background: var(--rent-accent-soft);
    color: var(--rent-accent);
    font-weight: 600;
}

/* Loader */
.rent-loader {
    text-align: center;
    padding: 2rem 0;
}

.rent-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Listing cards */
.rent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rent-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background: var(--rent-surface);
    border: 1px solid var(--rent-border);
    border-radius: var(--rent-radius);
    overflow: hidden;
    box-shadow: var(--rent-shadow);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    color: inherit;
}

.rent-card__link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.rent-card-wrap:hover .rent-card,
.rent-card:focus-within {
    box-shadow: var(--rent-shadow-hover);
    transform: translateY(-2px);
    border-color: #dbeafe;
}

.rent-card__link:hover {
    color: inherit;
}

.rent-card__media {
    position: relative;
    min-height: 200px;
    background: #e2e8f0;
}

.rent-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.byn-icon {
    display: inline-block;
    width: 0.75em;
    height: 0.9em;
    max-width: 1.1rem;
    max-height: 1.25rem;
    vertical-align: -0.12em;
    flex-shrink: 0;
}

.byn-icon--xs {
    width: 0.62em;
    height: 0.74em;
    max-width: 0.85rem;
    max-height: 1rem;
    vertical-align: -0.08em;
}

.byn-icon--sm {
    width: 0.68em;
    height: 0.82em;
    max-width: 0.95rem;
    max-height: 1.1rem;
    vertical-align: -0.1em;
}

.byn-icon--lg {
    width: 0.82em;
    height: 0.98em;
    max-width: 1.2rem;
    max-height: 1.35rem;
    vertical-align: -0.14em;
}

.byn-icon--xl {
    height: 17px;
    max-width: 1.35rem;
    max-height: 1.5rem;
    vertical-align: -0.16em;
}

.price-byn {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    white-space: nowrap;
    line-height: 1.2;
}

.price-byn__suffix {
    margin-left: 0.12em;
    font-size: 0.65em;
    font-weight: 500;
    opacity: 0.9;
}

.rent-card__price-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem);
    padding: 0.4rem 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    overflow: hidden;
}

.rent-card__price-badge .price-byn {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em 0.18em;
    color: #fff;
}

.rent-card__price-badge .price-byn__amount {
    font-size: 1em;
    font-weight: 700;
}

.rent-card__price-badge .price-byn__suffix {
    flex-basis: 100%;
    display: block;
    margin-left: 0;
    margin-top: 0;
    font-size: 0.62em;
    line-height: 1.2;
}

.rent-card__price-badge .byn-icon {
    color: #fff;
    max-width: 0.95rem;
    max-height: 1.05rem;
}

.rent-card__price-badge small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
}

.rent-card__photos-count {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rent-text);
}

.rent-card__agent-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.rent-card__body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.15rem;
    min-width: 0;
}

.rent-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.rent-card__type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rent-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rent-card__time {
    font-size: 0.75rem;
    color: var(--rent-muted);
}

.rent-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rent-text);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rent-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.5rem;
}

.rent-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--rent-muted);
}

.rent-card__meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.rent-card__desc {
    font-size: 0.875rem;
    color: var(--rent-muted);
    line-height: 1.5;
    margin: 0 0 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rent-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.rent-card__tag {
    padding: 0.15rem 0.5rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rent-muted);
}

.rent-card__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid #f1f5f9;
    background: var(--rent-surface);
}

.rent-card-wrap.is-removing {
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.rent-card__rates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
}

.rent-card__rate {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rent-text);
}

.rent-card__rate--muted {
    color: var(--rent-muted);
    font-weight: 500;
}

.rent-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rent-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--rent-accent-soft);
    text-decoration: none;
    transition: background 0.15s;
}

.rent-card-wrap:hover .rent-card__cta,
.rent-card__cta:hover {
    background: #dbeafe;
    color: var(--rent-accent);
}

.rent-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.rent-card__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.rent-card__delete:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}

.rent-card__delete:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Empty state */
.rent-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--rent-surface);
    border: 1px dashed var(--rent-border);
    border-radius: var(--rent-radius);
}

.rent-empty__icon {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.rent-empty__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rent-text);
    margin: 0 0 0.5rem;
}

.rent-empty__text {
    font-size: 0.9375rem;
    color: var(--rent-muted);
    margin: 0 0 1.25rem;
}

.rent-empty__btn {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    background: var(--rent-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.rent-empty__btn:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

/* Pagination */
.rent-pagination {
    margin-top: 1.5rem;
}

.rent-pagination .pagination {
    justify-content: center;
    gap: 0.25rem;
}

.rent-pagination .page-link {
    border-radius: 8px;
    border-color: var(--rent-border);
    color: var(--rent-text);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

.rent-pagination .page-item.active .page-link {
    background: var(--rent-accent);
    border-color: var(--rent-accent);
}

/* Cities card */
.rent-cities-card {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--rent-surface);
    border: 1px solid var(--rent-border);
    border-radius: var(--rent-radius);
    box-shadow: var(--rent-shadow);
}

.rent-cities-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rent-text);
    margin: 0 0 1rem;
}

.rent-cities-card__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rent-cities-card__link {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--rent-border);
    background: #f8fafc;
    color: var(--rent-text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.rent-cities-card__link:hover {
    border-color: var(--rent-accent);
    background: var(--rent-accent-soft);
    color: var(--rent-accent);
}

/* Modal */
.rent-modal .modal-content {
    border-radius: var(--rent-radius);
    border: 1px solid var(--rent-border);
}

.rent-metro-grid .btn {
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .rent-toolbar-sticky {
        top: var(--rent-header-offset, 52px);
    }

    .rent-toolbar__card {
        padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    }

    .rent-toolbar__row {
        gap: 0.4rem;
    }

    .rent-btn-filter-toggle {
        display: inline-flex;
    }

    .rent-toolbar-sticky:not(.is-filters-open) .rent-toolbar__group,
    .rent-toolbar-sticky:not(.is-filters-open) .rent-btn-more {
        display: none;
    }

    .rent-toolbar-sticky.is-filters-open:not(.is-pinned) .rent-toolbar__row {
        flex-wrap: wrap;
    }

    .rent-segment .btn-check + .btn {
        min-width: 1.85rem;
        padding: 0.3rem 0.5rem;
    }

    .rent-card {
        grid-template-columns: 1fr;
    }

    .rent-card__media {
        min-height: 180px;
    }

    .rent-card__media img {
        min-height: 180px;
    }

    .rent-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .rent-card__actions {
        width: 100%;
    }

    .rent-card__cta {
        flex: 1 1 auto;
        text-align: center;
    }

    .rent-hero__map {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .rent-page__inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
