/*
Theme Name: TrueSpace Property
Theme URI: https://truespace.com
Author: TrueSpace
Author URI: https://truespace.com
Description: A verified property matching platform for buying, selling, and renting properties in Bangladesh.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truespace
Tags: real-estate, property, listings, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS VARIABLES & RESET
======================================== */
:root {
  --orange: #FF8A00;
  --orange-dark: #e67a00;
  --orange-light: #fff3e0;
  --navy: #0D1B2A;
  --navy-light: #1a2d42;
  --gray-dark: #1E2998;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --gray-border: #E5E7EB;
  --white: #FFFFFF;
  --green: #22C55E;
  --red: #EF4444;
  --blue-wa: #25D366;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Poppins', sans-serif;
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; background: none; }
input, textarea, select { font-family: var(--font-main); outline: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
p { color: var(--text-secondary); }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,138,0,0.35); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }

.btn-whatsapp {
  background: var(--blue-wa);
  color: var(--white);
}
.btn-whatsapp:hover { background: #1db954; }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ========================================
   BADGES
======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale { background: var(--orange); color: var(--white); }
.badge-rent { background: var(--navy); color: var(--white); }
.badge-verified { background: #dcfce7; color: #16a34a; }
.badge-approved { background: #dcfce7; color: #16a34a; }
.badge-pending { background: #fef9c3; color: #ca8a04; }
.badge-new { background: #fee2e2; color: #dc2626; }

/* ========================================
   FORMS
======================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,0.12); }
.form-control::placeholder { color: var(--text-muted); }

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,0.12); }

.toggle-group {
  display: flex;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.toggle-group button {
  flex: 1;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: none;
  transition: var(--transition);
}
.toggle-group button.active {
  background: var(--orange);
  color: var(--white);
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.site-logo span { color: var(--orange); }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
  color: var(--orange);
  background: var(--orange-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Drawer */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
}
#mobile-nav.open { display: block; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-drawer ul { margin-top: 24px; }
.mobile-nav-drawer ul li a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text-primary);
}
.mobile-nav-drawer ul li a:hover { color: var(--orange); }

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,138,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-search-box .toggle-group { margin-bottom: 20px; }
.hero-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.hero-search-input-wrap {
  position: relative;
  grid-column: 1 / -1;
}
.hero-search-input-wrap input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.hero-search-input-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--orange);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ========================================
   SECTION STYLES
======================================== */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-light); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 { font-size: 1.5rem; }
.section-header a { color: var(--orange); font-size: 0.875rem; font-weight: 600; }

.section-title-center { text-align: center; margin-bottom: 48px; }
.section-title-center p { margin-top: 8px; color: var(--text-secondary); }

/* ========================================
   PROPERTY CARDS
======================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-light);
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.property-card:hover .property-card-image img { transform: scale(1.05); }

.property-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.property-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 1rem;
}
.property-card-wishlist:hover,
.property-card-wishlist.active { color: var(--red); }

.property-card-body { padding: 16px; }

.property-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.property-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }

.property-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.property-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-border);
}
.property-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   POPULAR CATEGORIES
======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover,
.category-card.active {
  border-color: var(--orange);
  background: var(--orange-light);
}
.category-card .icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 10px;
  transition: var(--transition);
}
.category-card:hover .icon,
.category-card.active .icon { background: var(--orange); color: white; }
.category-card h4 { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }

/* ========================================
   SEARCH / LISTING PAGE
======================================== */
.search-bar-sticky {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.search-filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.filter-pill:hover { border-color: var(--orange); color: var(--orange); }
.filter-pill.active { border-color: var(--orange); background: var(--orange); color: white; }

.listing-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 32px 0;
}

/* Sidebar Filters */
.sidebar-filters {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 140px;
}
.sidebar-filters h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-border);
}
.filter-section { margin-bottom: 24px; }
.filter-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip.active,
.filter-chip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

/* Price range */
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Listing Results */
.listing-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.listing-results-header p { font-size: 0.875rem; color: var(--text-secondary); }
.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ========================================
   PROPERTY DETAIL PAGE
======================================== */
.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 40px 0;
}

.property-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.gallery-main {
  height: 420px;
  background: var(--gray-light);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.gallery-thumb {
  height: 80px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-detail-meta {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  padding: 20px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
}
.detail-meta-item { text-align: center; }
.detail-meta-item .value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.detail-meta-item .label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.property-overview-table { width: 100%; }
.property-overview-table tr { display: grid; grid-template-columns: 1fr 1fr; }
.property-overview-table td {
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-border);
}
.property-overview-table td:first-child { color: var(--text-muted); }
.property-overview-table td:last-child { font-weight: 600; color: var(--text-primary); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Sidebar */
.contact-sidebar {
  height: fit-content;
  position: sticky;
  top: 100px;
}
.seller-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-light);
}
.seller-name { font-weight: 700; font-size: 1rem; }
.seller-type { font-size: 0.8rem; color: var(--text-muted); }

.price-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.price-box .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
}
.price-box .price-label { font-size: 0.8rem; color: var(--text-muted); }

/* ========================================
   POST PROPERTY PAGE
======================================== */
.post-property-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 24px 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.step-circle.active { border-color: var(--orange); background: var(--orange); color: white; }
.step-circle.done { border-color: var(--green); background: var(--green); color: white; }
.step-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }
.step-label.active { color: var(--orange); }
.step-connector {
  height: 2px;
  width: 80px;
  background: var(--gray-border);
  flex-shrink: 0;
}
.step-connector.done { background: var(--green); }

.step-wrap { display: flex; flex-direction: column; align-items: center; }

.post-property-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

/* ========================================
   REQUIREMENTS PAGE
======================================== */
.requirement-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.requirement-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.req-id { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.req-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.req-budget { font-size: 0.875rem; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.req-location { font-size: 0.8rem; color: var(--text-muted); }
.req-time { font-size: 0.75rem; color: var(--text-muted); }

/* ========================================
   BACHELOR FEED
======================================== */
.bachelor-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.bachelor-card:hover { box-shadow: var(--shadow-md); }
.bachelor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.bachelor-id { font-size: 0.75rem; color: var(--text-muted); }
.bachelor-time { font-size: 0.75rem; color: var(--text-muted); }
.bachelor-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.bachelor-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.bachelor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bachelor-budget { font-size: 0.875rem; font-weight: 700; color: var(--orange); }

/* ========================================
   DASHBOARD
======================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.dash-user-info {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
}
.dash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: var(--gray-light);
  display: block;
}
.dash-name { font-size: 1rem; font-weight: 700; }
.dash-email { font-size: 0.8rem; color: var(--text-muted); }
.dash-role { font-size: 0.75rem; font-weight: 600; color: var(--orange); margin-top: 4px; }

.dash-nav { }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  margin-bottom: 4px;
}
.dash-nav a:hover,
.dash-nav a.active {
  background: var(--orange-light);
  color: var(--orange);
}
.dash-nav a .icon { font-size: 1rem; width: 20px; }

.dash-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
}
.dash-logout:hover { background: #fee2e2; }

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-card .indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}
.stat-card .indicator.up { color: var(--green); }
.stat-card .indicator.orange { color: var(--orange); }

/* Dashboard Table */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
}
.dash-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--gray-light); }

/* Action buttons in table */
.table-actions { display: flex; gap: 8px; align-items: center; }
.action-btn {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-border);
  cursor: pointer;
  transition: var(--transition);
}
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.action-btn-danger:hover { border-color: var(--red); color: var(--red); }

/* ========================================
   INBOX
======================================== */
.inbox-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 600px;
}

.inbox-sidebar { border-right: 1px solid var(--gray-border); overflow-y: auto; }
.inbox-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-border);
  font-weight: 700;
}
.inbox-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-border);
}
.inbox-tab {
  flex: 1;
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.inbox-tab.active { border-bottom-color: var(--orange); color: var(--orange); }

.message-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-border);
}
.message-item:hover, .message-item.active { background: var(--orange-light); }
.message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-light);
  flex-shrink: 0;
  object-fit: cover;
}
.message-info { flex: 1; min-width: 0; }
.message-name { font-size: 0.875rem; font-weight: 600; }
.message-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-time { font-size: 0.7rem; color: var(--text-muted); }
.message-unread {
  min-width: 20px;
  height: 20px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inbox-main {
  display: flex;
  flex-direction: column;
}
.inbox-main-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
}
.message-bubble.received {
  background: var(--gray-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.message-bubble.sent {
  background: var(--orange);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.message-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  gap: 12px;
  align-items: center;
}
.message-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: 50px;
  font-size: 0.875rem;
}

/* ========================================
   ABOUT PAGE
======================================== */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { color: white; margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.about-stat {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
}
.about-stat .num { font-size: 2.5rem; font-weight: 800; color: var(--orange); }
.about-stat .label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 8px; }

/* ========================================
   CONTACT PAGE
======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.875rem; margin-bottom: 2px; }
.contact-item-text span { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

/* ========================================
   FOOTER
======================================== */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 20px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-newsletter p { font-size: 0.85rem; margin-bottom: 12px; }
.footer-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.1);
  color: white;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter-form button {
  padding: 12px 16px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  transition: var(--transition);
}
.social-link:hover { background: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-border);
  transition: var(--transition);
  color: var(--text-primary);
}
.page-item:hover { border-color: var(--orange); color: var(--orange); }
.page-item.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ========================================
   ALERTS / NOTICES
======================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #ca8a04; border: 1px solid #fef08a; }

/* ========================================
   CARD / CONTENT BOX
======================================== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   WISHLIST / SAVED PROPERTIES
======================================== */
.saved-property-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: var(--transition);
}
.saved-property-item:hover { box-shadow: var(--shadow-md); }
.saved-thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-light);
}
.saved-thumb img { width: 100%; height: 100%; object-fit: cover; }
.saved-info { flex: 1; }
.saved-title { font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.saved-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.saved-price { font-weight: 700; color: var(--orange); font-size: 0.9rem; }

/* ========================================
   LOADING / SKELETON
======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .listing-layout { grid-template-columns: 1fr; }
  .sidebar-filters { position: static; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  #main-nav, .header-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .property-detail-meta { flex-wrap: wrap; }
  .hero-section { padding: 48px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .post-property-form { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .inbox-layout { grid-template-columns: 1fr; height: auto; }
  .inbox-sidebar { height: 300px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-search-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .post-property-steps { gap: 0; }
  .step-connector { width: 40px; }
}
