:root{
  --primary:#1e3c72; --primary-2:#2a5298; --accent:#ffd700;
  --bg:#f8f9fa; --text:#2b2f36; --muted:#6b7280;
  --shadow:0 8px 30px rgba(0,0,0,.08); --radius:16px;
}
.n360-container{max-width:1200px;margin:0 auto;padding:20px}
.n360-title{font:800 28px Heebo,system-ui;color:var(--primary);margin:6px 0}
.n360-subtitle{font:500 16px Heebo;color:var(--muted);margin:0}

/* גלריה */
.n360-gallery{position:relative;margin:16px 0}
.gallery-container{height:420px;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);display:grid}
.gallery-image{background-size:cover;background-position:center}
.gallery-image--placeholder{background:linear-gradient(135deg,#e5e7eb,#f8fafc)}
.n360-ribbon{display:flex;gap:10px;align-items:center;margin-top:10px}
.r-badge{background:#eef3ff;color:var(--primary);font-weight:800;padding:6px 12px;border-radius:999px}
.r-status{font-weight:800}
.r-status.r-sold{color:#d11}
.r-status.r-reserved{color:#f7a103}
.r-status.r-rented{color:#3aa356}

/* מחיר + CTA */
.n360-pricebox{display:flex;justify-content:space-between;align-items:center;margin:18px 0;padding:18px;border-radius:12px;background:linear-gradient(135deg,var(--accent) 0%,#f4e19c 100%);color:var(--primary)}
.n360-price{font:800 36px Heebo}
.n360-pricenote{font:700 14px Heebo;background:var(--accent);color:var(--primary);display:inline-block;margin-top:6px;padding:4px 10px;border-radius:8px}
.n360-cta{background:var(--primary);color:#fff;text-decoration:none;padding:14px 26px;border-radius:999px;font:800 16px Heebo}
.n360-cta:hover{filter:brightness(1.06)}

/* מאפיינים מהירים */
.n360-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.n360-feature{background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:14px;text-align:center;transition:.2s}
.n360-feature:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.n360-ficon{font-size:18px}
.n360-flabel{color:var(--primary);font-weight:700}
.n360-fval{color:var(--accent);font-weight:800;font-size:18px}

/* סקשנים */
.n360-section{margin:24px 0}
.n360-section-title{font:800 22px Heebo;color:var(--primary);border-bottom:2px solid var(--accent);padding-bottom:6px;margin-bottom:10px}
.n360-desc{font:400 16px/1.8 Heebo;color:var(--text)}

/* מפרטים */
.n360-specsgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.n360-specgroup{background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:16px}
.n360-specgroup h4{margin:0 0 10px;font:700 18px Heebo;color:var(--primary)}
.n360-specgroup ul{list-style:none;margin:0;padding:0}
.n360-specgroup li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f1f3f4}
.n360-specgroup li:last-child{border-bottom:0}
.n360-slabel{font-weight:700}
.n360-sval{color:#666}

/* טופס */
.n360-contact{background:linear-gradient(135deg,#f8f9fa,#e9ecef);padding:20px;border-radius:12px}

@media (max-width:768px){
  .n360-container{padding:12px}
  .n360-pricebox{flex-direction:column;gap:10px;text-align:center}
}

/* ===== N360 Map Card ===== */
.n360-mapcard{
  background:#eef2f6;
  border:1px solid #e3e8ef;
  border-radius:16px;
  padding:16px;
  margin-top:14px;
}
.n360-mapframe{
  position:relative;
  width:100%;
  /* יחס 16:9 */
  padding-bottom:56.25%;
  overflow:hidden;
  border-radius:12px;
  background:#dfe6ee;
}
.n360-mapframe iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  border-radius:12px;
}
.n360-mapactions{
  display:flex; justify-content:center; margin-top:10px;
}
.n360-maplink{
  color:#123567; font-weight:700; text-decoration:none;
}
.n360-maplink:hover{ text-decoration:underline; }

/* ===== N360 Agent (scoped) ===== */
/* === כרטיס סוכן - גרסה מתוקנת === */

/* פריסת הכרטיס: כיוון RTL */
.n360-agent .n360-agent-card{
  background: #f1f4f8;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  direction: rtl;
}

/* שורה עליונה: תמונה + טקסט - מיושרים לימין */
.n360-agent .n360-agent-col--right{
  display: flex;
  flex-direction: row;  /* לא row-reverse כי כבר יש RTL */
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin-right: 0;  /* צמוד לקצה הימני */
}

/* תמונה מוגדלת ויפה */
.n360-agent .n360-agent-avatar{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffd400, #ffe48c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #123567;
  font-weight: 800;
  font-size: 22px;
}

.n360-agent .n360-agent-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* בלוק הטקסט - מיושר לימין */
.n360-agent .n360-agent-maintext{
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* flex-start ב-RTL = ימין */
  gap: 4px;
  text-align: right;
  direction: rtl;
}

/* שם הסוכן */
.n360-agent .n360-agent-name{
  font-weight: 800;
  color: #123567;
  font-size: 18px;
}

/* תת-כותרת */
.n360-agent .n360-agent-sub{
  color: #203a63;
  opacity: 0.9;
  font-size: 14px;
}

/* ציטוט */
.n360-agent .n360-agent-quote{
  color: #4b5565;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
  margin-top: 4px;
  text-align: right;
}

/* שורת הכפתורים - מיושרת לימין */
.n360-agent .n360-agent-row--actions{
  display: flex;
  justify-content: flex-start;  /* flex-start ב-RTL = ימין */
  direction: rtl;
}

.n360-agent .n360-agent-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* סגנון כפתורים */
.n360-agent .n360-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
  direction: rtl;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.n360-agent .n360-btn-wa{ 
  background: #20c463; 
  color: #fff; 
}

.n360-agent .n360-btn-mail{ 
  background: #163b74; 
  color: #fff; 
}

.n360-agent .n360-btn:hover{ 
  filter: brightness(1.05); 
}

.n360-agent .n360-btn span[aria-hidden="true"]{
  margin-inline-start: 0.25em;
  margin-inline-end: 0.25em;
}

/* התאמות מובייל */
@media (max-width: 900px){
  .n360-agent .n360-agent-col--right{
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }
  
  .n360-agent .n360-agent-maintext{
    align-items: center;
    text-align: center;
  }
  
  .n360-agent .n360-agent-row--actions{
    justify-content: center;
  }
}
/* ===== נכסים דומים (Related Properties) ===== */

/* ===== Similar products: target either class on UL or wrapper div ===== */
.n360-similar-wrap,
.n360-similar-wrap .products,
ul.products.n360-similar-wrap{
  direction: rtl;
}

/* פריסה תקינה: שלוש עמודות */
.n360-similar-wrap.products,
.n360-similar-wrap .products,
ul.products.n360-similar-wrap{
  display: flex !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  flex-wrap: nowrap !important;  /* דסקטופ: 3 בשורה */
}

.n360-similar-wrap .product,
ul.products.n360-similar-wrap > li.product{
  flex: 0 0 calc(33.333% - 8px) !important;
  width:  calc(33.333% - 8px) !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

/* תמונה */
.n360-similar-wrap img{
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
}

/* כותרת הסקשן של מוצרים דומים */
.n360-similar-sec {
  margin-top: 28px;
}

.n360-similar-sec .n360-sec-title {
  position: relative;
  margin: 0 0 20px;
  color: #123567;
  font-weight: 800;
  text-align: right;
  
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}



/* פס זהוב מתחת לכותרת – 80% רוחב */


.n360-similar-sec .n360-sec-title::after {
  content: "";
  position: absolute;
  bottom: -6px;        /* מרחק קטן מתחת לטקסט */
  right: 0;            /* מיושר לצד ימין (RTL) */
  width: 100%;          /* 80% מרוחב הכותרת */
  height: 2px;
  background: linear-gradient(90deg,#ffd400 0%, #ffe48c 100%);
  border-radius: 2px;
}


/* מחיר */
.n360-similar-wrap .price{
  display: block !important;
  text-align: center !important;
  color: #f2b300 !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  margin: 6px 0 8px !important;
}

/* subtitle שלך */
.n360-similar-wrap .n360-sim-subtitle{
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  font-size: 20px;
  margin: -30px 0 12px;
}

/* הסרת כוכבים וכפתור מהתבנית (שונים מ-star-rating של Woo) */
.n360-similar-wrap .single-products .products-content > ul{ display: none !important; }
.n360-similar-wrap .add-to-cart-btn,
.n360-similar-wrap .product .button,
.n360-similar-wrap .add_to_cart_button{ display: none !important; }

/* רספונסיביות */
@media (max-width: 980px){
  /* עטיפה למובייל וטאבלט */
  .n360-similar-wrap.products,
  .n360-similar-wrap .products,
  ul.products.n360-similar-wrap{
    flex-wrap: wrap !important;
  }
  
  .n360-similar-wrap .product,
  ul.products.n360-similar-wrap > li.product{
    flex: 0 0 calc(50% - 8px) !important;
    width:  calc(50% - 8px) !important;
  }
}
@media (max-width: 640px){
  /* עטיפה למובייל - 1 בשורה */
  .n360-similar-wrap.products,
  .n360-similar-wrap .products,
  ul.products.n360-similar-wrap{
    flex-wrap: wrap !important;
  }
  
  .n360-similar-wrap .product,
  ul.products.n360-similar-wrap > li.product{
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* הסרת אייקון העין רק במוצרים דומים */
.n360-similar-wrap .product-btn-hover li.product-link,
ul.products.n360-similar-wrap .product-btn-hover li.product-link,
.n360-similar-wrap .product-btn-hover .fa-eye,
ul.products.n360-similar-wrap .product-btn-hover .fa-eye{
  display: none !important;
}