/*
Theme Name: Value Home Egypt
Theme URI: https://valuehome-eg.com/
Author: Value Home Real Estate Advisors
Author URI: https://valuehome-eg.com/
Description: قالب ووردبريس عقاري مخصص وسريع لشركة فاليو هوم مصر (Value Home Egypt) - يدعم إدارة المدن والمناطق، اللغتين العربية والإنجليزية، الخريطة التفاعلية، حاسبة الأقساط، وربط Google Apps Script CRM.
Version: 1.9.9
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: value-home
*/

body {
  font-family: 'Cairo', sans-serif;
}
html[dir="ltr"] body {
  font-family: 'Inter', sans-serif;
}
.hero-bg {
  background: linear-gradient(rgba(1, 33, 105, 0.80), rgba(0, 20, 61, 0.90)),
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 9999px;
}
.custom-pin-wrapper {
  background: transparent !important;
  border: none !important;
}
.custom-price-pin {
  position: relative;
  transform: translate(-50%, -100%);
  background: #012169;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #C5A059;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.custom-price-pin:hover, .custom-price-pin.active-pin {
  background: #C5A059;
  color: #012169;
  transform: translate(-50%, -100%) scale(1.1);
  z-index: 1000 !important;
}
.leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4;
}
.map-listing-scroll::-webkit-scrollbar {
  width: 5px;
}
.map-listing-scroll::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}
.ltr-space {
  display: inline-block;
  direction: ltr;
}
body.admin-bar header.sticky {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar header.sticky {
    top: 46px;
  }
}

/* Custom Logo Size Enforcement (Overrides Tailwind Preflight) */
header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
header img.custom-logo,
header .vh-site-logo {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
}
@media (min-width: 1024px) {
  header img.custom-logo,
  header .vh-site-logo {
    height: 62px !important;
    max-height: 62px !important;
  }
}

.vh-primary-menu > li > a,
.vh-mobile-menu > li > a {
  display: block;
  padding: 0.5rem 0;
  color: inherit;
  transition: color 0.2s;
}
.vh-primary-menu > li > a:hover,
.vh-primary-menu > li.current-menu-item > a,
.vh-mobile-menu > li > a:hover,
.vh-mobile-menu > li.current-menu-item > a {
  color: #012169;
}
.vh-primary-menu li {
  position: relative;
}
.vh-primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 60;
  min-width: 210px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}
.vh-primary-menu li:hover > .sub-menu,
.vh-primary-menu li:focus-within > .sub-menu {
  display: block;
}
.vh-primary-menu .sub-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #334155;
  font-size: 0.875rem;
}
.vh-primary-menu .sub-menu a:hover,
.vh-primary-menu .sub-menu .current-menu-item > a {
  background: #f1f5f9;
  color: #012169;
}
.vh-mobile-menu .sub-menu {
  margin: 0.25rem 0 0.5rem 0.75rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid #e2e8f0;
}
.vh-mobile-menu .sub-menu a {
  display: block;
  padding: 0.375rem 0;
  color: #475569;
  font-size: 0.875rem;
}
.vh-footer-menu a {
  color: #cbd5e1;
  transition: color 0.2s;
}
.vh-footer-menu a:hover,
.vh-footer-menu .current-menu-item > a {
  color: #ffffff;
}
