/* V1 legendary combo – V2 clean CSS (border-color edition) */

:root{
  --bd:#777;
  --bg:#fff;
  --txt:#111;

  /* strong border colors (no backgrounds) */
  --c-green:#2f7d32;
  --c-yellow:#b07a00;
  --c-red:#b23b3b;
  --c-blue:#2448b5;
  --c-gray:#666;
}

html,body{
  margin:0;
  padding:0;
  background:#fff;
  color:var(--txt);
  font-family: system-ui, Arial;
}

.v1wrap{
  max-width: 720px;
  margin: 18px auto;
  padding: 0 10px;
}

.v1count{
  text-align:right;
  color:#c86d00;
  font-weight:700;
  margin: 0 0 10px 0;
}

.v1combo{ display:block; width:100%; }

/* ===== GRID ===== */
.v1grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ===== BOX ===== */
.v1box{
  background:#fff;
  border: 1.7px solid #ddd;      /* overridden by color classes */
  border-radius: 4px;
  padding: 6px;
}

/* border colors */
.h-green{ border-color: var(--c-green); }
.h-yellow{ border-color: var(--c-yellow); }
.h-red{ border-color: var(--c-red); }
.h-blue{ border-color: var(--c-blue); }
.h-gray{ border-color: var(--c-gray); }

.v1cap{
  font-weight:800;
  text-align:center;
  padding: 6px 6px 8px 6px;
  line-height:1.05;
  white-space:nowrap;
}

.v1ctl{
  width:100%;
  padding: 0;
}

/* make controls FULL WIDTH of the box */
.v1ctl select,
.v1ctl input[type="text"]{
  width:100%;
  box-sizing:border-box;
  display:block;
  padding: 6px 8px;
  font-size: 15px;
  border:1px solid var(--bd);
  background:#fff;
}

/* ===== Price header: title + toggle buttons ===== */
.v1capPrice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.curToggle{
  display:flex;
  gap:6px;
}

.curBtn{
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid #333;
  background:#fff;
  cursor:pointer;
}

.curBtn.isOn{
  background:#222;
  color:#fff;
}

/* hide helper */
.isHidden{ display:none !important; }

/* ===== bottom area ===== */
.v1bottom{
  padding-top: 10px;
}

.v1bottomRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.v1lbl{ font-weight:800; }

.v1free{
  width: 260px;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 15px;
  border:1px solid var(--bd);
  background:#fff;
}

.v1chk{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:800;
}

.v1btn{
  padding: 8px 18px;
  font-size: 15px;
  border: none;
  background: #7b3fe4;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
/* footer */
.v1foot{
  margin-top: 12px;
  text-align:center;
}

.v1foot a{
  color:#0b57d0;
  text-decoration:underline;
}

.v1foot .sep{
  margin: 0 6px;
  color:#999;
}

/* ===== Mobile layout: keep V1 feel, readable ===== */
@media (max-width: 520px){
  .v1wrap{ max-width: 420px; }
  .v1grid{ grid-template-columns: 1fr 1fr; }
  .v1cap{ padding: 8px 6px; }
  .v1free{ width: 100%; }
  .v1btn{ margin-inline-start:auto; }
}

@media (max-width: 360px){
  .v1grid{ grid-template-columns: 1fr; }
}


/* ===== Search button emphasis ===== */
/* ===== Search button – Nadlanim orange ===== */
.v1btn{
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid #c86d00;
  background: #f39c12;   /* כתום חם */
  color: #000;
  cursor: pointer;
}

.v1btn:hover{
  background: #6935c9;
  border-color:#b85f00;
}

/* =================================================
   Agent page wrapper – safe layer above v1 combo
   ================================================= */

.agentPage{
  max-width: 720px; /* matches .v1wrap width */
  margin: 0 auto;
  padding: 10px;
}

.agentCard{
  background:#fff;
  border:1.7px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}

.agentTop{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.agentName{
  font-size:20px;
  font-weight:900;
  line-height:1.1;
}

.agentMeta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.agentPill{
  border:1px solid #bbb;
  border-radius:999px;
  padding:6px 10px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  background:#fff;
}

.agentPill a{ color:inherit; text-decoration:none; }
.agentPill a:hover{ text-decoration:underline; }

/* placeholder where combo will be injected later */
.agentComboMount{
  border: 1.7px dashed #cfcfcf;
  border-radius: 8px;
  padding: 14px 12px;
  margin: 0 0 12px 0;
  background:#fff;
}

.agentComboMount .hint{
  color:#666;
  font-size:14px;
  line-height:1.4;
}

@media (max-width: 520px){
  .agentPage{ padding:8px; }
  .agentName{ font-size:18px; }
  .agentPill{ font-size:13px; padding:5px 9px; }
}
/* ===== auth ליד מונה נכסים ===== */

.v1countRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction: row; /* חשוב */
}

/* מספר נכסים בצד ימין */
.v1count{
  order: 2;
  text-align: right;
}

/* הרשמה בצד שמאל */
.v1auth{
  order: 1;
  text-align: left;
  font-size:14px;

  display:flex;
  align-items:center;
  margin:0;
  padding:0;
  line-height:1;
}

/* קישורים */
.v1auth a{
  color:#7b3fe4;
  font-weight:600;
  text-decoration:none;
}

.v1auth a:hover{
  text-decoration:underline;
}
.authName{
  font-weight:400;   /* שלום רגיל */
}

.authName strong{
  font-weight:900;   /* השם מודגש */
}

.authUser{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0;
  padding:0;
  line-height:1.2;
}

.authName,
.authLink{
  margin:0;
  padding:0;
}

/* ===== auth spacing fix ===== */

.v1auth{
  display:flex;
  align-items:center;
  gap:8px;
}

.v1auth .sep{
  margin:0 4px;
  color:#999;
}

.v1auth a{
  padding:2px 4px;
}