/* ─── Overlay Backdrop ─────────────────────────────── */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  /* ─── Saved Properties Panel: dark slate background ───────── */
  #property-listing-overlay .overlay-content {
    background: #1e293b;           /* dark slate */
    color: #f0f9ff;                /* light text */
    border: 1px solid rgba(0,217,255,0.15);
    padding: 2rem;
    border-radius: 16px;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,212,255,0.15);
    backdrop-filter: blur(12px);
    animation: fadeSlideIn 0.4s ease-out;
  }
  
  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  #property-listing-overlay .overlay-content h2 {
    font-size: 2rem;
    color: #00d4ff;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 6px rgba(0,212,255,0.3);
  }
  
  /* ─── Property Grid ───────────────────────────── */
  #overlay-property-list.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  /* ─── Property Card ───────────────────────────── */
  .property-item {
    background: rgba(13,28,48,0.9);
    border: 1px solid rgba(0,123,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,123,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  .property-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,212,255,0.2);
  }
  .property-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.3s ease;
  }
  .property-item:hover img {
    transform: scale(1.03);
  }
  
  /* ─── Property Info ───────────────────────────── */
  .property-item .info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .property-item h3 {
    font-size: 1.1rem;
    color: #00d4ff;
    margin: 0 0 0.5rem;
    text-shadow: 0 0 3px rgba(0,212,255,0.15);
  }
  .property-item p {
    font-size: 0.95rem;
    color: #cbe9ff;
    margin: 0.25rem 0;
  }
  
  /* ─── Heart (Favorite) Button ───────────────────────────── */
  .save-fav-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0;
  }
  .save-fav-btn:hover {
    transform: scale(1.1);
    color: #00d4ff;
  }
  .save-fav-btn.favorited {
    color: #e0245e;
  }
  
  /* ─── Close Button ───────────────────────────── */
  #property-listing-overlay .close-btn {
    display: block;
    margin: 2rem auto 0;
    background: linear-gradient(to right, #3ecf8e, #26b07c);
    color: #001d16;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(62,207,142,0.4);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  #property-listing-overlay .close-btn:hover {
    background: linear-gradient(to right, #26b07c, #3ecf8e);
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(62,207,142,0.6);
  }
  