/*
 Theme Name:   Tolet Baba Child Theme
 Theme URI:    https://toletbaba.online/
 Description:  Complete Turnkey Bilingual Real Estate & To-Let Classifieds Child Theme
 Author:       Tolet Baba Master Team
 Template:     astra
 Version:      2.2.0
 Text Domain:  toletbaba
*/

/* Reset & Global Typography */
:root {
  --tb-primary: #1e3a8a;
  --tb-primary-dark: #0f172a;
  --tb-accent: #10b981;
  --tb-gold: #f59e0b;
  --tb-bg: #f8fafc;
  --tb-card: #ffffff;
  --tb-border: #e2e8f0;
  --tb-text: #0f172a;
  --tb-text-muted: #64748b;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--tb-bg);
  color: var(--tb-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header & Navbar */
.tb-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.tb-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--tb-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tb-logo span { color: var(--tb-accent); }
.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}
.tb-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.tb-btn-primary, a.tb-btn-primary { background: var(--tb-primary); color: #ffffff !important; }
.tb-btn-primary:hover, a.tb-btn-primary:hover { background: var(--tb-primary-dark); color: #ffffff !important; }
.tb-btn-accent, a.tb-btn-accent { background: var(--tb-accent); color: #ffffff !important; }
.tb-btn-accent:hover, a.tb-btn-accent:hover { background: #059669; color: #ffffff !important; }
.tb-btn-outline, a.tb-btn-outline { background: transparent; border: 1px solid var(--tb-border); color: var(--tb-text) !important; }
.tb-btn-outline:hover, a.tb-btn-outline:hover { background: var(--tb-border); }

/* Language Switcher */
.lang-switch-btn {
  background: #f1f5f9;
  border: 1px solid var(--tb-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  color: var(--tb-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switch-btn:hover { background: var(--tb-accent); color: #fff; border-color: var(--tb-accent); }

/* Hero Section */
.tb-hero {
  background: linear-gradient(135deg, #09101d 0%, #1e3a8a 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.tb-hero h1 { font-size: 32px; font-weight: 800; margin: 0 0 10px 0; color: #ffffff !important; }
.tb-hero p { font-size: 16px; color: #bfdbfe !important; max-width: 650px; margin: 0 auto 30px auto; }
.tb-cta-banner h2 { color: #ffffff !important; }
.tb-cta-banner p { color: #bfdbfe !important; }

/* Search Card */
.tb-search-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 130px;
  gap: 12px;
  align-items: center;
}
.tb-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-text-muted);
  margin-bottom: 4px;
  text-align: left;
}
.tb-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Category Pills */
.tb-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 0 15px;
}
.tb-cat-pill {
  background: #fff;
  border: 1px solid var(--tb-border);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tb-cat-pill:hover, .tb-cat-pill.active {
  background: var(--tb-primary);
  color: #fff;
  border-color: var(--tb-primary);
}

/* Property Grid & Card */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}
.tb-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid var(--tb-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.tb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.tb-card-img {
  position: relative;
  height: 180px;
  background: #e2e8f0;
}
.tb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.tb-badge-verified { background: var(--tb-accent); }
.tb-badge-pending { background: var(--tb-gold); }
.tb-badge-hidden { background: #ef4444; }
.tb-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tb-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--tb-primary);
  margin-bottom: 4px;
}
.tb-card-price span { font-size: 12px; font-weight: normal; color: var(--tb-text-muted); }
.tb-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--tb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-card-loc {
  font-size: 13px;
  color: var(--tb-text-muted);
  margin-bottom: 12px;
}
.tb-card-footer {
  border-top: 1px solid var(--tb-border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .tb-navbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .tb-nav-links { flex-wrap: wrap; gap: 8px; width: 100%; justify-content: flex-start; }
  .tb-btn { padding: 7px 12px; font-size: 13px; }
  .tb-search-box { grid-template-columns: 1fr; }
  .tb-hero h1 { font-size: 24px; }
}
