﻿/* Bristol Property Partnership: refreshed look for the theme's property listing pages
   (All properties, Rooms, Studios, Flats, Houses) and the property details page.
   Loaded by the BPP New Pages plugin only on those pages. It restyles the theme's own markup and changes
   no data, links, filters or forms, so the Arthur feed and the homepage's room cards keep working.
   Every rule is scoped to body.bpp-listings or body.bpp-prop-detail (classes the plugin adds).
   Sizes are in px: the theme sets html { font-size: 10px }, which would shrink rem sizes. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap");

.bpp-listings, .bpp-prop-detail {
  --forest: #007342;
  --forest-dark: #005c35;
  --gunmetal: #636466;
  --black: #000;
  --white: #fff;
  --grey-50: #f5f5f5;
  --grey-100: #ececec;
  --grey-300: #d4d4d4;
  --grey-600: #555;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --font-head: "Montserrat", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

/* ================= Listing pages ================= */
.bpp-listings #landlord-prop, .bpp-listings #landlord-prop2 { font-family: var(--font-body); color: var(--black); }
.bpp-listings .landlord-prop-l-h h1 { margin: 8px 0 6px; font: 700 clamp(27.2px, 3.2vw, 38.4px)/1.15 var(--font-head); color: var(--gunmetal); text-transform: none; letter-spacing: 0; }

/* Toolbar: property count, Map / List, Order by */
.bpp-listings .landlord-pop-f { margin: 10px 0 4px; }
.bpp-listings .landlord-pop-f > .row { display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; }
.bpp-listings .landlord-prop-f-in, .bpp-listings .landlord-prop-f-in p { margin: 0; padding: 0; border: 0; background: none; font: 400 16px/1.4 var(--font-body); color: var(--grey-600); }
.bpp-listings .p-lbl.bg-green { display: inline-block; min-width: 0; margin: 0 4px; padding: 3px 10px; border-radius: 999px; background: var(--forest) !important; color: var(--white); font: 700 15.2px/1.3 var(--font-body); }
.bpp-listings .landlord-prop-f2 ul { display: inline-flex; gap: 0; margin: 0; padding: 3px; list-style: none; border-radius: var(--radius-sm); background: var(--grey-50); }
.bpp-listings .landlord-prop-f2 li { margin: 0; padding: 0; float: none; }
.bpp-listings .landlord-prop-f2 li a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 6px; background: none; color: var(--gunmetal); font: 600 14.4px var(--font-head); text-decoration: none; }
.bpp-listings .landlord-prop-f2 li a.active { background: var(--forest); color: var(--white); }
.bpp-listings select.form-select { height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); background-color: var(--white); box-shadow: none; font: 400 15.7px var(--font-body); color: var(--black); }
.bpp-listings select.form-select:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }

/* Results area: the filter (the theme's "Refine search" sidebar) becomes a bar above the cards,
   on phones too (the theme hid it on phones) */
.bpp-listings #landlord-prop2 > .container > .row { display: flex; flex-wrap: wrap; }
.bpp-listings #landlord-prop2 .col-lg-9 { order: 2; width: 100%; float: none; }
.bpp-listings #landlord-prop2 .col-lg-3.hidden-xs { order: 1; display: block !important; width: 100%; float: none; }
.bpp-listings #landlord-prop2 .col-lg-3.visible-xs { display: none !important; } /* duplicate "Showing ..." line on phones */
.bpp-listings .landlord-prop-r2-in, .bpp-listings .landlord-prop-ff { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.bpp-listings .landlord-prop-ff { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 26px; padding: 16px 18px; border: 1px solid var(--grey-100); border-radius: var(--radius); background: var(--grey-50); }
.bpp-listings .landlord-prop-ff h6 { margin: 0; font: 700 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gunmetal); }
.bpp-listings .landlord-prop-ffm { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bpp-listings .landlord-prop-ffm .f-controls { margin: 0; padding: 0; float: none; width: auto; }
.bpp-listings .landlord-prop-ffm .f-controls:empty, .bpp-listings .landlord-prop-ffm .f-controls:has(> .c-chkbox:empty) { display: none; }
.bpp-listings .landlord-prop-ffm select.form-select { min-width: 170px; }
.bpp-listings .c-chkbox, .bpp-listings .chkbox { margin: 0; padding: 0; }
.bpp-listings .chkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.bpp-listings .chkbox input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--forest); position: static; opacity: 1; }
.bpp-listings .chkbox label { margin: 0; padding: 0; font: 600 15.2px var(--font-body); color: var(--black); cursor: pointer; }
.bpp-listings .chkbox label::before, .bpp-listings .chkbox label::after { display: none; } /* the theme's drawn checkbox: the real one is shown instead */

/* Cards: a photo-first grid, three across on desktop */
.bpp-listings #rowdata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.bpp-listings #rowdata::before, .bpp-listings #rowdata::after { display: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop { position: relative; display: flex; flex-direction: column; float: none; width: auto; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--grey-100); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 10px 26px rgba(0,0,0,.09); }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop > [class*="col-"] { float: none; width: 100%; padding: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop > .clearfix { display: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-100); }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img a { display: block; height: 100%; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .3s; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop:hover .prop-img img { transform: scale(1.03); }
/* Price: a pill on the photo */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-prc-lbl { position: absolute; left: 12px; bottom: 12px; top: auto; right: auto; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--forest); font: 700 16.3px/1.2 var(--font-head); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
/* Status ("Available To Let", "Let Agreed" ...): keeps the theme's own colour, as a small label on the photo */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-btn-a { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; padding: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-btn-a .form-button { display: inline-block; width: auto; height: auto; min-height: 0; margin: 0; padding: 5px 10px; border: 0; border-radius: 999px; font: 700 11.5px/1.2 var(--font-body) !important; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
/* Text */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .landlord-prop-r-in { margin: 0; padding: 16px 18px 18px; border: 0; background: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info { padding: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info > a { text-decoration: none; color: inherit; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info h5 { margin: 0 0 4px; font: 700 17.3px/1.3 var(--font-head); color: var(--black); text-transform: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info h6 { margin: 0 0 12px; font: 400 15.2px/1.3 var(--font-body); color: var(--grey-600); text-transform: none; }
/* Quick facts: availability, type, beds, baths as small chips */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icons { margin: 0 0 12px; padding: 0; border: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icons ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icons li { display: inline-flex; align-items: center; gap: 6px; float: none; width: auto; margin: 0; padding: 4px 9px 4px 6px; border: 0; border-radius: 999px; background: var(--grey-50); text-align: left; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icon { display: inline-flex; width: auto; height: auto; margin: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icon img { width: 18px; height: 18px; object-fit: contain; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-icon-ttl { display: inline; margin: 0; font: 600 12.8px/1.2 var(--font-body); color: var(--black); text-transform: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-para p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font: 400 14.7px/1.5 var(--font-body); color: var(--grey-600); }

/* Pagination built by the theme's script */
.bpp-listings .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 8px; padding: 0; }
.bpp-listings .pagination-button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); background: var(--white); color: var(--black); font: 600 15.7px var(--font-body); cursor: pointer; }
.bpp-listings .pagination-button:hover { background: var(--grey-50); }
.bpp-listings .pagination-button.active { border-color: var(--forest); background: var(--forest); color: var(--white); }

@media (max-width: 1100px) {
  .bpp-listings #rowdata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .bpp-listings #rowdata { grid-template-columns: 1fr; gap: 18px; }
  .bpp-listings .landlord-prop-ff { padding: 14px; }
  .bpp-listings .landlord-prop-ffm .f-controls, .bpp-listings .landlord-prop-ffm select.form-select { width: 100%; }
  .bpp-listings .landlord-prop-f1.hidden-xs { display: block !important; } /* keep the property count on phones */
}

/* ---- Layout fixes over the theme's Bootstrap grid ---- */
/* Toolbar: one tidy row (count, view switch, sort) instead of three Bootstrap columns */
.bpp-listings .landlord-pop-f > .row > [class*="col-"] { width: auto; float: none; padding-left: 15px; padding-right: 15px; }
.bpp-listings .landlord-pop-f > .row > [class*="col-"]:first-child { margin-right: auto; }
.bpp-listings .landlord-prop-f-in .row { display: flex; align-items: center; gap: 10px; margin: 0; }
.bpp-listings .landlord-prop-f-in .row > [class*="col"] { width: auto; float: none; padding: 0; }
.bpp-listings .landlord-prop-f-in .row > [class*="col"] p { white-space: nowrap; font-size: 14px; color: var(--grey-600); }
.bpp-listings .landlord-prop-f3 select.form-select { min-width: 190px; }
/* The theme boxes each results column: remove the box */
.bpp-listings .landlord-prop-l-c { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; }
/* Selects: the theme makes them upper case with wide letter spacing and clips the text */
.bpp-listings select.form-select { line-height: normal; padding-top: 0; padding-bottom: 0; text-transform: none; letter-spacing: 0; text-indent: 0; }
/* The theme's own rules here are more specific (they use the section ids), so these few need !important */
.bpp-listings #landlord-prop2 .landlord-prop-r2-in { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.bpp-listings #landlord-prop select.form-select, .bpp-listings #landlord-prop2 select.form-select { padding: 0 36px 0 12px !important; text-transform: none !important; letter-spacing: 0 !important; font: 400 15px/normal var(--font-body) !important; color: var(--black) !important; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img { width: 100% !important; max-width: none !important; height: auto !important; border-radius: 0 !important; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img img { border-radius: 0 !important; }
/* Undo the theme's photo positioning (centred, absolutely placed, fixed 240px box) so the photo fills the card top */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img { min-height: 0; max-height: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img img { position: static; top: auto; left: auto; transform: none; width: 100%; height: 100%; max-height: none; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop:hover .prop-img img { transform: scale(1.03); }
/* Card box: the theme adds padding, side margins and a grey border; on some pages with !important */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop { padding: 0 !important; margin: 0 !important; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-l-in.article-loop > [class*="col-"] { padding: 0 !important; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .landlord-prop-r-in { margin-right: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-btn-a a { padding: 5px 10px; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info h6 { margin: 0 0 12px; line-height: 1.3; font-family: var(--font-body); color: var(--grey-600); }
/* Fact chips: the theme stacks the icon over the text in wide cells and hides them on some screen sizes */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info .prop-icons { display: block; padding: 0; border: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info .prop-icons ul li { display: inline-flex; width: auto !important; padding: 4px 9px 4px 6px; text-align: left; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info .prop-icons ul li > span { display: inline-flex; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info .prop-icons ul li > span > img { display: block; margin: 0; }
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-info .prop-icons ul li > span.prop-icon-ttl { padding: 0; font: 600 13px/1.2 var(--font-body); font-weight: 600 !important; text-transform: none; }
/* Filter selects: the theme's arrow image sits too low in the shorter box */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .landlord-prop-r2-in .landlord-prop-ff .form-select, .bpp-listings #landlord-prop select.form-select { background-position: right 12px center !important; }
/* Phones: the filter stacks, label on top, dropdowns full width */
@media (max-width: 680px) {
  .bpp-listings .landlord-prop-ff { flex-direction: column; align-items: stretch; gap: 10px; margin: 8px 0 20px; }
  .bpp-listings .landlord-prop-ffm { flex-direction: column; align-items: stretch; gap: 10px; }
  .bpp-listings .landlord-prop-ffm .f-controls:empty { display: none; }
  .bpp-listings .landlord-pop-f > .row > [class*="col-"] { width: 100%; }
  .bpp-listings .landlord-prop-f-in .row { justify-content: flex-start; }
}
/* Rooms page: the photo link sits inside an extra .rounding-image box */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-img .rounding-image { height: 100%; margin: 0; padding: 0; border-radius: 0; overflow: hidden; }
/* "Under offer" label in purple (listings.js marks it by its text, because the theme writes each label's colour inline) */
.bpp-listings #landlord-prop2 .landlord-prop-l-c .article-loop .prop-btn-a .form-button.is-under-offer { background-color: #6b3fa0 !important; color: #fff !important; }
/* Page buttons are real buttons now (listings.js builds them, 18 cards per page) */
.bpp-listings button.pagination-button { appearance: none; -webkit-appearance: none; line-height: 1; }
.bpp-listings button.pagination-button:disabled { opacity: .4; cursor: default; }
.bpp-listings button.pagination-button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
/* No results: message and a button back to every property (listings.js adds it to the list and the map views) */
.bpp-listings .bpp-no-results { margin: 8px 0 24px; padding: 32px 24px; border: 1px dashed var(--grey-300); border-radius: var(--radius); background: var(--grey-50); text-align: center; font-family: var(--font-body); }
.bpp-listings .bpp-no-results p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: var(--grey-600); }
.bpp-listings .bpp-no-results .bpp-no-results-title { margin-bottom: 6px; font: 700 20px/1.3 var(--font-head); color: var(--gunmetal); }
.bpp-listings .bpp-no-results .bpp-no-results-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); background: var(--forest); color: #fff; font: 700 16px/1 var(--font-body); text-decoration: none; }
.bpp-listings .bpp-no-results .bpp-no-results-btn:hover { background: var(--forest-dark); color: #fff; text-decoration: none; }/* Map pin box: the listing(s) at that pin, each linking to the property (listings.js builds it) */
.bpp-listings .bpp-pin { width: 260px; max-height: 300px; overflow-x: hidden; overflow-y: auto; font-family: var(--font-body); }
.bpp-listings .bpp-pin .bpp-pin-count { margin: 0 0 8px; font: 700 13px/1.3 var(--font-head); color: var(--gunmetal); }
.bpp-listings .bpp-pin .bpp-pin-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px; margin: 0; border-radius: var(--radius-sm); color: var(--black); text-decoration: none; outline: none; }
.bpp-listings .bpp-pin .bpp-pin-item + .bpp-pin-item { margin-top: 4px; border-top: 1px solid var(--grey-100); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.bpp-listings .bpp-pin .bpp-pin-item:hover { background: var(--grey-50); text-decoration: none; }
.bpp-listings .bpp-pin .bpp-pin-item:focus-visible { background: var(--grey-50); box-shadow: inset 0 0 0 2px var(--forest); text-decoration: none; }
.bpp-listings .bpp-pin .bpp-pin-item img { flex: 0 0 84px; width: 84px !important; max-width: none; height: 64px !important; object-fit: cover; border-radius: 6px; background: var(--grey-100); }
.bpp-listings .bpp-pin .bpp-pin-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bpp-listings .bpp-pin .bpp-pin-title { font: 700 14px/1.3 var(--font-head); color: var(--black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bpp-listings .bpp-pin .bpp-pin-meta { font-size: 13px; line-height: 1.3; color: var(--grey-600); }
.bpp-listings .bpp-pin .bpp-pin-link { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--forest); }
@media (max-width: 480px) { .bpp-listings .bpp-pin { width: 220px; } .bpp-listings .bpp-pin .bpp-pin-item img { flex-basis: 64px; width: 64px !important; height: 52px !important; } }
