/* =====================================================
   سایت اجاره ویلا — استایل اصلی
   رنگ اصلی: #0F4C5C  |  تاکید: #E9A23B
   ===================================================== */

:root {
    --vc-primary: #0F4C5C;
    --vc-accent: #E9A23B;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: #f6f8f9;
    color: #21333a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.site-navbar {
    background: var(--vc-primary) !important;
    box-shadow: 0 2px 12px rgba(15, 76, 92, .25);
}
.site-navbar .navbar-brand { font-size: 1.15rem; }
.site-navbar .nav-link { min-height: 44px; display: flex; align-items: center; padding: .5rem .8rem !important; }
.site-navbar .nav-link.active { font-weight: 700; }

.impersonate-bar { font-weight: 700; z-index: 1030; }

/* ---------- دکمه‌ها ---------- */
.btn { border-radius: 50rem; min-height: 44px; padding: .5rem 1.3rem; }
.btn-sm { min-height: 34px; padding: .3rem .9rem; }
.btn-primary {
    --bs-btn-bg: var(--vc-primary);
    --bs-btn-border-color: var(--vc-primary);
    --bs-btn-hover-bg: #0c3d4a;
    --bs-btn-hover-border-color: #0c3d4a;
    --bs-btn-active-bg: #0a3440;
    --bs-btn-active-border-color: #0a3440;
}
.btn-accent {
    background: var(--vc-accent);
    border: 1px solid var(--vc-accent);
    color: #2b1d05;
    font-weight: 700;
}
.btn-accent:hover { background: #d9922b; color: #2b1d05; }

/* ---------- کارت‌ها ---------- */
.card { border: 0; border-radius: 1rem; box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.card-header { background: var(--vc-primary); color: #fff; font-weight: 700; border-radius: 1rem 1rem 0 0 !important; }

.page-title {
    color: var(--vc-primary);
    font-weight: 800;
    position: relative;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}
.page-title::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 70px; height: 4px;
    background: var(--vc-accent);
    border-radius: 4px;
}

/* ---------- کارت ویلا (گرید عمومی) ---------- */
.villa-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.villa-card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0, 0, 0, .13); }
.villa-card .villa-thumb {
    height: 210px;
    background: linear-gradient(135deg, var(--vc-primary), #17708a);
    object-fit: cover;
    width: 100%;
}
.villa-card .card-body { padding: 1rem 1.15rem 1.25rem; }
.villa-card .villa-title { font-weight: 800; color: var(--vc-primary); font-size: 1.05rem; }
.villa-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--vc-primary);
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 50rem;
}

/* ---------- صفحه ویلا ---------- */
.villa-hero-wrap { border-radius: 1.25rem; overflow: hidden; box-shadow: 0 12px 40px rgba(15, 76, 92, .18); }
.villa-hero { height: 360px; object-fit: cover; width: 100%; display: block;
    background: linear-gradient(135deg, var(--vc-primary), #17708a); }
.villa-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,.65) 100%);
}
.villa-hero-content {
    position: absolute; bottom: 0; right: 0; left: 0;
    padding: 2rem 2.25rem;
    color: #fff;
}
.villa-hero-title {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.villa-hero-location {
    font-size: .95rem;
    opacity: .95;
    display: flex;
    align-items: center;
    gap: .5rem;
}
@media (max-width: 768px) {
    .villa-hero { height: 280px; }
    .villa-hero-content { padding: 1.25rem 1.5rem; }
    .villa-hero-title { font-size: 1.6rem; }
}
.gallery-thumb { border-radius: .75rem; overflow: hidden; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-thumb img { height: 92px; width: 100%; object-fit: cover; transition: transform .25s; }
.gallery-thumb:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.gallery-thumb:hover img { transform: scale(1.08); }

.price-table th { background: linear-gradient(90deg, var(--vc-primary), #17708a); color: #fff; border: none; }
.price-table td { vertical-align: middle; border-color: #f1f5f9; }
.price-table tr:hover td { background: #f8fafc; }

.villa-page .card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 76, 92, .08);
    box-shadow: 0 8px 30px rgba(15, 76, 92, .06);
    overflow: hidden;
}
.villa-page .card-header {
    background: linear-gradient(90deg, var(--vc-primary), #17708a);
    border: none;
    padding: .9rem 1.25rem;
    font-size: .98rem;
}

.sticky-contact .btn {
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.sticky-contact {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    padding: .55rem .75rem;
    z-index: 1040;
    display: none;
}
@media (max-width: 767.98px) {
    .sticky-contact { display: flex; gap: .5rem; }
    body.has-sticky-contact { padding-bottom: 70px; }
}

/* ---------- جداول پنل ---------- */
.table thead th { background: var(--vc-primary); color: #fff; white-space: nowrap; }
.table td { vertical-align: middle; }
.code-chip {
    font-family: monospace;
    background: #e8f2f5;
    color: var(--vc-primary);
    padding: .2rem .6rem;
    border-radius: .5rem;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
}

/* ---------- FullCalendar شمسی ---------- */
.fc { font-family: 'Vazirmatn', Tahoma, sans-serif; }
.fc .fc-toolbar-title { font-size: 1.25rem !important; font-weight: 800; color: var(--vc-primary); }
.fc-direction-rtl .fc-button-primary {
    background: var(--vc-primary); border-color: var(--vc-primary);
}
.fc-direction-rtl .fc-button-primary:not(:disabled):active,
.fc-direction-rtl .fc-button-primary:not(:disabled).fc-button-active {
    background: #0a3440 !important; border-color: #0a3440 !important;
}
.fc .fc-button { border-radius: 50rem; padding: .35rem .9rem; font-size: .85rem; }
.fc-col-header-cell {
    background: #0F4C5C !important;
    color: #fff !important;
    padding: 8px 4px;
}
.fc-col-header-cell-cushion { color: #fff !important; font-weight: 600; }
.fc-daygrid-day-number {
    font-size: 1rem !important;
    font-weight: 600;
    padding: 6px !important;
    color: #21333a;
    position: relative;
    z-index: 2;
}
.fc-daygrid-day.fc-day-today .fc-daygrid-day-frame { background: rgba(233, 162, 59, .18); border-radius: .5rem; }
.fc-day-other .fc-daygrid-day-number { color: #adb5bd !important; }
.fc .fc-daygrid-day-frame { position: relative; }
.fc .fc-daygrid-day-events { position: absolute; inset: 0; margin: 0; z-index: 1; }
.fc .fc-daygrid-event-harness { position: absolute; inset: 0; margin: 0 !important; }
.fc .fc-daygrid-event {
    position: absolute;
    inset: 0;
    margin: 0 !important;
    border-radius: .5rem;
    border: none !important;
}
.fc .fc-daygrid-block-event .fc-event-main { display: none; }
.fc .fc-bg-event {
    opacity: 1;
    border-radius: .5rem;
}
.fc-event.fc-event-blocked { background: rgba(108,117,125,0.18) !important; border-color: transparent !important; }
.fc-event { border-radius: .5rem; font-size: .75rem; cursor: pointer; }
.fc-h-event .fc-event-title { font-weight: 700; }
.fc .fc-scrollgrid { border-radius: .75rem; overflow: hidden; border-color: #dee2e6; }

@media (max-width: 576px) {
    .fc-daygrid-day-number { font-size: .95rem !important; }
    .fc-toolbar-title { font-size: 1.1rem !important; }
    .page-title { font-size: 1.35rem; }
}

/* ---------- متفرقه ---------- */
.ltr { direction: ltr; text-align: left; display: inline-block; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #8a9aa2; }
.empty-state .icon { font-size: 3rem; }
.placeholder-img {
    background: linear-gradient(135deg, var(--vc-primary), #17708a);
    color: rgba(255, 255, 255, .85);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem;
    border-radius: 1rem;
}
.badge-soft-success { background: #d9efe4; color: #14663f; }
.badge-soft-danger { background: #fbe1e1; color: #a12121; }
