/* ===== ShalehCom Theme ===== */
:root {
    --primary: #0077b6;
    --primary-light: #00b4d8;
    --primary-dark: #023e8a;
    --secondary: #f8f9fa;
    --accent: #ffd166;
    --ocean: #0096c7;
    --sand: #f4e4c1;
    --font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: #2E6DA4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

.form-control { background: #fff !important; color: #212529 !important; }

/* ===== Navbar ===== */
.navbar-custom {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0f2c4a 60%, #1a4a6e 100%) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.navbar-custom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00b4d8, #4facfe, #00b4d8, transparent);
    opacity: 0.6;
}

.navbar-custom .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-custom .nav-link:hover {
    color: white !important;
    text-shadow: 0 0 15px rgba(79,172,254,0.4);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #4facfe);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.navbar-custom .nav-link:hover::after {
    width: 80%;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: white !important;
    text-shadow: 0 2px 15px rgba(0,180,216,0.4);
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand i {
    font-size: 1.9rem;
    vertical-align: middle;
}

.lang-switch {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.3rem 0.8rem !important;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(5px);
}

.lang-switch:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #4facfe !important;
    box-shadow: 0 0 20px rgba(79,172,254,0.2);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 1000px;
    position: relative;
    overflow: hidden;
    background: url('/uploads/chalets/hero-photo.png') no-repeat center center / cover;
    box-shadow: inset 0 0 0 15px #0d2137;
    border-radius: 30px;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.05));
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath d='M0,0 C200,20 400,10 600,25 C800,40 1000,15 1200,30 C1350,40 1400,25 1440,30 L1440,60 L0,60 Z' fill='%230d2137' opacity='0.15'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}



/* ===== Chalet Section ===== */
.chalet-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(1px);
}

.chalet-section h2 {
    color: #e8f0fe;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.chalet-section .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

/* ===== Chalet Cards ===== */
.chalet-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: #000 !important;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.chalet-img {
    width: 100%;
    flex: 0 0 65%;
    object-fit: cover;
    min-height: 0;
}

.chalet-card .card-body {
    flex: 1 1 35%;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chalet-card .card-title {
    color: #fff;
}

.chalet-card .card-text {
    color: rgba(255,255,255,0.7) !important;
}

.chalet-specs i { color: var(--primary); }
.chalet-specs { color: rgba(255,255,255,0.7) !important; }

.chalet-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.chalet-price-large {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Professional Buttons ===== */
.btn-chalet {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,119,182,0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-chalet::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-chalet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,119,182,0.45);
    color: white;
}

.btn-chalet:hover::before {
    left: 100%;
}

.btn-chalet:active {
    transform: translateY(0);
}

.btn-chalet-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.4rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-chalet-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,119,182,0.3);
}

.btn-chalet-outline:active {
    transform: translateY(0);
}

.btn-chalet-ghost {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-chalet-ghost:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ===== Chalet Details ===== */
.chalet-detail-img { height: 400px; object-fit: cover; }
.sticky-sidebar { position: sticky; top: 20px; }

.specs-list li {
    padding: 0.4rem 0;
}

/* ===== Calendar Widget ===== */
.calendar-widget {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0f2c4a 60%, #1a4a6e 100%) !important;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.calendar-header .nav-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.calendar-header .month-year-display {
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 140px;
    text-align: center;
    color: #fff;
}

.calendar-header select {
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #0d2137;
    color: #fff;
    cursor: pointer;
}

.calendar-header .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
    background: transparent !important;
}

.calendar-header .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar-table th {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8f0fe;
    text-transform: uppercase;
}

.calendar-table td {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    width: 14%;
    color: #fff;
}

.calendar-table td.available {
    background: #2E6DA4;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
}

.calendar-table td.available:hover {
    background: #0d2137;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,86,179,0.3);
}

.calendar-table td.booked {
    background: #dc3545 !important;
    color: #fff !important;
    cursor: not-allowed;
    font-weight: 700;
}

.calendar-table td.today {
    background: #1a4a6e;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #4da3ff;
}

.calendar-table td.selected {
    background: #0d2137;
    color: #fff;
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(13,33,55,0.3);
}

.calendar-table td.selected:hover {
    background: #0f2c4a;
    color: #fff;
}

.calendar-table td.range-hover {
    background: #1a4a6e !important;
    color: #fff !important;
    font-weight: 600;
}

.calendar-table td.other-month {
    color: #dee2e6;
}

.calendar-table td.past {
    background: #e9ecef !important;
    color: rgba(0,0,0,0.25) !important;
    cursor: not-allowed;
    position: relative;
    font-weight: 400;
}
.calendar-table td.past::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    color: rgba(0,0,0,0.15);
    line-height: 1;
    pointer-events: none;
}

.thumb-img:hover {
    border-color: #007bff !important;
    transform: scale(1.05);
}

.thumb-active {
    border-color: #007bff !important;
    box-shadow: 0 0 8px rgba(0,123,255,0.4);
}

/* ===== Payment Options ===== */
.payment-option {
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary) !important;
    background: #f0f7ff;
}

/* ===== Features ===== */
.feature-icon i {
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0f2c4a 60%, #1a3a5c 100%);
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4facfe, #00b4d8, #4facfe, transparent);
    opacity: 0.5;
}

.footer h5 {
    color: #e8f0fe;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #4facfe);
    border-radius: 1px;
}

.footer a {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer a:hover {
    color: #4facfe !important;
    transform: translateX(3px);
    text-shadow: 0 0 10px rgba(79,172,254,0.3);
}

.footer hr {
    border-color: rgba(255,255,255,0.08) !important;
}

.footer .bi {
    color: #4facfe;
    filter: drop-shadow(0 0 5px rgba(79,172,254,0.3));
}

/* ===== Bubbles Animation ===== */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -60px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(79,172,254,0.4), rgba(0,180,216,0.15));
    border-radius: 50%;
    animation: rise 18s infinite ease-in;
    box-shadow: inset 0 -3px 8px rgba(255,255,255,0.2), 0 0 40px rgba(79,172,254,0.15);
}

.bubble:nth-child(1) { left: 8%; width: 65px; height: 65px; animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 18%; width: 100px; height: 100px; animation-duration: 20s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 30%; width: 55px; height: 55px; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 42%; width: 130px; height: 130px; animation-duration: 22s; animation-delay: 0.5s; }
.bubble:nth-child(5) { left: 55%; width: 75px; height: 75px; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 65%; width: 95px; height: 95px; animation-duration: 18s; animation-delay: 1.5s; }
.bubble:nth-child(7) { left: 78%; width: 70px; height: 70px; animation-duration: 13s; animation-delay: 2.5s; }
.bubble:nth-child(8) { left: 88%; width: 110px; height: 110px; animation-duration: 21s; animation-delay: 0.8s; }
.bubble:nth-child(9) { left: 50%; width: 85px; height: 85px; animation-duration: 15s; animation-delay: 4s; }
.bubble:nth-child(10) { left: 3%; width: 80px; height: 80px; animation-duration: 17s; animation-delay: 3.5s; }
.bubble:nth-child(11) { left: 15%; width: 60px; height: 60px; animation-duration: 19s; animation-delay: 1.2s; }
.bubble:nth-child(12) { left: 35%; width: 105px; height: 105px; animation-duration: 16s; animation-delay: 4.5s; }
.bubble:nth-child(13) { left: 48%; width: 50px; height: 50px; animation-duration: 23s; animation-delay: 2.8s; }
.bubble:nth-child(14) { left: 72%; width: 120px; height: 120px; animation-duration: 14s; animation-delay: 0.2s; }
.bubble:nth-child(15) { left: 95%; width: 75px; height: 75px; animation-duration: 20s; animation-delay: 5s; }

@keyframes rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    8% { opacity: 0.7; }
    40% { opacity: 0.5; }
    70% { opacity: 0.3; }
    100% { transform: translateY(-120vh) scale(1.3); opacity: 0; }
}

/* ===== Admin ===== */
.admin-navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ===== Responsive ===== */

/* Large tablets & small laptops */
@media (max-width: 992px) {
    .navbar-custom .navbar-brand { font-size: 1.5rem; }
    .navbar-custom .navbar-brand i { font-size: 1.6rem; }
    .hero-section { min-height: 600px; }
    .chalet-detail-img { height: 300px; }
    .admin-sidebar { width: 200px; min-width: 200px; }
}

/* Tablets (iPad, iPad Pro) */
@media (max-width: 820px) {
    .navbar-custom .nav-link { font-size: 1rem; padding: 0.4rem 0.8rem; }
    .hero-section { min-height: 600px; }
    .hero-section h1 { font-size: 2.2rem; }
    .chalet-detail-img { height: 280px; }
    .sticky-sidebar { position: static; }
    .footer .col-md-4 { margin-bottom: 1.5rem; }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
    .hero-section { min-height: 560px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 0.9rem; }
    .chalet-detail-img { height: 250px; }
    .navbar-custom .navbar-brand { font-size: 1.3rem; }
    .navbar-custom .navbar-brand i { font-size: 1.4rem; }
    .navbar-custom .nav-link { font-size: 0.95rem; padding: 0.3rem 0.6rem; }
    .chalet-card .card-body { padding: 1rem; }
    .chalet-card .card-title { font-size: 1.1rem; }
    .page-header { flex-direction: column; gap: 0.5rem; }
    .admin-content { padding: 1rem; }
    .admin-content .table thead { display: none; }
    .admin-content .table tbody tr { display: block; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.5rem; margin-bottom: 0.5rem; }
    .admin-content .table tbody td { display: flex; justify-content: space-between; border: none; padding: 0.3rem 0; font-size: 0.85rem; }
    .admin-content .table tbody td::before { content: attr(data-label); font-weight: 600; color: #6c757d; }
}

/* iPhones & Android phones */
@media (max-width: 576px) {
    .hero-section { min-height: 440px; }
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section p { font-size: 0.9rem; }
    .navbar-custom .container-fluid { padding: 0 0.5rem; }
    .navbar-custom .navbar-brand { font-size: 1.1rem; }
    .navbar-custom .navbar-brand i { font-size: 1.2rem; }
    .navbar-custom .nav-link { font-size: 0.9rem; padding: 0.3rem 0.5rem; }
    .chalet-detail-img { height: 200px; }
    .chalet-price-large { font-size: 1rem; }
    .chalet-card .card-body { padding: 0.8rem; }
    .chalet-card .card-title { font-size: 1rem; }
    .btn-chalet { padding: 0.4rem 1.2rem; font-size: 0.85rem; }
    .footer { text-align: center; }
    .footer h5::after { left: 50%; transform: translateX(-50%); }
    .footer .col-md-4 { margin-bottom: 1.5rem; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .page-header h2 { font-size: 1.2rem; }
    .stat-card h2 { font-size: 1.3rem; }
    .stat-card .stat-icon { font-size: 1.5rem; }
    .admin-content { padding: 0.75rem; }
}

/* Extra small phones (iPhone SE) */
@media (max-width: 375px) {
    .hero-section { min-height: 360px; }
    .hero-section h1 { font-size: 1.2rem; }
    .navbar-custom .navbar-brand { font-size: 1rem; }
    .navbar-custom .navbar-brand i { font-size: 1.1rem; }


    .chalet-card .card-body { padding: 0.6rem; }
    .btn-chalet { padding: 0.3rem 1rem; font-size: 0.8rem; }
}

/* iPhone notch / safe area support */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar-custom { padding-top: env(safe-area-inset-top); }
    .footer { padding-bottom: env(safe-area-inset-bottom); }
    .admin-body { padding-top: env(safe-area-inset-top); }
}

/* Touch-friendly: larger tap targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .navbar-custom .nav-link { padding: 0.6rem 1rem; }
    .btn-chalet, .btn-chalet-outline, .btn-chalet-ghost { padding: 0.6rem 1.5rem; }
    .chalet-card .btn-chalet { padding: 0.5rem 1.2rem; }
    .sidebar-nav .nav-link { padding: 0.8rem 1rem; }
    .admin-sidebar .nav-link { min-height: 44px; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card, .admin-content .card { background: #1e2532; color: #e0e0e0; }
    .card-body, .admin-content .card-body { background: #1e2532; }
    .admin-content .table thead th { background: #2a3040; color: #b0b8c8; }
    .admin-content .table { color: #e0e0e0; }
    .admin-content { background: #151a24; }
    .admin-content .card-header { background: #1e2532; border-color: #333; }
    .modal-content { background: #1e2532; color: #e0e0e0; }
    .form-control { background: #2a3040; border-color: #444; color: #e0e0e0; }
    .form-control:focus { background: #2a3040; color: #e0e0e0; }
    .calendar-widget { background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0f2c4a 60%, #1a4a6e 100%) !important; color: #fff; }
    .calendar-table th { color: #fff !important; }
    .calendar-table td { color: #fff !important; }
    .calendar-table td.available { background: #2E6DA4; color: #fff !important; }
    .calendar-table td.available:hover { background: #0d2137; color: #fff !important; }
    .calendar-table td.booked { background: #dc3545 !important; color: #fff !important; }
    .calendar-table td.today { background: #1a4a6e; color: #fff !important; box-shadow: inset 0 0 0 2px #4da3ff; }
    .calendar-table td.selected { background: #0d2137; color: #fff !important; }
    .calendar-table td.range-hover { background: #1a4a6e !important; color: #fff !important; }
    .calendar-table td.past { background: #e9ecef !important; color: rgba(0,0,0,0.25) !important; }
    .calendar-table td.past::after { color: rgba(0,0,0,0.15); }
    .calendar-header select { background: #0d2137; color: #fff; border-color: rgba(255,255,255,0.2); }
    .calendar-header .btn-outline-secondary { color: #fff !important; border-color: rgba(255,255,255,0.3) !important; background: transparent !important; }
    .calendar-header .btn-outline-secondary:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.5) !important; }
}

/* ===== RTL Specific Overrides ===== */
[dir="rtl"] .navbar-nav.me-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .navbar-brand { margin-right: 0 !important; }
[dir="rtl"] .navbar-toggler { margin-right: 0 !important; }
[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .text-start { text-align: right !important; }

/* ===== Advertisements Section ===== */
.advertisements-section {
    background: #2E6DA4;
    padding: 1rem 15px;
}

.advertisement-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 0 0 15px #0d2137, 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advertisement-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 15px #0d2137, 0 4px 16px rgba(0, 0, 0, 0.15);
}

.advertisement-content {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.advertisement-image {
    width: 100%;
    height: auto;
    max-height: 150px;
    display: block;
    object-fit: cover;
}

.advertisement-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

[dir="rtl"] .advertisement-close {
    right: auto;
    left: 12px;
}

.advertisement-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .advertisement-card {
        border-radius: 20px;
    }

    .advertisement-image {
        max-height: 105px;
    }

    .advertisement-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .dropdown-menu-end { right: auto; left: 0; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { content: "\\"; }

/* ===== Ad Popup Modal ===== */
.ad-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-popup-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ad-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

[dir="rtl"] .ad-popup-close {
    right: auto;
    left: 12px;
}

.ad-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.ad-popup-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.ad-popup-text {
    padding: 20px 24px;
}

.ad-popup-text h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #0d2137;
}

.ad-popup-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ad-popup-modal {
        max-width: 95%;
    }

    .ad-popup-image {
    max-height: 150px;
    }

    .ad-popup-text {
        padding: 16px;
    }

    .ad-popup-text h3 {
        font-size: 1.1rem;
    }
}
