/* Global */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: #f9f9f9; color: #333; direction: rtl; overflow-x: hidden;}
a { text-decoration: none; color: inherit; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* Header */
.top-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 10; }
.logo {
  height: 120px;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}
.nav-links { display: flex; gap: 16px; }
.nav-links a { font-weight: 600; }

/* Hero Section */
.hero-section { position: relative; width: 100%; margin-bottom: 24px; }
.hero-section picture, .hero-section picture img { width: 100%; display: block; height: 300px; object-fit: cover; }
.hero-text { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); color: #fff; text-align: right; animation: fadeInUp 1s ease-out; }
.hero-title { font-size: 2.5em; margin-bottom: 0.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.hero-subtitle { font-size: 1.2em; margin-bottom: 1em; text-shadow: 1px 1px 3px rgba(0,0,0,0.6); }
.hero-phone a { font-size: 1.5em; background: rgba(0,123,255,0.8); padding: 8px 12px; border-radius: 4px; color: #fff; font-weight: bold; animation: pulse 2s infinite; }

/* Features Section */
.features-section { background: #fff; padding: 24px; text-align: center; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.features-section h2 { font-size: 2em; margin-bottom: 16px; }
.features-section ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; list-style: none; padding: 0; }
.features-section li { background: linear-gradient(135deg, #00c6ff, #0072ff); color: #fff; padding: 16px 24px; border-radius: 8px; font-size: 1em; display: flex; align-items: center; gap: 8px; position: relative; animation: fadeInUp 0.6s ease-out both; }
.features-section li:nth-child(1) { animation-delay: 0.2s; }
.features-section li:nth-child(2) { animation-delay: 0.4s; }
.features-section li:nth-child(3) { animation-delay: 0.6s; }
.features-section li i { color: #ffeb3b; animation: pulse 2s infinite; }

/* Map */
.map-container { width: 100%; height: 400px; margin-bottom: 24px; }

/* Container */
.container { display: flex; flex-wrap: wrap; justify-content: center; padding: 16px; gap: 24px; }

/* Card */
.card { width: 400px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: right; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.card.hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }

/* Carousel */
.image-carousel { position: relative; width: 100%; height: 250px; overflow: hidden; }
.image-carousel .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.image-carousel .slide.active { opacity: 1; }
.image-carousel .prev, .image-carousel .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); color: #007BFF; border: none; padding: 8px; cursor: pointer; border-radius: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 1.2em; }
.image-carousel .prev { left: 8px; }
.image-carousel .next { right: 8px; }

/* Details */
.card-details { padding: 16px; }
.title { font-size: 1.2em; margin-bottom: 12px; }
.info-row, .features-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.info-item { display: flex; align-items: center; gap: 6px; background: #e0f7fa; padding: 6px 10px; border-radius: 6px; font-size: 0.9em; }
.info-item i { color: #007BFF; }
.notes {
  font-style: italic;
  font-size: 0.9em;
  color: #555;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Footer */
footer { text-align: center; padding: 16px; background: #fff; margin-top: 32px; font-size: 0.9em; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 30px;
}
.whatsapp-float:hover { background: #1ebe57; }

/* Admin Cancel Button */
.btn.cancel {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}
.btn.cancel:hover { background: #5a6268; }

.immediate-label {
  background-color: #ffd700; /* זהב */
  color: #000; /* שחור */
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px #ffd700;
  display: inline-block;
}

/* עיצוב לשכבת overlay של הדירה */
.image-carousel {
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  pointer-events: none;
  z-index: 2;
}

.price-banner {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 14px;
  font-size: 1.4em;
  font-weight: bold;
  border-radius: 8px;
  align-self: flex-start;
  margin-top: 10px;
  pointer-events: auto;
}

.details-box {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-end;
  margin-bottom: 10px;
  font-size: 0.9em;
  pointer-events: auto;
}


/* חיפוש דירות */
.search-section {
  background: #fff;
  padding: 16px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.search-form input,
.search-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  flex: 1 1 110px;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-form button {
  background: #007bff;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.search-form .reset-btn {
  padding: 8px 14px;
  background: #6c757d;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.search-form button:hover {
  background: #0056b3;
}
.search-form .reset-btn:hover {
  background: #5a6268;
}




/* === שדרוג עדין לתפריט העליון בלבד === */
.top-bar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 10px 18px;
  background: #f2f2f2;
  color: #007bff;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links a i {
  margin-left: 8px;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.nav-links a:hover i {
  transform: scale(1.1) rotate(-5deg);
}




/* === פופאפים: שאלות נפוצות וצור קשר === */
.popup-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: right;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: fadeInUp 0.4s ease-out;
}

.popup-content h2 {
  font-size: 1.6em;
  margin-bottom: 16px;
  color: #007bff;
}

.popup-content ul.faq-list {
  list-style: none;
  padding: 0;
}

.popup-content ul.faq-list li {
  margin-bottom: 12px;
  font-size: 1em;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 8px;
}

.popup-content p, .popup-content a {
  font-size: 1em;
  margin: 8px 0;
  display: block;
  color: #333;
}

.popup-content a {
  color: #007bff;
  font-weight: 600;
}

.popup-content button {
  margin-top: 16px;
  padding: 10px 20px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.popup-content button:hover {
  background: #0056b3;
}
.image-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.image-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  cursor: grab;
}

.image-lightbox-close {
  position: absolute;
  top: -20px;
  left: -20px;
  background: #fff;
  color: #000;
  font-size: 28px;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  z-index: 10001;
  user-select: none;
}
.lightbox-prev {
  left: 20px;
  right: auto;
}

.lightbox-next {
  right: 20px;
  left: auto;
}


.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}
.lightbox-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1em;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 10002;
}
/*#accessibility-btn {
  position: fixed;
  bottom: 100px;
  left: 20px;
  background: #000;
  color: #fff;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}*/
/*#accessibility-panel {
  position: fixed;
  bottom: 160px;
  left: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}*/
#accessibility-panel.open {
  display: flex;
}
#accessibility-panel button {
  padding: 8px 10px;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 6px;
}
#accessibility-panel button:hover {
  background: #0056b3;
}

/* אפקטים של הנגישות */
.high-contrast {
  filter: contrast(2);
  background-color: #000 !important;
  color: #fff !important;
}
.grayscale {
  filter: grayscale(100%);
}
.large-text * {
  font-size: 1.25em !important;
}
.no-animations * {
  animation: none !important;
  transition: none !important;
}
body.high-contrast *:not(#accessibility-btn):not(#accessibility-panel):not(.whatsapp-float) {
  filter: contrast(2) !important;
  background-color: #000 !important;
  color: #fff !important;
}
body.grayscale *:not(#accessibility-btn):not(#accessibility-panel):not(.whatsapp-float) {
  filter: grayscale(100%) !important;
}
#site-wrapper.high-contrast {
  filter: contrast(2);
  background-color: #000 !important;
  color: #fff !important;
}
#site-wrapper.grayscale {
  filter: grayscale(100%);
}

/*@media (max-width: 768px) {
  #accessibility-btn {
    bottom: 100px;
    right: 20px;
    left: auto;
  }
  #accessibility-panel {
    bottom: 160px;
    right: 20px;
    left: auto;
  }
}*/
@media (max-width: 768px) {
  .top-bar {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.logo {
  height: 150px;
  max-height: 150px;
  margin-bottom: 10px;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.85em;
  padding: 6px 10px;
}

}
#accessibility-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#accessibility-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
@media (max-width: 768px) {
  .hero-text {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    padding-top: 20px;
    text-align: center;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .home-link {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    animation: phonePulse 2.5s ease-in-out infinite;
  }

  .hero-phone a {
    font-size: 2em;
    font-weight: bold;
    background: rgba(0, 123, 255, 0.9);
    padding: 14px 24px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 0 12px rgba(0,123,255,0.5);
    animation: phonePulse 2.5s ease-in-out infinite;
    text-align: center;
  }

  .hero-phone i {
    display: none;
  }
}

@keyframes phonePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@media (max-width: 768px) {
  .hero-section {
    margin-bottom: 80px;
  }
  .hero-title {
    margin-top: 25px;
  }
}
@media (max-width: 768px) {
  .map-container {
    height: 200px;
    pointer-events: none; /* מונע מהמשתמש לגלול בתוך המפה בטעות */
  }
}
