/*
Theme Name: Newtonian Realx
Theme URI: https://newtonianrealx.com
Description: A modern WordPress theme for real estate listings with beautiful property displays, advanced search, and Elementor integration. Perfect for real estate agencies, property marketplaces, and multi-tenant platforms. Fully multilingual with RTL support.
Version: 1.0.6
Author: Newtoxton
Author URI: https://newtonianrealx.com
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: newtonian-realx
Domain Path: /languages
Tags: real-estate, properties, elementor, multi-tenant, listings, rtl-language-support, translation-ready
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/
*/

/* ==========================================================================
   Typography - Import Fonts
   ========================================================================== */

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

/* Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-color: #2d3436;
  --text-light: #636e72;
  --bg-light: #f8f9fa;
  --border-color: #dfe6e9;
  --white: #ffffff;
  --black: #000000;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
  
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic Typography */
[lang="ar"],
[dir="rtl"],
.lang-ar,
.rtl-language {
  font-family: var(--font-arabic);
  line-height: 1.8;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.4;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

.main-navigation a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   Property Cards
   ========================================================================== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.property-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.property-card:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-4px);
}

.property-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.property-price {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-location {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-light);
}

.property-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Property Search & Filters
   ========================================================================== */

.property-search {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
}

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

/* ==========================================================================
   Single Property
   ========================================================================== */

.single-property {
  max-width: 1400px;
  margin: 2rem auto;
}

.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  height: 500px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.property-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.property-sidebar {
  position: sticky;
  top: 100px;
}

.agent-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.agent-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .property-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .property-details {
    grid-template-columns: 1fr;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
}
