@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1B2430;
  --ink-soft: #2E394A;
  --sand: #EDE6D9;
  --paper: #FAF8F4;
  --brass: #A8823C;
  --brass-soft: #C9A96A;
  --slate: #5C6570;
  --line: rgba(27, 36, 48, 0.14);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* Signature element: blueprint-style corner registration marks.
   Used on property cards + section frames to evoke architectural drawings. */
.blueprint-frame {
  position: relative;
}
.blueprint-frame::before,
.blueprint-frame::after,
.blueprint-frame > .corner-tl,
.blueprint-frame > .corner-br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--brass);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.blueprint-frame::before {
  top: -1px; left: -1px;
  border-top: 1.5px solid var(--brass);
  border-left: 1.5px solid var(--brass);
}
.blueprint-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 1.5px solid var(--brass);
  border-right: 1.5px solid var(--brass);
}
.blueprint-frame:hover::before,
.blueprint-frame:hover::after {
  opacity: 1;
}

.text-brass { color: var(--brass); }
.bg-ink { background-color: var(--ink); }
.bg-sand { background-color: var(--sand); }
.bg-paper { background-color: var(--paper); }
.border-hairline { border-color: var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   NAVBAR LINKS
═══════════════════════════════════════════════ */

.nav-link {
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--brass);
}

/* ═══════════════════════════════════════════════
   NAVBAR DROPDOWN
═══════════════════════════════════════════════ */

.nav-dropdown-wrapper {
  position: relative;
}

.nav-link-dropdown {
  cursor: pointer;
  user-select: none;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown-wrapper:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(27, 36, 48, 0.12), 0 2px 8px rgba(27, 36, 48, 0.06);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 100;
}

/* Small arrow/bridge above dropdown to prevent gap hover loss */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
  border-radius: 1px;
}

.nav-dropdown-item:hover {
  background: var(--sand);
  color: var(--brass);
}

.nav-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--slate);
  transition: color 0.18s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  color: var(--brass);
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.nav-dropdown-desc {
  font-size: 0.7rem;
  color: var(--slate);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.nav-dropdown-item:hover .nav-dropdown-desc {
  color: var(--brass-soft);
}

/* ═══════════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════════ */

.mobile-nav-link {
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-link:hover {
  color: var(--brass);
}

.mobile-nav-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════
   LISTINGS FILTER TABS
═══════════════════════════════════════════════ */

.listings-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listings-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.listings-filter-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.listings-filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--sand);
}

.listings-filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ═══════════════════════════════════════════════
   LISTINGS GRID ANIMATION
═══════════════════════════════════════════════ */

.listings-grid {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.listings-grid-exit {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.listings-grid-enter {
  animation: gridFadeIn 0.35s ease forwards;
}

@keyframes gridFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   PROPERTY LISTINGS PAGE (residential / commercial)
═══════════════════════════════════════════════ */

.property-page-hero {
  position: relative;
  overflow: hidden;
}

.property-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(168, 130, 60, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.property-page-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(27, 36, 48, 0.06);
}

/* SVG variant — inherits box, colours icon with brass */
.property-page-icon--svg {
  color: var(--brass);
}

.property-page-icon--svg svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
}


.text-line {
  color: var(--line);
}
