:root{
  --accent:#2b6cb0;
  --muted:#6b7280;
  --bg:#f7fafc;
  --card:#fff;
}

body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;padding:0;margin:0;background:var(--bg);color:#111;}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* To prevent content from being hidden under fixed header */
.header-spacer {
  height: 100px; /* adjust based on your header height */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-logo {
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color:white;
}

.brand-text .tagline {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  color:white;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: 22px;
  color: var(--accent);
}

.tagline {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.top-actions button {
  background-color: white;
  color: #0f766e;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.top-actions button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-actions button:hover {
  background-color: #e6f4f1;
}

main{margin: 0px; padding:16px;max-width:1100px; auto;}
#filters{background:#fff;padding:12px;border-radius:8px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,0.04);}
.filter-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.filter-row input, .filter-row select{padding:8px;border-radius:6px;border:1px solid #ddd;}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;}
.card{background:var(--card);padding:8px;border-radius:8px;box-shadow:0 1px 6px rgba(0,0,0,0.04);display:flex;flex-direction:column;}
.card img{width:100%;height:150px;object-fit:cover;border-radius:6px;}
.card .meta{padding:8px 4px;}
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:50;}
.modal .modal-content{background:#fff;padding:12px;border-radius:8px;width:90%;max-width:900px;max-height:90vh;overflow:auto;position:relative;}
.hidden{display:none;}
.close-modal{position:absolute;right:8px;top:8px;border:none;background:#EEDC82;font-size:40px;cursor:pointer;z-index:10000}
.carousel img{width:100%;max-height:350px;object-fit:cover;margin-bottom:8px;}
.suggestions{position:relative;}
.suggestions div{background:#fff;padding:8px;border-radius:6px;margin-top:4px;cursor:pointer;border:1px solid #eee;}
footer{padding:12px;text-align:center;color:var(--muted);margin-top:24px;}
#landmark-suggestions div {
  padding: 6px;
  cursor: pointer;
}
#landmark-suggestions div:hover {
  background-color: #f0f0f0;
}
/* Property thumbnails grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.photo-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.photo-thumb:hover {
  transform: scale(1.05);
}

/* Fullscreen viewer */
.fullscreen-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.fullscreen-viewer .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.fullscreen-viewer .nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}
.fullscreen-viewer .nav.prev { left: 30px; }
.fullscreen-viewer .nav.next { right: 30px; }

.fullscreen-viewer .nav:hover,
.fullscreen-viewer .close-btn:hover {
  color: #ccc;
}

/* Simple full-screen loader overlay */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  color: white;
  font-size: 18px;
  text-align: center;
  padding-top: 40vh;
}
.property-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.property-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.property-thumb:hover {
  transform: scale(1.05);
}

.filter-toggle-btn {
  <!--position: relative;-->
   z-index: 999;
  background: #0066cc;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px 0;
  display: inline-block;
}
/* Expanded state */
#filters.expanded {
  max-height: 1000px;
  opacity: 1;
  transform: scaleY(1);
}

/* Header with close button */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #444;
}
#filters.collapsed {
  max-height: 0;
  opacity: 0;
  transform: scaleY(0);
  padding: 0;
  border: none;
}

 .how-to-use-container {
    display: inline-block;
    position:relative;
  }

  .how-to-btn {
    background-color: #1e40af;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .how-to-btn:hover {
    background-color: #1d4ed8;
  }

.istifada-btn {
    display: inline-block;      /* Makes each link behave like a button */
    margin-bottom: 15px;         /* Space between buttons */
    background-color: #1e40af;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.istifada-btn:hover {
    background-color: #1d4ed8;
}

  .dropdown-list {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    text-align: left;
  }

  .dropdown-list li {
    list-style: none;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 15px;
  }

  .dropdown-list li:hover {
    background-color: #f1f5f9;
  }

  .video-container {
    display: none;
    margin-top: 25px;
    text-align: center;
  }

  iframe {
    width: 90%;
    max-width: 700px;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }

  @media (max-width: 600px) {
    iframe {
      height: 250px;
    }
  }

.media-thumb {
  position: relative;
  width: 120px;
  height: 90px;
  cursor: pointer;
}

.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.video-thumb {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 40px;
  opacity: 0.85;
}








