.rent-units-section {
    padding-top: 0;
}

.rent-units-header {
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.rent-units-header .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rent-units-header p {
    font-size: 1.05rem;
    color: rgba(var(--page-text-color-rgb), 0.8);
}

.rent-units-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rent-unit-location-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto 32px auto;
}

.rent-unit-filter-btn {
    min-width: 140px;
    border: 1px solid rgba(var(--page-text-color-rgb), 0.12);
    background-color: var(--page-bg-color-alt);
    color: var(--page-text-color);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rent-unit-filter-btn:hover,
.rent-unit-filter-btn:focus-visible {
    background-color: rgba(var(--page-text-color-rgb), 0.06);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--page-text-color-rgb), 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.rent-unit-filter-btn.is-active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.rent-unit-filter-btn.is-active:hover,
.rent-unit-filter-btn.is-active:focus-visible {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(var(--page-text-color-rgb), 0.08);
}

.rent-unit-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background-color: var(--page-bg-color-alt);
    border-radius: var(--br-def);
    border: 1px solid rgba(var(--page-text-color-rgb), 0.08);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    min-height: 240px;
}

.rent-unit-image-wrap {
    width: min(34%, 320px);
    min-width: 220px;
    background-color: rgba(var(--page-bg-color-rgb), 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 12px;
}

.rent-unit-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.rent-unit-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    flex: 1;
}

.rent-unit-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.rent-unit-top h2 {
    margin: 0;
}

.rent-unit-availability,
.rent-unit-status {
    font-size: 0.95rem;
    font-weight: 700;
}

.rent-unit-availability {
    color: var(--primary-color);
}

.rent-unit-description {
    margin: 0;
    color: rgba(var(--page-text-color-rgb), 0.8);
}

.rent-unit-location-availability {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rent-unit-location-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-radius: calc(var(--br-def) * 0.7);
    background-color: rgba(var(--page-text-color-rgb), 0.04);
}

.rent-unit-location-label {
    font-weight: 700;
}

.rent-unit-location-value {
    color: rgba(var(--page-text-color-rgb), 0.8);
    text-align: right;
}

.rent-unit-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: auto;
}

.rent-unit-price {
    font-weight: 800;
    color: var(--page-text-color);
}

.rent-unit-card.is-unavailable .rent-unit-availability,
.rent-unit-card.is-unavailable .rent-unit-status {
    color: var(--secondary-color);
}

.rent-unit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rent-unit-actions .btn {
    min-width: 180px;
}

.rent-unit-empty {
    padding: 24px;
    border-radius: var(--br-def);
    background-color: var(--page-bg-color-alt);
}

#notifyModal .modal-content {
    border: 0;
    border-radius: var(--br-def);
}

#notifyModal {
    z-index: 5005;
}

.modal-backdrop.show {
    z-index: 5000;
}

#notifyModal .modal-header,
#notifyModal .modal-footer {
    border-color: rgba(var(--page-text-color-rgb), 0.08);
}

#notifyModal .form-label {
    font-weight: 700;
}

@media (max-width: 767px) {
    .rent-unit-card {
        flex-direction: column;
        min-height: 0;
    }

    .rent-unit-image-wrap {
        width: 100%;
        min-width: 0;
        aspect-ratio: 4 / 3;
        padding: 10px;
    }

    .rent-unit-body {
        padding: 20px;
    }

    .rent-unit-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rent-unit-location-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rent-unit-location-value {
        text-align: left;
    }

    .rent-unit-actions {
        justify-content: stretch;
    }

    .rent-unit-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
