/* ==========================================================================
   Abbey Daft Sync - Public Frontend Styles
   ========================================================================== */

/* Custom properties for easy theming */
:root {
    --abbey-primary: #1a3c5e;
    --abbey-accent: #c8102e;
    --abbey-text: #333;
    --abbey-light: #f5f5f5;
    --abbey-border: #e0e0e0;
    --abbey-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Archive Wrapper
   ========================================================================== */

.abbey-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.abbey-archive-header {
    margin-bottom: 16px;
}

.abbey-archive-title {
    font-size: 2em;
    color: var(--abbey-primary);
    margin: 0;
}

/* ==========================================================================
   Archive Layout (Main + Sidebar)
   ========================================================================== */

.abbey-archive-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.abbey-archive-main {
    flex: 1;
    min-width: 0;
}

.abbey-archive-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--abbey-sidebar-bg, #fff);
    border: 1px solid var(--abbey-border);
    border-radius: 8px;
    padding: 0;
    position: sticky;
    top: 32px;
}

/* Toolbar (results count + view toggle) */
.abbey-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--abbey-border);
}

.abbey-results-count {
    font-size: 0.95em;
    color: #666;
}

.abbey-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Sidebar sections --- */
.abbey-sidebar-section {
    padding: 14px 20px;
}

.abbey-sidebar-section--submit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
}

.abbey-sidebar-section__title {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--abbey-sidebar-heading, var(--abbey-sidebar-text, var(--abbey-text)));
    margin: 0 0 10px;
}

.abbey-sidebar-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--abbey-border);
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--abbey-text) !important;
    background: #fff !important;
    background-color: #fff !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 30px;
}

.abbey-sidebar-select option {
    background: #fff !important;
    color: var(--abbey-text) !important;
}

.abbey-sidebar-select:focus {
    outline: none;
    border-color: var(--abbey-primary);
    box-shadow: 0 0 0 2px rgba(26, 60, 94, 0.15);
}

.abbey-sidebar-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--abbey-border);
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--abbey-text) !important;
    background: #fff !important;
    background-color: #fff !important;
    box-sizing: border-box;
}

.abbey-sidebar-input:focus {
    outline: none;
    border-color: var(--abbey-primary);
    box-shadow: 0 0 0 2px rgba(26, 60, 94, 0.15);
}

.abbey-sidebar-input::placeholder {
    color: #999;
}

.abbey-sidebar-price-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.abbey-sidebar-price-row .abbey-sidebar-input {
    flex: 1;
}

.abbey-sidebar-price-sep {
    color: var(--abbey-sidebar-text, #999);
    font-size: 0.85em;
}

/* Ad type toggle in sidebar — pill shape */
.abbey-sidebar-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--abbey-border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--abbey-light);
}

.abbey-sidebar-toggle__option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.abbey-sidebar-toggle__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.abbey-sidebar-toggle__option span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    background: transparent;
    transition: all 0.25s ease;
    border-right: none;
    border-radius: 24px;
    margin: 2px;
}

.abbey-sidebar-toggle__option:last-child span {
    border-right: none;
}

.abbey-sidebar-toggle__option input[type="radio"]:checked + span {
    background: var(--abbey-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Sidebar buttons */
.abbey-btn--full {
    width: 100%;
    text-align: center;
}


/* Loading overlay for AJAX filtering */
.abbey-properties-grid.abbey-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Responsive: sidebar stacks below on mobile */
@media (max-width: 900px) {
    .abbey-archive-layout {
        flex-direction: column;
    }

    .abbey-archive-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
}

/* ==========================================================================
   Property Grid
   ========================================================================== */

.abbey-properties-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.abbey-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.abbey-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.abbey-columns-1 {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .abbey-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .abbey-properties-grid {
        gap: 16px;
    }

    .abbey-columns-3,
    .abbey-columns-2 {
        grid-template-columns: 1fr;
    }
}

.abbey-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: #888;
    font-size: 1em;
    background: var(--abbey-light);
    border-radius: 12px;
    line-height: 1.7;
}

.abbey-no-results__icon {
    display: block;
    font-size: 2.5em;
    margin-bottom: 12px;
    opacity: 0.4;
}

.abbey-no-results__hint {
    display: block;
    margin-top: 8px;
    font-size: 0.88em;
    color: #999;
}

.abbey-pagination {
    margin: 32px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.abbey-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--abbey-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--abbey-text);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.abbey-pagination .page-numbers:hover {
    border-color: var(--abbey-primary);
    color: var(--abbey-primary);
    background: rgba(26, 60, 94, 0.04);
}

.abbey-pagination .page-numbers.current {
    background: var(--abbey-primary);
    color: #fff;
    border-color: var(--abbey-primary);
    font-weight: 600;
}

.abbey-pagination .page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 4px;
    color: #999;
}

.abbey-pagination .page-numbers.prev,
.abbey-pagination .page-numbers.next {
    font-weight: 600;
}

/* ==========================================================================
   Property Card
   ========================================================================== */

.abbey-property-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--abbey-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.abbey-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.abbey-property-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Image */
.abbey-property-card__image {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--abbey-light);
}

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

.abbey-property-card:hover .abbey-property-card__image img {
    transform: scale(1.03);
}

.abbey-property-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
    background: var(--abbey-light);
}

/* Card Badge (Sale Agreed / Let Agreed) */
.abbey-property-card__badge {
    position: absolute;
    top: 12px;
    right: 0;
    background: rgba(200, 16, 46, 0.9);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px 4px 10px;
    z-index: 2;
    border-radius: 2px 0 0 2px;
}

/* Card Body */
.abbey-property-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Title - truncate to 2 lines */
.abbey-property-card__title {
    color: var(--abbey-text);
    font-size: 0.95em;
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* Card Excerpt — ALWAYS hidden in grid, shown only in list view */
.abbey-property-card__excerpt {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

/* Card Footer (wraps price + stats + BER) */
.abbey-property-card__footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

/* Card Price */
.abbey-property-card__price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 0;
    line-height: 1.3;
    width: 100%;
}

/* Card Stats (Beds / Baths / Type) */
.abbey-property-card__stats {
    display: flex;
    gap: 6px;
    font-size: 0.8em;
    color: #666;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.abbey-property-card__stats li {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.abbey-property-card__stats li + li::before {
    content: "\00B7";
    margin-right: 4px;
    font-weight: 700;
    color: #999;
}

/* Card BER Rating */
.abbey-property-card__ber {
    display: inline-block;
    margin: 0;
}

/* BER Badge - shared between card and single page */
.abbey-ber-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    letter-spacing: 0.3px;
}

.abbey-ber-badge--a1,
.abbey-ber-badge--a2,
.abbey-ber-badge--a3 {
    background: #1b8a2a;
}

.abbey-ber-badge--b1,
.abbey-ber-badge--b2,
.abbey-ber-badge--b3 {
    background: #6ab42e;
}

.abbey-ber-badge--c1,
.abbey-ber-badge--c2,
.abbey-ber-badge--c3 {
    background: #c6c800;
    color: #333;
}

.abbey-ber-badge--d1,
.abbey-ber-badge--d2 {
    background: #f0a800;
    color: #333;
}

.abbey-ber-badge--e1,
.abbey-ber-badge--e2 {
    background: #e86c00;
}

.abbey-ber-badge--f {
    background: #d63638;
}

.abbey-ber-badge--g {
    background: #b81d1f;
}

/* ==========================================================================
   Single Property Page
   ========================================================================== */

.abbey-single-property {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--abbey-text);
}

/* Agreed Badge (subtle inline tag on single property) */
.abbey-agreed-tag {
    display: inline-block;
    background: var(--abbey-accent);
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 10px;
    line-height: 1;
    position: relative;
    top: -2px;
}

/* Gallery */
.abbey-gallery {
    margin-bottom: 24px;
}

.abbey-gallery__main {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: var(--abbey-light);
    border-radius: 8px;
    position: relative;
}

.abbey-gallery__main-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Thumbnail strip with arrow navigation */
.abbey-gallery__thumbs-wrap {
    position: relative;
    margin-top: 10px;
    padding: 0 36px;
}

.abbey-gallery__thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--abbey-primary);
    color: #fff;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    padding: 0;
    opacity: 0.9;
    z-index: 2;
}

.abbey-gallery__thumbs-arrow--prev {
    left: 0;
}

.abbey-gallery__thumbs-arrow--next {
    right: 0;
}

.abbey-gallery__thumbs-arrow:hover {
    opacity: 1;
    filter: brightness(1.2);
}

.abbey-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.abbey-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.abbey-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid var(--abbey-border);
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    background: none;
    padding: 0;
    overflow: hidden;
}

.abbey-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abbey-gallery__thumb:hover {
    opacity: 0.9;
}

.abbey-gallery__thumb.active {
    opacity: 1;
    border-color: var(--abbey-primary);
}

/* Header / Title */
.abbey-single-property__header {
    margin-bottom: 8px;
}

.abbey-single-property__title {
    font-size: 1.35em;
    color: var(--abbey-primary);
    margin: 0;
    line-height: 1.3;
}

/* Price */
.abbey-single-property__price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 12px 0;
    line-height: 1.2;
}

/* Key Stats Bar */
.abbey-key-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: 0.92em;
    color: var(--abbey-text);
    padding: 12px 0;
    border-top: 1px solid var(--abbey-border);
    border-bottom: 1px solid var(--abbey-border);
    margin: 0 0 20px;
    list-style: none;
}

.abbey-key-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-right: 18px;
    border-right: 1px solid var(--abbey-border);
}

.abbey-key-stats__item:last-child {
    padding-right: 0;
    border-right: none;
}

.abbey-key-stats__value {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--abbey-primary);
}

.abbey-key-stats__label {
    font-size: 0.7em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .abbey-key-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .abbey-key-stats__item {
        flex-direction: row;
        padding-right: 0;
        border-right: none;
        gap: 8px;
    }
}

/* Property Type */
.abbey-single-property__type {
    font-size: 0.92em;
    color: #666;
    margin: 0 0 12px;
    text-transform: capitalize;
}

/* Description */
.abbey-single-property__description {
    max-width: 800px;
    line-height: 1.65;
    margin: 20px 0;
    font-size: 0.92em;
    color: var(--abbey-text);
}

.abbey-single-property__description p {
    margin: 0 0 16px;
}

.abbey-single-property__description p:last-child {
    margin-bottom: 0;
}

/* Features List */
.abbey-single-property__features {
    margin: 24px 0;
}

.abbey-single-property__features h2 {
    font-size: 1.15em;
    color: var(--abbey-primary);
    margin: 0 0 12px;
}

.abbey-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .abbey-features-list {
        grid-template-columns: 1fr;
    }
}

.abbey-features-list__item {
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
}

.abbey-features-list__item::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: 700;
}

/* Property Details Table */
.abbey-single-property__details {
    margin: 24px 0;
}

.abbey-single-property__details h2 {
    font-size: 1.15em;
    color: var(--abbey-primary);
    margin: 0 0 12px;
}

/* CTA / View on Daft.ie Button */
.abbey-single-property__cta {
    margin: 24px 0;
}

.abbey-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.abbey-btn--daft {
    background: var(--abbey-primary);
    color: #fff;
}

.abbey-btn--daft:hover {
    background: #122d47;
    color: #fff;
}

.abbey-btn--search {
    background: var(--abbey-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
}

.abbey-btn--search:hover {
    background: #122d47;
}

/* Documents Section */
.abbey-single-property__documents {
    margin: 24px 0;
}

.abbey-single-property__documents h2 {
    font-size: 1.15em;
    color: var(--abbey-primary);
    margin: 0 0 12px;
}

.abbey-documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abbey-documents-list__item {
    padding: 8px 0;
    border-bottom: 1px solid var(--abbey-border);
}

.abbey-documents-list__item:last-child {
    border-bottom: none;
}

.abbey-documents-list__item a {
    color: var(--abbey-primary);
    text-decoration: none;
    font-weight: 500;
}

.abbey-documents-list__item a:hover {
    text-decoration: underline;
}

/* Map Container */
.abbey-single-property__map {
    margin: 24px 0;
}

.abbey-single-property__map h2 {
    font-size: 1.15em;
    color: var(--abbey-primary);
    margin: 0 0 12px;
}

.abbey-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--abbey-light);
}

@media (max-width: 600px) {
    .abbey-map {
        height: 280px;
    }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.abbey-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.abbey-lightbox.active {
    display: flex;
}

.abbey-lightbox__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.abbey-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
}

.abbey-lightbox__caption {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.95em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.abbey-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.abbey-lightbox__close:hover {
    opacity: 1;
}

.abbey-lightbox__prev,
.abbey-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.abbey-lightbox__prev:hover,
.abbey-lightbox__next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.abbey-lightbox__prev {
    left: 16px;
}

.abbey-lightbox__next {
    right: 16px;
}

/* ==========================================================================
   View Toggle (Grid / List)
   ========================================================================== */

.abbey-view-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--abbey-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--abbey-light);
}

.abbey-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    margin: 2px;
}

.abbey-view-toggle__btn:hover {
    color: var(--abbey-primary);
}

.abbey-view-toggle__btn.active {
    background: var(--abbey-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   List View
   ========================================================================== */

.abbey-properties-grid.abbey-view--list {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.abbey-view--list .abbey-property-card {
    flex-direction: row;
    min-height: 240px;
    max-height: none;
}

.abbey-view--list .abbey-property-card__link {
    flex-direction: row;
    width: 100%;
}

.abbey-view--list .abbey-property-card__image {
    width: 340px;
    min-width: 340px;
    padding-bottom: 0;
    height: auto;
    min-height: 240px;
}

.abbey-view--list .abbey-property-card__body {
    padding: 20px 24px;
    justify-content: flex-start;
}

.abbey-view--list .abbey-property-card__title {
    display: block !important;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    min-height: 0;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--abbey-border);
    color: var(--abbey-primary);
    line-height: 1.3;
}

.abbey-view--list .abbey-property-card__excerpt {
    display: -webkit-box !important;
    visibility: visible !important;
    height: auto !important;
    overflow: hidden !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
    font-size: 0.88em;
    color: #666;
    line-height: 1.6;
}

/* List view footer: horizontal info bar at bottom */
.abbey-view--list .abbey-property-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--abbey-border);
    margin-top: auto;
    flex-wrap: nowrap;
}

.abbey-view--list .abbey-property-card__price {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0;
    width: auto;
    white-space: nowrap;
    margin-left: auto;
    order: 3;
}

.abbey-view--list .abbey-property-card__stats {
    font-size: 0.85em;
    gap: 6px;
    order: 1;
    flex-wrap: nowrap;
}

.abbey-view--list .abbey-property-card__stats li + li::before {
    content: "\00B7";
    margin-right: 4px;
    font-weight: 700;
}

.abbey-view--list .abbey-property-card__ber {
    margin: 0;
    order: 2;
}

@media (max-width: 700px) {
    .abbey-view--list .abbey-property-card {
        flex-direction: column;
        min-height: auto;
    }

    .abbey-view--list .abbey-property-card__link {
        flex-direction: column;
    }

    .abbey-view--list .abbey-property-card__image {
        width: 100%;
        min-width: 0;
        padding-bottom: 56%;
        height: auto;
        min-height: auto;
    }

    .abbey-view--list .abbey-property-card__title {
        font-size: 1.05em;
    }

    .abbey-view--list .abbey-property-card__footer {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.abbey-property-search {
    background: var(--abbey-light);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.abbey-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.abbey-search-field {
    flex: 1 1 180px;
}

.abbey-search-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--abbey-text);
}

.abbey-search-field input,
.abbey-search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--abbey-border);
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--abbey-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.abbey-search-field input:focus,
.abbey-search-field select:focus {
    outline: none;
    border-color: var(--abbey-primary);
    box-shadow: 0 0 0 2px rgba(26, 60, 94, 0.15);
}

/* Ad type toggle */
.abbey-ad-type-toggle {
    display: flex;
    gap: 8px;
}

.abbey-toggle-option {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.95em;
}

.abbey-toggle-option input[type="radio"] {
    width: auto;
}

.abbey-search-submit {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .abbey-property-search {
        padding: 16px;
    }

    .abbey-search-row {
        gap: 12px;
    }

    .abbey-search-field {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Single Property Layout (Two-Column)
   ========================================================================== */

.abbey-single-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.abbey-single-main {
    flex: 1;
    min-width: 0;
}

.abbey-single-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}

@media (max-width: 900px) {
    .abbey-single-layout {
        flex-direction: column;
    }
    .abbey-single-sidebar {
        width: 100%;
        position: static;
    }
}

/* ==========================================================================
   Agent Card
   ========================================================================== */

.abbey-agent-card {
    background: #fff;
    border: 1px solid var(--abbey-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.abbey-agent-card__header {
    background: var(--abbey-sidebar-bg, var(--abbey-primary));
    padding: 12px 20px;
}

.abbey-agent-card__header-label {
    color: var(--abbey-sidebar-text, #fff);
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abbey-agent-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abbey-btn--email {
    margin-top: 8px;
}

.abbey-agent-card__name {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 0;
}

.abbey-agent-card__agency {
    font-size: 0.88em;
    color: #666;
    margin: 0;
}

.abbey-agent-card__phone {
    margin: 0;
}

.abbey-agent-card__phone-icon {
    margin-right: 6px;
}

.abbey-btn--call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--abbey-primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92em;
    transition: background 0.2s ease;
}

.abbey-btn--call:hover {
    background: #122d47;
    color: #fff;
}

.abbey-btn--call-alt {
    background: transparent;
    color: var(--abbey-primary);
    border: 1px solid var(--abbey-border);
}

.abbey-btn--call-alt:hover {
    background: var(--abbey-light);
    color: var(--abbey-primary);
}

.abbey-btn--email {
    display: block;
    background: #fff;
    color: var(--abbey-primary);
    border: 2px solid var(--abbey-primary);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92em;
    transition: all 0.2s ease;
}

.abbey-btn--email:hover {
    background: var(--abbey-primary);
    color: #fff;
}

/* ==========================================================================
   Similar Properties (Full Width, Bottom of Page)
   ========================================================================== */

.abbey-similar-properties {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--abbey-border);
}

.abbey-similar-properties__title {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 0 0 16px;
}

.abbey-similar-properties__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 700px) {
    .abbey-similar-properties__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.abbey-similar-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--abbey-border);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.abbey-similar-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.abbey-similar-card__img {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    position: relative;
    overflow: hidden;
    background: var(--abbey-light);
}

.abbey-similar-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abbey-similar-card__info {
    padding: 12px 14px;
}

.abbey-similar-card__title {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--abbey-text);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.abbey-similar-card__price {
    font-size: 1em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 0 0 4px;
}

.abbey-similar-card__stats {
    font-size: 0.8em;
    color: #666;
    margin: 0;
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Latest Properties Shortcode (Homepage)
   ========================================================================== */

.abbey-latest-properties {
    margin: 32px 0;
}

.abbey-latest-properties__title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--abbey-primary);
    margin: 0 0 16px;
}

.abbey-latest-properties__grid {
    display: grid;
    gap: 20px;
}

.abbey-latest-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.abbey-latest-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.abbey-latest-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.abbey-latest-cols-1 {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .abbey-latest-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .abbey-latest-cols-4,
    .abbey-latest-cols-3,
    .abbey-latest-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 960px) {
    .abbey-single-property__price {
        font-size: 1.35em;
    }

    .abbey-single-property__title {
        font-size: 1.25em;
    }
}

@media (max-width: 600px) {
    .abbey-single-property {
        padding: 16px 12px;
    }

    .abbey-single-property__price {
        font-size: 1.2em;
        margin: 10px 0;
    }

    .abbey-single-property__title {
        font-size: 1.15em;
    }

    .abbey-gallery__main {
        max-height: 260px;
    }

    .abbey-gallery__main-img {
        max-height: 260px;
    }

    .abbey-lightbox__prev,
    .abbey-lightbox__next {
        font-size: 1.4em;
        padding: 8px 12px;
    }

    .abbey-lightbox__close {
        font-size: 1.5em;
    }
}
