:root {
    --bg: #F5F8FA;
    --surface: #FFFFFF;
    --surface-alt: #EEF3F6;
    --text: #00314F;
    --heading: #00314F;
    --border: #D1D5DB;
    --border-soft: rgba(209, 213, 219, 0.8);
    --shadow: 0 6px 18px rgba(0, 49, 79, 0.08);
    --shadow-soft: 0 3px 10px rgba(0, 49, 79, 0.06);
    --overlay: rgba(0, 0, 0, 0.25);
    --hover-bg: rgba(0, 0, 0, 0.04);
    --hover-bg-strong: rgba(0, 0, 0, 0.08);
    --hover-bg-active: rgba(0, 0, 0, 0.16);
    --success: #0B6100;
    --disabled-bg: #f0f0f0;
    --disabled-border: #d3d3d3;
    --disabled-text: #a0a0a0;
    --radius: 16px;
    --radius-sm: 8px;
    --pill-radius: 999px;
    --page-padding: 20px;
    --max-width: 1200px;
    --sidebar-width: 80%;
    --sidebar-max-width: 85vw;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

main,
section,
header,
div {
    width: 100%;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
}

h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

p {
    font-size: 14px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.h1-xl {
    font-size: 42px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    min-height: 84px;
    margin: 0 auto;
    padding: 16px var(--page-padding);
}

.site-title {
    display: none;
    color: var(--text);
    font-weight: 600;
}

.site-logo {
    width: auto;
    height: 45px;
    object-fit: contain;
}

/* Page */
.page {
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--page-padding) 48px;
}

.display-404 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.page-description {
    text-align: center;
}

/* Hero */
.room-hero {
    margin-bottom: 32px;
}

.room-title {
    margin-bottom: 20px;
    color: var(--heading);
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero-image-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn {
    appearance: none;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--pill-radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    background-color: #FAFCFD;
    box-shadow: var(--shadow);
}

/* Cards */
.info-card {
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.card-title {
    margin-bottom: 14px;
    color: var(--heading);
}

.key-properties {
    display: grid;
    gap: 10px;
}

.key-properties p {
    color: var(--text);
}

.key-properties strong {
    color: var(--heading);
}

/* Room information */
.room-information-section {
    margin-top: 8px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.room-information-block {
    margin-bottom: 20px;
}

.room-information-block h3 {
    margin-bottom: 12px;
    color: var(--heading);
}

.room-information-table {
    width: 100%;
    table-layout: fixed;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-collapse: collapse;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.room-information-table thead {
    border-bottom: 1px solid #000;
}

.room-information-table th,
.room-information-table td {
    padding: 16px;
    font-size: 15px;
    text-align: left;
}

.room-information-table th {
    border-bottom: 2px solid var(--border);
}

.room-information-table tr:not(:last-child) td {
    border-bottom: none;
}

.room-information-table tr:nth-child(odd) {
    background-color: var(--surface);
}

.room-information-table tr:nth-child(even) {
    background-color: var(--surface-alt);
}

.room-information-table .clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.room-information-table .clickable-row:hover {
    background-color: color-mix(in srgb, var(--border) 30%, white);
}

.col-postcode {
    width: 50%;
}

.col-name {
    width: 50%;
}

.col-capacity,
.col-type {
    display: none;
    width: 0;
}

/* Features */
.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 6px 15px 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.feature-item:hover {
    background: var(--surface-alt);
    cursor: context-menu;
}

.feature-icon {
    color: var(--success);
    font-size: 16px;
}

/* Search / filter trigger */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 10px;
}

.search-input {
    padding: 10px 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    font-size: 18px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border: 2px solid var(--heading);
    outline: none;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.filter-container button {
    padding: 10px 20px;
}

.filter-button-contents-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Loading */
#loading-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 60px);
    padding: 30px;
    box-sizing: border-box;
}

#loading-view .inner-container {
    display: flex;
    max-width: 400px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.loading-gif {
    max-height: 100px;
}

#loading-view a {
    position: relative;
    color: var(--text);
    text-decoration: none;
}

#loading-view a::after {
    content: "";
    position: absolute;
    height: 2px;
    background-color: currentColor;
    transition: width 0.2s ease;
}

#loading-view a:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* Sidebar filters */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    background: var(--overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    width: var(--sidebar-width);
    max-width: var(--sidebar-max-width);
    height: 100vh;
    flex-direction: column;
    background: var(--bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
}

.sidebar-break {
    padding: 30px;
    padding-top: 0;
}

.sidebar-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: auto;
    padding: 0 30px 30px;
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #eee;
    background: var(--surface);
}

.hide-filters-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hide-filters-button i {
    font-size: 22px;
}

.hide-filters-button:hover {
    background: var(--hover-bg-strong);
}

.hide-filters-button:active {
    background: var(--hover-bg-active);
}

.apply-btn {
    width: 100%;
    padding: 25px;
    border-top: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.apply-btn:hover {
    background-color: #FAFCFD;
    box-shadow: var(--shadow);
}

.filter-option-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background-color: var(--hover-bg);
}

.filter-option-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: default;
    transition: background-color 0.2s ease;
}

.filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked {
    border-color: var(--text);
    background-color: var(--text);
}

.filter-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    width: 5px;
    height: 10px;
    transform: rotate(45deg);
    border: solid white;
    border-width: 0 2px 2px 0;
}

.filter-option input[type="checkbox"]:disabled {
    border-color: var(--disabled-border);
    background-color: var(--disabled-bg);
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-option input[type="checkbox"]:disabled + label {
    color: var(--disabled-text);
    cursor: not-allowed;
}

.filter-option label {
    flex: 1;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}

/* No results */
.no-results-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.no-results-container hr {
    width: 100%;
    padding-bottom: 50px;
}

/* Small screens */
@media (min-width: 640px) {
    :root {
        --page-padding: 28px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
    }

    .hero-image {
        height: 340px;
    }

    .site-logo {
        height: 50px;
    }
}

/* Medium screens */
@media (min-width: 768px) {
    :root {
        --page-padding: 40px;
        --sidebar-width: 50%;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .site-title {
        display: block;
        font-size: 30px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        align-items: start;
        gap: 28px;
    }

    .hero-image {
        height: 100%;
        min-height: 420px;
    }

    .info-card {
        padding: 24px;
    }

    .key-properties {
        gap: 12px;
    }

    .col-postcode {
        width: 25%;
    }

    .col-name {
        width: 30%;
    }

    .col-capacity {
        display: table-cell;
        width: 20%;
    }

    .col-type {
        display: table-cell;
        width: 25%;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    :root {
        --page-padding: 56px;
        --sidebar-width: 30%;
    }

    .page {
        padding-bottom: 64px;
    }

    .room-title {
        margin-bottom: 28px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-image {
        min-height: 480px;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    :root {
        --page-padding: 32px;
        --sidebar-width: 25%;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}