/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= BODY ================= */
body {
  font-family: 'Libre Baskerville', serif;
  background-color: #0E0E0E;
  color: #D1D1D1;
}

/* ================= HEADER ================= */
.nav-header {
  text-align: center;
  padding: 30px 20px;
}

.logo-container h1 {
  color: #9A9CA1;
  letter-spacing: 2px;
  font-size: 28px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 15px;
}

.nav-links a {
  color: #9A9CA1;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* ================= ESTATES ================= */
.estate-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  /* extra padding för fixed footer */
  padding-bottom: 140px; 
}

.estate-column {
  background: transparent;
}

.estate-column h2 {
  color: #9A9CA1;
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
}

/* Estate item */
.estate-card {
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
  cursor: pointer;
}

/* Elegant image styling */
.estate-card img {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.estate-card img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* Overlay text */
.estate-card p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  margin: 0;
  box-sizing: border-box;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .estate-wrapper {
    grid-template-columns: 1fr;
    padding-bottom: 160px; /* extra för footer */
  }

  .logo-container h1 {
    font-size: 22px;
  }
}

/* ================= FOOTER ================= */
.sidfot {
  position: fixed;   /* alltid längst ned */
  bottom: 0;
  width: 100%;
  background-color: #111;
  color: #D1D1D1;
  text-align: center;
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
}

.sidfot a {
  color: #9A9CA1;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.sidfot a:hover {
  color: #ffffff;
}

.footer-content p {
  margin: 6px 0;
  font-size: 14px;
}
