<?php
/**
 * Site-wide configuration. Edit these values for your environment.
 * On cPanel, set DB_* from the MySQL database you create in the cPanel dashboard.
 */

// --- Database ---
define('DB_HOST', getenv('KY_DB_HOST') ?: 'localhost');
define('DB_NAME', getenv('KY_DB_NAME') ?: 'kigaliyacu');
define('DB_USER', getenv('KY_DB_USER') ?: 'root');
define('DB_PASS', getenv('KY_DB_PASS') ?: '');

// --- Site identity ---
define('SITE_NAME', 'Kigali Yacu Properties');
define('SITE_TAGLINE', 'Rwanda\'s Premier Luxury Real Estate Marketplace');
define('SITE_URL', getenv('KY_SITE_URL') ?: 'https://kigaliyacuproperty.co.rw');
define('SITE_PHONE', '+250 788 217102');
define('SITE_PHONE_TEL', '+250788217102');
define('SITE_WHATSAPP', '250788217102');
define('SITE_EMAIL', 'info@kigaliyacuproperty.co.rw');
define('SITE_ADDRESS', 'KG 7 Ave, Kigali, Rwanda');
define('SITE_CITY', 'Kigali');
define('SITE_COUNTRY', 'Rwanda');

// --- Social ---
define('SOCIAL_FACEBOOK', 'https://facebook.com/kigaliyacuproperty');
define('SOCIAL_INSTAGRAM', 'https://instagram.com/kigaliyacuproperty');
define('SOCIAL_LINKEDIN', 'https://linkedin.com/company/kigaliyacuproperty');
define('SOCIAL_TWITTER', 'https://x.com/kigaliyacuprop');
define('SOCIAL_YOUTUBE', 'https://youtube.com/@kigaliyacuproperty');

// --- Third-party (optional; site degrades gracefully if empty) ---
define('GOOGLE_MAPS_API_KEY', getenv('KY_GOOGLE_MAPS_KEY') ?: '');

// --- Misc ---
define('CURRENCY_DEFAULT', 'RWF');
define('ITEMS_PER_PAGE', 9);
define('ADMIN_SESSION_NAME', 'ky_admin_session');

error_reporting(E_ALL);
ini_set('display_errors', getenv('KY_DEBUG') ? '1' : '0');
date_default_timezone_set('Africa/Kigali');
