/*
Theme Name: Maison Hulot
Author: Portalworks
Version: 1.0.0
Text Domain:
*/
/***************************************************************
                         FONTS
***************************************************************/
@font-face {
    font-family: 'Segoe UI';
    src: url('fonts/SegoeUI-BoldItalic.woff2') format('woff2'),
        url('fonts/SegoeUI-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('fonts/SegoeUI-Bold.woff2') format('woff2'),
        url('fonts/SegoeUI-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('fonts/SegoeUI-Italic.woff2') format('woff2'),
        url('fonts/SegoeUI-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('fonts/SegoeUI.woff2') format('woff2'),
        url('fonts/SegoeUI.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/***************************************************************
                         ROOT
***************************************************************/
:root {
    --font-primary: 'Segoe UI', sans-serif;
    --primary-color: #55605A;
    --primary-light-color: #55605A1A;
    --secondary-color: #DAFF52;
    --text-color: #000000;
    --light-text-color: #979797;
    --rented-color: #E9CECA;
    --available-color: #CDE8B7;
    --rented-text-color: #000000;
    --available-text-color: #000000;
	--reserved-color: #FAC896;
    --reserved-text-color: #000000;
}

/***************************************************************
                         PRE-DEFINED
***************************************************************/
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    overflow-x: hidden;
}
.container {
    padding: 0 18px;
}

.section-top-title {
    padding: 10px 10px 0 10px;
    background-color: var(--secondary-color);
    margin-bottom: 27px;
}
.section-top-title span {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4.8px;
    line-height: 1;
    margin-bottom: -4px;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.13px;
    text-transform: uppercase;
    line-height: 1.7;
    margin-bottom: 0;
}
.main-section {
    padding: 65px 0;
}
.isometry-box svg {
    width: 100%;
    height: auto;
    /* iOS: no grey tap flash over the whole SVG (touch mode binds click on it) */
    -webkit-tap-highlight-color: transparent;
}

/***************************************************************
                         ISOMETRY — hover interaction
                         (see scripts/isometry-interaction.js)
***************************************************************/
.isometry-box svg [id^="Building"] {
    transition: opacity 0.35s ease;
}
.isometry-box svg [id^="Building"].is-dimmed {
    opacity: 0.35;
}

.isometry-box svg .floor {
    transition: transform 0.35s ease;
}
.isometry-box svg .floor.is-lifted {
    transform: translateY(-160px);
}

.isometry-box svg .is-hoverable-unit,
.isometry-box svg .is-disabled-unit {
    transition: filter 0.2s ease;
}
.isometry-box svg .is-hoverable-unit {
    cursor: pointer;
}
.isometry-box svg .is-active-unit {
    filter: brightness(1.2) saturate(1.4);
}
.isometry-box svg .unit-highlight-overlay,
.isometry-box svg .unit-highlight-overlay * {
    fill: var(--primary-color) !important;
    stroke: none !important;
}

.units-table tbody tr.is-hovered-row td:not(.status-cell) {
    background: var(--primary-color);
    color: #fff;
}
.units-table tbody tr.is-hovered-row img,
.units-table-mobile tbody tr.is-hovered-row img {
    /* pdf-icon.svg is solid black — brightness(0) locks that in, invert(1) flips it to white */
    filter: brightness(0) invert(1);
}
.table-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.13px;
    line-height: 2;
    font-size: 22px;
    margin-bottom: 20px;
}

/***************************************************************
                         TABLE FILTER (Wohnungen only)
***************************************************************/
.table-filter {
    margin-bottom: 30px;
}


.filter-select {
    position: relative;
    min-width: 148px;
}

.filter-select select {
    width: 100%;
    appearance: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    background: #fff;
    border: 1px solid var(--text-color);
    padding: 10px 32px 10px 14px;
    cursor: pointer;
	letter-spacing: -0.225px;
}
.filter-select select:focus-visible,
.filter-select select:focus {
    box-shadow: none;
    outline: none;
}
.filter-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.filter-row {
    gap: 30px;
    align-items: flex-start;
}

.range-filter {
    width: 200px;
}

.range-filter > label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.range-filter .range-track {
    position: relative;
    height: 6px;
    background: var(--primary-light-color);
}

.range-filter .range-track .range-fill {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--primary-color);
    pointer-events: none;
}

.range-filter .range-track input[type="range"] {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.range-filter .range-track input[type="range"]::-webkit-slider-runnable-track,
.range-filter .range-track input[type="range"]::-moz-range-track {
    background: transparent;
}

.range-filter .range-track input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.range-filter .range-track input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
}

.range-filter .range-values {
    margin-top: 16px;
    font-size: 14px;
    color: var(--light-text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

.availability-filter {
    min-width: 200px;
}

.availability-filter .filter-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.checkbox-filter {
    gap: 16px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-filter input {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
    border: 1.5px solid var(--primary-color);
    border-radius: 0;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.checkbox-filter input:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355605A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}
.flats-main-block {
    margin-top: 30px;
    background-color: #fff;
}
.table-block {
    margin-top: 70px;
    width: 100%;
}

/***************************************************************
                         UNITS TABLE — desktop
***************************************************************/
.table-wrap {
    overflow-x: auto;
}

.units-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.units-table thead th {
    background: var(--primary-color);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 14px 2px;
    white-space: nowrap;
    text-align: center;
}

.units-table tbody td {
    padding: 14px 2px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0px 1px 0px 0px #EDEAE6 inset;
    box-shadow: 0px -1px 0px 0px #F1EEEB inset;
}
.units-table tbody tr:last-child td {
    box-shadow: none;
}
.units-table tbody tr:nth-child(even) {
    background: var(--primary-light-color);
}
.units-table tbody td:last-child {
    padding: 14px 14px;
}
.units-table tbody tr[hidden] {
    display: none;
}


.units-table .status-rented {
    background: var(--rented-color);
    color: var(--rented-text-color);
}

.units-table .status-available {
    background: var(--available-color);
}

.units-table .status-available .status-link {
    color: var(--available-text-color);
    text-decoration: underline;
}
.units-table .status-reserved {
    background: var(--reserved-color);
    color: var(--reserved-text-color);
}
/***************************************************************
                         UNITS TABLE — mobile card layout
***************************************************************/
.units-table-mobile {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.units-table-mobile thead th {
    background: var(--primary-color);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 12px;
	font-size: 16px;
}

.units-table-mobile thead th:last-child {
    text-align: center;
    width: 130px;
}

.units-table-mobile tbody tr:nth-child(even) .info-cell {
    background: var(--primary-light-color);
}

/* Same specificity as the even-row stripe above — must come after it in the
   cascade so the hover highlight wins on striped rows too. */
.units-table-mobile tbody tr.is-hovered-row .info-cell {
    background: var(--primary-color);
    color: #fff;
}

.units-table-mobile tbody tr[hidden] {
    display: none;
}

.units-table-mobile .info-cell {
    padding: 12px 6px;
    vertical-align: top;
    align-content: flex-start;
        box-shadow: 0px 1px 0px 0px #EDEAE6 inset;
    box-shadow: 0px -1px 0px 0px #F1EEEB inset;
}

.units-table-mobile .info-nr {
    font-weight: 700;
}

.units-table-mobile .info-line span {
    display: inline-block;
    white-space: nowrap;
}

.units-table-mobile .info-grundriss {
    display: flex;
    align-items: center;
    gap: 8px;
}

.units-table-mobile .status-cell {
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    width: 130px;
        box-shadow: 0px 1px 0px 0px #EDEAE6 inset;
    box-shadow: 0px -1px 0px 0px #F1EEEB inset;
}

.units-table-mobile .status-rented {
    background: var(--rented-color);
    color: var(--rented-text-color);
}

.units-table-mobile .status-available {
    background: var(--available-color);
}

.units-table-mobile .status-available .status-link {
    color: var(--available-text-color);
    text-decoration: underline;
}

.units-table-mobile .status-reserved {
    background: var(--reserved-color);
    color: var(--reserved-text-color);
}
.table-block {
    gap: 50px;
}
.isometry-box {
    position: sticky;
    top: 0;
    align-self: flex-start;
    will-change: transform;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
/* Full-bleed white band behind the (sticky) isometry, so table rows
   scrolling underneath don't peek out on the sides while it's stuck. */
.isometry-box::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 30px);
    background: #fff;
    z-index: -1;
}
.info-cell {
	column-gap: 6px;
}
@media (min-width: 576px){
    .container {
        max-width: 480px;
    }
}


@media (min-width: 768px){
    .container {
        max-width: 720px;
    }
}


@media (min-width: 992px){
    .container {
        max-width: 960px;
    }
	.units-table .status-cell {
		width: 116px;
	}
}

@media (min-width: 1200px){
    .container {
        max-width: 1140px;
    }
     .flats-container {
        max-width: 1310px;
    }
    .main-section {
        padding: 145px 0 100px 0;
    }
    .section-title {
        font-size: 45px;
    }
    .section-top-title {
        margin-bottom: 12px;
    }
    .table-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .isometry-box {
        margin-bottom: 30px;
    }
    .table-block {
        margin-top:0;
        gap: 80px;
        width: 100%;
    }
	.isometry-box {
		top: 50px;
	}
	.units-table .status-cell {
		width: 100px;
	}
}

@media (min-width: 1400px){
    .container {
        max-width: 1196px;
    }
    .flats-container {
        max-width: 1310px;
    }
}
