/* ══════════════════════════════════════════════════════
   The Local Experts — Public Site Stylesheet
   ══════════════════════════════════════════════════════ */

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

:root {
  --slate:    #333f48;
  --dark:     #1a1a1a;
  --mid:      #555;
  --muted:    #888;
  --border:   #e8e6e0;
  --bg:       #f5f4f0;
  --white:    #fff;
  --radius:   10px;
}

body { font-family: 'Outfit', sans-serif; color: var(--dark); background: var(--white); }
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────── */
.tle-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 0 44px; height: 68px;
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.tle-nav-logo        { display: flex; align-items: center; flex-shrink: 0; }
.tle-nav-logo svg    { height: 40px; width: auto; }
.tle-nav-links       { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.tle-nav-link {
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.tle-nav-link:hover,
.tle-nav-link.active { color: var(--slate); background: var(--bg); }
.tle-nav-cta {
  padding: 9px 18px; background: var(--slate); color: var(--white);
  border-radius: 7px; font-size: 13px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.tle-nav-cta:hover   { background: #2a333b; }

/* Hamburger toggle (hidden on desktop) */
.tle-nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; margin-left: auto; flex-shrink: 0;
  background: none; border: none;
}
.tle-nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.tle-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tle-nav-toggle.open span:nth-child(2) { opacity: 0; }
.tle-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.tle-nav-drawer {
  display: none; flex-direction: column;
  position: absolute; top: 56px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 199; padding: 8px 0 16px;
}
.tle-nav-drawer.open { display: flex; }
.tle-nav-drawer .tle-nav-link {
  display: block; padding: 12px 24px;
  border-radius: 0; font-size: 15px;
}
.tle-nav-drawer .tle-nav-cta {
  margin: 8px 24px 0;
  display: block; text-align: center;
  padding: 12px 18px;
}

/* ── HERO (homepage) ─────────────────────────────────── */
.tle-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tle-hero-bg {
  position: absolute; inset: 0;
  background: url('/assets/img/hero-bg.jpg') center/cover no-repeat;
  background-color: #1a2530;
  transform: scale(1.04);
}
.tle-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.70) 100%
  );
}
.tle-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 60px 24px 80px;
  width: 100%;
}
.tle-hero-h1 {
  font-size: 80px; font-weight: 900; color: #fff;
  letter-spacing: -2.5px; line-height: 1.0;
  margin-bottom: 44px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.tle-local { color: rgba(255,255,255,0.5); }

/* Hero search bar */
.tle-hero-search  { max-width: 660px; margin: 0 auto; }
.tle-search-form  {
  display: flex; gap: 8px;
  background: #fff; border-radius: 12px;
  padding: 8px; box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}
.tle-search-select {
  flex: 0 0 210px; height: 44px;
  border: none; background: var(--bg);
  border-radius: 8px; padding: 0 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--slate);
  cursor: pointer;
}
.tle-search-input {
  flex: 1; height: 44px; border: none;
  background: transparent; padding: 0 12px;
  font-family: 'Outfit', sans-serif; font-size: 14px;
  color: var(--dark); min-width: 0;
}
.tle-search-input:focus { outline: none; }
.tle-search-btn {
  flex: 0 0 auto; height: 44px; padding: 0 22px;
  background: var(--slate); color: #fff; border: none;
  border-radius: 8px; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.tle-search-btn:hover { background: #2a333b; }

/* ── SECTIONS ────────────────────────────────────────── */
.tle-section { padding: 60px 44px; }
.tle-section-hd {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 28px;
}
.tle-section-title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--dark);
}
.tle-section-link {
  font-size: 13px; font-weight: 600; color: var(--slate);
  transition: opacity 0.15s;
}
.tle-section-link:hover { opacity: 0.7; }

/* ── LISTING CARDS ───────────────────────────────────── */
.tle-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tle-card {
  background: var(--white); border-radius: 14px;
  overflow: hidden; display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit; text-decoration: none;
}
.tle-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.tle-card-img {
  position: relative; height: 200px;
  background: linear-gradient(135deg, #1e2530, var(--slate));
  overflow: hidden;
}
.tle-card-img img   { width: 100%; height: 100%; object-fit: cover; }
.tle-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 36px; color: rgba(255,255,255,0.15);
}
.tle-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--slate); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.tle-card-price-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; padding: 24px 14px 12px;
  font-size: 18px; font-weight: 800;
}
.tle-card-body      { padding: 16px; }
.tle-card-address   { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.tle-card-suburb    { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tle-card-features  {
  display: flex; gap: 14px; font-size: 13px; color: var(--mid);
  padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px;
}
.tle-card-agent     { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tle-card-agent-photo {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
}
.tle-card-agent-initials {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--slate); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* ── HERO LABEL ─────────────────────────────────────── */
.hero-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; font-family: 'Outfit', sans-serif;
  transition: opacity 0.15s;
}
.btn:hover        { opacity: 0.88; }
.btn-dark         { background: var(--slate); color: var(--white); }
.btn-light        { background: var(--white); color: var(--dark); }
.btn-outline      { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); font-weight: 500; }

/* ── FORM INPUTS ─────────────────────────────────────── */
.tle-input {
  width: 100%; height: 44px; border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px;
  font-size: 14px; font-family: 'Outfit', sans-serif; color: var(--dark);
  background: #fafafa;
}
.tle-input:focus { outline: none; border-color: var(--slate); background: var(--whicte); }
textarea.tle-input { height: auto; padding: 12px 14px; resize: vertical; }
.tle-label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; letter-spacing: .2px; }

/* ── CARDS (generic) ─────────────────────────────────── */
.card {
  background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

/* ── GRID LAYOUTS ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── SECTION WRAPPERS (legacy utility) ───────────────── */
.section      { padding: 60px 44px; }
.section-dark { background: #1e2530; color: var(--white); }
.section-grey { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.section-dark .section-head .label { color: rgba(255,255,255,0.3); }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; }
.section-dark .section-head h2 { color: var(--white); }

/* ── ALERTS ───────────────────────────────────────────── */
.alert         { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ───────────────────────────────────────────── */
.tle-footer {
  background: #1e1e1c;
  padding: 52px 44px 32px;
  font-family: 'Outfit', sans-serif;
}
.tle-footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.tle-footer-brand   { display: flex; flex-direction: column; gap: 10px; }
.tle-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); }
.tle-footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.tle-footer-social  {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.7); font-size: 16px;
  transition: background 0.15s;
}
.tle-footer-social:hover  { background: rgba(255,255,255,0.2); color: #fff; }
.tle-footer-nav           { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 32px; }
.tle-footer-col-title     {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.tle-footer-col-link      {
  display: block; font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 4px; transition: color 0.15s;
}
.tle-footer-col-link:hover { color: rgba(255,255,255,0.9); }
.tle-footer-divider        { height: 0.5px; background: rgba(255,255,255,0.1); margin-bottom: 20px; }
.tle-footer-bottom         {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 4px;
}
.tle-footer-copy  { font-size: 12px; color: rgba(255,255,255,0.35); }
.tle-footer-links { display: flex; flex-wrap: wrap; }
.tle-footer-link  {
  font-size: 12px; color: rgba(255,255,255,0.45);
  padding: 0 10px;
  border-right: 0.5px solid rgba(255,255,255,0.2); line-height: 1;
  transition: color 0.15s;
}
.tle-footer-link:last-child { border-right: none; }
.tle-footer-link:hover      { color: rgba(255,255,255,0.85); }
.tle-footer-acknowledgement {
  font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.7;
  text-align: center; padding-top: 16px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile first at 768px
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tle-listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* NAV */
  .tle-nav              { padding: 0 16px; height: 56px; position: relative; }
  .tle-nav-logo svg     { height: 30px; }
  .tle-nav-links        { display: none; }   /* replaced by drawer */
  .tle-nav-cta          { display: none; }   /* shown inside drawer */
  .tle-nav-toggle       { display: flex; }

  /* HERO */
  .tle-hero             { min-height: 75vh; }
  .tle-hero-h1          { font-size: 44px; letter-spacing: -1.5px; margin-bottom: 32px; }
  .tle-hero-content     { padding: 40px 20px 60px; }
  .tle-search-form      {
    flex-direction: column; padding: 12px; gap: 8px;
    border-radius: 10px;
  }
  .tle-search-select    { flex: auto; width: 100%; }
  .tle-search-btn       { width: 100%; text-align: center; }

  /* SECTIONS */
  .tle-section          { padding: 36px 20px; }
  .tle-section-hd       { flex-direction: column; gap: 6px; }

  /* LISTING GRID */
  .tle-listings-grid    { grid-template-columns: 1fr; }

  /* GRIDS */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* SECTION UTILITY */
  .section              { padding: 40px 20px; }

  /* FOOTER */
  .tle-footer           { padding: 36px 20px 24px; }
  .tle-footer-top       { flex-direction: column; gap: 20px; }
  .tle-footer-nav       { flex-direction: column; gap: 20px; }
  .tle-footer-bottom    { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tle-footer-links     { flex-wrap: wrap; gap: 4px 0; }
  .tle-footer-acknowledgement { text-align: left; }

  /* BUY PAGE inline fix */
  .tle-buy-hero { padding: 36px 20px 28px !important; }
  .tle-buy-hero h1 { font-size: 28px !important; }
  .tle-buy-results { padding: 12px 16px !important; }
  .tle-buy-grid { padding: 20px 16px !important; }
}

@media (max-width: 400px) {
  .tle-hero-h1    { font-size: 36px; letter-spacing: -1px; }
}
