/* =========================
   PSMLS Frontend (Theme-adaptive)
   ========================= */

/* Theme bridge: inherit fonts; pull Elementor globals when available */
:root{
  /* Typography */
  --psmls-font: inherit;
  --psmls-font-size: inherit;

  /* Colors (try Elementor globals; fallback to neutral) */
  --psmls-text: var(--e-global-color-text, #111827);
  --psmls-muted: var(--e-global-color-secondary, rgba(17,24,39,.75));
  --psmls-border: var(--e-global-color-secondary, #e5e7eb);

  --psmls-bg: transparent;            /* plugin container background */
  --psmls-card-bg: var(--e-global-color-9a6f0c2, #fff); /* Elementor may not have this; ok */
  --psmls-surface: #fff;              /* safe default surface */

  /* Accents */
  --psmls-accent: var(--e-global-color-primary, #111827);
  --psmls-accent-contrast: #fff;

  /* UI */
  --psmls-radius: 12px;
  --psmls-radius-sm: 10px;
  --psmls-gap: 12px;
  --psmls-shadow-focus: 0 0 0 3px rgba(17,24,39,.25);
}

/* Base scope (don’t fight theme typography) */
.ps-mls-fragment,
.ps-mls-detail{
  color: var(--psmls-text);
  font-family: inherit;
  font-size: inherit;
}

/* =========================
   SEARCH / GRID
   ========================= */

.psmls-results-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(1,minmax(0,1fr));
}
@media (min-width:768px){
  .psmls-results-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

.psmls-result-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  height:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  background:#fff;
  text-decoration:none;
  color:inherit;
  position:relative;
  overflow:hidden;
}

.psmls-result-card:focus{outline:none}
.psmls-result-card:focus-visible{box-shadow:0 0 0 3px rgba(17,24,39,.25)}

.psmls-result-card .ps-mls-card__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  opacity:0;
  transition:opacity .15s ease;
  background:rgba(17,24,39,.55);
  color:#fff;
  border-radius:10px;
}

.psmls-result-card:hover .ps-mls-card__overlay,
.psmls-result-card:focus-visible .ps-mls-card__overlay{
  opacity:1;
}

@media (hover:none){
  .psmls-result-card .ps-mls-card__overlay{
    opacity:1;
    background:rgba(17,24,39,.35);
    font-weight:600;
  }
}

.psmls-result-card .ps-mls-card__title{
  font-weight:700;
  margin-bottom:6px;
}
.ps-mls-card__type{
  font-size:13px;
  color:var(--psmls-muted);
  margin-bottom:6px;
}
.psmls-result-card .ps-mls-card__price{
  font-size:18px;
  font-weight:800;
  margin:8px 0 0;
}

.ps-mls-card__meta,
.ps-mls-card__stats,
.ps-mls-card__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.ps-mls-card__title,
.ps-mls-card__byline,
.ps-mls-card__price {
  overflow-wrap: anywhere;
}

.ps-mls-card__thumb,
.ps-mls-card__title,
.ps-mls-card__meta,
.ps-mls-card__byline,
.ps-mls-card__stats,
.ps-mls-card__price {
  width: 100%;
  min-width: 0;
}
.ps-mls-card__title{
  display:flex;
  flex-direction:column;
  line-height:1.25;
}

.ps-mls-card__addr1{
  font-weight:500;
  font-size:1.3em;
  margin-bottom: 0.2em;
}

.ps-mls-card__addr2{
  font-weight:500;
  font-size:1.3em;
}
.ps-mls-card__thumb{
  aspect-ratio: 16 / 10;
  height:auto;
  border-radius: var(--psmls-radius-sm);
  overflow:hidden;
  background:#f3f4f6;
  position:relative;
  margin-bottom:10px;
}
.ps-mls-card__img{
  width:100%;
  height:100% !important;
  max-width: none;
  object-fit:cover;
  display:block;
  border-radius: var(--psmls-radius-sm);
}

.ps-mls-card__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  opacity:0;
  transition:opacity .15s ease;
  background: rgba(17,24,39,.55);
  color: var(--psmls-accent-contrast);
  border-radius: var(--psmls-radius-sm);
}

@media (hover: none){
  .ps-mls-card__overlay{ opacity:1; background:rgba(17,24,39,.35); font-weight:600; }
}

.ps-mls-card__title{ 
    font-weight:700; 
    text-align: center;
    margin-bottom:6px; 
}
.ps-mls-card__stats{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
  font-size:15px;
  color:var(--psmls-muted);
  margin-bottom:4px;
}
.ps-mls-card__byline{
  font-size:1em;
  color: var(--psmls-muted);
  margin:6px 0 8px;
  line-height:1.35;
}
.ps-mls-card__brokerage{
  font-size:10px;
  color:#707070;
  margin-top:2px;
  margin-bottom:6px;
  text-align: center;
}
@media (max-width:768px){
.ps-mls-card__brokerage
{
    margin-top: 0px;
    margin-bottom: 0px;
}
.ps-mls-card__type
{
    margin-bottom: 0px;
}
.ps-mls-fragment--list .ps-mls-card__desc{
    margin-top: 5px !important;
}
.ps-mls-card__addr1{
    text-align: center
}
.ps-mls-card__addr2{
    text-align: center;
}

}
    
.ps-mls-card__price{
  font-size:1.4em;
  font-weight:500;
  color:#846c00;
  margin-top: auto;
}
.ps-mls-card__stats span:not(:last-child)::after{
  content:"•";
  margin-left:8px;
  opacity:.5;
}

.ps-mls-card__content{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.ps-mls-card__desc{
  font-size:14px;
  line-height:1.55;
  color:var(--psmls-muted);
  margin:8px 0 10px;
  text-align:center;
}

/* Pagination */
.ps-mls-pagination{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  margin:10px 0 14px;
}
.ps-mls-pagination--bottom{ margin:18px 0 10px; }

.ps-mls-page-list{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.ps-mls-page{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--psmls-border);
  border-radius: var(--psmls-radius-sm);
  text-decoration:none;
  font-size:0.9em;
  color:inherit;
  background: transparent;
}
.ps-mls-page.is-active{
  background: var(--psmls-accent);
  color: var(--psmls-accent-contrast);
  font-weight:700;
  border-color: var(--psmls-accent);
}
.ps-mls-page--nav{ font-weight:600; }
.ps-mls-page--dots{ border-color:transparent; padding:6px 6px; opacity:.7; }
.ps-mls-page.is-disabled{ opacity:.4; cursor:not-allowed; }

/* Hub map container */
.ps-mls-map{
  width:100%;
  height:320px;
  border-radius: var(--psmls-radius);
  background:#f3f4f6;
  margin:0 0 12px 0;
}
@media (max-width:768px){ .ps-mls-map{ height:240px; } }

/* InfoWindow card */
.psmls-iw{
  display:flex;
  gap:10px;
  align-items:stretch;
  text-decoration:none;
  color:inherit;
  max-width:260px;
}
.psmls-iw__thumb{
  width:96px;
  min-width:96px;
  height:72px;
  border-radius: var(--psmls-radius-sm);
  overflow:hidden;
  background:#f3f4f6;
}
.psmls-iw__img{ width:100%; height:100%; object-fit:cover; display:block; }
.psmls-iw__body{ display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
.psmls-iw__title{
  font-weight:800;
  font-size:0.9em;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.psmls-iw__stats{ font-size:0.85em; color: var(--psmls-muted); margin-top:4px; }
.psmls-iw__price{ font-size:0.95em; font-weight:900; margin-top:6px; }

/* Advanced marker dot */
.psmls-adv-pin{
  width:16px;
  height:16px;
  border-radius:999px;
  background: var(--psmls-accent);
  border:2px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  cursor:pointer;
}

/* =========================
   DETAIL PAGE
   ========================= */
.ps-mls-detail{ max-width:1100px; margin:0 auto; }
.ps-mls-detail__header{ margin:10px 0 14px; }
.ps-mls-detail__title{ margin:0; font-size:1.6em; line-height:1.2; }
.ps-mls-detail__sub{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--psmls-muted);
  font-size:0.9em;
  margin-top:6px;
}
.ps-mls-detail__summary{
  display:flex;
  gap:18px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin:6px 0 16px;
}
.ps-mls-detail__price{ font-size:1.85em; font-weight:800; }
.ps-mls-detail__facts{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:1em;
  color: var(--psmls-muted);
}

/* 2-col layout */
.ps-mls-detail__layout{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
}
@media (min-width:900px){
  .ps-mls-detail__layout{
    grid-template-columns:2fr 1fr;
    align-items:start;
  }
}
.ps-mls-detail__main{ min-width:0; display:grid; gap:12px; }
.ps-mls-detail__side{ min-width:0; position:relative; align-self:start; }

.ps-mls-detail__sticky{ position:sticky; top:10px; }
@media (max-width:899px){
  .ps-mls-detail__sticky{ position:static !important; top:auto !important; }
}

/* Cards */
.ps-mls-detail__card{
  border:1px solid var(--psmls-border);
  border-radius: var(--psmls-radius);
  padding:12px;
  background: var(--psmls-surface);
}
.ps-mls-detail__card-title{ font-weight:800; margin-bottom:8px; }
.ps-mls-detail__kv{
  display:flex;
  justify-content:space-between;
  align-items: flex-start;
  gap:10px;
  font-size:0.9em;
  padding:4px 0;
}
.ps-mls-detail__kv span:first-child{ 
    color: #111827; 
    font-weight: 500;
}

.ps-mls-detail__kv > span:first-child {
  flex: 0 0 42%;
  min-width: 0;
}

.ps-mls-detail__kv > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.ps-mls-detail__btn{
  display:inline-block;
  margin:6px 6px 0 0;
  padding:10px 12px;
  border:1px solid var(--psmls-border);
  border-radius: var(--psmls-radius-sm);
  text-decoration:none;
  color:inherit;
}
.ps-mls-detail__btn--primary{
  border-color: var(--psmls-accent);
  font-weight:700;
}

.ps-mls-detail__remarks-text{
  border:0;
  border-radius: var(--psmls-radius);
  padding:0;
  background:transparent;
}
.ps-mls-detail__disclaimer{ margin-top:10px; font-size:0.85em; color: var(--psmls-muted); }

.ps-mls-detail__group{ margin-top:10px; padding-top:10px; border-top:1px solid rgba(0,0,0,.08); }
.ps-mls-detail__group-title{ font-weight:700; font-size:0.9em; color: var(--psmls-muted); margin-bottom:6px; }

/* Media tabs */
.ps-mls-media{ margin:12px 0 18px; }
.ps-mls-media__tabs{ display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.ps-mls-tab{
  padding:8px 10px;
  border:1px solid var(--psmls-border);
  border-radius: var(--psmls-radius-sm);
  background: var(--psmls-surface);
  cursor:pointer;
  font-weight:600;
}
.ps-mls-tab.is-active{ border-color: var(--psmls-accent); }
.ps-mls-tab:disabled{ opacity:.45; cursor:not-allowed; }
.ps-mls-tab-note{ color: var(--psmls-muted); font-size:0.9em; margin-left:6px; }

.ps-mls-media__panel{ display:none; }
.ps-mls-media__panel.is-active{ display:block; }

/* Slider */
/* BASIC gallery: native 16:9 frame */
.ps-mls-slider__main{
  position:relative;
  border-radius: var(--psmls-radius);
  overflow:hidden;
  background:#f3f4f6;
  aspect-ratio: 16 / 9;
  width:100%;
  min-height:0;
}


/* Image fills shell without changing its height */
.ps-mls-slider__img{
  width:100%;
  height:100% !important;
  object-fit:cover;
  object-position:center;
  display:block;
}


@media (max-width:768px){ .ps-mls-slider__img{ height:260px; } }

.ps-mls-slider__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:rgba(17,24,39,.55);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.ps-mls-slider__prev{ left:10px; }
.ps-mls-slider__next{ right:10px; }

.ps-mls-slider__thumbs{
  display:flex;
  gap:8px;
  margin-top:10px;
  overflow:auto;
  padding:2px 0 4px;
  scrollbar-width:none;
  -ms-overflow-style:none;
  touch-action: pan-x;
}
.ps-mls-slider__thumbs::-webkit-scrollbar{ display:none; }

.ps-mls-thumb{
  border:1px solid var(--psmls-border);
  border-radius: var(--psmls-radius-sm);
  padding:0;
  overflow:hidden;
  background: var(--psmls-surface);
  cursor:pointer;
  flex:0 0 auto;
}
.ps-mls-thumb img{ width:84px; height:58px; object-fit:cover; display:block; }

.ps-mls-thumb.is-active{ box-shadow:0 0 0 2px var(--psmls-accent); }
.ps-mls-thumb:focus-visible{
  outline:2px solid var(--psmls-accent);
  outline-offset:2px;
}

/* Map matches gallery height */
.ps-mls-detail-map{
  width:100%;
  height:450px;
  border-radius: var(--psmls-radius);
  background:#f3f4f6;
}

/* Mobile */
@media (max-width:768px){
   .ps-mls-slider__main{
    aspect-ratio: 16 / 9;
  }
  .ps-mls-slider__img{
    height:100% !important;
  }

  .ps-mls-detail-map{
    height:260px;
  }
}

/* Dynamic grids */
.ps-mls-detail__mapped,
.ps-mls-detail__dynamic{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(1,minmax(0,1fr));
  margin-top:12px;
}
@media (min-width:900px){
  .ps-mls-detail__mapped{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ps-mls-detail__dynamic{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Embed */
.ps-mls-embed-wrap{
  position:relative;
  padding-top:56.25%;
  border-radius: var(--psmls-radius);
  overflow:hidden;
  background:#f3f4f6;
}
.ps-mls-embed{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}
/* ===== PSMLS Detail: theme-friendly typography ===== */
.ps-mls-detail{
  /* let theme dictate font-family via inherit */
  font-family: inherit;
  line-height: 1.45;
}

/* Title looks like a real listing page title */
.ps-mls-detail__title{
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Sub line feels calmer + consistent */
.ps-mls-detail__sub{
  font-size: 13px;
  opacity: .8;
}

/* Price hierarchy */
.ps-mls-detail__price{
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Facts row */
.ps-mls-detail__facts{
  font-size: 14px;
  opacity: .9;
}

/* ===== PSMLS Detail: card polish ===== */
.ps-mls-detail__card{
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* Hover only on devices that support hover */
@media (hover:hover){
  .ps-mls-detail__card:hover{
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    transform: translateY(-1px);
  }
}

/* Card titles slightly stronger */
.ps-mls-detail__card-title{
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .85;
  padding-bottom: 15px;
}

/* Key/value rows: cleaner separators */
.ps-mls-detail__kv{
  padding: 7px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.ps-mls-detail__kv:first-of-type{
  border-top: 0;
}
.ps-mls-detail__kv span:first-child{
  opacity: .72;
}
.ps-mls-detail__kv span:last-child{
  font-weight: 600;
}

/* ===== PSMLS Detail: buttons ===== */
.ps-mls-detail__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

@media (hover:hover){
  .ps-mls-detail__btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.22);
  }
}

.ps-mls-detail__btn--primary{
  border-color: rgba(0,0,0,.85);
}

/*======contact card======*/
.psmls-lead-card{
  color: var(--psmls-text, inherit);
  font-family: var(--psmls-font, inherit);
  font-size: var(--psmls-font-size, inherit);
}

/*==== Reset to plugin =====*/
.ps-mls,
.ps-mls-detail {
  box-sizing: border-box;
}

.ps-mls *,
.ps-mls-detail * {
  box-sizing: border-box;
}

.ps-mls img,
.ps-mls-detail img {
  max-width: 100%;
  height: auto;
}

.ps-mls a,
.ps-mls-detail a {
  text-decoration: none;
}

.ps-mls ul,
.ps-mls-detail ul,
.ps-mls ol,
.ps-mls-detail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-mls p,
.ps-mls-detail p {
  margin: 0;
}

/* =========================
   Results toolbar
   ========================= */
.ps-mls-results-shell{
  width:100%;
}

.ps-mls-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:10px 0;
}

.ps-mls-toolbar__left,
.ps-mls-toolbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ps-mls-toolbar__label{
  font-size:13px;
  font-weight:600;
  color:var(--psmls-muted);
}

.ps-mls-toolbar__select{
  min-width:220px;
  height:40px;
  border:1px solid var(--psmls-border);
  border-radius:12px;
  background:#fff;
  padding:0 12px;
  font-size:14px;
}

.ps-mls-view-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(17,24,39,.12);
  border-radius:10px;
  background:#fff;
  color:#111827;
  cursor:pointer;
  transition:
    border-color .14s ease,
    box-shadow .14s ease,
    transform .12s ease,
    background .14s ease,
    color .14s ease;
}

@media (hover:hover){
  .ps-mls-view-btn:hover{
    border-color:rgba(17,24,39,.24);
    box-shadow:0 8px 18px rgba(17,24,39,.08);
    transform:translateY(-1px);
  }
}

.ps-mls-view-btn:focus{
  outline:none;
}

.ps-mls-view-btn:focus-visible{
  box-shadow:0 0 0 3px rgba(17,24,39,.14);
}

.ps-mls-view-btn.is-active{
  background:#111827;
  border-color:#111827;
  color:#fff;
  box-shadow:0 10px 22px rgba(17,24,39,.18);
}

/* icon shell */
.ps-mls-view-icon{
  display:grid;
  gap:3px;
  width:15px;
  height:15px;
}


/* grid icon */
.ps-mls-view-icon--grid{
  grid-template-columns:repeat(2, 1fr);
  grid-template-rows:repeat(2, 1fr);
}

.ps-mls-view-icon--grid span,
.ps-mls-view-icon--list span{
  display:block;
  background:currentColor;
  border-radius:1.5px;
}

/* slightly smaller/sleeker grid squares */
.ps-mls-view-icon--grid span{
  width:100%;
  height:100%;
  opacity:.95;
}

/* list icon */
.ps-mls-view-icon--list{
  grid-template-columns:1fr;
  grid-template-rows:repeat(3, 1fr);
  align-items:center;
}

.ps-mls-view-icon--list span{
  width:100%;
  height:2px;
  opacity:.95;
}

/* subtle toolbar grouping */
.ps-mls-toolbar__right{
  display:flex;
  align-items:center;
  gap:8px;
}

.ps-mls-fragment.is-loading{
  opacity:.72;
  transition:opacity .15s ease;
}

/* =========================
   List view
   ========================= */
.ps-mls-fragment--list .psmls-results-grid{
  grid-template-columns:1fr;
}

.ps-mls-fragment--list .psmls-result-card{
  display:grid;
  grid-template-columns:minmax(220px, 320px) minmax(0, 1fr);
  gap:16px;
  align-items:stretch;
  text-align:left;
  padding:14px;
}

.ps-mls-fragment--list .ps-mls-card__thumb{
  margin-bottom:0;
  aspect-ratio:auto;
  min-height:180px;
  height:100%;
}

.ps-mls-fragment--list .ps-mls-card__img{
  height:100% !important;
}

.ps-mls-fragment--list .ps-mls-card__title,
.ps-mls-fragment--list .ps-mls-card__stats,
.ps-mls-fragment--list .ps-mls-card__type,
.ps-mls-fragment--list .ps-mls-card__brokerage
{
  text-align:left;
}
.ps-mls-fragment--list .ps-mls-card__price
{
    text-align:right;
}

.ps-mls-fragment--list .ps-mls-card__stats{
  justify-content:flex-start;
}

@media (max-width:767px){
  .ps-mls-fragment--list .psmls-result-card{
    grid-template-columns:1fr;
  }

  .ps-mls-fragment--list .ps-mls-card__thumb{
    min-height:auto;
    aspect-ratio:16 / 10;
  }
}
.ps-mls-fragment--list .ps-mls-card__content{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-width:0;
}

.ps-mls-fragment--list .ps-mls-card__desc{
  display:block;
  text-align:left;
  margin:10px 0 12px;
  max-width:100%;
}

.ps-mls-fragment--grid .ps-mls-card__desc{
  display:none;
}

/* =========================
   Taller hub map
   ========================= */
.ps-mls-map{
  height:384px;
}
@media (max-width:768px){
  .ps-mls-map{
    height:288px;
  }
}

/*WS===============*/
.psmls-walkscore-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:14px;
}

.psmls-walkscore-item{
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.psmls-walkscore-item__score{
  font-size:28px;
  font-weight:700;
  line-height:1;
  margin-bottom:6px;
}

.psmls-walkscore-item__label{
  font-size:13px;
  font-weight:600;
  margin-bottom:4px;
}

.psmls-walkscore-item__desc{
  font-size:12px;
  color:#666;
}
/* ===== Transit Card ===== */
.psmls-transit-card{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.psmls-transit-score{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.psmls-transit-score__value{
  width: 74px;
  height: 74px;
  min-width: 74px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 3px solid #d1d5db;
}

.psmls-transit-score__meta{
  min-width: 0;
}

.psmls-transit-score__label{
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.psmls-transit-score__desc{
  margin-top: 4px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.35;
}

.psmls-transit-summary{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}

.psmls-transit-card a{
  font-weight: 600;
  text-decoration: none;
}

.psmls-transit-card a:hover{
  text-decoration: underline;
}

/* score color states */
.psmls-transit-card.score-poor .psmls-transit-score__value{
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.psmls-transit-card.score-fair .psmls-transit-score__value{
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.psmls-transit-card.score-good .psmls-transit-score__value{
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.psmls-transit-card.score-great .psmls-transit-score__value{
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

@media (max-width: 640px){
  .psmls-transit-score{
    gap: 12px;
  }

  .psmls-transit-score__value{
    width: 62px;
    height: 62px;
    min-width: 62px;
    font-size: 24px;
  }
}
/* ===== Walk Score Card ===== */
.psmls-walkscore-card{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.psmls-walkscore-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.psmls-walkscore-item{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 14px 12px;
  text-align: center;
}

.psmls-walkscore-item__score{
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 3px solid #d1d5db;
}

.psmls-walkscore-item__label{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.psmls-walkscore-item__desc{
  margin-top: 6px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.35;
}

.psmls-walkscore-card a{
  font-weight: 600;
  text-decoration: none;
}

.psmls-walkscore-card a:hover{
  text-decoration: underline;
}

/* score states */
.psmls-score-poor .psmls-walkscore-item__score{
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.psmls-score-fair .psmls-walkscore-item__score{
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.psmls-score-good .psmls-walkscore-item__score{
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.psmls-score-great .psmls-walkscore-item__score{
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

@media (max-width: 767px){
  .psmls-walkscore-grid{
    grid-template-columns: 1fr;
  }

  .psmls-walkscore-item{
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .psmls-walkscore-item__score{
    margin: 0;
    min-width: 60px;
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}
/* ===== Transit Module ===== */
.psmls-transit-module{
  margin-top: 16px;
}

.psmls-transit-module__map-wrap{
  margin-top: 14px;
}

.psmls-transit-module__map{
  width: 100%;
  height: 280px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  overflow: hidden;
}

.psmls-transit-module__section{
  margin-top: 16px;
}

.psmls-transit-module__heading{
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.psmls-transit-route-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psmls-transit-route-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 13px;
}

.psmls-transit-route-pill__name{
  font-weight: 700;
  color: #111827;
}

.psmls-transit-route-pill__type{
  color: #6b7280;
}

.psmls-transit-stop-list{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.psmls-transit-stop-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.psmls-transit-stop-row:first-child{
  border-top: 0;
}

.psmls-transit-stop-row__name{
  color: #111827;
}

.psmls-transit-stop-row__dist{
  color: #6b7280;
  white-space: nowrap;
}

.psmls-transit-attrib{
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
}

.psmls-transit-attrib a{
  color: inherit;
  text-decoration: none;
}

.psmls-transit-attrib a:hover{
  text-decoration: underline;
}

.psmls-transit-line-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.psmls-transit-line-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f7f7;
}

.psmls-transit-line-row__name {
  font-weight: 600;
  line-height: 1.3;
}

.psmls-transit-line-row__dist {
  white-space: nowrap;
  color: #666;
  font-size: 13px;
}

.psmls-transit-line-row--rail {
  border-left: 4px solid #2563eb;
}

.psmls-transit-line-row--bus {
  border-left: 4px solid #16a34a;
}

.psmls-transit-stop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psmls-transit-stop-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f7f7;
}

.psmls-transit-stop-row__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.psmls-transit-stop-row__name {
  font-weight: 600;
}

.psmls-transit-stop-row__dist {
  white-space: nowrap;
  color: #666;
  font-size: 13px;
}

.psmls-transit-stop-row__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.psmls-transit-route-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e5e7eb;
}

.psmls-transit-route-pill--bus {
  background: #dcfce7;
}

.psmls-transit-route-pill--rail {
  background: #dbeafe;
}

.psmls-transit-stop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psmls-transit-stop-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f7f7;
}

.psmls-transit-stop-row__mainline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}

.psmls-transit-stop-row__dist {
  font-weight: 700;
  min-width: 52px;
  color: #111;
}

.psmls-transit-stop-row__name {
  font-weight: 600;
  color: #222;
}

.psmls-transit-stop-row__sep {
  color: #999;
}

.psmls-transit-stop-row__lines-inline {
  color: #555;
  font-size: 13px;
}

.psmls-transit-stop-group + .psmls-transit-stop-group {
  margin-top: 14px;
}

.psmls-transit-stop-group__title {
  font-weight: 500;
  margin: 0 0 8px;
  padding-top: 10px;
}

.psmls-transit-stop-row + .psmls-transit-stop-row {
  margin-top: 6px;
}

/* =========================
   Mortgage Calculator
   ========================= */

.psmls-mortgage-calculator-card .ps-mls-detail__card-title {
  margin-bottom: 14px;
}

.psmls-mcalc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* LEFT: inputs */
.psmls-mcalc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 14px;
  align-content: start;
}

.psmls-mcalc__field {
  min-width: 0;
}

.psmls-mcalc__field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.psmls-mcalc__field input,
.psmls-mcalc__field select {
  width: 100%;
  height: 42px;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #111;
  box-shadow: none;
}

.psmls-mcalc__field input[readonly] {
  background: #f7f7f7;
  color: #444;
}

.psmls-mcalc__field input:focus,
.psmls-mcalc__field select:focus {
  outline: none;
  border-color: #bdbdbd;
}

/* Price spans full width */
.psmls-mcalc__field:first-child {
  grid-column: 1 / -1;
}

/* RIGHT: hero summary */
.psmls-mcalc__results {
  padding: 18px 18px 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
  display: grid;
  gap: 12px;
}

.psmls-mcalc__result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.psmls-mcalc__result-row strong {
  color: #111;
}

.psmls-mcalc__result-row--payment {
  display: block;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e9e9e9;
}

.psmls-mcalc__result-row--payment span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.psmls-mcalc__result-row--payment strong {
  display: block;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  text-align: center;
}

/* Premium banner slot later */
.psmls-mcalc__extra {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.psmls-mcalc__disclaimer {
  grid-column: 1 / -1;
  margin-top: -4px;
  font-size: 9px;
  line-height: 1.5;
  color: #666;
}

/* Mobile */
@media (max-width: 767px) {
  .psmls-mcalc {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .psmls-mcalc__grid {
    grid-template-columns: 1fr;
  }

  .psmls-mcalc__field:first-child {
    grid-column: auto;
  }

  .psmls-mcalc__result-row--payment strong {
    font-size: 28px;
  }
}