/* Theo Properties RC1.0.15.39 — Public Marketplace Featured Demo & Responsive Search UI Polish */
:root{
  --theo-demo-navy:#153b58;
  --theo-demo-gold:#c88a35;
  --theo-demo-line:#d7e1e8;
  --theo-demo-muted:#667b8b;
  --theo-demo-surface:#fff;
  --theo-demo-soft:#f7f9fa;
}

/* Keep the hero composed on tablet/small desktop instead of allowing the title and controls to dominate. */
@media (max-width:1100px){
  #explore .premium-marketplace-hero{gap:28px;align-items:start}
  #explore #marketplace-title{font-size:clamp(3.1rem,7vw,5.4rem)!important;line-height:.92!important;letter-spacing:-.055em!important;max-width:8.5ch}
  #explore .hero-lead{font-size:clamp(1rem,2.2vw,1.45rem)!important;line-height:1.42!important;max-width:44rem}
}

/* Search composition: location full width, class/type together, rent/search together. */
@media (max-width:900px){
  #explore .hero-search-card{padding:22px!important;border-radius:24px!important;box-shadow:0 18px 44px rgba(20,50,70,.07)!important}
  #explore .hero-search-card-head{margin-bottom:14px!important}
  #explore .filters.public-search.taxonomy-search{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:14px!important;
    align-items:end!important;
  }
  #explore .search-location-field{grid-column:1/-1!important}
  #explore .property-class-field{grid-column:1!important}
  #explore .subtype-search-field{grid-column:2!important}
  #explore .rent-search-field{grid-column:1!important}
  #explore .hero-search-submit{grid-column:2!important;min-height:58px!important;margin:0!important}
  #explore .filters .field label{margin-bottom:7px!important;font-size:.9rem!important}
  #explore .filters select,#explore .rent-range-trigger{min-height:58px!important;border-radius:15px!important;font-size:1rem!important}
  #explore .location-search-shell{min-height:58px!important;border-radius:15px!important}
  #explore .location-search-shell input{min-width:0!important;font-size:1rem!important}
  #explore .location-current-button{min-width:auto!important;padding-inline:15px!important}
  #explore .location-action-long{display:none!important}
  #explore .location-action-short{display:inline!important}

  #explore .rent-range-panel{
    margin-top:14px!important;
    padding:18px!important;
    border-radius:20px!important;
    border:1px solid var(--theo-demo-line)!important;
    background:var(--theo-demo-surface)!important;
    box-shadow:none!important;
  }
  #explore .rent-range-head{align-items:flex-start!important;gap:12px!important}
  #explore .rent-range-head strong{font-size:1.05rem!important}
  #explore .rent-range-head span{font-size:.82rem!important;margin-top:3px!important}
  #explore .rent-range-summary{margin:16px 0 12px!important;gap:12px!important}
  #explore .rent-range-summary strong{font-size:1.4rem!important}
  #explore .dual-range{margin:0 7px 3px!important}
  #explore .rent-range-scale{font-size:.72rem!important;margin-top:2px!important}
  #explore .rent-presets{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:12px!important;
  }
  #explore .rent-presets button{min-width:0!important;padding:10px 7px!important;font-size:.74rem!important;white-space:normal!important;line-height:1.2!important;border-radius:12px!important}
  #explore .rent-exact-values{margin-top:12px!important;padding-top:10px!important}
  #explore .rent-exact-values summary{padding:8px 0!important;font-size:.8rem!important}
  #explore .rent-range-values{grid-template-columns:1fr 1fr!important;gap:10px!important}
  #explore .rent-range-actions{margin-top:12px!important;justify-content:flex-end!important;gap:12px!important}
  #explore .rent-range-apply{min-width:150px!important}
}

@media (max-width:620px){
  #explore #marketplace-title{font-size:clamp(2.7rem,14vw,4.2rem)!important;max-width:9ch!important}
  #explore .hero-lead{font-size:1rem!important}
  #explore .hero-search-card{padding:16px!important;border-radius:20px!important}
  #explore .filters.public-search.taxonomy-search{grid-template-columns:1fr!important;gap:12px!important}
  #explore .search-location-field,#explore .property-class-field,#explore .subtype-search-field,#explore .rent-search-field,#explore .hero-search-submit{grid-column:1!important}
  #explore .location-inline-actions{gap:6px!important}
  #explore .location-current-button{padding-inline:12px!important}
  #explore .rent-range-panel{padding:16px!important;margin-inline:0!important}
  #explore .rent-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #explore .rent-presets button:last-child{grid-column:1/-1!important}
  #explore .rent-range-values{grid-template-columns:1fr!important}
  #explore .rent-range-actions{display:grid!important;grid-template-columns:1fr 1.35fr!important}
  #explore .rent-range-clear,#explore .rent-range-apply{width:100%!important;min-width:0!important}
}

/* Dedicated paid-featured rail. */
.theo-featured-marketplace{margin:34px 0 48px;padding:0 clamp(18px,2vw,32px);display:block}
.theo-featured-marketplace[hidden]{display:none!important}
.theo-featured-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}
.theo-featured-head-copy{min-width:0}
.theo-featured-kicker{display:block;color:var(--theo-demo-gold);font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px}
.theo-featured-head h2{margin:0;color:#102d46;font-size:clamp(1.65rem,3vw,2.3rem);letter-spacing:-.035em}
.theo-featured-head p{margin:5px 0 0;color:var(--theo-demo-muted);font-size:.94rem}
.theo-featured-view-all{border:0;background:transparent;color:var(--theo-demo-gold);font-weight:800;cursor:pointer;padding:8px 0;white-space:nowrap}
.theo-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.theo-featured-grid .premium-property-card{margin:0;min-width:0;box-shadow:0 14px 36px rgba(17,48,70,.08);border:1px solid rgba(211,223,231,.9);background:#fff}
.theo-featured-grid .property-photo{aspect-ratio:4/3;min-height:0}
.theo-featured-grid .promotion-label{background:var(--theo-demo-gold)!important;color:#fff!important;border:0!important;box-shadow:0 5px 14px rgba(179,120,39,.24)}
.theo-featured-grid .property-body{padding:18px 18px 20px!important;display:flex!important;flex-direction:column!important}
.theo-featured-grid .property-body h3{font-size:1.02rem!important;line-height:1.28!important;margin:8px 0 7px!important}
.theo-featured-grid .property-price{font-size:1.25rem!important;color:var(--theo-demo-gold)!important;margin-bottom:7px!important}
.theo-featured-grid .property-facts{gap:12px!important;margin-top:14px!important;padding-top:13px!important}
.theo-featured-grid .property-fact{font-size:.73rem!important}
.theo-featured-grid .premium-card-actions{margin-top:auto!important;padding-top:18px!important}
.theo-featured-grid .view-property{min-height:44px!important}

@media (max-width:1050px){.theo-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){
  .theo-featured-marketplace{margin:26px 0 34px;padding-inline:16px}
  .theo-featured-head{align-items:flex-start}
  .theo-featured-head h2{font-size:1.7rem}
  .theo-featured-head p{font-size:.84rem}
  .theo-featured-grid{display:flex;overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;padding:2px 2px 12px;overscroll-behavior-inline:contain}
  .theo-featured-grid .premium-property-card{flex:0 0 min(82vw,330px);scroll-snap-align:start}
  .theo-featured-grid::-webkit-scrollbar{height:5px}
  .theo-featured-grid::-webkit-scrollbar-thumb{background:#d5dee4;border-radius:999px}
}

/* Make the ordinary inventory read as the second layer beneath featured stock. */
#available-properties .marketplace-results-head{margin-top:4px}
#available-properties.has-results .property-grid{align-items:stretch}
@media (max-width:620px){
  #available-properties .marketplace-results-head{align-items:flex-start!important;gap:12px!important}
  #available-properties .marketplace-results-actions{width:100%;justify-content:space-between!important}
}

/* RC1.0.15.84 — Desktop Featured Card Proportion Lock
   Desktop-only correction. Prevents paid Featured cards becoming undersized
   inside a wide marketplace shell and restores proportional typography.
   Tablet/mobile rules below 1181px remain unchanged. */
@media (min-width:1181px){
  body.theo-app #explore .theo-featured-grid{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    align-items:stretch!important;
    gap:24px!important;
  }

  body.theo-app #explore .theo-featured-grid > .premium-property-card{
    flex:1 1 330px!important;
    width:auto!important;
    min-width:330px!important;
    max-width:410px!important;
    margin:0!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo-overlay{
    aspect-ratio:16/9!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body{
    padding:18px 18px 19px!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-subtype{
    font-size:10.5px!important;
    margin-bottom:7px!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-price{
    font-size:1.32rem!important;
    margin-bottom:7px!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-price small{
    font-size:.64rem!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body h3{
    font-size:.94rem!important;
    line-height:1.27!important;
    margin-bottom:8px!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .address{
    font-size:.77rem!important;
    line-height:1.35!important;
    margin-bottom:13px!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .property-fact{
    font-size:.71rem!important;
  }

  body.theo-app #explore .theo-featured-grid .premium-property-card .view-property{
    min-height:44px!important;
    font-size:.76rem!important;
  }
}
