@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf);
}

@font-face {
  font-family: "Playfair";
  src: url(../fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: Inter;
  background-color: #f8f4eb;
}

a {
  text-decoration: none;
}

#main-road {
  pointer-events: none;
}

svg g[id^="house-"] {
  pointer-events: all;
}

svg g[id^="house-"]:hover path {
  opacity: 0.8;
}

/* hover effect */
svg g[id^="house-"] path {
  transition: 0.2s;
}

svg g[id^="house-"]:hover path {
  opacity: 0.8;
}

/* highlight houses with documents */
.has-docs path:first-child {
  fill: #8bc34a !important;
}

/* tooltip */
.house-tooltip {
  position: absolute;
  display: none;
  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

/* Header styles */

header {
  padding: 1rem 7rem;
  border-bottom: 1px solid #e5d3b6;
  background: rgba(248, 244, 235, 0.9);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .left-side {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-logo {
  width: 3rem;
  height: 3rem;
}

.logo-text h1 {
  color: #3d3d3d;
  font-family: Playfair;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: -0.0375rem;
}

.logo-text p {
  color: #6d6d6d;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.04375rem;
  text-transform: uppercase;
}

.intro-section {
  width: 24rem;
  height: 12.625rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);

  margin: 2rem;
  padding: 1.5rem;
}

.intro-section h2 {
  color: #3d3d3d;
  font-family: Playfair;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 2.25rem;
}

.intro-section p {
  margin-top: 0.5rem;
  color: #5d5d5d;
  line-height: 1.5;
}

.street-map {
  margin: 2rem auto;
  display: block;
}

a.button {
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border-radius: 6px;
}

.upload-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}

.upload-card h2 {
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
}

/* File input styling */
.acf-file-uploader {
  border: 2px dashed #ccc;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  transition: 0.2s;
}

.acf-file-uploader:hover {
  border-color: #999;
  background: #f5f5f5;
}

/* Button */
.upload-btn {
  margin-top: 1rem;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.upload-btn:hover {
  background: #333;
}
.upload-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}

.upload-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
}

/* File uploader */
.acf-file-uploader {
  border: 2px dashed #ccc;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  transition: 0.2s;
}

.acf-file-uploader:hover {
  border-color: #999;
  background: #f5f5f5;
}

/* Button */
.upload-btn {
  margin-top: 1rem;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.upload-btn:hover {
  background: #333;
}

/* Documents */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.doc-card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
}

.acf-field[data-name="related_house"] {
  display: none;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.doc-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: 0.2s;
}

.doc-card:hover {
  transform: translateY(-2px);
}

.doc-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.doc-card h3 {
  font-size: 14px;
  padding: 0.75rem;
}

.doc-file {
  padding: 2rem;
  text-align: center;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}

svg g[id^="house-"] path {
  transition: 0.2s;
}

/* highlight houses */
.has-docs path:first-child {
  fill: #8bc34a !important;
}

/* 🔥 force number to stay dark */
svg g[id^="house-"] path[fill="#262626"],
svg g[id^="house-"] path[fill="#454545"] {
  fill: #222 !important;
}

svg g[id^="house-"] path[fill="#262626"],
svg g[id^="house-"] path[fill="#454545"] {
  fill: #222 !important;
  stroke: #222;
  stroke-width: 0.5; /* increase for thicker */
}

svg {
  overflow: visible;
}

.street-map,
.street-map svg {
  overflow: visible;
}

svg {
  height: auto;
  max-width: 100%;
}

.street-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.street-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-container {
  padding: 5rem;
}

.log-in-button,
.log-out-button {
  color: #852222;
}

.sign-up-button {
  background-color: #852222;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  margin-left: 1rem;
}
