/* ============================================================
   MassageHub Pro — Complete Design System (Locanto Light Theme)
   Modern, Clean, High-Conversion Classified Directory
   Fully Responsive for Mobile, Tablet & Desktop
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Surfaces & Backgrounds */
  --bg-base:        #f3f5f8;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8fafc;
  --bg-input:       #ffffff;
  --border:         #e2e8f0;
  --border-light:   #edf2f7;
  --border-focus:   #93c5fd;

  /* Locanto Red & Blue Accents */
  --locanto-red:       #e60050;
  --locanto-red-hover: #cc0044;
  --locanto-red-light: #fff0f3;
  --locanto-blue:      #0066cc;
  --locanto-blue-hover:#004da3;
  --locanto-blue-light:#eff6ff;
  --locanto-green:     #16a34a;

  /* Brand Primary Aliases */
  --primary:        #e60050;
  --primary-hover:  #cc0044;
  --primary-light:  #fff0f3;
  --gold:           #e60050;
  --gold-light:     #f59e0b;
  --gold-dark:      #be123c;
  --gold-gradient:  linear-gradient(135deg, #e60050 0%, #ff385c 100%);
  --gold-glow:      0 2px 10px rgba(230, 0, 80, 0.2);

  /* Typography Colors */
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --text-dark:      #0f172a;

  /* Status Colors */
  --success:        #16a34a;
  --success-light:  #f0fdf4;
  --error:          #dc2626;
  --error-light:    #fef2f2;
  --warning:        #d97706;
  --warning-light:  #fffbeb;
  --info:           #0284c7;

  /* Plan Badges */
  --plan-standard:  #0284c7;
  --plan-premium:   #7c3aed;
  --plan-platinum:  #e11d48;

  /* Fonts */
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:   'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-full:9999px;

  /* Elevation Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow:     0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg:  0 14px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold:0 4px 14px rgba(230, 0, 80, 0.25);

  --transition: all 0.15s ease-in-out;
  --container:  1240px;
  --nav-height: 64px;
}

/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Responsive Grid Systems */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   NAVBAR (Universal for all pages)
   ============================================================ */
.navbar, .locanto-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.navbar .container, .locanto-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-4);
  width: 100%;
}

.navbar-brand, .locanto-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.navbar-brand .logo-icon, .locanto-logo-mark {
  background: var(--locanto-red);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.navbar-brand .logo-text, .locanto-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-brand .logo-text span, .locanto-logo-text span {
  color: var(--locanto-red);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--locanto-red);
  background: var(--locanto-red-light);
}

.navbar-actions, .locanto-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.locanto-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: var(--transition);
}

.locanto-action-link:hover {
  color: var(--locanto-red);
  background: var(--locanto-red-light);
}

.locanto-action-badge {
  background: var(--locanto-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 2px;
}

/* Post Free Ad CTA button */
.btn-post-ad {
  background: var(--locanto-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(230,0,80,0.25) !important;
  transition: var(--transition) !important;
  white-space: nowrap;
}

.btn-post-ad:hover {
  background: var(--locanto-red-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,0,80,0.35) !important;
}

/* City Indicator Pill */
.locanto-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none !important;
  transition: var(--transition);
}

.locanto-city-pill:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* Header Search Bar */
.locanto-search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 540px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.locanto-search-bar:focus-within {
  border-color: var(--locanto-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.locanto-search-input {
  flex: 1;
  border: none;
  padding: 8px 14px;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-primary);
}

.locanto-search-city-select {
  border: none;
  border-left: 1px solid #e2e8f0;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  max-width: 130px;
}

.locanto-search-btn {
  background: var(--locanto-blue);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.locanto-search-btn:hover {
  background: var(--locanto-blue-hover);
}

/* Category Tabs (htabs) */
.locanto-htabs {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.locanto-htabs::-webkit-scrollbar { display: none; }

.locanto-htabs-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.locanto-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: var(--transition);
  flex-shrink: 0;
}

.locanto-cat-chip:hover {
  background: #edf2f7;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.locanto-cat-chip.active {
  background: var(--locanto-red);
  color: #ffffff;
  border-color: var(--locanto-red);
  box-shadow: 0 2px 6px rgba(230,0,80,0.25);
}

/* Breadcrumbs Bar */
.locanto-breadcrumbs-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.locanto-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.locanto-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.locanto-breadcrumbs a:hover {
  color: var(--locanto-blue);
  text-decoration: underline;
}

.locanto-breadcrumbs span.sep { color: #cbd5e1; }
.locanto-breadcrumbs span.current { color: var(--text-primary); font-weight: 600; }

/* Results Header */
.locanto-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-5) 0 var(--space-4);
}

.locanto-results-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.locanto-results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Main Classified Feed Layout */
.feed-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.mobile-filter-toggle-wrap {
  display: none;
  margin-bottom: var(--space-4);
}

.btn-toggle-filters {
  width: 100%;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-toggle-filters:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

/* ============================================================
   AUTH PAGES (Login, Register, Forgot Password)
   ============================================================ */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - var(--nav-height));
  padding: 32px 16px 64px;
  background: var(--bg-base);
  box-sizing: border-box;
}

.auth-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-header .logo {
  width: 52px;
  height: 52px;
  background: var(--locanto-red);
  color: #ffffff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: var(--space-3);
  box-shadow: 0 4px 14px rgba(230,0,80,0.25);
}

.auth-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Auth Role Switcher Tabs (Client vs Therapist) */
.tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--locanto-red);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-weight: 700;
}

/* ============================================================
   FORMS & INPUT CONTROLS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--locanto-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check input[type="checkbox"], .form-check input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--locanto-red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--locanto-red);
  color: #ffffff !important;
  border-color: var(--locanto-red);
}

.btn-primary:hover {
  background: var(--locanto-red-hover);
  border-color: var(--locanto-red-hover);
}

.btn-secondary {
  background: var(--locanto-blue);
  color: #ffffff !important;
  border-color: var(--locanto-blue);
}

.btn-secondary:hover {
  background: var(--locanto-blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--locanto-red);
  border-color: var(--locanto-red);
}

.btn-outline:hover {
  background: var(--locanto-red-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
}

.btn-ghost:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   CLASSIFIED ADS FEED (Locanto Rows)
   ============================================================ */
.locanto-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.locanto-ad-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  color: inherit;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.locanto-ad-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

.locanto-ad-row.featured {
  border-left: 4px solid var(--locanto-red);
}

.locanto-ad-thumb {
  width: 230px;
  min-width: 230px;
  height: 165px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.locanto-ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.locanto-ad-row:hover .locanto-ad-thumb img {
  transform: scale(1.04);
}

.locanto-photo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.locanto-vip-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e60050 0%, #ff3366 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(230, 0, 80, 0.35);
}

.locanto-ad-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.locanto-ad-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: 6px;
}

.locanto-ad-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  transition: color 0.15s;
  letter-spacing: -0.2px;
}

.locanto-ad-title:hover {
  color: var(--locanto-red);
  text-decoration: underline;
}

.locanto-ad-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #059669;
  white-space: nowrap;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.locanto-ad-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.locanto-ad-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.locanto-ad-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.locanto-ad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
}

.locanto-ad-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.locanto-mini-chip {
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.locanto-mini-chip:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.locanto-ad-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chat-now {
  background: #f0f7ff;
  color: #0066cc;
  border: 1.5px solid #b9d9ff;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-chat-now:hover {
  background: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  transform: translateY(-1px);
}

.btn-call-now {
  background: #25d366;
  color: #ffffff !important;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  text-decoration: none !important;
}

.btn-call-now:hover {
  background: #1eb956;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-fav-icon {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-fav-icon:hover {
  border-color: #e60050;
  color: #e60050;
  background: #fff0f3;
  transform: scale(1.05);
}

/* ============================================================
   SIDEBAR FILTERS
   ============================================================ */
.locanto-sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.locanto-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  cursor: pointer;
}

/* ============================================================
   CARDS & COMMON CONTAINERS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: var(--space-5);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* ============================================================
   PUBLIC THERAPIST PROFILE COMPONENTS
   ============================================================ */
.profile-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.profile-avatar-wrap img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.rate-row .price {
  font-weight: 700;
  color: var(--locanto-red);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  height: 105px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================================
   INTERACTIVE CHAT MODAL
   ============================================================ */
.locanto-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.locanto-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.locanto-modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.locanto-modal-overlay.open .locanto-modal-content {
  transform: translateY(0);
}

.locanto-modal-header {
  padding: var(--space-4) var(--space-5);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.locanto-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chat-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-3) 0 var(--space-4);
}

.chat-prompt-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.chat-prompt-chip:hover {
  background: var(--locanto-red-light);
  border-color: var(--locanto-red);
  color: var(--locanto-red);
}

/* ============================================================
   ALERTS, BADGES, STARS, TABLES, FOOTER
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #bbf7d0; }
.alert-danger, .alert-error { background: var(--error-light); color: var(--error); border: 1px solid #fecaca; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-gold { background: #fef3c7; color: #b45309; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #475569; }

.stars { color: #f59e0b; letter-spacing: 1px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-8);
}

.page-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--locanto-blue);
  color: #ffffff;
  border-color: var(--locanto-blue);
}

.locanto-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  margin-top: var(--space-12);
  padding: var(--space-8) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.locanto-footer a { color: var(--text-secondary); text-decoration: none; }
.locanto-footer a:hover { color: var(--locanto-blue); text-decoration: underline; }

.contact-layout {
  grid-template-columns: 1.4fr 1fr;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (Desktop, Tablet & Mobile Breakdown)
   ============================================================ */

/* ---- Large Tablets & Small Desktops (<= 1024px) ---- */
@media (max-width: 1024px) {
  .feed-layout {
    grid-template-columns: 240px 1fr !important;
    gap: var(--space-4) !important;
  }
  .profile-content {
    grid-template-columns: 1fr 300px;
  }
  .stat-cards, .admin-stat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- Standard Tablets & Small Screens (<= 860px) ---- */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  .feed-layout {
    grid-template-columns: 1fr !important;
  }
  .mobile-filter-toggle-wrap {
    display: block;
  }
  .feed-sidebar {
    display: none;
    margin-bottom: var(--space-4);
  }
  .feed-sidebar.open {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
  }
  .profile-content {
    grid-template-columns: 1fr;
  }
  .locanto-ad-row {
    flex-direction: column;
  }
  .locanto-ad-thumb {
    width: 100%;
    min-width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
  }
  .locanto-search-bar {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
  .locanto-top-row {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 10px;
  }
  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px var(--space-4);
  }
  .navbar-nav {
    display: none; /* Collapses on mobile */
  }
}

/* ---- Mobile Phones (<= 640px) ---- */
@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
  }

  body {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 12px;
  }

  /* Grid collapse */
  .grid-2, .grid-3, .grid-4, .spec-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Auth Box & Pages */
  .auth-page {
    padding: 16px 12px 48px !important;
    min-height: auto;
  }
  .auth-box {
    padding: 22px 16px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  }
  .auth-header {
    margin-bottom: var(--space-4);
  }
  .auth-header .logo {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border-radius: 10px;
  }
  .auth-header h1 {
    font-size: 1.4rem !important;
  }
  .auth-header p {
    font-size: 0.85rem;
  }
  .tabs {
    gap: 4px;
    padding: 4px;
    margin-bottom: var(--space-4) !important;
  }
  .tab-btn {
    padding: 9px 8px !important;
    font-size: 0.84rem !important;
  }

  /* Form Elements */
  .form-control {
    font-size: 0.95rem; /* Prevents auto-zoom on iOS safari */
    padding: 9px 12px;
  }
  .form-group {
    margin-bottom: var(--space-3);
  }

  /* Header & Navigation */
  .navbar-actions span {
    display: none !important;
  }
  .navbar-actions .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  .locanto-brand .locanto-logo-text {
    font-size: 1.15rem;
  }
  .locanto-city-pill {
    padding: 4px 8px;
    font-size: 0.76rem;
  }
  .btn-post-ad {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
  }
  .locanto-action-link {
    font-size: 0.78rem;
    padding: 4px 6px;
  }
  .locanto-actions {
    gap: 4px;
  }

  /* Locanto Search Bar */
  .locanto-search-bar {
    margin-top: 6px;
  }
  .locanto-search-input {
    font-size: 0.82rem;
    padding: 8px 10px;
    min-width: 0;
  }
  .locanto-search-city-select {
    max-width: 95px;
    font-size: 0.75rem;
    padding: 8px 4px;
  }
  .locanto-search-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  /* Classified Ads Feed */
  .locanto-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: var(--space-3) 0;
  }
  .locanto-results-title {
    font-size: 1.2rem;
  }
  .locanto-ad-thumb {
    height: 175px;
  }
  .locanto-ad-top {
    flex-direction: column;
    gap: 4px;
  }
  .locanto-ad-title {
    font-size: 1.05rem;
  }
  .locanto-ad-price {
    font-size: 1.15rem;
  }
  .locanto-ad-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
  }
  .locanto-ad-buttons {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .locanto-ad-buttons .btn-chat-now,
  .locanto-ad-buttons .btn-call-now {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  /* Profile page */
  .profile-hero .container > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .profile-avatar-wrap img {
    width: 110px !important;
    height: 110px !important;
  }
  .profile-badges {
    justify-content: center !important;
  }

  /* Modal */
  .locanto-modal-card {
    width: 94vw !important;
    max-width: 94vw !important;
    margin: 16px auto !important;
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Stats cards */
  .stat-cards, .admin-stat-cards {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .locanto-footer .container {
    text-align: center;
  }
  .locanto-footer .container > div {
    flex-direction: column !important;
    gap: var(--space-3) !important;
    align-items: center !important;
  }
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
