/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- WELCOME INTRO (copied + matched style.css) ---------- */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4em;
  z-index: 9999;
  opacity: 1;
  transition: opacity 2s ease;
}


/* Dropdown container */
.navbar .dropdown {
  position: relative; /* anchor for submenu */
}

/* Dropdown menu hidden by default */
.navbar .dropdown-menu {
  position: absolute;
  top: 100%; /* directly under Contact button */
  left: 0;
  display: none; /* hidden initially */
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 50px;
  z-index: 2000;
}

/* Remove list bullets */
.navbar .dropdown-menu li {
  list-style: none;
}

/* Links styling */
.navbar .dropdown-menu a {
  padding: 12px 20px;
  display: block;
  color: white;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
}

.navbar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Show dropdown when hovering Contact or the menu itself */
.navbar .dropdown:hover .dropdown-menu {
  display: flex;
}




#intro.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- FADE-IN (same logic as style.css) ---------- */
body.loaded .navbar,
body.loaded .container,
body.loaded #results,
body.loaded footer {
  opacity: 1;
  transition: opacity 1.5s ease;
}

.navbar,
.container,
#results,
footer {
  opacity: 0;
  transition: opacity 1s ease;
}

/* ---------- BODY ---------- */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #bcedf6, #087E8B);
  color: #333;
}

/* ---------- NAVBAR (copied from style.css to stay consistent) ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 35px 60px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 80px;
  align-items: center;
  font-size: x-large;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}


/* Always underline active page */
.navbar a.current-page::after {
  width: 100%;
}

.logo {
  justify-self: start;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

/* ---------- PAGE CONTENT ---------- */
.container {
  width: 90%;
  max-width: 900px;
  margin: 120px auto 30px auto; /* fixed navbar spacing */
  background-color: #fff;
  padding: 20px 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.teksttitel {
  text-align: center;
  color: #2c3e50;
}

/* ---------- SEARCH ---------- */
.search-section {
  text-align: center;
  margin-bottom: 30px;
}

.search-section input {
  padding: 10px;
  width: 60%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.search-section button {
  padding: 10px 15px;
  font-size: 16px;
  margin-left: 10px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-section button:hover {
  background-color: #2980b9;
}

/* ---------- RESULTS ---------- */
.results {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.house {
  position: relative; /* nodig voor hartje positioning */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  width: 250px;
  background-color: #fafafa;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.house:hover {
  transform: scale(1.03);
}

.house img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.house h3 {
  margin: 5px 0;
  color: #2c3e50;
}

.house p {
  margin: 3px 0;
}

footer {
    position: fixed; /* Zorgt ervoor dat de positie vast is t.o.v. het venster */
    bottom: 0;        
    left: 0;         
    width: 100%;      
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}
/* FULLSCREEN POPUP */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-content {
  background: white;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.popup-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

#closePopup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  cursor: pointer;
}

.filters {
  margin-top: 20px;
  padding: 15px;
  background: #eef6f8;
  border-radius: 8px;
  text-align: center;
}

.filters select {
  padding: 8px;
  margin: 0 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.fav-btn {
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
  transition: transform 0.2s;
  color: white;        /* hartje is wit standaard */
  filter: drop-shadow(0 0 3px black); /* zodat wit altijd zichtbaar blijft */
}

.fav-btn:hover {
  transform: scale(1.15);
}

.fav-active {
  color: red !important;   /* als favoriet → rood */
}


.delete-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  transition: 0.2s;
}

.delete-btn:hover {
  background: #c0392b;
}
