/* Unit table block — inserted into project descriptions from the admin TinyMCE editor.
   Loaded by the admin editor (content_css) and by users/show_project.
   Per-row colors are inline (generated by unit-table-builder.js); this file holds structure + themes. */
.ah-ut {
    margin: 18px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
}

.ah-ut-grid {
    display: grid;
    gap: 8px;
    min-width: 640px;
}

.ah-ut-hr,
.ah-ut-r {
    display: contents;
}

/* header cell */
.ah-ut-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px 12px;
    border-radius: 14px;
    background: #17392e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.3;
}

.ah-ut-h::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background: currentColor;
    -webkit-mask: var(--ico, none) center / contain no-repeat;
    mask: var(--ico, none) center / contain no-repeat;
}

/* body cell */
.ah-ut-c {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 10px 8px;
    border-radius: 14px;
    color: #1f2a44;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.45;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.ah-ut-v {
    max-width: 100%;
}

.ah-ut-c.ah-ut-m {
    font-size: 18px;
    font-weight: 600;
}

/* theme 1: colorful (default) */
.ah-ut-s1 .ah-ut-c {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.ah-ut-s1 .ah-ut-c.ah-ut-m {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* theme 2: dark / gold */
.ah-ut-s2 .ah-ut-grid {
    background: #0f1a2b;
    padding: 14px;
    border-radius: 20px;
}

.ah-ut-s2 .ah-ut-h {
    background: transparent;
    color: #d9b46a;
    border-radius: 0;
    border-bottom: 1px solid rgba(217, 180, 106, .45);
    padding-bottom: 14px;
}

/* theme 3: clean / minimal */
.ah-ut-s3 .ah-ut-grid {
    gap: 0;
    border: 1px solid #e3e7ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.ah-ut-s3 .ah-ut-h {
    background: #f4f6f7;
    color: #17392e;
    border-radius: 0;
    border-bottom: 2px solid #17392e;
}

.ah-ut-s3 .ah-ut-c {
    border-radius: 0;
    border-bottom: 1px solid #e3e7ea;
    font-weight: 600;
}

.ah-ut-s3 .ah-ut-c.ah-ut-m {
    font-weight: 700;
}

@media (max-width: 768px) {
    .ah-ut-c {
        font-size: 13px;
        min-height: 68px;
    }

    .ah-ut-c.ah-ut-m {
        font-size: 15px;
    }
}

/* column counts (set by the builder as .ah-ut-n{N}) */
.ah-ut-grid.ah-ut-n2{grid-template-columns:minmax(120px,1.25fr) repeat(1,minmax(100px,1fr));min-width:236px}
.ah-ut-grid.ah-ut-n3{grid-template-columns:minmax(120px,1.25fr) repeat(2,minmax(100px,1fr));min-width:354px}
.ah-ut-grid.ah-ut-n4{grid-template-columns:minmax(120px,1.25fr) repeat(3,minmax(100px,1fr));min-width:472px}
.ah-ut-grid.ah-ut-n5{grid-template-columns:minmax(120px,1.25fr) repeat(4,minmax(100px,1fr));min-width:590px}
.ah-ut-grid.ah-ut-n6{grid-template-columns:minmax(120px,1.25fr) repeat(5,minmax(100px,1fr));min-width:708px}
.ah-ut-grid.ah-ut-n7{grid-template-columns:minmax(120px,1.25fr) repeat(6,minmax(100px,1fr));min-width:826px}
.ah-ut-grid.ah-ut-n8{grid-template-columns:minmax(120px,1.25fr) repeat(7,minmax(100px,1fr));min-width:944px}
.ah-ut-grid.ah-ut-n9{grid-template-columns:minmax(120px,1.25fr) repeat(8,minmax(100px,1fr));min-width:1062px}
.ah-ut-grid.ah-ut-n10{grid-template-columns:minmax(120px,1.25fr) repeat(9,minmax(100px,1fr));min-width:1180px}

/* header icons (mask, colored by currentColor) */
.ah-ut-h[data-t="main"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%222%22 width=%2216%22 height=%2220%22 rx=%222%22/%3E%3Cpath d=%22M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="unit_type"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z%22/%3E%3Cpath d=%22M9 22V12h6v10%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="rooms"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 4v16M2 8h18a2 2 0 0 1 2 2v10M2 17h20M6 8v9%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="bathrooms"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 6 6.5 3.5a1.5 1.5 0 0 0-1-.5C4.7 3 4 3.7 4 4.5V17a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5%22/%3E%3Cpath d=%22m10 5-2 2M2 12h20M7 19l-2 2M17 19l2 2%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="area"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="garden"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z%22/%3E%3Cpath d=%22M2 21c0-3 1.9-5.4 5.1-6C9.5 14.5 12 13 13 12%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="floor"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2 10 5-10 5L2 7z%22/%3E%3Cpath d=%22m2 12 10 5 10-5%22/%3E%3Cpath d=%22m2 17 10 5 10-5%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="finishing"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%226%22 rx=%222%22/%3E%3Cpath d=%22M21 6h1v6H12v3%22/%3E%3Crect x=%2210%22 y=%2215%22 width=%224%22 height=%227%22 rx=%221%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="view"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="delivery"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="price"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3v18h18%22/%3E%3Cpath d=%22M7 16v-4M12 16V8M17 16v-7%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="down_payment"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1%22/%3E%3Cpath d=%22M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="installment"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M12 6v6l4 2%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="monthly"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%226%22 width=%2220%22 height=%2212%22 rx=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222%22/%3E%3Cpath d=%22M6 12h.01M18 12h.01%22/%3E%3C/svg%3E")}
.ah-ut-h[data-t="custom"]{--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z%22/%3E%3C/svg%3E")}
