/*
Theme Name: Rudved Classifieds
Theme URI: https://rudvedclassifieds.in
Author: Rudved Tech
Author URI: https://rudvedclassifieds.in
Description: A modern, high-performance, production-ready Native WordPress Real Estate & Classifieds Theme for India. Features custom post types, custom taxonomies, live AJAX search and filtering, interactive EMI mortgage calculator, gallery slider, verified badge system, Schema.org RealEstateListing SEO structured data, and a full property edit & admin review workflow.
Version: 2.7.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rudved-classifieds
Tags: real-estate, classifieds, grid-layout, custom-post-types, custom-menu, featured-images, translation-ready, full-width-template
*/

/* Core CSS Custom Properties */
:root {
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --color-primary: #0052cc;
  --color-primary-dark: #00388c;
  --color-primary-light: #e6f0ff;
  
  --color-accent: #ff9800;
  --color-accent-hover: #e68a00;
  --color-accent-yellow: #ffb703;
  --color-accent-amber: #f59e0b;
  
  --color-dark-950: #07132b;
  --color-dark-900: #07152d;
  --color-dark-800: #0f172a;
  --color-dark-700: #1e293b;
  
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --transition-normal: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Housing.com Map & Explore Neighbourhood Component Styles */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.map-poi-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.map-poi-tab:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.map-poi-tab.active {
  background-color: #0052cc;
  border-color: #0052cc;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}

.map-poi-tab.active svg {
  color: #ffffff !important;
}

.map-poi-tab.active .map-poi-count {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.poi-place-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poi-place-card:hover, .poi-place-card.active {
  border-color: #3b82f6;
  background-color: #eff6ff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

/* Custom Marker Pins */
.custom-poi-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}
.custom-poi-marker:hover {
  transform: scale(1.2);
  z-index: 999 !important;
}

/* Single Property Map Height Override */
#mapPreviewContainer,
#singlePropertyInteractiveMap,
#singlePropertyInteractiveMap .leaflet-container {
  height: 500px !important;
  min-height: 500px !important;
  width: 100% !important;
}

/* ==========================================================================
   Admin Bar Visibility: Restrict #wpadminbar to Administrators Only
   ========================================================================== */
body:not(.rudved-admin-user) #wpadminbar,
body.rudved-non-admin #wpadminbar,
body:not(.admin-bar) #wpadminbar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  pointer-events: none !important;
}

body:not(.rudved-admin-user),
body.rudved-non-admin,
body:not(.admin-bar) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html:not(.rudved-admin-html) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================================================
   Admin Moderation & Sold Preview Banners
   ========================================================================== */
#adminApprovalBanner,
.rudved-admin-approval-banner {
  background: linear-gradient(135deg, #b45309 0%, #ea580c 50%, #d97706 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #78350f !important;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4) !important;
  position: relative;
  z-index: 50;
}

#adminSoldBanner,
.rudved-admin-sold-banner {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 50%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #881337 !important;
  box-shadow: 0 10px 25px -5px rgba(190, 18, 60, 0.4) !important;
  position: relative;
  z-index: 50;
}

/* Content Image Styling inside About This Property */
.rudved-content-image {
  margin: 32px auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

.rudved-content-image img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Dashboard Action Buttons & Workflow Badges
   ========================================================================== */
.btn-edit-resubmit {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  background-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
  border: 1px solid rgba(234, 88, 12, 0.3) !important;
}
.btn-edit-resubmit:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%) !important;
  background-color: #d97706 !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45) !important;
  transform: translateY(-1px);
}

.btn-edit-standard {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
}
.btn-edit-standard:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
  background-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px);
}

.btn-approve-republish {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  background-color: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
}
.btn-approve-republish:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
  background-color: #6d28d9 !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45) !important;
  transform: translateY(-1px);
}

/* Violet Utility Classes for Workflow Banners & Badges */
.bg-violet-50 { background-color: #f5f3ff !important; }
.bg-violet-100 { background-color: #ede9fe !important; }
.bg-violet-600 { background-color: #7c3aed !important; }
.bg-violet-700 { background-color: #6d28d9 !important; }
.bg-violet-800 { background-color: #5b21b6 !important; }
.hover\:bg-violet-700:hover { background-color: #6d28d9 !important; }
.text-violet-600 { color: #7c3aed !important; }
.text-violet-800 { color: #5b21b6 !important; }
.text-violet-900 { color: #4c1d95 !important; }
.border-violet-200 { border-color: #ddd6fe !important; }
.border-violet-300 { border-color: #c4b5fd !important; }

/* ----------------------------------------------------
   Google Location Search Bar & Places Autocomplete
   ---------------------------------------------------- */
.google-search-bar-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 1rem !important;
  padding: 0.35rem 0.5rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}
.google-search-bar-wrap:hover {
  border-color: #94a3b8 !important;
}
.google-search-bar-wrap:focus-within {
  border-color: #0052cc !important;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.15) !important;
}
#googleLocationSearchBar {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  padding: 0 0.5rem !important;
  line-height: normal !important;
}
#googleLocationSearchBar::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 999999 !important;
  background-color: #ffffff !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid #e2e8f0 !important;
  font-family: inherit !important;
  margin-top: 6px !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
}
.pac-item {
  padding: 10px 14px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
}
.pac-item:first-child {
  border-top: none !important;
}
.pac-item:hover, .pac-item-selected {
  background-color: #eff6ff !important;
}
.pac-item-query {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0052cc !important;
  padding-right: 4px !important;
}
.pac-matched {
  font-weight: 800 !important;
  color: #0f172a !important;
}
.pac-icon {
  margin-top: 2px !important;
  margin-right: 8px !important;
}




