/* منارة اللاذقية - أنماط صفحة النشاطات */

body.af-modal-open {
    overflow: hidden;
}

/* عداد الزوار */
.af-visitors {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.af-visitors strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.af-visitors .af-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2E9E5B;
    box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.18);
}

.af-visitors .af-sep {
    opacity: 0.5;
}

/* شريط الأدوات */
.af-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.af-admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-dark);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.af-admin-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* لوحة الإدارة */
.af-panel {
    background: var(--off-white);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 32px;
}

.af-panel h3 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.af-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.af-field {
    margin-bottom: 18px;
}

.af-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.af-input,
.af-select,
.af-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-soft);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.af-textarea {
    resize: vertical;
    min-height: 110px;
}

.af-input:focus,
.af-select:focus,
.af-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 90, 139, 0.12);
}

.af-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    border: none;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.af-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.af-btn-ghost {
    background: transparent;
    border: 2px solid var(--primary-soft);
    color: var(--primary-dark);
}

.af-btn-ghost:hover {
    background: var(--primary-soft);
}

.af-status {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.af-status:empty {
    display: none;
}

.af-status.is-error {
    color: #C0392B;
}

/* حالات الشبكة */
.af-empty,
.af-error {
    text-align: center;
    padding: 26px 18px;
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.af-error {
    margin-top: 20px;
    background: #FDECEA;
    color: #A5352A;
}

/* بيانات البطاقة */
.af-card-meta {
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* نافذة المنشور */
.af-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(45, 45, 45, 0.55);
    backdrop-filter: blur(3px);
}

.af-modal[hidden] {
    display: none;
}

.af-modal-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.af-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.af-close:hover {
    background: var(--primary);
    color: var(--white);
}

.af-modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.af-modal-image[hidden] {
    display: none;
}

.af-modal-body {
    padding: 28px;
}

.af-modal-body h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.af-modal-text {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 18px;
    white-space: pre-line;
}

.af-meta {
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.af-reviews {
    border-top: 1px solid var(--primary-soft);
    padding-top: 22px;
    margin-top: 8px;
}

.af-reviews h4 {
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.af-review {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.af-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.af-review-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.af-stars {
    color: #E0A800;
    letter-spacing: 1px;
    font-size: 0.92rem;
}

.af-review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.af-review-comment {
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.8;
    white-space: pre-line;
}

.af-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.af-review-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--primary-soft);
}

@media (max-width: 768px) {
    .af-row {
        grid-template-columns: 1fr;
    }

    .af-panel,
    .af-modal-body {
        padding: 20px;
    }

    .af-visitors {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}
