/* ---------------------------------------
   LISTING MODAL (Image Popup)
---------------------------------------- */

.listing-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.listing-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 800px;
  position: relative;
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.listing-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
}

.listing-modal-close:hover {
  color: #000;
}


/* ---------------------------------------
   OFF-CANVAS PANEL (Filters)
---------------------------------------- */

.offcanvas-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  text-align: left;
}

.offcanvas-panel.active {
  right: 0;
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Overlay */
.offcanvas-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}

.offcanvas-overlay.active {
  display: block;
}
