/*
 * Rent terms: the four rent pages (on top of hagzi-guides.css and the shared
 * tiles), the Rent terms box on listing pages, the seller page and the My
 * Listings line. Logical properties only, so Arabic mirrors without an RTL
 * override. A real stylesheet because Vue drops <style> inside #app.
 */
.hzrt__shell {
    max-inline-size: 1080px;
}

.hzrt__listings {
    margin-block: 24px;
}

.hzrt__count {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-block: 0 14px;
    color: #3d4556;
}

.hzrt__grid {
    margin-block-end: 16px;
}

.hzrt__all {
    margin-block: 8px 0;
}

.hzrt__others ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hzrt__others a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--hz-line, #e7e9ee);
    border-radius: 999px;
    color: var(--hagzi-primary, #0745D9);
    text-decoration: none;
}

.hzrt__others a:hover {
    border-color: var(--hagzi-primary, #0745D9);
}

.hzrt__n {
    color: #5b6475;
    font-size: 0.9rem;
}

/* Listing page box */
.hzrt-box {
    margin-block: 20px;
    padding: 16px 18px;
    border: 1px solid var(--hz-line, #e7e9ee);
    border-radius: 12px;
    background: #fff;
}

.hzrt-box__title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.hzrt-box__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 0;
}

.hzrt-box__fact {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f7f9;
}

.hzrt-box__fact dt {
    font-size: 0.85rem;
    color: #5b6475;
}

.hzrt-box__fact dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.hzrt-box__source {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #5b6475;
}

.hzrt-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.hzrt-box__links a,
.hzrt-ml__link,
.hzrt-seller__hint a {
    color: var(--hagzi-primary, #0745D9);
    text-decoration: underline;
}

/* My Listings line */
.hzrt-ml {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    font-size: 0.9rem;
}

.hzrt-ml__label {
    font-weight: 600;
}

/* Seller page */
.hzrt-seller__ref {
    color: #5b6475;
    font-size: 0.9rem;
}

.hzrt-seller__saved,
.hzrt-seller__found,
.hzrt-seller__error {
    margin-block: 10px;
    padding: 10px 12px;
    border-radius: 8px;
}

.hzrt-seller__saved {
    background: #e9f7ef;
    color: #14532d;
}

.hzrt-seller__found {
    background: #f1f5ff;
    color: #1e3a8a;
}

.hzrt-seller__error {
    display: block;
    background: #fdecec;
    color: #8a1c1c;
}

.hzrt-seller__form {
    display: grid;
    gap: 16px;
    margin-block-start: 12px;
}

.hzrt-seller__q {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--hz-line, #e7e9ee);
    border-radius: 10px;
}

.hzrt-seller__q legend {
    padding-inline: 4px;
    font-weight: 600;
}

.hzrt-seller__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 32px;
    cursor: pointer;
}

.hzrt-seller__amount {
    display: grid;
    gap: 4px;
    max-inline-size: 260px;
}

.hzrt-seller__amount input {
    padding: 8px 10px;
    border: 1px solid #c9ced8;
    border-radius: 8px;
}

.hzrt-seller__hint {
    margin: 0;
    color: #3d4556;
}

.hzrt-seller__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
