/* ALPS "Properties to let" listing and detail pages.
   Loaded only by properties.html and property.html, after alps-site.css.
   Palette unchanged: charcoal #232325, champagne #B8935A / deep #7D5F2E, cream #F6F0E4. */

/* ---------- Filters ---------- */
.listing-controls h2{font-size:24px}
.pf{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:16px;align-items:end}
.pf-field label{display:block;font-weight:700;font-size:15px;margin-bottom:6px}
.pf-field select{width:100%;min-height:48px;padding:10px;border:1px solid #6B7480;border-radius:4px;background:#fff;color:#232325;font-size:16px}
.pf .btn{min-height:48px;white-space:nowrap}
.pf-count{margin:18px 0 0;font-weight:600}
.pf-empty{background:#fff;border:1px solid #D6CFC2;padding:24px;margin:24px 0 64px}
.pf-empty p{margin-top:0}

/* ---------- Listing cards ---------- */
.listing-grid{list-style:none;padding:0;margin:20px 0 72px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.lc{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #D6CFC2;border-radius:4px;overflow:hidden;transition:border-color .15s}
.lc:hover{border-color:#7D5F2E}
.lc:focus-within{outline:3px solid #7D5F2E;outline-offset:2px}
.lc-media{position:relative;aspect-ratio:4/3;background:#E7DFD1;overflow:hidden}
.lc-media img{width:100%;height:100%;object-fit:cover;display:block}
.lc-photo-count{position:absolute;right:12px;bottom:12px;padding:7px 10px;border-radius:3px;background:rgba(35,35,37,.88);color:#fff;font-size:14px;font-weight:700}
.lc-badge{position:absolute;top:12px;left:12px;background:#232325;color:#F6F0E4;font-size:13px;font-weight:700;padding:5px 10px;border-radius:3px}
.lc-badge.static{position:static;display:inline-block;margin:0 0 8px}
.lc-photo-note{position:absolute;right:10px;bottom:10px;background:rgba(35,35,37,.82);color:#F6F0E4;font-size:12px;padding:3px 8px;border-radius:3px}
.lc-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.lc-area{margin:0 0 4px;font-size:14px;color:#4A5560}
.lc-title{font-size:22px;line-height:1.2;margin:0 0 12px}
.lc-title a{text-decoration:none;color:#232325}
.lc-title a::after{content:"";position:absolute;inset:0;z-index:1}
.lc:hover .lc-title a{text-decoration:underline;text-underline-offset:4px}
.lc-title a:focus{outline:none}
.lc-price{margin:0 0 12px;font-size:15px;color:#4A5560}
.lc-price strong{font-family:Georgia,serif;font-size:26px;color:#232325;margin-right:6px}
.lc-facts{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px 0;font-size:15px}
.lc-facts li+li::before{content:"";display:inline-block;width:1px;height:14px;background:#B9B0A3;margin:0 10px;vertical-align:-2px}
.lc-avail{margin:0 0 16px;font-size:15px;font-weight:600}
.lc-avail.is-now::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:#7D5F2E;margin-right:8px;vertical-align:1px}
.lc-mi{display:grid;grid-template-columns:repeat(3,auto);gap:4px 12px;margin:auto 0 0;padding-top:14px;border-top:1px solid #DED8CC;font-size:14px}
.lc-mi div{display:flex;flex-direction:column}
.lc-mi dt{color:#4A5560}
.lc-mi dd{margin:0;font-weight:700;color:#232325}

/* ---------- Detail page ---------- */
.pd-head{padding:28px 0 8px}
.pd-head h1{margin:6px 0 6px}
.pd-area{font-size:18px;color:#4A5560;margin:0 0 20px}
.pd-ref{font-weight:600;color:#7D5F2E;margin:0}
.pd-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:36px;align-items:start;margin-top:8px}
.pd-photo{margin:0}
.pd-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:4px}
.pd-photo figcaption{font-size:14px;color:#4A5560;margin-top:8px}
.pd-gallery{min-width:0}
.pd-gallery-stage{position:relative;overflow:hidden;border-radius:4px;background:#232325}
.pd-gallery-image{aspect-ratio:4/3;overflow:hidden}
.pd-gallery-image img{display:block;width:100%;height:100%;object-fit:cover}
.pd-gallery-image.is-letterboxed img{transform:scale(1.20)}
.pd-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:rgba(35,35,37,.86);color:#fff;font-size:34px;line-height:1;cursor:pointer}
.pd-gallery-nav.is-prev{left:12px}
.pd-gallery-nav.is-next{right:12px}
.pd-gallery-count,.pd-gallery-enlarge{position:absolute;bottom:12px;padding:8px 12px;border:0;border-radius:3px;background:rgba(35,35,37,.88);color:#fff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.3}
.pd-gallery-count{right:12px}
.pd-gallery-enlarge{left:12px;min-height:44px;cursor:pointer}
.pd-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:10px 2px 6px;scrollbar-color:#7D5F2E #E8E2D7}
.pd-gallery-thumb{flex:0 0 92px;width:92px;height:72px;padding:0;border:0;border-radius:3px;overflow:hidden;background:#E7DFD1;opacity:.72;cursor:pointer}
.pd-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.pd-gallery-thumb.is-active,.pd-gallery-thumb:hover{opacity:1}
.pd-gallery-thumb.is-active{outline:3px solid #7D5F2E;outline-offset:-3px}
.pd-gallery-note{font-size:14px;color:#4A5560;margin:8px 0 0}
.pd-gallery button:focus-visible{outline:3px solid #B8935A;outline-offset:3px}
.pd-gallery-dialog{width:min(96vw,1100px);max-width:none;max-height:96vh;padding:56px 16px 16px;border:0;border-radius:6px;background:#232325;color:#fff;text-align:center}
.pd-gallery-dialog::backdrop{background:rgba(0,0,0,.88)}
.pd-gallery-dialog img{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;margin:auto;object-fit:contain}
.pd-gallery-dialog p{margin:10px 0}
.pd-gallery-close{position:absolute;top:10px;right:12px;min-height:44px;padding:8px 14px;border:1px solid #fff;border-radius:3px;background:transparent;color:#fff;cursor:pointer}
.pd-gallery-dialog-controls{display:flex;justify-content:center;gap:12px}
.pd-gallery-dialog-controls button{min-height:44px;padding:9px 16px;border:1px solid #fff;border-radius:3px;background:transparent;color:#fff;cursor:pointer}
.pd-facts{background:#fff;border-top:4px solid #B8935A;padding:26px}
.pd-facts h2{font-size:22px;margin:0 0 12px}
.pd-price{font-family:Georgia,serif;font-size:40px;line-height:1;margin:0;color:#232325}
.pd-price span{font-size:20px}
.pd-weekly{margin:6px 0 10px;color:#4A5560}
.pd-facts dl{margin:16px 0 22px;border-top:1px solid #DED8CC}
.pd-facts dl div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #DED8CC;font-size:15px}
.pd-facts dt{font-weight:700}
.pd-facts dd{margin:0;text-align:right}
.pd-facts dd span{color:#4A5560;font-size:14px}
.pd-facts .btn{display:flex;justify-content:center;width:100%}
.pd-call{font-size:15px;margin:14px 0 0}
.pd-call a{display:inline-block;padding:12px 0;margin:-12px 0;font-weight:700}
.pd-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;padding:48px 0 16px}
.pd-body h2{font-size:28px;margin-top:0}
.pd-features,.pd-costs{padding-left:1.2em}
.pd-features li,.pd-costs li{margin:8px 0}
.pd-pager{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #B9B0A3;border-bottom:1px solid #B9B0A3;padding:8px 0;margin:24px 0}
.pd-pager a{display:inline-flex;align-items:center;min-height:48px;font-weight:600}
.pd-similar{padding:24px 0 8px}
.pd-similar h2{font-size:30px}
.pd-similar .listing-grid{margin-bottom:24px}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .pf{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pf .btn{grid-column:auto}
  .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pd-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .pf{grid-template-columns:1fr 1fr;gap:12px}
  .pf .btn{grid-column:1/-1;width:100%}
  .listing-grid{grid-template-columns:1fr;gap:20px}
  .pd-body{grid-template-columns:1fr;gap:24px;padding-top:32px}
  .pd-price{font-size:34px}
  .pd-facts{padding:20px}
  .pd-pager{flex-direction:column;gap:0}
}
@media(max-width:340px){.pf{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.lc{transition:none}}

/* OpenRent cover photos include letterbox bars in their source files. Crop by layout only. */
.lc-media.is-letterboxed img{transform:scale(1.20)}
.pd-photo.is-letterboxed{aspect-ratio:4/3;overflow:hidden}
.pd-photo.is-letterboxed img{height:100%;transform:scale(1.20)}
