/* === General Styles === */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

h2 {
  text-align: center;
  margin-top: 30px;
}

button {
  padding: 8px 16px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #555;
}

/* === Header === */
header {
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 40px;
  margin-right: 10px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

header nav ul li {
  display: inline-block;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:hover {
  color: #ccc;
  text-decoration: underline;
}

.discord-button {
  background: #5865F2;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

/* === Hero Section === */
.hero {
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero p.typing-effect {
  font-size: 1.3rem;
  margin: 0;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  display: inline-block;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: white; }
}

/* === House Grid === */
.house-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.house-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.house-type-card, .category-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: calc(100% / 3 - 40px);
  max-width: 300px;
  text-align: center;
  padding-bottom: 10px;
  transition: transform 0.2s;
}

.house-type-card:hover, .category-card:hover {
  transform: scale(1.03);
}

.house-type-card img, .category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.modal-content input,
.modal-content textarea {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* === Footer === */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* === Tooltip === */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  line-height: 1.5;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* === Map Section === */
#mini-map {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  margin-top: 40px;
}

#mini-map h2 {
  margin-bottom: 20px;
}

.map-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.map-image:hover {
  transform: scale(1.02);
}

/* === Employee Cards === */
.employee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.employee-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 220px;
  min-height: 400px; /* Ensure same height */
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.employee-card.full-width {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #e6f7ff;
}

.employee-card:hover {
  transform: translateY(-5px);
}

.employee-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  object-position: center;
}

.employee-card h3 {
  margin: 10px 0 5px;
}

.employee-card p {
  margin: 4px 0;
}

.badge {
  display: inline-block;
  margin-top: 5px;
  background: gold;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
}

/* === Responsive === */
@media (max-width: 1000px) {
  .house-type-card {
    width: calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .hero {
    padding: 80px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .house-type-card, .category-card, .employee-card {
    width: 90%;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .map-image {
    width: 100%;
    max-width: 100%;
  }

  .employee-card.full-width {
    width: 95%;
  }
}

/* === House Popup Grid === */
.house-popup-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.house-popup-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.house-popup-card:hover {
  transform: translateY(-5px);
}

.house-popup-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.house-popup-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.house-popup-card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #444;
}

