/*
Theme Name: Sahel Real Estate - حجوزات وبيع شاليهات الساحل الشمالي
Theme URI: https://sahel-realestate.com
Author: Sahel Real Estate
Author URI: https://sahel-realestate.com
Description: ثيم مخصص لموقع حجوزات وإيجار وبيع شاليهات وفيلات الساحل الشمالي — يدعم حجز إلكتروني كامل مع تأكيد من لوحة التحكم.
Version: 1.0.0
License: GPLv2 or later
Text Domain: sahel-realestate
Requires PHP: 7.3
*/

:root {
    --sahel-primary: #0d6efd;
    --sahel-accent: #20c997;
    --sahel-dark: #0f172a;
    --sahel-light: #f8fafc;
    --sahel-border: #e2e8f0;
}

/* RTL Base */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: var(--sahel-dark);
}

a {
    text-decoration: none;
}

.site-content {
    min-height: calc(100vh - 200px);
}

/* Buttons */
.btn-sahel-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-sahel-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* Cards */
.property-card {
    border: 1px solid var(--sahel-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.property-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-card-body {
    padding: 1.25rem;
}

.property-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--sahel-dark);
}

.property-card-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Calendar availability */
.calendar-day {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--sahel-border);
    border-radius: 0.375rem;
    margin: 2px;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.calendar-day.available {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.calendar-day.booked {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.past {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.selected {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    font-weight: 700;
}

/* Form */
.sahel-form .form-label {
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.sahel-form .form-control,
.sahel-form .form-select {
    border: 1px solid var(--sahel-border);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Tabs */
.nav-tabs.sahel-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin-left: 0.5rem;
}

.nav-tabs.sahel-tabs .nav-link.active {
    color: var(--sahel-primary);
    border-bottom: 3px solid var(--sahel-primary);
}

/* Utility */
.text-sahel-primary { color: var(--sahel-primary); }
.bg-sahel-light { background: var(--sahel-light); }
.rounded-sahel { border-radius: 0.75rem; }
