/*
Theme Name:   Houzez Egypt Child
Theme URI:    https://example.com/houzez-egypt-child
Description:  Houzez Child Theme — تخصيصات السوق العقاري المصري (مطورين، كمبوندات، أنظمة سداد، واتساب، أرقام عربية، خريطة تفاعلية، تعديل نموذج الإضافة)
Author:       Mohamed
Author URI:   https://example.com
Template:     houzez
Version:      1.0.0
Text Domain:  houzez-egypt-child
*/

/* ===========================================================
   Houzez Egypt Child — Custom Styles
   =========================================================== */

/* RTL refinements for the Egyptian market */
.rtl .houzez-eg-section { text-align: right; }
.rtl .houzez-eg-section h3 { font-weight: 700; margin-bottom: 16px; }

/* Custom property fields display block */
.houzez-eg-section {
    margin: 30px 0;
    padding: 22px 24px;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 6px;
}
.houzez-eg-section h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #1f2937;
    border-bottom: 2px solid #2D6CDF;
    padding-bottom: 8px;
    display: inline-block;
}
.houzez-eg-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
}
.houzez-eg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px dashed #e7e7e7;
}
.houzez-eg-field-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.houzez-eg-field-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

/* Enhanced WhatsApp button */
.houzez-eg-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
.houzez-eg-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
    color: #fff !important;
}
.houzez-eg-whatsapp svg { width: 20px; height: 20px; fill: #fff; }

/* Search form additions */
.houzez-eg-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.houzez-eg-search-row .form-group {
    flex: 1 1 200px;
    min-width: 180px;
}
.houzez-eg-search-row select,
.houzez-eg-search-row input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
}

/* Interactive map shortcode */
.houzez-eg-map-wrap {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.houzez-eg-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}
.houzez-eg-map-filters select,
.houzez-eg-map-filters input {
    flex: 1 1 180px;
    min-width: 160px;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
}
.houzez-eg-map-filters button {
    height: 40px;
    padding: 0 22px;
    background: #2D6CDF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.houzez-eg-map-filters button:hover { background: #2358b8; }
.houzez-eg-map-canvas { width: 100%; height: 560px; }

/* Map info card */
.houzez-eg-map-card { font-family: inherit; min-width: 220px; }
.houzez-eg-map-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.houzez-eg-map-card .ttl { font-weight: 700; margin: 8px 0 4px; }
.houzez-eg-map-card .price { color: #2D6CDF; font-weight: 700; }
.houzez-eg-map-card .meta { font-size: 12px; color: #666; margin-top: 6px; }

/* Frontend submission additions */
.houzez-eg-submit-section {
    margin: 24px 0;
    padding: 18px 20px;
    background: #f9fafb;
    border-right: 4px solid #2D6CDF;
    border-radius: 4px;
}
.rtl .houzez-eg-submit-section { border-right: 4px solid #2D6CDF; border-left: 0; }
.houzez-eg-submit-section h4 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #1f2937;
}
.houzez-eg-submit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

/* Arabic numerals helper */
.houzez-eg-arabic-num { direction: ltr; display: inline-block; unicode-bidi: embed; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .houzez-eg-map-canvas { height: 380px; }
    .houzez-eg-fields-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .houzez-eg-fields-grid { grid-template-columns: 1fr; }
}
