/* ==================================================
   ITSSOSO SINGLE SYSTEM v2 — PREMIUM LOCKDOWN
   Used For:
   - Directory Singles
   - Marketplace Singles
   - Shared Generic Singles

   NOT USED FOR:
   - Event Singles (uses event-single.css)

   CONTRACT:
   - Full production file
   - Preserve working classes
   - Better conversions
   - Better trust
   - Better mobile
================================================== */


/* ==========================================
ROOT
========================================== */

.itssoso-single{
  background:#f6f7fb;
  color:#111;
  min-height:100vh;
  padding-bottom:60px;
}

.itssoso-single-container{
  width:100%;
  max-width:1320px;
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}


/* ==========================================
GENERIC HERO
========================================== */

.itssoso-single-hero{
  position:relative;
  min-height:430px;
  overflow:hidden;
  background:#111;
  display:flex;
  align-items:flex-end;
}

.itssoso-single-hero-image{
  position:absolute;
  inset:0;
  z-index:1;
}

.itssoso-single-hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.itssoso-single-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.84) 0%,
      rgba(0,0,0,.55) 34%,
      rgba(0,0,0,.18) 68%,
      rgba(0,0,0,.04) 100%
    );
}

.itssoso-single-hero-overlay{
  position:relative;
  z-index:3;
  width:100%;
  padding:36px 0;
  color:#fff;
}

.itssoso-single-title{
  font-size:52px;
  line-height:1.03;
  font-weight:900;
  margin:0 0 12px;
  letter-spacing:-1px;
  max-width:920px;
  text-shadow:0 10px 24px rgba(0,0,0,.38);
}

.itssoso-single-subtitle{
  font-size:16px;
  opacity:.96;
  margin:0;
}


/* ==========================================
BADGES
========================================== */

.itssoso-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.itssoso-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fff;
  color:#111;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.itssoso-badge-dark{
  background:#111;
  color:#fff;
}

.itssoso-badge-red{
  background:#ff385c;
  color:#fff;
}

.itssoso-badge-green{
  background:#0a8f52;
  color:#fff;
}

.itssoso-badge-blue{
  background:#2563eb;
  color:#fff;
}


/* ==========================================
TRUST / MICRO META
========================================== */

.itssoso-trust{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
  font-size:14px;
  color:rgba(255,255,255,.96);
}

.itssoso-trust span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}


/* ==========================================
BODY
========================================== */

.itssoso-single-body{
  padding-top:34px;
}

.itssoso-single-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(320px,1fr);
  gap:28px;
  align-items:start;
}

.itssoso-single-left,
.itssoso-single-right{
  display:flex;
  flex-direction:column;
  gap:24px;
}


/* ==========================================
CARD SYSTEM
========================================== */

.itssoso-card{
  background:#fff;
  border-radius:24px;
  padding:28px;
  box-shadow:0 14px 34px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.03);
}

.itssoso-card h2,
.itssoso-card h3{
  margin:0 0 16px;
  line-height:1.15;
  color:#111;
}

.itssoso-card h2{
  font-size:30px;
  font-weight:900;
}

.itssoso-card h3{
  font-size:22px;
  font-weight:800;
}

.itssoso-card p:last-child{
  margin-bottom:0;
}


/* ==========================================
CONTENT
========================================== */

.itssoso-content{
  font-size:17px;
  line-height:1.8;
  color:#2e2e2e;
}

.itssoso-content p{
  margin:0 0 18px;
}


/* ==========================================
BUTTONS
========================================== */

.itssoso-btn{
  appearance:none;
  border:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.itssoso-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(0,0,0,.14);
}

.itssoso-btn-light{
  background:#fff;
  color:#111;
  border:1px solid #e5e7ee;
}

.itssoso-btn-primary{
  background:#ff385c;
  color:#fff;
}

.itssoso-btn-primary:hover{
  background:#e42f51;
}

.itssoso-btn-large{
  min-height:56px;
  padding:0 22px;
  font-size:16px;
}

.full-btn{
  width:100%;
}


/* ==========================================
OWNER ACTIONS
========================================== */

.itssoso-owner-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}


/* ==========================================
GALLERY
========================================== */

.itssoso-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.itssoso-gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#eceff4;
  transition:.18s ease;
}

.itssoso-gallery img:hover{
  transform:scale(1.02);
}


/* ==========================================
MAP
========================================== */

#itssoso-single-map{
  width:100%;
  height:320px;
  border-radius:20px;
  overflow:hidden;
  background:#e8edf2;
}


/* ==========================================
MARKETPLACE PRICING
========================================== */

.itssoso-marketplace-price{
  font-size:38px;
  font-weight:900;
  line-height:1;
  margin-bottom:14px;
  color:#111;
}

.old-price{
  text-decoration:line-through;
  color:#999;
  font-size:20px;
  font-weight:700;
  margin-right:10px;
}

.price-drop-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#ffedf1;
  color:#ff385c;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}


/* ==========================================
SIDEBAR
========================================== */

.itssoso-single-right{
  position:relative;
}

.itssoso-sticky{
  position:sticky;
  top:110px;
}


/* ==========================================
LISTS
========================================== */

.itssoso-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.itssoso-list-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #eef1f6;
}

.itssoso-list-item:last-child{
  border-bottom:none;
}


/* ==========================================
COMMUNITY
========================================== */

.itssoso-community-root{
  min-height:120px;
  border-radius:18px;
  background:#f7f8fb;
  padding:18px;
}


/* ==========================================
CHAT MODAL
========================================== */

.itssoso-chat-modal.hidden{
  display:none;
}

.itssoso-chat-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

.chat-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.chat-panel{
  position:absolute;
  bottom:0;
  right:0;
  width:380px;
  max-width:100%;
  height:540px;
  background:#fff;
  display:flex;
  flex-direction:column;
  border-radius:18px 18px 0 0;
  box-shadow:0 20px 50px rgba(0,0,0,.20);
}

.chat-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid #eee;
  font-weight:800;
}

.chat-messages{
  flex:1;
  overflow-y:auto;
  padding:12px;
}

.chat-bubble{
  padding:9px 12px;
  border-radius:14px;
  margin-bottom:8px;
  max-width:75%;
  font-size:14px;
}

.chat-me{
  background:#007aff;
  color:#fff;
  margin-left:auto;
}

.chat-other{
  background:#f1f1f1;
}

.chat-input{
  display:flex;
  border-top:1px solid #eee;
}

.chat-input textarea{
  flex:1;
  padding:12px;
  border:none;
  resize:none;
  min-height:54px;
}

.chat-input textarea:focus{
  outline:none;
}

.chat-input button{
  padding:0 16px;
  border:none;
  background:#111;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}


/* ==========================================
RESPONSIVE TABLET
========================================== */

@media (max-width:1100px){

  .itssoso-single-title{
    font-size:42px;
  }

  .itssoso-single-grid{
    grid-template-columns:1fr;
  }

  .itssoso-sticky{
    position:relative;
    top:auto;
  }

}


/* ==========================================
MOBILE
========================================== */

@media (max-width:768px){

  .itssoso-single-container{
    padding:0 16px;
  }

  .itssoso-single-hero{
    min-height:340px;
  }

  .itssoso-single-hero-overlay{
    padding:22px 0;
  }

  .itssoso-single-title{
    font-size:32px;
    line-height:1.08;
    margin-bottom:10px;
  }

  .itssoso-single-subtitle{
    font-size:14px;
  }

  .itssoso-badges{
    gap:8px;
    margin-bottom:12px;
  }

  .itssoso-badge{
    font-size:11px;
    padding:7px 10px;
  }

  .itssoso-card{
    padding:20px;
    border-radius:20px;
  }

  .itssoso-card h2{
    font-size:24px;
  }

  .itssoso-card h3{
    font-size:20px;
  }

  .itssoso-content{
    font-size:16px;
    line-height:1.7;
  }

  .itssoso-gallery{
    grid-template-columns:1fr;
  }

  .itssoso-gallery img{
    height:240px;
  }

  #itssoso-single-map{
    height:260px;
  }

  .itssoso-btn,
  .full-btn{
    width:100%;
  }

  .itssoso-owner-actions{
    flex-direction:column;
  }

  .itssoso-marketplace-price{
    font-size:32px;
  }

  .chat-panel{
    width:100%;
    height:82vh;
    border-radius:18px 18px 0 0;
  }

}


/* ==========================================
SMALL MOBILE
========================================== */

@media (max-width:480px){

  .itssoso-single-title{
    font-size:28px;
  }

  .itssoso-card{
    padding:18px;
  }

}