/* assets/css/style.css */

:root {
    --primary-blue: #009FE3; /* התכלת של הכפתורים */
    --dark-blue: #32587D; /* צבע הפוטר והרקע של ההאדר */
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #F7F7F7;
    --red-badge: #E33535;
    --font-main: 'Heebo', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); direction: rtl; text-align: right; background-color: #fff; color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.bg-white { background-color: #fff; }
.bg-light-gray { background-color: var(--bg-light); padding-bottom: 80px; }

/* --- Header --- */
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(50, 88, 125, 0.85); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.header-social-user { display: flex; align-items: center; gap: 20px; font-size: 1.1rem; }
.social-icons { display: flex; gap: 15px; }
.social-icons a:hover, .user-login:hover { color: var(--primary-blue); }
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 500; font-size: 1rem; color: #fff; }
.main-nav a:hover { color: var(--primary-blue); }
.header-contact-logo { display: flex; align-items: center; gap: 40px; }
.header-phone { font-size: 1.1rem; font-weight: 500; }
.logo-text { font-size: 1.8rem; line-height: 1; font-weight: 800; text-align: center; border: 1px solid #fff; padding: 5px 10px; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero-section { position: relative; height: 600px; background: url('../images/hero-bg.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 90px; color: #fff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(50,88,125,0.7) 0%, rgba(50,88,125,0.4) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-content h1 { font-size: 3rem; font-weight: 600; margin-bottom: 15px; }
.hero-content p { font-size: 1.2rem; font-weight: 400; line-height: 1.5; margin-bottom: 40px; }

/* Search Form */
.search-box { background: #fff; border-radius: 4px; padding: 5px; display: inline-block; width: 100%; max-width: 800px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 15px; }
.main-search-form { display: flex; width: 100%; }
.search-field { flex: 1; border-left: 1px solid #eee; padding: 0 10px; }
.search-field:nth-child(3) { border-left: none; }
.search-field select, .search-field input { width: 100%; height: 45px; border: none; outline: none; font-family: var(--font-main); font-size: 1rem; color: var(--text-dark); background: transparent; }
.search-button .btn-blue { height: 45px; padding: 0 30px; background: var(--primary-blue); color: #fff; border: none; font-weight: 600; font-size: 1rem; border-radius: 2px; cursor: pointer; transition: var(--transition); }
.search-button .btn-blue:hover { background: #0081b8; }
.advanced-search-btn { background: none; border: none; color: #fff; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 5px; margin: 0 auto; opacity: 0.9; }

/* --- Properties Section --- */
.properties-section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; color: #222; margin-bottom: 40px; }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.property-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid #eaeaea; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-image { position: relative; height: 220px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-exclusive { position: absolute; top: 15px; right: 15px; background: var(--red-badge); color: #fff; padding: 5px 12px; font-size: 0.85rem; font-weight: 600; border-radius: 20px; z-index: 2; }
.card-content { padding: 25px; text-align: center; }
.card-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: #000; }
.property-meta { display: flex; justify-content: center; gap: 15px; color: var(--text-gray); font-size: 0.9rem; margin-bottom: 25px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; }
.property-meta span i { color: var(--primary-blue); margin-left: 5px; }
.btn-outline-blue { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-blue); color: #fff; padding: 8px 20px; border-radius: 4px; font-weight: 500; font-size: 0.95rem; }
.btn-outline-blue:hover { background: #0081b8; }

/* Carousel Controls & Buttons */
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.nav-arrow { background: none; border: none; color: var(--primary-blue); font-size: 1.5rem; cursor: pointer; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.dot.active { background: var(--primary-blue); }
.btn-blue-solid { display: inline-block; background: var(--primary-blue); color: #fff; padding: 12px 30px; border-radius: 4px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 10px rgba(0,159,227,0.3); }
.z-index-fix { position: relative; z-index: 5; margin-bottom: -110px; } /* משיכת הכפתור מעל השירותים */

/* --- Services Row (Bottom 5 Images) --- */
.services-row { display: flex; width: 100%; height: 250px; }
.service-box { flex: 1; background-position: center; background-size: cover; position: relative; overflow: hidden; border-left: 2px solid #fff; }
.service-box:last-child { border-left: none; }
.service-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-align: center; transition: var(--transition); }
.service-overlay h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-blue); }
.service-overlay p { font-size: 0.8rem; line-height: 1.4; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.service-box:hover .service-overlay p { opacity: 1; transform: translateY(0); }
.service-box:hover .service-overlay { background: rgba(0,0,0,0.8); }

/* --- Footer --- */
.site-footer { background-color: var(--dark-blue); color: #fff; padding: 60px 0 20px; margin-top: auto; position: relative; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 30px; text-align: right; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.95rem; opacity: 0.9; }
.footer-col ul a:hover { opacity: 1; color: var(--primary-blue); }
.footer-logo-col { text-align: left; display: flex; flex-direction: column; align-items: flex-end; }
.footer-logo-col .logo-text { font-size: 2rem; margin-bottom: 15px; border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.7); }
.footer-logo-col p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 5px; }

/* Floating Buttons */
.floating-whatsapp { position: fixed; bottom: 30px; left: 30px; background: #25D366; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 999; }
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary-blue); color: #fff; width: 40px; height: 40px; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; cursor: pointer; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 999; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .services-row { flex-wrap: wrap; height: auto; }
    .service-box { flex: 0 0 50%; height: 200px; border-bottom: 2px solid #fff; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-social-user, .header-phone { display: none; }
    .mobile-toggle { display: block; }
    .main-nav { display: none; /* JS will toggle active class */ }
    .hero-content h1 { font-size: 2rem; }
    .main-search-form { flex-direction: column; }
    .search-field { border-left: none; border-bottom: 1px solid #eee; }
    .properties-grid { grid-template-columns: 1fr; }
    .service-box { flex: 0 0 100%; border-left: none; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-col { align-items: center; margin-top: 30px; }
}