.linorea-filter-shell {
    background: #fbf9f9;
    border: 1px solid #cfc4c5;
    padding: 24px;
    margin: 0 0 32px;
}

.linorea-property-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.linorea-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.linorea-filter-field-wide {
    grid-column: span 2;
}

.linorea-filter-field label {
    color: #625e57;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.linorea-filter-field input,
.linorea-filter-field select {
    appearance: none;
    background: #fff;
    border: 1px solid #cfc4c5;
    border-radius: 0;
    color: #1b1c1c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.linorea-filter-field input:focus,
.linorea-filter-field select:focus {
    border-color: #000;
    box-shadow: none;
    outline: none;
}

.linorea-filter-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.linorea-filter-actions button {
    background: #000;
    border: 1px solid #000;
    color: #fff;
    cursor: pointer;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    min-height: 44px;
    padding: 10px 22px;
    text-transform: uppercase;
}

.linorea-filter-actions a {
    color: #625e57;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    text-decoration: underline;
}

.linorea-filter-results-head {
    color: #625e57;
    display: flex;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    justify-content: space-between;
    margin: 0 0 24px;
    text-transform: uppercase;
}

.linorea-filter-results-head span {
    color: #000;
    font-weight: 700;
}

.linorea-filtered-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.linorea-property-card {
    background: #fff;
    overflow: hidden;
}

.linorea-property-card > a {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.linorea-property-image {
    background: #f9f8f6;
}

.linorea-property-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.linorea-property-placeholder {
    align-items: center;
    background: #f9f8f6;
    color: #625e57;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: 210px;
}

.linorea-property-placeholder .material-symbols-outlined {
    font-size: 54px;
}

.linorea-property-badge {
    background: #000;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 600;
    left: 16px;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 16px;
}

.linorea-property-location {
    min-height: 18px;
}

.linorea-property-title {
    color: #1b1c1c;
    font-family: "Libre Caslon Text", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

.linorea-property-price {
    color: #1b1c1c;
}

.linorea-property-meta {
    color: #625e57;
    flex-wrap: wrap;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
}

.linorea-property-meta div {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.linorea-property-meta .material-symbols-outlined {
    font-size: 15px;
}

.linorea-properties-empty {
    background: #fff;
    border: 1px solid #e3e2e2;
    grid-column: 1 / -1;
    padding: 42px;
    text-align: center;
}

.linorea-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.linorea-pagination .page-numbers {
    border: 1px solid #cfc4c5;
    color: #1b1c1c;
    display: inline-flex;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    min-width: 38px;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    justify-content: center;
}

.linorea-pagination .page-numbers.current,
.linorea-pagination .page-numbers:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

@media (max-width: 1024px) {
    .linorea-property-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .linorea-filtered-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .linorea-filter-shell {
        padding: 18px;
    }

    .linorea-property-filter,
    .linorea-filtered-grid {
        grid-template-columns: 1fr;
    }

    .linorea-filter-field-wide {
        grid-column: span 1;
    }

    .linorea-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .linorea-filter-actions button,
    .linorea-filter-actions a {
        text-align: center;
        width: 100%;
    }
}

/* Property popup cards */
.linorea-property-card .linorea-property-open {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.linorea-property-card .linorea-property-open:focus {
    outline: 1px solid #000;
    outline-offset: 3px;
}

.linorea-property-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.62);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}

.linorea-property-modal.is-open {
    display: flex;
}

.linorea-property-modal-backdrop {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.linorea-property-modal-panel {
    background: #fff;
    border: 1px solid #cfc4c5;
    max-height: 88vh;
    max-width: 980px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.linorea-property-modal-close {
    align-items: center;
    background: #fff;
    border: 1px solid #cfc4c5;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    z-index: 2;
}

.linorea-property-modal-image {
    background: #f9f8f6;
    height: 360px;
    overflow: hidden;
}

.linorea-property-modal-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.linorea-property-modal-body {
    padding: 34px;
}

.linorea-property-modal-location {
    color: #625e57;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.linorea-property-modal-title {
    color: #1b1c1c;
    font-family: "Libre Caslon Text", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px;
}

.linorea-property-modal-price {
    color: #000;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}

.linorea-property-modal-meta {
    border-bottom: 1px solid #e5e1db;
    border-top: 1px solid #e5e1db;
    color: #625e57;
    display: flex;
    flex-wrap: wrap;
    font-family: "Hanken Grotesk", sans-serif;
    gap: 18px;
    margin: 24px 0;
    padding: 18px 0;
}

.linorea-property-modal-description {
    color: #4a4640;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 18px;
}

.linorea-property-modal-description p {
    margin: 0 0 14px;
}

.linorea-property-modal-contact {
    background: #000;
    color: #fff;
    display: inline-flex;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 24px;
    padding: 13px 22px;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .linorea-property-modal {
        padding: 12px;
    }

    .linorea-property-modal-image {
        height: 240px;
    }

    .linorea-property-modal-body {
        padding: 24px;
    }

    .linorea-property-modal-title {
        font-size: 27px;
    }
}


/* Property popup gallery */
.linorea-property-modal-gallery { background: #f9f8f6; }
.linorea-property-modal-main-image { background: #f9f8f6; height: 380px; overflow: hidden; }
.linorea-property-modal-main-image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.linorea-property-modal-thumbs { background: #fff; border-top: 1px solid #e5e1db; display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
.linorea-property-modal-thumb { background: #f9f8f6; border: 2px solid transparent; cursor: pointer; flex: 0 0 92px; height: 68px; padding: 0; }
.linorea-property-modal-thumb.is-active { border-color: #000; }
.linorea-property-modal-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
@media (max-width: 640px) {
    .linorea-property-modal-main-image { height: 240px; }
    .linorea-property-modal-thumb { flex-basis: 74px; height: 56px; }
}


/* Swipe gallery and image lightbox */
.linorea-property-modal-main-image { position: relative; touch-action: pan-y; }
.linorea-property-modal-main-image img { cursor: zoom-in; -webkit-user-drag: none; user-select: none; }
.linorea-property-modal-thumbs { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.linorea-property-image-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}
.linorea-property-image-lightbox.is-open { display: flex; }
.linorea-property-image-lightbox img {
    display: block;
    max-height: 92vh;
    max-width: 94vw;
    object-fit: contain;
}

.linorea-property-image-lightbox { touch-action: pan-y; }
.linorea-property-image-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #cfc4c5;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 48px;
    height: 60px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    z-index: 10001;
}
.linorea-property-image-lightbox-prev { left: 24px; }
.linorea-property-image-lightbox-next { right: 24px; }
.linorea-property-image-lightbox-nav:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 768px) {
    .linorea-property-image-lightbox-nav { display: none; }
}
.linorea-property-image-lightbox-close {
    align-items: center;
    background: #fff;
    border: 1px solid #cfc4c5;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 34px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 44px;
    z-index: 10001;
}
@media (max-width: 640px) {
    .linorea-property-image-lightbox { padding: 10px; }
    .linorea-property-image-lightbox-close { right: 12px; top: 12px; }
}
