/* =========================================================
   BASE.CSS — reset, tokens, body, buttons, utilities
   Loaded first. Everything else builds on these tokens.
   ========================================================= */

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --ink:        #0e1a1a;
  --ink-2:      #3d4d4c;
  --muted:      #6b7b7a;
  --line:       #e3e8e7;
  --bg:         #f7f9f8;
  --card:       #ffffff;

  --accent:      #0d7a6b;
  --accent-dark: #095c50;
  --accent-soft: #e6f2f0;

  --danger:  #c2410c;
  --warning: #8a4b00;
  --success: #0b6b5d;

  /* Radius */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,32,30,.06), 0 1px 3px rgba(16,32,30,.05);
  --shadow-md: 0 4px 12px rgba(16,32,30,.07), 0 12px 32px rgba(16,32,30,.08);
  --shadow-lg: 0 24px 60px rgba(10,30,28,.22);

  /* Footer */
  --footer-bg: #0b2f2b;

  /* Z-index scale */
  --z-header:       50;
  --z-overlay:      100;
  --z-drawer:       110;
  --z-drawer-panel: 120;
  --z-mobile-overlay: 200;
  --z-mobile-panel:   210;
  --z-cookie:         300;
  --z-chat:           400;
}


/* ---------- LAYOUT HELPERS ---------- */
.layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 24px 72px;
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 30px;
  align-items: start;
}


/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: .15s;
  white-space: nowrap;
  text-align: center;
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(13,122,107,.3);
}

.btn-ghost {
  display: inline-block;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 13.5px;
  transition: .15s;
  text-align: center;
}
.btn-ghost:hover {
  border-color: #c9d6d4;
  background: #fafcfb;
}


/* ---------- VISIBILITY ---------- */
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ---------- SCROLLBAR (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #dbe3e1;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #c8d4d2; }
::-webkit-scrollbar-track { background: transparent; }


/* ---------- FOCUS RING ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ---------- PLACEHOLDER SECTIONS (until we fill them) ---------- */
/* These prevent the page from collapsing while empty CSS files load */
.hero { min-height: 200px; }
.filters { min-height: 400px; }
/* FIX: scope min-height to the listings grid only, not every .grid on the site */
#grid.grid { min-height: 400px; }