/* Theo Properties RC1.0.15.86 — Desktop Marketplace Visual Rhythm & Professionalism Lock
   Public marketplace desktop only. Deliberately scoped to >=1181px so tablet/mobile
   interfaces, swipe behaviour, navigation and responsive breakpoints remain untouched. */

@media (min-width:1181px){
  :root{
    --tp86-navy:#102f45;
    --tp86-teal:#0d5651;
    --tp86-gold:#b57a27;
    --tp86-ink:#173247;
    --tp86-muted:#6c808e;
    --tp86-line:rgba(18,55,75,.11);
    --tp86-soft:#f7f9fa;
    --tp86-shadow:0 14px 34px rgba(12,40,57,.075);
  }

  /* ----------------------------------------------------------
     1. Global desktop marketplace rhythm
     ---------------------------------------------------------- */
  body.theo-app #explore .marketplace-category-showcase{
    margin-top:52px!important;
    margin-bottom:0!important;
  }
  body.theo-app #explore .theo-featured-marketplace{
    margin-top:52px!important;
    margin-bottom:68px!important;
  }
  body.theo-app #explore #available-properties.marketplace-results{
    margin-top:0!important;
    padding-top:58px!important;
    padding-bottom:70px!important;
  }
  body.theo-app #explore .how-theo-works{
    margin-bottom:64px!important;
  }
  body.theo-app #explore .marketplace-owner-cta{
    margin-bottom:72px!important;
  }

  /* Replace the decorative diamond divider with a quiet architectural rule. */
  body.theo-app #explore .theo-section-break,
  body.theo-app #explore .theo-section-break-wide{
    display:block!important;
    width:min(1040px,68%)!important;
    height:1px!important;
    margin:38px auto!important;
    opacity:.55!important;
  }
  body.theo-app #explore .theo-section-break span:first-child,
  body.theo-app #explore .theo-section-break-wide span:first-child{
    display:block!important;
    width:100%!important;
    height:1px!important;
    background:linear-gradient(90deg,transparent,rgba(181,122,39,.34) 24%,rgba(181,122,39,.34) 76%,transparent)!important;
  }
  body.theo-app #explore .theo-section-break span:last-child,
  body.theo-app #explore .theo-section-break-wide span:last-child,
  body.theo-app #explore .theo-section-break i,
  body.theo-app #explore .theo-section-break-wide i{
    display:none!important;
  }

  /* ----------------------------------------------------------
     2. Property class cards — clearer, less decorative, no truncation
     ---------------------------------------------------------- */
  body.theo-app #explore .category-showcase-grid{
    gap:18px!important;
  }
  body.theo-app #explore .category-showcase-card.premium-category-card{
    aspect-ratio:1.5/1!important;
    border-radius:14px!important;
    border-color:rgba(18,55,75,.10)!important;
    box-shadow:0 10px 26px rgba(15,43,59,.065)!important;
  }
  body.theo-app #explore .category-showcase-card.premium-category-card:after{
    left:20px!important;
    width:46px!important;
    height:2px!important;
    opacity:.88!important;
  }
  body.theo-app #explore .premium-category-icon{
    top:20px!important;
    left:20px!important;
    width:50px!important;
    height:50px!important;
    border-radius:13px!important;
    box-shadow:0 6px 18px rgba(12,35,51,.08)!important;
  }
  body.theo-app #explore .premium-category-icon svg{
    width:23px!important;
    height:23px!important;
    stroke-width:1.65!important;
  }
  body.theo-app #explore .premium-category-copy{
    left:20px!important;
    right:20px!important;
    bottom:19px!important;
  }
  body.theo-app #explore .premium-category-copy>span{
    margin-bottom:5px!important;
    font-size:9px!important;
    letter-spacing:.12em!important;
  }
  body.theo-app #explore .premium-category-copy>strong{
    font-size:clamp(21px,1.42vw,26px)!important;
    line-height:1.05!important;
  }
  body.theo-app #explore .premium-category-copy>small{
    max-width:100%!important;
    margin-top:7px!important;
    font-size:9.5px!important;
    line-height:1.35!important;
    letter-spacing:.055em!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* ----------------------------------------------------------
     3. Featured heading — compact hierarchy and connected View all
     ---------------------------------------------------------- */
  body.theo-app #explore .theo-featured-head{
    align-items:flex-end!important;
    gap:24px!important;
    margin-bottom:22px!important;
  }
  body.theo-app #explore .theo-featured-kicker{
    margin-bottom:6px!important;
    font-size:10px!important;
    letter-spacing:.14em!important;
  }
  body.theo-app #explore .theo-featured-head h2{
    font-size:clamp(28px,2.05vw,34px)!important;
    line-height:1.05!important;
    letter-spacing:-.035em!important;
  }
  body.theo-app #explore .theo-featured-head p{
    max-width:650px!important;
    margin-top:7px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
  body.theo-app #explore .theo-featured-view-all{
    align-self:flex-end!important;
    margin-bottom:3px!important;
    padding:6px 0 5px!important;
    border-bottom:1px solid rgba(181,122,39,.28)!important;
    color:#9a641f!important;
    font-size:12px!important;
    font-weight:750!important;
    letter-spacing:.005em!important;
  }

  /* Strong desktop card proportions without narrow/tall cards. */
  body.theo-app #explore .theo-featured-grid{
    gap:24px!important;
    align-items:stretch!important;
  }
  body.theo-app #explore .theo-featured-grid > .premium-property-card{
    min-width:0!important;
    max-width:none!important;
    width:auto!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;
    min-height:0!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card{
    border-radius:16px!important;
    border-color:var(--tp86-line)!important;
    box-shadow:var(--tp86-shadow)!important;
  }
  /* Featured clone text already contains one star; suppress the added pseudo-star. */
  body.theo-app #explore .theo-featured-grid .promotion-label::before{
    content:none!important;
    display:none!important;
  }
  body.theo-app #explore .theo-featured-grid .promotion-label{
    min-height:29px!important;
    padding:6px 9px!important;
    border-radius:8px!important;
    font-size:10px!important;
    box-shadow:0 4px 12px rgba(73,49,18,.08)!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body{
    padding:17px 18px 18px!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-price{
    font-size:1.28rem!important;
    line-height:1.08!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body h3{
    font-size:.94rem!important;
    line-height:1.26!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .address{
    font-size:.76rem!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-fact{
    font-size:.70rem!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .view-property{
    min-height:42px!important;
    border-radius:9px!important;
    font-size:.75rem!important;
  }

  /* ----------------------------------------------------------
     4. Explore Rentals — one coherent desktop control language
     ---------------------------------------------------------- */
  body.theo-app #explore #available-properties .marketplace-results-head{
    align-items:center!important;
    gap:28px!important;
    margin-bottom:11px!important;
    padding-bottom:16px!important;
    border-bottom:1px solid var(--tp86-line)!important;
  }
  body.theo-app #explore #available-properties .marketplace-section-kicker{
    margin-bottom:7px!important;
    font-size:9.5px!important;
    letter-spacing:.14em!important;
  }
  body.theo-app #explore #available-properties .marketplace-results-head h2{
    margin-bottom:5px!important;
    font-size:27px!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
  }
  body.theo-app #explore #available-properties .marketplace-results-actions{
    gap:10px!important;
    padding:0!important;
  }
  body.theo-app #explore #available-properties #saved-toggle,
  body.theo-app #explore #available-properties .sort-label,
  body.theo-app #explore #available-properties .alert-actions .button,
  body.theo-app #explore #available-properties .notification-button{
    min-height:40px!important;
    border:1px solid #d9e2e7!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#385064!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  body.theo-app #explore #available-properties #saved-toggle{
    padding:0 13px!important;
  }
  body.theo-app #explore #available-properties #saved-toggle svg{
    width:17px!important;
    height:17px!important;
  }
  body.theo-app #explore #available-properties .sort-label{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding-left:11px!important;
  }
  body.theo-app #explore #available-properties .sort-label select{
    min-height:38px!important;
    border:0!important;
    background:transparent!important;
    color:var(--tp86-ink)!important;
    font-size:11px!important;
    font-weight:750!important;
    box-shadow:none!important;
  }
  body.theo-app #explore #available-properties .alert-actions{
    gap:8px!important;
    margin:0 0 18px!important;
  }
  body.theo-app #explore #available-properties .alert-actions .button,
  body.theo-app #explore #available-properties .notification-button{
    min-height:36px!important;
    padding:0 11px!important;
    background:#f8fafb!important;
    color:#526978!important;
    font-size:10.5px!important;
  }
  body.theo-app #explore #available-properties .search-context{
    margin-bottom:18px!important;
    color:#70828e!important;
    font-size:11px!important;
  }

  /* Explore cards: consistent geometry and restrained hierarchy. */
  body.theo-app #explore #available-properties .property-grid{
    gap:24px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card{
    border-radius:16px!important;
    border-color:var(--tp86-line)!important;
    box-shadow:0 12px 30px rgba(12,40,57,.065)!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay{
    aspect-ratio:16/9!important;
    min-height:0!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body{
    padding:17px 18px 18px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-price{
    font-size:1.28rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body h3{
    font-size:.95rem!important;
    line-height:1.27!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .address{
    font-size:.77rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-fact{
    font-size:.71rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .view-property{
    min-height:42px!important;
    border-radius:9px!important;
    font-size:.75rem!important;
  }

  /* ----------------------------------------------------------
     5. Interaction restraint — premium, not animated advertising
     ---------------------------------------------------------- */
  @media (hover:hover) and (pointer:fine){
    body.theo-app #explore .premium-property-card:hover{
      transform:translateY(-2px)!important;
      box-shadow:0 16px 36px rgba(12,40,57,.09)!important;
    }
    body.theo-app #explore .category-showcase-card.premium-category-card:hover{
      transform:translateY(-2px)!important;
      box-shadow:0 14px 30px rgba(15,43,59,.085)!important;
    }
  }
}

/* Large desktop: four Featured cards at a premium, readable width. */
@media (min-width:1320px){
  body.theo-app #explore .theo-featured-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* Compact desktop: three cards in the first row and the fourth centred below,
   avoiding the narrow four-column compression that previously looked cheap. */
@media (min-width:1181px) and (max-width:1319px){
  body.theo-app #explore .theo-featured-grid{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  body.theo-app #explore .theo-featured-grid > .premium-property-card{
    grid-column:span 2!important;
  }
  body.theo-app #explore .theo-featured-grid > .premium-property-card:nth-child(4){
    grid-column:3 / span 2!important;
  }
}
