* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: white;
    font-family: Arial, sans-serif;
    padding: 0 10px;
    background-image: url('Images/Background/Housing.jpg');
    background-color: #282828;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

.text {
    text-align: center;
}

/* ========================= */
/* HEADER / NAV              */
/* ========================= */

header {
    margin: 0 -10px;
    padding: 0 0 30px;
    background-color: transparent;
}

header .filter-container {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}


/* ========================= */
/* MOUNT GRID                */
/* ========================= */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 5px -5px 0;
    width: 100%;
}

.square {
    width: calc(16.666% - 10px);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    margin: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid #555;
}

@media (max-width: 1280px) {
    .square { width: calc(25% - 10px); }
}

@media (max-width: 900px) {
    .square { width: calc(33.333% - 10px); }
}

@media (max-width: 560px) {
    .square { width: calc(50% - 10px); }
}

.square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.square:hover {
    border: 1px solid #999;
}

@media (min-width: 1400px) {
    .square:hover img {
        transform: scale(1.1);
    }
}

/* ========================= */
/* MOUNT TEXT / CHECKBOX     */
/* ========================= */

.obtained-checkbox-container {
    position: absolute;
    top: 10px;
    left: 10px;
    align-items: center;
    color: white;
    font-size: 14px;
    z-index: 1;
}

.obtained-checkbox-container .obtained-text:hover {
    color: #D6D6D6;
}

.additional-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
}

.additional-text2 {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 11px;
    text-align: center;
    font-style: italic;
    white-space: nowrap;
    z-index: 1;
}

input[type="checkbox"] {
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ========================= */
/* FILTER CONTAINERS         */
/* ========================= */

.filter-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.filter-box,
.progress-container,
.notice-box,
.search-box {
    background-color: #181818;
    padding: 10px;
    border: 1px solid #555;
    width: 95%;
    max-width: 900px;
    box-sizing: border-box;
    font-size: 14px;
}

/* ========================= */
/* FILTER BOX TITLE          */
/* ========================= */

.filter-box-title {
    text-align: center;
    font-size: 16px;
    padding: 8px 0;
    color: white;
    letter-spacing: 1px;
}

/* ========================= */
/* FILTER ROWS               */
/* ========================= */

.filter-box {
    display: flex;
    flex-direction: column;
}

.filter-row {
    border-top: 1px solid #555;
}

.filter-row:first-of-type {
    border-top: none;
}

.filter-row-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 6px 5px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.filter-row-header:hover {
    color: #D6D6D6;
}

.filter-row-header span:first-child {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.filter-arrow.open {
    transform: rotate(90deg);
}

.filter-row-options {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5px 4px;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
}

.filter-row-options.collapsed {
    display: none;
}

.filter-row-options label {
    padding: 4px 10px;
    margin: 3px;
    font-size: 14px;
    background-color: #181818;
    border: 1px solid #555;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.filter-row-options label:hover {
    border-color: #999;
}

.filter-row-options input[type="checkbox"] {
    display: none;
}

@media (max-width: 560px) {
    .filter-row-options label { width: 50%; }
}
.site-title {
    background-color: #181818;
    border: 1px solid #555;
    width: 95%;
    max-width: 900px;
    padding: 14px 10px;
    font-size: 20px;
    text-align: center;
    color: white;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 auto;
}

.site-title-text {
    grid-column: 2;
}

.site-title-image {
    grid-column: 3;
    justify-self: end;
    height: 40px;
    width: auto;
}
/* ========================= */
/* SEARCH BAR                */
/* ========================= */

.search-bar {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #555;
    background-color: #282828;
    color: white;
}

/* ========================= */
/* PROGRESS BAR              */
/* ========================= */

.progress-container {
    text-align: center;
}

.progress-container2 {
    background-color: #fff;
}

.progress-bar {
    height: 20px;
    background-color: #0075FF;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    margin-top: 10px;
    color: #fff;
}

/* ========================= */
/* NOTICE BOX                */
/* ========================= */

.notice-box {
    margin: 10px auto;
    text-align: center;
    font-size: 14px;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

footer {
    background-color: #181818;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
    margin-top: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border: 1px solid #555;
}

footer a {
    color: #0075FF;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================= */
/* LAYOUT                    */
/* ========================= */

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrap {
    flex: 1;
}